/* Guide and guide-index pages. Builds on the tokens and components in styles.css. */
.page .topglow{display:none}
.page-main{padding:132px 0 96px;min-height:70vh;position:relative}
/* Balanced themes: soft glow in the top band only, fading into the page */
.page-main::before{content:"";position:absolute;inset:0 0 auto;height:420px;z-index:-1;pointer-events:none;
  background:radial-gradient(55% 90% at 20% -30%,rgba(189,52,254,.32),transparent 70%),radial-gradient(50% 80% at 60% -35%,rgba(65,209,255,.2),transparent 70%),radial-gradient(45% 70% at 90% -30%,rgba(44,91,240,.24),transparent 70%)}
[data-theme="light"] .page-main::before{background:radial-gradient(55% 90% at 20% -30%,rgba(168,85,247,.18),transparent 70%),radial-gradient(50% 80% at 60% -35%,rgba(6,182,212,.14),transparent 70%),radial-gradient(45% 70% at 90% -30%,rgba(59,130,246,.13),transparent 70%)}
.page-title{font:700 clamp(34px,4.6vw,56px)/1.05 'e-UkraineHead';letter-spacing:-.03em;margin:14px 0 18px;max-width:20ch;text-wrap:balance}
.guides-head{margin-bottom:48px}
.guides-empty{color:var(--text3)}
.guide-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.guide-card{display:flex;flex-direction:column;gap:12px;height:100%;padding:26px;border-radius:20px;transition:transform .25s cubic-bezier(.22,1,.36,1),border-color .25s}
.guide-card:hover{transform:translateY(-3px);border-color:var(--outline)}
.guide-card h2{font:700 20px/1.25 'e-UkraineHead';letter-spacing:-.03em}
.guide-card p{color:var(--text2);font-size:15px;line-height:1.5;flex:1}
.guide-card time{font:500 12.5px/1 'e-Ukraine';color:var(--text3)}
.draft-tag{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:999px;border:1px dashed var(--outline);font:700 10px/1 'e-Ukraine';letter-spacing:1px;text-transform:uppercase;color:var(--text3);vertical-align:middle}

.guide{max-width:760px}
.crumbs{font:500 14px/1 'e-Ukraine';color:var(--aura-text)}
.crumbs a:hover{text-decoration:underline}
.guide-meta{font:500 13px/1 'e-Ukraine';color:var(--text3);margin-bottom:24px}
.prose{font-size:17.5px;line-height:1.7;color:var(--text2)}
.prose > * + *{margin-top:1.1em}
.prose h2{font:700 clamp(24px,2.4vw,30px)/1.2 'e-UkraineHead';letter-spacing:-.03em;color:var(--text);margin-top:2em}
.prose h3{font:700 20px/1.3 'e-UkraineHead';letter-spacing:-.03em;color:var(--text);margin-top:1.6em}
.prose strong{color:var(--text);font-weight:700}
.prose a:not(.btn){color:var(--aura-text);text-decoration:underline;text-underline-offset:3px}
.prose ul,.prose ol{padding-left:1.3em}
.prose li + li{margin-top:.4em}
.prose li::marker{color:var(--text3)}
.prose blockquote{margin-left:0;padding:4px 0 4px 18px;border-left:2px solid var(--aura-1);color:var(--text)}
.prose table{width:100%;border-collapse:collapse;font-size:15px}
.prose th,.prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--hairline)}
.prose th{color:var(--text);font-weight:700}
.prose img{max-width:100%;height:auto;border-radius:20px}
/* CTA cards inside the article keep their own artwork: the official badge and the app icon are never re-rounded */
.prose .guide-cta img{border-radius:0}
.prose code{font-size:.9em;padding:2px 6px;border-radius:6px;background:var(--surface2)}

.guide-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-radius:20px;margin:2.2em 0}
.guide-meta + .guide-cta{margin:0 0 40px}
.guide-cta-title{font:700 20px/1.25 'e-UkraineHead';letter-spacing:-.03em;color:var(--text)}
.guide-cta-text{margin-top:6px;color:var(--text2);font-size:15px;line-height:1.5;max-width:44ch}
.sticky-cta{display:none}
@media (max-width:720px){
  .page-main{padding-top:104px}
  .sticky-cta{display:flex;justify-content:center;position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:50;box-shadow:var(--shadow)}
  footer{padding-bottom:110px}
}

