/* ════════════════════════════════════════════════════════════
   NEZNAKOV BOOST · GUIDES (cornerstone SEO pages) · 2026
   Built on styles/boost.css tokens. Load order: boost.css → guides.css.
   No dependency on boost.js — entrance is JS-free via scroll-timeline,
   so guide pages NEVER use .reveal (which needs boost.js to un-hide).
   ════════════════════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.gd-main{padding:128px 0 96px;position:relative;z-index:2}
.gd-wrap{max-width:820px;margin:0 auto}

/* ─── BREADCRUMB ─── */
.gd-bc{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  font-family:var(--f-mono);font-size:12px;letter-spacing:.02em;
  color:var(--text-3);margin-bottom:28px;
}
.gd-bc a{color:var(--text-3);transition:color .15s}
.gd-bc a:hover{color:var(--v-300)}
.gd-bc span[aria-current]{color:var(--text-2)}
.gd-bc i{font-style:normal;color:var(--text-4);user-select:none}

/* ─── HEADER ─── */
.gd-head{margin-bottom:40px}
.gd-head .eyebrow{margin-bottom:18px}
.gd-h1{
  font-family:var(--f-display);font-weight:800;
  font-size:clamp(30px,5vw,46px);line-height:1.05;letter-spacing:-.025em;
  margin:0 0 20px;text-wrap:balance;
}
.gd-h1 em{
  font-style:normal;
  background:linear-gradient(180deg,var(--v-200),var(--v-500));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.gd-lead{
  font-size:19px;line-height:1.6;color:var(--text-2);
  margin:0 0 24px;max-width:70ch;text-wrap:pretty;
}
.gd-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  font-family:var(--f-mono);font-size:12px;color:var(--text-3);
  padding-bottom:24px;border-bottom:1px solid var(--line-2);
}
.gd-meta i{font-style:normal;color:var(--text-4)}
.gd-meta b{color:var(--v-300);font-weight:600}

/* ─── TABLE OF CONTENTS ─── */
.gd-toc{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--r-lg);
  padding:26px 30px;margin:36px 0;
}
.gd-toc-label{
  font-family:var(--f-mono);font-size:11px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--v-300);
  display:block;margin-bottom:16px;
}
.gd-toc ol{
  margin:0;padding:0;list-style:none;counter-reset:gdtoc;
  display:grid;gap:11px;
}
.gd-toc li{counter-increment:gdtoc;display:flex;align-items:baseline;gap:12px}
.gd-toc li::before{
  content:counter(gdtoc,decimal-leading-zero);
  font-family:var(--f-mono);font-size:12px;font-weight:600;
  color:var(--v-400);flex-shrink:0;min-width:22px;
}
.gd-toc a{
  color:var(--text-2);font-size:15px;line-height:1.4;
  transition:color .15s;
}
.gd-toc a:hover{color:var(--text)}

/* ─── SECTIONS + PROSE ─── */
.gd-sec{scroll-margin-top:96px;margin:0 0 48px}
.gd-sec>h2{
  font-family:var(--f-display);font-weight:700;
  font-size:clamp(23px,3.2vw,31px);line-height:1.15;letter-spacing:-.022em;
  margin:0 0 18px;text-wrap:balance;
}
.gd-sec h3{
  font-family:var(--f-display);font-weight:700;font-size:20px;
  letter-spacing:-.018em;color:var(--v-200);margin:30px 0 10px;
}
.gd-sec p{color:var(--text-2);font-size:16px;line-height:1.75;margin:0 0 16px;text-wrap:pretty}
.gd-sec ul,.gd-sec ol{margin:0 0 18px;padding-left:22px}
.gd-sec li{color:var(--text-2);font-size:16px;line-height:1.7;margin-bottom:9px;text-wrap:pretty}
.gd-sec ul li::marker{color:var(--v-400)}
.gd-sec ol li::marker{color:var(--v-400);font-family:var(--f-mono);font-weight:600}
.gd-sec b,.gd-sec strong{color:var(--text);font-weight:700}
.gd-sec a:not(.btn){color:var(--v-300);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;transition:.15s}
.gd-sec a:not(.btn):hover{color:var(--v-200);text-decoration-color:var(--v-400)}

