/* ============================================================
   guides.css — layered on top of site.css for /guides/ pages
   ============================================================ */

/* ---------- guide hero ---------- */
.guide-hero{
  background:var(--ink);color:#fff;padding:52px 0 56px;
  position:relative;overflow:hidden;isolation:isolate;
}
.guide-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(80% 130% at 12% 0%,rgba(74,86,221,.5),transparent 62%);
}
.guide-hero h1{color:#fff;font-size:clamp(2rem,4vw,2.9rem);margin-bottom:16px;max-width:20ch}
.guide-hero .lede{color:rgba(255,255,255,.78);font-size:1.0625rem;max-width:56ch;margin-bottom:22px}
.byline{
  font-size:.8125rem;color:rgba(255,255,255,.5);margin:0;
  padding-top:18px;border-top:1px solid rgba(255,255,255,.12);
}

/* ---------- answer box ---------- */
.answer-box{background:var(--indigo-wash);border-bottom:1px solid #dde1fa;padding:28px 0}
.answer-label{
  font-size:.75rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--indigo);margin:0 0 8px;
}
.answer-text{font-size:1.125rem;line-height:1.6;color:var(--ink);margin:0}
.answer-text strong{font-weight:600}

/* ---------- body typography ---------- */
.guide-body{padding:56px 24px 24px}
.guide-body > h2{
  font-size:clamp(1.5rem,2.6vw,1.9rem);margin:48px 0 16px;
  padding-top:28px;border-top:1px solid var(--line-soft);
}
.guide-body > h2:first-child{margin-top:0;padding-top:0;border-top:0}
.guide-body h3{font-size:1.125rem;margin:30px 0 10px}
.guide-body p{font-size:1.0625rem;line-height:1.7}
.guide-body .ticks{margin:20px 0}
.guide-body .ticks li{font-size:1rem;line-height:1.6;margin-bottom:13px}
.ticks.neg svg,.ticks li.neg svg{color:#c2564d}
.guide-body strong{color:var(--ink);font-weight:600}
.guide-body em{font-style:italic}

/* ---------- depth scale ---------- */
.depth-scale{
  margin:26px 0;padding:22px;background:var(--tint);
  border:1px solid var(--line);border-radius:var(--r-lg);
}
.depth-row{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.depth-row:last-child{margin-bottom:0}
.depth-bar{
  flex:0 0 130px;height:10px;border-radius:999px;
  background:linear-gradient(90deg,#c9cfe8 var(--w),transparent var(--w));
  box-shadow:inset 0 0 0 1px #dfe3f2;
}
.depth-bar.depth-target{
  background:linear-gradient(90deg,var(--indigo) var(--w),transparent var(--w));
  box-shadow:inset 0 0 0 1px #cfd4ee;
}
.depth-label{font-size:.9375rem;line-height:1.45}
.depth-label strong{
  display:inline-block;min-width:66px;color:var(--ink);
  font-variant-numeric:tabular-nums;
}

/* ---------- worked example ---------- */
.worked-example{
  margin:28px 0;padding:24px 26px;border-radius:var(--r-lg);
  background:var(--green-soft);border:1px solid #d6ede2;
}
.worked-example h3{margin:0 0 14px;font-size:1.0625rem;color:#166b4b}
.worked-example p{font-size:.9375rem;margin-bottom:8px;color:#1c5c44}
.worked-example p:last-child{margin-bottom:0}
.worked-example strong{color:#0f4a34}

/* ---------- comparison table ---------- */
.compare-table-wrap{overflow-x:auto;margin:26px 0;-webkit-overflow-scrolling:touch}
.compare-table{width:100%;border-collapse:collapse;font-size:.9375rem;min-width:460px}
.compare-table th,.compare-table td{
  text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);
}
.compare-table th{background:var(--tint);color:var(--ink);font-weight:600;font-size:.875rem}
.compare-table tbody tr:last-child td{border-bottom:0;color:var(--muted)}

@media (max-width:720px){
  .guide-body{padding:40px 24px 16px}
  .guide-body p{font-size:1rem}
  .answer-text{font-size:1.0625rem}
  .depth-row{flex-direction:column;align-items:flex-start;gap:6px}
  .depth-bar{flex:none;width:100%}
  .worked-example{padding:20px}
}

/* ---------- guides index ---------- */
.guide-grid{display:grid;gap:18px}
.guide-card{
  display:block;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:28px;box-shadow:var(--sh-1);
  transition:box-shadow var(--t-hover) ease,border-color var(--t-hover) ease,
             transform var(--t-press) var(--ease-out);
}
.guide-card:active{transform:scale(.99)}
@media (hover:hover) and (pointer:fine){
  .guide-card:hover{box-shadow:var(--sh-2);border-color:#d6dbee}
  .guide-card:hover .guide-card__go svg{transform:translateX(3px)}
}
.guide-card__tag{
  display:inline-block;font-size:.75rem;font-weight:600;color:var(--indigo);
  background:var(--indigo-wash);padding:4px 11px;border-radius:999px;margin-bottom:14px;
}
.guide-card h2{font-size:1.25rem;margin:0 0 10px;border:0;padding:0}
.guide-card p{font-size:.9375rem;color:var(--muted);margin:0 0 16px}
.guide-card__go{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--indigo);font-weight:600;font-size:.9375rem;
}
.guide-card__go svg{transition:transform var(--t-hover) var(--ease-out)}
@media (prefers-reduced-motion:reduce){
  .guide-card:active{transform:none}
  .guide-card:hover .guide-card__go svg{transform:none}
}

/* ---------- vs table ---------- */
.vs-table th[scope="row"]{
  background:var(--tint);font-weight:600;color:var(--ink);
  width:26%;font-size:.875rem;
}
.vs-table thead th{text-align:left}
.vs-table thead th:first-child{background:transparent}
.vs-table td{vertical-align:top;font-size:.9375rem}
.vs-table tbody tr:last-child td{color:var(--ink-2)}

/* ---------- thank you ---------- */
.next-steps{counter-reset:step;margin:22px 0 26px;padding:0;list-style:none}
.next-steps li{
  counter-increment:step;position:relative;padding-left:44px;margin-bottom:18px;
  font-size:1rem;line-height:1.6;
}
.next-steps li::before{
  content:counter(step);position:absolute;left:0;top:-1px;
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:var(--indigo-wash);color:var(--indigo);font-size:.8125rem;font-weight:600;
}

/* ---------- inline figure ---------- */
.figure{margin:30px 0}
.figure picture{display:block}
.figure img{
  width:100%;height:auto;border-radius:var(--r-lg);
  border:1px solid var(--line);box-shadow:var(--sh-1);background:var(--tint);
}
.figure figcaption{
  margin-top:11px;font-size:.8125rem;line-height:1.55;color:var(--muted);
}