.lang-menu{position:relative}
.lang-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu ul{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;margin:0;padding:6px;list-style:none;border-radius:16px;background:var(--surface);border:1px solid var(--surface-border);box-shadow:var(--shadow);z-index:70}
.lang-menu a{display:block;padding:10px 12px;border-radius:10px;font:500 14px/1 'e-Ukraine';color:var(--text2)}
.lang-menu a:hover{background:var(--sel-fill);color:var(--text)}
.lang-menu a[aria-current]{color:var(--text);font-weight:700}
@media (prefers-reduced-motion:reduce){.guide-card{transition:none}.guide-card:hover{transform:none}}
.save-card{margin-top:72px}
.save-card h2{font:700 24px/1.2 'e-UkraineHead';letter-spacing:-.03em;margin-bottom:20px}
.save-card img{width:min(400px,100%);height:auto;border-radius:20px;border:1px solid var(--surface-border)}
.save-card a{display:inline-flex;align-items:center;gap:8px;margin-top:16px;color:var(--aura-text);text-decoration:underline;text-underline-offset:4px}
/* the card follows the theme, as the hero does: light gets its own card, cyber a transparent one over the page's gradient
   (its download has that gradient baked in, since a transparent PNG looks broken anywhere else) */
.save-card .card-light,.save-card .card-cyber{display:none}
[data-theme="light"] .save-card .card-light{display:inline-flex}
[data-theme="light"] .save-card img.card-light{display:block}
[data-theme="light"] .save-card .card-dark:has(~ .card-light),[data-theme="light"] .save-card p:has(.card-light) a.card-dark{display:none}
[data-theme="cyber"] .save-card img.card-cyber{display:block;background:var(--surface)}
[data-theme="cyber"] .save-card img.card-dark:has(~ .card-cyber){display:none}
[data-theme="cyber"] .save-card a.card-cyber{display:inline-flex}
[data-theme="cyber"] .save-card p:has(.card-cyber) a.card-dark{display:none}
.related{margin-top:72px}
.related h2{font:700 24px/1.2 'e-UkraineHead';letter-spacing:-.03em;margin-bottom:20px}
.related .guide-card h3{font:700 18px/1.3 'e-UkraineHead';letter-spacing:-.03em}
.related .guide-list{grid-template-columns:1fr}
/* wide tables scroll inside the column instead of widening the page */
.prose table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
.prose{overflow-wrap:break-word}
/* the CTA names the brand, so it uses the wordmark face (straight K) */
.guide-cta-title{font-family:'e-Ukraine'}
.guide-cta > .guide-cta-body{flex:1 1 300px;min-width:0;display:flex;align-items:center;gap:18px}
.guide-cta-icon{width:56px;height:56px;box-shadow:none}

/* CTA card inverts the page theme so it stands out (design-system card styles):
   dark/cyber pages get a Balanced Light card with pastel iridescence from the bottom,
   light pages get a Balanced Dark card lit from above. */
