/* Auxeon guides: long-form article layout. Loads after crm.css and reuses its tokens.
   Reading surface is paper on ink; header and calls to action stay dark like the root page. */

/* ---------- article header ---------- */
.g-hero { background: var(--charcoal); color: var(--cream); padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line-d); }
.g-crumbs { font-size: 13.5px; color: var(--muted-d); margin: 0 0 22px; }
.g-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-d); }
.g-crumbs a { color: var(--muted-d); text-decoration: none; }
.g-crumbs a:hover { color: var(--cream); }
.g-hero h1 { font-size: clamp(34px, 5.2vw, 60px); max-width: 22ch; }
.g-dek { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted-d); max-width: 62ch; margin: 22px 0 0; }
.g-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--muted-d); }
.g-byline b { color: var(--cream); font-weight: 600; }
.g-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-d); }

/* ---------- layout ---------- */
.g-body { background: var(--paper); color: var(--ink); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1100px) { .g-layout { grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 64px; } }
.g-toc { font-size: 14px; }
.g-toc__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-l); margin: 0 0 12px; }
.g-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-l); }
.g-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted-l); text-decoration: none; line-height: 1.35; }
.g-toc li a:hover { color: var(--ink); }
.g-toc li a.active { color: var(--ink); border-left-color: var(--clay); }
@media (min-width: 1100px) { .g-toc__inner { position: sticky; top: 92px; } .g-toc details > summary { display: none; } .g-toc details > .g-toc__title { display: block; } }
@media (max-width: 1099px) {
  .g-toc details { border: 1px solid var(--line-l); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--cream); }
  .g-toc summary { cursor: pointer; font-weight: 600; }
  .g-toc details .g-toc__title { display: none; }
  .g-toc ol { margin-top: 12px; }
}

/* ---------- prose ---------- */
.prose { font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: clamp(27px, 3.4vw, 36px); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: clamp(20px, 2.3vw, 24px); margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #a84f2d; }
/* buttons inside an article keep their own colours (the article link colour must not reach them) */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary, .prose a.btn--primary:hover { color: #fff; }
.prose a.btn--ghost, .prose a.btn--ghost:hover { color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--clay); }
.prose strong { color: #0e0f12; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--cream); padding: 2px 6px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line-l); margin: 2.4em 0; }

/* at-a-glance box */
.g-glance { border: 1px solid var(--line-l); border-left: 4px solid var(--clay); border-radius: var(--radius-sm); background: var(--cream); padding: 20px 24px; }
.g-glance__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin: 0 0 10px; }
.g-glance ul { margin: 0; }

/* callouts */
.g-note { border-radius: var(--radius-sm); padding: 16px 20px; background: #f1ece2; border: 1px solid var(--line-l); font-size: 16px; }
.g-note b:first-child { display: block; margin-bottom: 4px; }
.g-note--warn { background: #fbefe8; border-color: #efcdbb; }
.g-disclosure { font-size: 14.5px; color: var(--muted-l); border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); padding: 12px 0; }

/* tables */
.g-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-l); border-radius: var(--radius-sm); }
.g-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.g-table th, .g-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-l); vertical-align: top; }
.g-table thead th { background: var(--cream); font-weight: 650; font-size: 13.5px; }
.g-table tbody tr:last-child td { border-bottom: 0; }
.g-table td.num, .g-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted-l); padding: 10px 14px; }