/* numbered "steps" list with cards */
.gd-steps{list-style:none;margin:6px 0 20px;padding:0;counter-reset:gdstep;display:grid;gap:14px}
.gd-steps>li{
  counter-increment:gdstep;position:relative;
  background:rgba(255,255,255,.025);border:1px solid var(--line-2);
  border-radius:var(--r);padding:18px 22px 18px 64px;
  color:var(--text-2);font-size:16px;line-height:1.65;margin:0;
}
.gd-steps>li::before{
  content:counter(gdstep);position:absolute;left:18px;top:16px;
  width:32px;height:32px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--f-mono);font-weight:700;font-size:14px;color:var(--v-200);
  background:linear-gradient(180deg,color-mix(in oklch,var(--v-500) 22%,transparent),color-mix(in oklch,var(--v-500) 8%,transparent));
  border:1px solid color-mix(in oklch,var(--v-500) 38%,transparent);
}
.gd-steps>li b{color:var(--text)}
.gd-steps>li::marker{content:none}

/* ─── CALLOUT (inline tip / mini-CTA) ─── */
.gd-callout{
  position:relative;border-radius:var(--r-lg);padding:22px 26px;margin:28px 0;
  background:
    radial-gradient(120% 140% at 0% 0%,var(--v-haze),transparent 60%),
    rgba(255,255,255,.02);
  border:1px solid var(--line-strong);
}
.gd-callout-label{
  font-family:var(--f-mono);font-size:11px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--v-300);
  display:block;margin-bottom:8px;
}
.gd-callout p{margin:0;color:var(--text-2);font-size:15px;line-height:1.65}
.gd-callout p+p{margin-top:10px}
.gd-callout a:not(.btn){color:var(--v-200);text-decoration:underline;text-underline-offset:3px}

/* ─── FACT STRIP ─── */
.gd-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;
  margin:28px 0;
}
.gd-fact{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--r);
  padding:20px 22px;
}
.gd-fact b{
  display:block;font-family:var(--f-display);font-weight:800;
  font-size:28px;line-height:1;letter-spacing:-.02em;color:var(--text);
  margin-bottom:8px;
}
.gd-fact span{font-size:13px;line-height:1.4;color:var(--text-3)}

/* ─── RANK / DATA TABLE ─── */
.gd-table-wrap{
  margin:24px 0;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
}
.gd-table{width:100%;border-collapse:collapse;font-size:15px;min-width:440px}
.gd-table caption{
  text-align:left;padding:16px 22px 0;color:var(--text-3);
  font-family:var(--f-mono);font-size:12px;letter-spacing:.02em;
}
.gd-table th,.gd-table td{padding:13px 22px;text-align:left;border-bottom:1px solid var(--line)}
.gd-table thead th{
  font-family:var(--f-mono);font-size:11px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--v-300);
  background:rgba(139,92,246,.06);position:sticky;top:0;
}
.gd-table tbody tr:last-child td{border-bottom:0}
.gd-table tbody tr:hover{background:rgba(255,255,255,.02)}
.gd-table td:first-child{color:var(--text);font-weight:600}
.gd-table td.mono,.gd-table td .mono{font-family:var(--f-mono);color:var(--text-2);font-variant-numeric:tabular-nums}
.gd-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:9px;vertical-align:baseline;flex-shrink:0}

/* ─── FAQ ─── */
.gd-faq{display:grid;gap:12px;margin-top:8px}
.gd-faq details{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;transition:border-color .2s;
}
.gd-faq details[open]{border-color:var(--line-strong)}
.gd-faq summary{
  list-style:none;cursor:pointer;padding:18px 54px 18px 22px;position:relative;
  font-family:var(--f-display);font-weight:600;font-size:16.5px;letter-spacing:-.012em;
  color:var(--text);line-height:1.4;
}
.gd-faq summary::-webkit-details-marker{display:none}
.gd-faq summary::after{
  content:"";position:absolute;right:22px;top:50%;
  width:13px;height:13px;margin-top:-7px;
  background:
    linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center/1.5px 100% no-repeat;
  color:var(--v-300);transition:transform .25s var(--easing),color .2s;
}
.gd-faq details[open] summary::after{transform:rotate(135deg);color:var(--v-200)}
.gd-faq summary:hover{color:var(--v-100)}
.gd-faq .gd-faq-body{padding:0 22px 20px}
.gd-faq .gd-faq-body p{margin:0;color:var(--text-2);font-size:15px;line-height:1.7}
.gd-faq .gd-faq-body p+p{margin-top:10px}

