/* ═══════════════════════════════════════════════════════════════════
   Sakaloz Guide — the Guide's own styles, on top of /assets/site.css.
   Tokens only: every colour, radius, font and curve here comes from the
   tokens in site.css. No hex colour in this file (tools/check-site.js
   refuses one). Breakpoints are the site's two: 980 and 760.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero (dark, like /faq's) ────────────────────────────────────── */
.guide-hero { padding-bottom: 48px; }
.guide-hero .h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-wrap: balance; }
.guide-hero .subline { text-wrap: pretty; }
.guide-orb { opacity: .4; }
.guide-crumb { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.guide-crumb a { color: var(--accent); display: inline-block; padding: 14px 6px; margin: -14px -6px; }   /* 44px hit area */
.guide-crumb a:hover { color: var(--coral-400); }
.guide-meta { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.guide-hero .guide-meta { margin-top: 20px; }

/* Cormorant draws old-style figures by default: "112" reads like "II2".
   Wherever the Guide sets digits in Cormorant, they are lining figures. */
.guide-hero .h1, .guide-card-title, .guide-h2, .g-guide-t, .g-number-n, .g-steps .step-no {
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}

/* ── Small coral capitals: a category, a panel's name ────────────── */
.guide-cat, .guide-label, .g-number-l, .g-guide-w, .guide-glance dt {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-800);              /* the coral that passes AA on paper */
}

/* ── The cards: /guide's grid, and "More guides" ─────────────────── */
.guide-list { padding-top: 56px; padding-bottom: 88px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; min-height: 236px; color: var(--ink); }
.guide-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.18; letter-spacing: -0.01em; color: var(--heading); text-wrap: balance; margin: 0; }
.guide-card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.guide-card .guide-meta { margin-top: auto; padding-top: 10px; font-size: 13px; }
.guide-card:hover .guide-card-title { color: var(--wine); }

/* ── The reading column ──────────────────────────────────────────── */
.guide-body { padding-top: 56px; padding-bottom: 72px; }
.guide-col { max-width: 720px; }
.guide-section { margin-top: 48px; }
.guide-col > .guide-section:first-child { margin-top: 0; }     /* a guide with no glance panel */
.guide-section > * + * { margin-top: 16px; }
.guide-h2 { font-size: clamp(1.75rem, 3.2vw, 2.2rem); line-height: 1.18; color: var(--heading); text-wrap: balance; }
.guide-section > .guide-h2 + * { margin-top: 18px; }
.g-p { font-size: 17px; line-height: 1.7; color: var(--ink); }

