/* ══════════════════════════════════════════════════════════
   guides.css — long-form GUIDE layouts + addition blocks
   ------------------------------------------------------------
   Load order:  _shared.css  →  wiki.css  →  guides.css
   Guides deliberately reuse the wiki's shared blocks (callouts,
   comparison table, steps, takeaways, on-this-page TOC, related
   grid, updated badge) so this file only adds what's guide-only:
   the two reading layouts + the editorial/verdict blocks.

   Every guide wraps its content in .guide-root > .guide-page so
   the layout reflows from its OWN width (container queries).
   Guides carry NO named author: reading time + updated only.
   ══════════════════════════════════════════════════════════ */

/* ── Container root ── */
.guide-root { container-type: inline-size; container-name: page; width: 100%; background: var(--bg); color: var(--ink); }
.guide-page { width: 100%; }
.guide-page nav { position: relative; top: auto; }

/* ── Hero (shared by both layouts) ── */
.guide-hero-wrap { max-width: 1040px; margin: 0 auto; padding: 2.75rem var(--gutter) 1.5rem; }
.guide-hero-wrap .breadcrumb { padding: 0 0 1.5rem; }
.guide-hero { max-width: 760px; }
.guide-title { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); margin-top: 1rem; }
.guide-title em { font-style: italic; color: var(--accent); }
.guide-standfirst { font-size: 19px; line-height: 1.6; color: var(--muted); margin-top: 1.15rem; max-width: 60ch; }
/* Author byline. The no-byline ruling was reversed by the owner on 2026-07-30:
   the guides are written in one person's voice, so they carry that person's name
   and link to the /om entity page. Set in the body face, not mono, because it is
   a sentence a reader reads rather than a metadata chip. */
.guide-byline { margin-top: 1.4rem; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.guide-byline a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s var(--ease); }
.guide-byline a:hover { border-color: var(--accent); }

.guide-meta { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
/* Tighter when it follows the byline, so the two metadata lines read as a pair. */
.guide-byline + .guide-meta { margin-top: .8rem; }
.guide-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* ── Optional hero image slot (accepts <img> or <image-slot> in production) ── */
.guide-hero-img { width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; margin-top: 1.75rem; }
.guide-hero-img.ph-slot { min-height: 0; }
.guide-hero-img img, .guide-hero-img image-slot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Reading prose (editorial: larger + darker than wiki reference text) ── */
.guide-prose > p { font-size: 17px; line-height: 1.85; color: var(--ink); margin-bottom: 1.25rem; }
.guide-prose > p strong { font-weight: 600; }
.guide-prose > p em { font-style: italic; }
.guide-prose a:not(.wiki-term) { color: var(--accent-text); text-underline-offset: 3px; }
.guide-prose .guide-lead { font-size: 20px; line-height: 1.7; color: var(--ink); margin-bottom: 1.4rem; }
.guide-prose h2 { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 2.75rem 0 1rem; scroll-margin-top: 90px; }
.guide-prose h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 1.9rem 0 .6rem; }
[data-theme="dark"] .guide-prose h2 { font-family: var(--serif); font-weight: 300; font-size: 30px; }

/* Optional drop cap: add class "dropcap" to the .guide-prose element */
.guide-prose.dropcap > p.guide-lead::first-letter { font-family: var(--serif); font-weight: 500; font-size: 4.6em; line-height: .78; float: left; margin: 6px 12px 0 0; color: var(--accent); }

/* ── Layout A · Editorial read (centered column + sticky on-this-page TOC) ── */
.guide-grid { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) 3.5rem; display: grid; grid-template-columns: minmax(0, 760px) 200px; gap: 3.5rem; align-items: start; }
.guide-toc { position: sticky; top: 90px; }