/* ─── BIG END CTA ─── */
.gd-cta{
  position:relative;overflow:hidden;text-align:center;
  border:1px solid var(--line-strong);border-radius:var(--r-xl);
  padding:48px 40px;margin:56px 0 8px;
  background:
    radial-gradient(800px 400px at 50% -40%,var(--v-haze),transparent 60%),
    linear-gradient(180deg,var(--surface),var(--bg-2));
}
.gd-cta h2{
  font-family:var(--f-display);font-weight:800;
  font-size:clamp(24px,3.4vw,32px);letter-spacing:-.022em;margin:0 0 14px;
}
.gd-cta p{color:var(--text-2);font-size:16px;line-height:1.6;margin:0 auto 26px;max-width:52ch}
.gd-cta-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* ─── RELATED GUIDES ─── */
.gd-related{margin:56px 0 0}
.gd-related-label{
  font-family:var(--f-mono);font-size:11px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--v-300);
  display:block;margin-bottom:18px;
}
.gd-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.gd-card{
  display:flex;flex-direction:column;gap:8px;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--r);
  padding:20px 22px;transition:transform .25s var(--easing),border-color .2s;
}
.gd-card:hover{transform:translateY(-2px);border-color:var(--line-strong)}
.gd-card-kicker{font-family:var(--f-mono);font-size:11px;letter-spacing:.04em;color:var(--text-3)}
.gd-card-title{font-family:var(--f-display);font-weight:700;font-size:17px;letter-spacing:-.015em;color:var(--text);line-height:1.25}
.gd-card-arrow{margin-top:auto;font-size:13px;color:var(--v-300);font-weight:600}
.gd-card:hover .gd-card-arrow{color:var(--v-200)}

/* ─── HUB (index) ─── */
.gd-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-top:8px}
.gd-hub-card{
  position:relative;display:flex;flex-direction:column;gap:10px;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--r-lg);
  padding:28px 28px 26px;transition:transform .28s var(--easing),border-color .2s,box-shadow .28s;
  overflow:hidden;
}
.gd-hub-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(420px 220px at 100% 0%,var(--v-haze),transparent 60%);
}
.gd-hub-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--sh-card)}
.gd-hub-card:hover::before{opacity:1}
.gd-hub-num{font-family:var(--f-mono);font-size:12px;font-weight:600;color:var(--v-400);letter-spacing:.06em}
.gd-hub-title{font-family:var(--f-display);font-weight:700;font-size:21px;letter-spacing:-.02em;line-height:1.2;color:var(--text)}
.gd-hub-desc{color:var(--text-2);font-size:14.5px;line-height:1.6;margin:0;flex:1}
.gd-hub-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.gd-hub-read{font-family:var(--f-mono);font-size:11.5px;color:var(--text-3)}
.gd-hub-go{font-size:13px;font-weight:600;color:var(--v-300)}
.gd-hub-card:hover .gd-hub-go{color:var(--v-200)}

/* ─── JS-FREE SCROLL ENTRANCE (progressive enhancement) ───
   Only applies where scroll-driven animations are supported (Chrome/Edge).
   Elsewhere content is shown normally — never hidden. boost.js not required. */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .gd-sec,.gd-fact,.gd-card,.gd-hub-card,.gd-faq details,.gd-table-wrap,.gd-cta{
      animation:gd-rise linear both;
      animation-timeline:view();
      animation-range:entry 2% cover 16%;
    }
    @keyframes gd-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
  }
}

/* ─── RESPONSIVE ─── */
@media(max-width:768px){
  .gd-main{padding:100px 0 64px}
  .gd-lead{font-size:17px}
  .gd-toc{padding:22px 22px}
  .gd-sec{margin-bottom:40px}
  .gd-sec p,.gd-sec li{font-size:15.5px}
  .gd-cta{padding:36px 24px}
  .gd-cta-row .btn{width:100%;justify-content:center}
  .gd-steps>li{padding:16px 18px 16px 58px}
  .gd-fact b{font-size:24px}
}
@media(max-width:520px){
  .gd-main{padding:92px 0 56px}
  .gd-toc{padding:20px 18px}
  .gd-table th,.gd-table td{padding:11px 16px}
  .gd-hub-card{padding:24px 22px}
}