/* At a glance: label and value pairs, two columns from 760px */
.guide-glance { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px 26px; }
.guide-glance dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr; gap: 18px 32px; }
.guide-glance dt { font-size: 11.5px; }
.guide-glance dd { margin: 5px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
@media (min-width: 760px) { .guide-glance dl { grid-template-columns: 1fr 1fr; } }

/* A list with no order: coral markers */
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-list li { position: relative; padding-inline-start: 26px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.g-list li::before { content: ''; position: absolute; inset-inline-start: 5px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* Steps: numbered rows with the site's big numerals */
.g-steps { list-style: none; margin: 0; padding: 0; }
.g-steps li { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.g-steps li:first-child { border-top: 0; padding-top: 4px; }
.g-steps .step-no { margin-bottom: 0; font-size: 2.2rem; line-height: 1.05; }
.g-step { padding-top: 5px; }
.g-step-t { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.g-step-x { margin-top: 4px; font-size: 15.5px; line-height: 1.65; color: var(--ink-muted); }

/* A note: something to watch out for */
.g-note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 14px; border-start-start-radius: 4px; border-end-start-radius: 4px; background: var(--coral-100); border-inline-start: 4px solid var(--coral); }
.g-note svg { width: 22px; height: 22px; color: var(--coral-800); margin-top: 2px; }
.g-note p { font-size: 16px; line-height: 1.65; color: var(--ink); }

/* Phone numbers: one large card per number, the whole card calls */
.g-numbers { display: grid; gap: 12px; }
.g-number {
  position: relative; display: block; padding: 20px 76px 20px 24px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur-card) var(--ease-out-soft), box-shadow var(--dur-card) var(--ease-out-soft), border-color var(--dur-card) var(--ease-out-soft);
}
.g-number:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(var(--wine-rgb), .35); border-color: rgba(var(--wine-rgb), .42); }
.g-number-l, .g-number-n, .g-number-x { display: block; }
.g-number-n { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 8vw, 3.1rem); line-height: 1.05; letter-spacing: 0; color: var(--heading); white-space: nowrap; }
.g-number-x { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.g-number-ic { position: absolute; inset-inline-end: 22px; top: 50%; width: 42px; height: 42px; padding: 11px; margin-top: -21px; border-radius: 12px; background: rgba(var(--wine-rgb), .10); color: var(--wine); }

/* Official pages: one row per link, with an arrow */
.g-links { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.g-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 20px; font-size: 15.5px; font-weight: 500; line-height: 1.45; color: var(--ink); border-top: 1px solid var(--border); transition: color var(--dur-card) var(--ease-out-soft), background-color var(--dur-card) var(--ease-out-soft); }
.g-link:first-child { border-top: 0; }
.g-link:hover { color: var(--wine); background: rgba(var(--wine-rgb), .05); }
.g-link svg, .guide-sources li svg { width: 18px; height: 18px; flex: none; color: var(--coral-800); transition: transform var(--dur-card) var(--ease-out-soft); }
.g-link:hover svg, .guide-sources li a:hover svg { transform: translate(2px, -2px); }

/* Another guide: a card to it */
.g-guide { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 22px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur-card) var(--ease-out-soft), border-color var(--dur-card) var(--ease-out-soft), box-shadow var(--dur-card) var(--ease-out-soft); }
.g-guide:hover { transform: translateY(-3px); border-color: rgba(var(--wine-rgb), .42); box-shadow: 0 16px 40px -24px rgba(var(--wine-rgb), .35); }
.g-guide-text { display: block; }
.g-guide-w, .g-guide-t { display: block; }
.g-guide-t { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: var(--heading); }
.g-guide svg { width: 20px; height: 20px; flex: none; color: var(--wine); transition: transform var(--dur-card) var(--ease-out-soft); }
.g-guide:hover svg { transform: translateX(3px); }

/* Sources: who, then the page's name; then the three lines */
.guide-sources { margin-top: 64px; padding: 24px 26px 22px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
.guide-sources ul { list-style: none; margin: 10px 0 0; padding: 0; }
.guide-sources li a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.guide-sources li:first-child a { border-top: 0; }
.guide-source, .guide-source b, .guide-source span { display: block; }
.guide-source b { font-weight: 600; color: var(--ink); }
.guide-source span { margin-top: 2px; }
.guide-sources li a:hover b { color: var(--wine); }
.guide-source-notes { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.guide-source-notes p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.guide-source-notes a { display: inline-block; padding: 11px 0; margin: -11px 0; color: var(--coral-800); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(var(--coral-rgb), .55); text-underline-offset: 3px; }
.guide-source-notes a:hover { color: var(--coral-900); text-decoration-color: currentColor; }

/* More guides, then the way back */
.guide-more { --surface: var(--paper); background: var(--paper-100); padding: 72px 0 80px; }
.guide-more .h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 26px; }
.guide-more .guide-card { min-height: 0; }
.guide-all { margin-top: 22px; }
.guide-all .btn-tertiary svg { transition: transform var(--dur-card) var(--ease-out-soft); }
.guide-all .btn-tertiary:hover svg { transform: translateX(3px); }

/* ── Responsive: the site's two breakpoints ──────────────────────── */
@media (max-width: 980px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .guide-list { padding-top: 40px; }
  .guide-body { padding-top: 40px; padding-bottom: 56px; }
  .guide-section { margin-top: 40px; }
  .guide-glance, .guide-sources { padding-inline: 20px; }
  .g-steps li { grid-template-columns: 50px 1fr; }
  .g-number { padding: 18px 70px 18px 20px; }
  .g-number-ic { inset-inline-end: 18px; }
  .guide-more { padding: 56px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-number:hover, .g-guide:hover { transform: none; }
}