/* figures and diagrams */
.g-figure { margin: 1.6em 0; }
.g-figure svg { width: 100%; height: auto; display: block; }
.g-figure figcaption { font-size: 14px; color: var(--muted-l); margin-top: 10px; }
.g-figure--framed { border: 1px solid var(--line-l); border-radius: var(--radius); background: #fff; padding: clamp(14px, 3vw, 26px); }

/* ---------- interactive tools ---------- */
.g-tool { border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--charcoal); color: var(--cream); padding: clamp(20px, 3.5vw, 32px); margin: 1.8em 0; font-size: 16px; }
.g-tool__title { font-family: var(--font-display); font-size: clamp(21px, 2.5vw, 26px); margin: 0 0 6px; color: var(--cream); }
.prose .g-tool__title { margin-top: 0; }
.g-tool__intro, .prose .g-tool__intro { color: var(--muted-d); font-size: 15px; margin: 0 0 20px; }
.g-tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .g-tool__grid { grid-template-columns: 1fr; } }
.g-field { margin-bottom: 18px; }
.g-field label, .g-field .g-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.g-field .val { color: var(--clay-soft); font-variant-numeric: tabular-nums; }
.g-field small { display: block; color: var(--muted-d); font-size: 12.5px; margin-top: 6px; }
.g-tool input[type=range] { width: 100%; accent-color: var(--clay); }
.g-tool select, .g-tool input[type=number], .g-tool input[type=text] { width: 100%; padding: 11px 12px; border-radius: 10px; background: var(--charcoal-3); color: var(--cream); border: 1px solid var(--line-d); font: inherit; font-size: 15px; }
.g-tool select:focus, .g-tool input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(200,98,59,.18); }
.g-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.g-seg button { font: inherit; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-d); background: var(--charcoal-3); color: var(--muted-d); cursor: pointer; }
.g-seg button[aria-pressed="true"] { border-color: var(--clay); color: #fff; background: rgba(200,98,59,.22); }
.g-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 8px 0; cursor: pointer; }
.g-check input { accent-color: var(--clay); margin-top: 4px; }
.g-field .g-check, .g-field label.g-check { display: flex; font-weight: 400; font-size: 14.5px; margin: 8px 0; }
.g-out { display: grid; gap: 10px; }
.g-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 15px; border-radius: 10px; background: var(--charcoal-3); border: 1px solid var(--line-d); }
.g-row.win { border-color: var(--clay); background: rgba(200,98,59,.12); }
.g-row .who { font-weight: 600; font-size: 14.5px; }
.g-row .who small { display: block; color: var(--muted-d); font-weight: 400; font-size: 12px; margin-top: 2px; }
.g-row .amt { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 25px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-row.win .amt { color: var(--clay-soft); }
.g-bar { height: 8px; border-radius: 999px; background: var(--charcoal-3); overflow: hidden; margin-top: 8px; }
.g-bar > span { display: block; height: 100%; background: var(--clay); border-radius: 999px; transition: width .35s ease; }
.g-verdict { border-radius: 10px; padding: 14px 16px; border: 1px solid var(--clay); background: rgba(200,98,59,.12); font-size: 15px; }
.g-verdict b { color: #fff; }
.g-tool__fine { font-size: 12.5px; color: var(--muted-d); margin: 16px 0 0; }
.g-tool a { color: var(--clay-soft); }

/* ---------- FAQ ---------- */
.g-faq { border-top: 1px solid var(--line-l); }
.g-faq details { border-bottom: 1px solid var(--line-l); }
.g-faq summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-size: clamp(18px, 2.1vw, 21px); padding: 18px 36px 18px 0; position: relative; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--clay); font-size: 24px; }
.g-faq details[open] summary::after { content: "\2212"; }
.g-faq details > div { padding: 0 0 18px; color: #2b2a27; }
.g-faq details > div > * + * { margin-top: .8em; }

/* sources */
.g-sources { font-size: 14px; color: var(--muted-l); }
.g-sources ol { padding-left: 1.2em; }
.g-sources li + li { margin-top: .35em; }
.g-sources a { color: var(--muted-l); word-break: break-word; }

/* author box */
.g-author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; border: 1px solid var(--line-l); border-radius: var(--radius); padding: 20px; background: var(--cream); }
.g-author__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--charcoal); color: var(--clay); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.g-author p { margin: 0; font-size: 15px; }
.g-author p + p { margin-top: 6px; color: var(--muted-l); font-size: 14px; }

/* ---------- call to action ---------- */
.g-cta { background: var(--charcoal); color: var(--cream); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); margin: 2.4em 0 0; }
.g-cta .eyebrow { margin-bottom: 12px; }
.g-cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; color: var(--cream); }
.g-cta p { color: var(--muted-d); margin: 14px 0 0; font-size: 16.5px; max-width: 58ch; }
.g-cta .hero__cta { margin-top: 22px; }

/* ---------- related + index cards ---------- */
.g-related { background: var(--cream); color: var(--ink); padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--line-l); }
.g-related h2 { font-size: clamp(24px, 3vw, 32px); }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.g-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line-l); border-radius: var(--radius); background: var(--paper); padding: 22px; transition: border-color .15s, transform .15s; }
.g-card:hover { border-color: var(--clay); transform: translateY(-2px); }
.g-card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.g-card b { display: block; font-family: var(--font-display); font-weight: 540; font-size: 21px; line-height: 1.2; }
.g-card span { display: block; font-size: 14.5px; color: var(--muted-l); margin-top: 8px; }
.g-index-group + .g-index-group { margin-top: 48px; }

@media print { .nav, .g-toc, .g-tool, .g-cta, .g-related, .foot, .backtop { display: none !important; } .g-body { padding: 0; } }