.guide-cta{
  --cta-bg:#FFFFFF; --cta-title:#262627; --cta-text:#525252; --cta-border:rgba(0,0,0,.07);
  --cta-btn-bg:#262627; --cta-btn-text:#FFFFFF;
  background-color:var(--cta-bg);
  background-image:
    radial-gradient(60% 70% at 15% 115%,rgba(168,85,247,.14),transparent 70%),
    radial-gradient(55% 65% at 55% 120%,rgba(45,212,191,.14),transparent 70%),
    radial-gradient(50% 60% at 92% 115%,rgba(251,146,60,.14),transparent 70%);
  border:1px solid var(--cta-border);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.6);
}
.guide-cta .guide-cta-title{color:var(--cta-title)}
.guide-cta .guide-cta-text{color:var(--cta-text)}
.guide-cta .btn-primary{background:var(--cta-btn-bg);color:var(--cta-btn-text)}
[data-theme="cyber"] .guide-cta{--cta-btn-bg:linear-gradient(120deg,#FF3DCB,#A855F7)}
[data-theme="light"] .guide-cta{
  --cta-bg:#141317; --cta-title:#FFFFFF; --cta-text:#B4AEC0; --cta-border:rgba(255,255,255,.06);
  --cta-btn-bg:#FFFFFF; --cta-btn-text:#0B0A0E;
  background-image:linear-gradient(180deg,#1E1D22 0%,#141317 55%,#0E0D11 100%),radial-gradient(50% 40% at 50% 0%,rgba(255,255,255,.05),transparent);
  box-shadow:0 30px 60px -30px rgba(38,38,39,.45);
}

.guide-hero{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:24px;border:1px solid var(--surface-border);margin:0 0 36px;background:#0B0A0E}
@media (max-width:720px){.guide-hero{border-radius:18px;margin-bottom:24px}}

/* the hero breaks out of the 760px text column on wide screens */
@media (min-width:900px){.guide-hero{width:min(1040px,calc(100vw - 64px));max-width:none;margin-left:50%;transform:translateX(-50%)}}

/* legal and support pages */
.legal-split{border:0;border-top:1px solid var(--hairline);margin:72px 0 56px}
.legal .prose h2{font-size:clamp(20px,2vw,24px)}
.form-embed{display:block;width:100%;height:1500px;border:0;border-radius:20px;background:#fff;margin-top:24px}
.foot-links{display:flex;flex-wrap:wrap;gap:22px;font:500 14px/1 'e-Ukraine';color:var(--text3)}
/* guide hero: the light version in the light theme */
.guide-hero.hero-light{display:none}
[data-theme="light"] .guide-hero.hero-light{display:block}
[data-theme="light"] .guide-hero.hero-dark:has(+ .hero-light){display:none}
/* cyber: the hero is a transparent render in a glass box, like the guide CTA card in that theme */
.guide-hero.hero-cyber{display:none}
[data-theme="cyber"] .guide-hero.hero-cyber{display:block;background:var(--surface)}
[data-theme="cyber"] .guide-hero.hero-dark:has(~ .hero-cyber){display:none}
/* the guide's topic glyph (its hero's centre icon) in the Aura ring, next to the title */
.g-ico{float:left;width:40px;height:40px;margin:-2px 12px 4px 0;border-radius:50%;padding:1.5px;box-sizing:border-box;
  background:conic-gradient(from 210deg,#A855F7,#8B5CF6,#0AF5F1,#A855F7);box-shadow:0 0 18px rgba(168,85,247,.3);display:grid}
.g-ico svg{grid-area:1/1;width:100%;height:100%;box-sizing:border-box;padding:9px;border-radius:50%;background:radial-gradient(circle at 50% 35%,var(--surface2),var(--surface) 70%);
  fill:none;stroke:#C084FC;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-theme="light"] .g-ico svg{stroke:#7C3AED}
.guide-card h2,.guide-card h3{display:flow-root}
.g-ico{float:none;width:44px;height:44px;margin:0 0 14px}
.g-ico svg{padding:10px}
.guide-card h2,.guide-card h3{display:block}
/* guide cards get the app's card treatment, like the landing's boxes */
.guide-card{background:var(--box-iri),var(--box-glow),var(--lift)!important;border:1px solid var(--surface-border);padding:30px 28px 26px}
[data-theme="cyber"] .guide-card{background:var(--surface)!important}
/* guide CTA: the official App Store badge, on the app card treatment */
.guide-cta{background:var(--box-iri),var(--box-glow),var(--lift)!important;border:1px solid var(--surface-border)}
[data-theme="cyber"] .guide-cta{background:var(--surface)!important}
.guide-cta-badge{display:inline-flex;flex:none;line-height:0}
.guide-cta-badge img{height:50px;width:auto}
/* topic icon: a transparent disc inside a thin Aura ring, so it sits on any theme's card */
.g-ico{position:relative;background:none!important;box-shadow:none;padding:0}
.g-ico::before{content:"";position:absolute;inset:0;border-radius:50%;padding:1.5px;
  background:conic-gradient(from 210deg,#A855F7,#8B5CF6,#0AF5F1,#A855F7);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.g-ico svg{background:none!important;filter:drop-shadow(0 0 6px rgba(168,85,247,.45))}
[data-theme="cyber"] .g-ico svg{stroke:#fff}
/* the CTA now follows the page theme like every other box */
.guide-cta .guide-cta-title{color:var(--text)}
.guide-cta .guide-cta-text{color:var(--text2)}
.guide-cta{box-shadow:none}
.guide-cta-badges{gap:12px;padding-bottom:14px}
.guide-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px 32px}
.guide-cta-badges{flex-direction:column;align-items:stretch;gap:10px;padding-bottom:16px}
.guide-cta-badges .badge{justify-content:center}
.guide-cta-badges .badge img{height:42px}
@media (max-width:720px){.guide-cta{grid-template-columns:1fr;gap:20px}.guide-cta-badges{flex-direction:row;align-items:flex-start;justify-content:flex-start}}

/* guide CTA: Android is a quiet note under the App Store badge */
.guide-cta .soon-note{font:500 12px/1.3 'e-Ukraine';color:var(--text3);text-align:center}
/* 404: the brand mark, one way home, the guides */
.nf{min-height:70svh;display:grid;justify-items:center;align-content:center;text-align:center;gap:14px;padding-top:120px;padding-bottom:80px}
.nf-mark{width:88px;height:88px;filter:drop-shadow(0 0 32px rgba(168,85,247,.45))}
.nf-code{margin:6px 0 0;font:700 13px/1 'e-Ukraine';letter-spacing:.24em;color:var(--aura-text)}
.nf .page-title{margin:0}
.nf .lede{max-width:44ch;margin:0 auto}
.nf-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:12px}
.nf-chip{display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--outline);font:500 14px/1 'e-Ukraine';color:var(--text2)}
.nf-chip:hover{color:var(--text);background:var(--sel-fill)}
/* topic glyph: white inside the Aura ring, black on the light theme */
.g-ico svg,[data-theme="cyber"] .g-ico svg{stroke:#fff}
[data-theme="light"] .g-ico svg{stroke:#262627;filter:none}