/* ── Layout B · Magazine feature (wide hero, single generous column, breakout quotes) ── */
.guide-hero-wrap.feature { max-width: 960px; }
.guide-hero-wrap.feature .guide-hero { max-width: 720px; }
.guide-body.feature { max-width: 720px; margin: 0 auto; padding: 2rem var(--gutter) 3.5rem; }
.guide-body.feature .pullquote { margin-left: -40px; margin-right: -40px; padding: 1rem 2.5rem; border-left: none; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-body.feature .pullquote cite { text-align: center; }

/* ══════════════════════════════════════════════════════════
   ADDITION BLOCKS — the guide-specific kit
   ══════════════════════════════════════════════════════════ */

/* Pull quote */
.pullquote { border-left: 2px solid var(--accent); padding: .35rem 0 .35rem 1.6rem; margin: 2rem 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.4; color: var(--ink); }
.pullquote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: .9rem; }

/* Bottom-line / verdict box */
.guide-verdict { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.75rem 0; }
.guide-verdict-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text-2); margin-bottom: .55rem; }
.guide-verdict p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }

/* "Best pick" / recommendation card */
.bestpick { position: relative; display: flex; gap: 1.4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 2rem 0 1.75rem; }
.bestpick-badge { position: absolute; top: -11px; left: 1.4rem; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.bestpick-body { flex: 1; }
.bestpick-body h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bestpick-body p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: .4rem; }
.bestpick-score { flex-shrink: 0; text-align: center; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.bestpick-score .n { font-family: var(--sans); font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
[data-theme="dark"] .bestpick-score .n { font-family: var(--serif); font-weight: 300; font-size: 36px; }
.bestpick-score .l { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* Pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin: 1.75rem 0; }
.proscons-col { background: var(--surface); padding: 1.25rem 1.4rem; }
.proscons-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.proscons-col.pro h4 { color: var(--green); }
.proscons-col.con h4 { color: var(--red); }
.proscons-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.proscons-col li { position: relative; padding-left: 1.5rem; font-size: 14px; line-height: 1.55; color: var(--muted); }
.proscons-col.pro li::before { content: '+'; position: absolute; left: 0; top: -1px; font-family: var(--mono); color: var(--green); font-weight: 500; }
.proscons-col.con li::before { content: '\2013'; position: absolute; left: 0; top: -1px; font-family: var(--mono); color: var(--red); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   Responsive — from the component's own width (@container)
   ══════════════════════════════════════════════════════════ */
@container page (max-width: 900px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 2rem; }
}
@container page (max-width: 640px) {
  .guide-page { --gutter: 22px; }
  .guide-page .nav-links, .guide-page .nav-tools .toggle { display: none; }
  .guide-page .nav-menu { display: flex; }
  .guide-page nav { gap: 1rem; padding: 14px var(--gutter); }
  .guide-hero-wrap { padding: 1.75rem var(--gutter) 1rem; }
  .guide-title { font-size: 31px; }
  .guide-standfirst { font-size: 16px; }
  /* read layout → single column, TOC to a top strip */
  .guide-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem var(--gutter) 2.5rem; }
  .guide-toc { position: static; order: -1; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
  .guide-toc .wiki-toc-list { border-left: none; flex-direction: row; flex-wrap: wrap; gap: .15rem .9rem; }
  .guide-toc .wiki-toc-list a { padding: 4px 0; border-left: none; margin-left: 0; }
  .guide-prose > p { font-size: 16px; }
  .guide-prose .guide-lead { font-size: 18px; }
  /* feature layout tightens */
  .guide-body.feature { padding: 1.25rem var(--gutter) 2.5rem; }
  .guide-body.feature .pullquote { margin-left: 0; margin-right: 0; padding: 1rem 0; text-align: left; border-top: none; border-bottom: none; border-left: 2px solid var(--accent); padding-left: 1.4rem; }
  .pullquote { font-size: 22px; }
  /* blocks stack */
  .proscons { grid-template-columns: 1fr; }
  .bestpick { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bestpick-score { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 1rem; width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; }
}
