/* ══════════════════════════════════════
   Guides, results and case-study pages — /guides/, /results/
   Loaded after legal.css, which supplies the tokens, masthead, contents rail, article type
   and footer. Everything here is an addition or a deliberate override.
══════════════════════════════════════ */

/* ── Masthead: site nav instead of the legal document switch ── */
.site-nav { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; }
.site-nav a {
  text-decoration: none; color: rgba(246,245,239,.6);
  padding: .45rem .85rem; border-radius: 999px; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.site-nav a:hover { color: var(--cream); border-color: rgba(178,189,165,.35); }
.site-nav a:active { background: rgba(74,92,64,.4); }
.site-nav a:focus-visible { outline-color: var(--sage); }
.site-nav a[aria-current="page"] { color: var(--cream); border-color: rgba(178,189,165,.35); }
.site-nav .nav-cta { color: var(--forest); background: var(--sage); font-weight: 600; margin-left: .35rem; }
.site-nav .nav-cta:hover { color: var(--forest); background: var(--cream); border-color: var(--cream); }
.site-nav .nav-cta:active { background: rgba(246,245,239,.8); }
@media (max-width: 520px) {
  .site-nav .nav-cta { display: none; }
  .site-nav a { padding: .4rem .6rem; }
}

/* ── Masthead title: a question, then the answer that stands on its own ── */
.masthead h1.question {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 24ch; margin: .9rem 0 1.6rem;
}
.answer {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem); font-weight: 400; line-height: 1.6;
  color: rgba(246,245,239,.92); max-width: 62ch;
  border-left: 3px solid var(--sage); padding: .1rem 0 .1rem 1.15rem; margin-bottom: 1.6rem;
}
.answer strong { color: var(--cream); font-weight: 600; }
.breadcrumb { font-size: .78rem; color: rgba(246,245,239,.55); }
.breadcrumb a { color: var(--sage); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ── Article additions ── */
.doc ol { margin: .8rem 0 1rem; padding-left: 1.4rem; }
.doc ol li::marker { color: var(--sage-mid); font-weight: 700; }
.doc blockquote {
  margin: 1.4rem 0; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--sage-dark); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
}
.doc blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.55; color: var(--forest); }
.doc blockquote footer { margin-top: .6rem; font-size: .82rem; color: var(--ink-soft); }
.doc .source { font-size: .82rem; color: var(--ink-soft); }
.doc .faq h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.doc .faq h3:first-of-type { margin-top: .4rem; }

/* Figures — the case study and the return-on-ad-spend worked example */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1.2rem 0 1.4rem; }
.figure { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
.figure b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; line-height: 1.1; color: var(--forest); font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: .35rem; font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.figure--accent { background: var(--forest); border-color: var(--forest); }
.figure--accent b { color: var(--cream); }
.figure--accent span { color: rgba(246,245,239,.7); }

/* ── Related guides and closing call to action (asides: not numbered sections) ── */
.doc aside { margin-top: 3rem; }
.doc aside h2::before { content: none; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc .related-list li { margin: 0; }
.related-card {
  display: block; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--forest);
  font-weight: 600; line-height: 1.45; box-shadow: 0 1px 2px rgba(30,42,27,.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc a.related-card { color: var(--forest); text-decoration: none; }
.related-card:hover { transform: translateY(-2px); border-color: rgba(74,92,64,.35); box-shadow: 0 8px 22px rgba(30,42,27,.08); }
.related-card:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(30,42,27,.04); }
.related-card small { display: block; margin-top: .3rem; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

.cta-panel {
  padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius);
  background-color: var(--forest);
  background-image: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(110,128,96,.28) 0%, transparent 65%);
  color: var(--cream);
}
.doc .cta-panel h2 { color: var(--cream); margin-bottom: .7rem; }
.doc .cta-panel p { color: rgba(246,245,239,.8); }
.cta-button {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem;
  background: var(--cream); color: var(--forest); border: 1.5px solid var(--cream);
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  text-decoration: none; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.doc a.cta-button { color: var(--forest); text-decoration: none; }
.cta-button:hover { transform: translateY(-1px); background: var(--sage); border-color: var(--sage); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cta-button:active { transform: translateY(0); box-shadow: none; }
.cta-button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.cta-note { margin-top: .8rem; font-size: .8rem; }
.doc .cta-panel .cta-note { color: rgba(246,245,239,.55); }

/* ── Hub and results pages: full-width lists without the contents rail ── */
.layout--wide { grid-template-columns: minmax(0, 1fr) !important; }
.layout--wide .doc { max-width: 76rem; }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.doc .guide-grid li { margin: 0; }
.guide-grid .related-card { height: 100%; padding: 1.3rem 1.35rem; font-size: 1.02rem; }
.guide-grid .related-card small { margin-top: .6rem; line-height: 1.6; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 1.2rem; }
.testimonial {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 2px 16px rgba(30,42,27,.05);
}
/* Video on top, edge to edge, with the duration pill floating over it — as in the homepage carousel */
.t-video { position: relative; background: #111; }
.t-video wistia-player { display: block; width: 100%; }
.doc .testimonial .t-duration {
  position: absolute; top: 12px; left: 12px; z-index: 5; pointer-events: none;
  font-size: .58rem; line-height: 1.5; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(20,32,18,.68);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 4px 11px; border-radius: 20px; border: 1px solid rgba(178,189,165,.22);
}
.t-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.doc .testimonial blockquote { margin: 0 0 1rem; padding: 0; border: 0; background: none; flex: 1; }
.doc .testimonial .t-headline { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 1.08rem; line-height: 1.35; color: var(--forest); }
.doc .testimonial .t-quote { margin-top: .55rem; font-family: var(--font-body); font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.doc .testimonial h2 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1.3; margin: 0; padding-top: .8rem; border-top: 1px solid var(--rule); display: block; }
.doc .testimonial h2::before { content: none; }
.testimonial .t-practice { font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }

.feature-card {
  display: grid; gap: 1rem; padding: clamp(1.4rem, 3.5vw, 2rem); border-radius: var(--radius);
  background: var(--forest); color: var(--cream); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.doc a.feature-card { color: var(--cream); text-decoration: none; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30,42,27,.25); }
.feature-card:active { transform: translateY(0); box-shadow: none; }
.feature-card .fc-eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.feature-card .fc-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
.feature-card .fc-more { font-size: .88rem; font-weight: 600; color: var(--sage); }

@media (prefers-reduced-motion: reduce) {
  .related-card:hover, .cta-button:hover, .feature-card:hover { transform: none; }
}
