/**
 * Geodineum Content System
 *
 * The reusable page-content vocabulary — the golden-ratio layout, cards, steps,
 * tables and typographic roles first proven in the gHyper / findings pages.
 * Everything is scoped under `.geo` so pasted page markup adopts the system by
 * opting in (<div class="geo">…</div>) without restyling nav, admin, or other
 * plugins. Tokens live globally in golden-typography.css; this file only shapes.
 *
 * @package gTemplate
 * @version 1.0.0
 */

.geo {
    /* The design system is inherently dark (gold on near-black); .geo carries
       its own ground so cards (--bg-1) read as a coherent surface instead of
       dark boxes floating on a light theme. */
    background: var(--bg-0);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--t-4);
    line-height: 1.618;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ─── Layout ─── */
.geo .stage { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-5); position: relative; }
.geo section { padding: var(--s-7) 0; border-bottom: 1px solid var(--line); }
.geo section.no-border { border-bottom: 0; }
.geo .phi-grid { display: grid; grid-template-columns: var(--phi-inv, 0.618fr) 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 800px) { .geo .phi-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ─── Typographic roles ─── */
.geo h1, .geo h2, .geo h3, .geo .display { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.geo h1 { font-size: var(--t-9); line-height: 1; letter-spacing: -0.03em; }
.geo h2 { font-size: var(--t-7); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); margin-bottom: var(--s-5); }
.geo h3 { font-size: var(--t-6); line-height: 1.2; color: var(--gold-bright); margin-bottom: var(--s-3); }
.geo .label { font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-soft); }
.geo .lede { font-size: var(--t-6); line-height: 1.45; color: var(--text); max-width: 38em; }
.geo .body-large { font-size: var(--t-5); line-height: 1.5; max-width: 36em; color: var(--text); }
.geo p { color: var(--text); }
.geo .muted { color: var(--text-dim); }
.geo .faint { color: var(--text-faint); }
.geo a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.geo a:hover { color: var(--gold-bright); }
.geo .num, .geo table, .geo .data { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ─── Cards ─── */
.geo .card { background: var(--bg-1); border: 1px solid var(--line); padding: var(--s-5); position: relative; }
.geo .card .corner { position: absolute; top: 0; right: 0; width: 21px; height: 21px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: 0.5; }
.geo .card h3 { margin-bottom: var(--s-2); }
.geo .card .figure { font-family: Georgia, serif; font-size: var(--t-7); color: var(--gold-bright); line-height: 1; margin: var(--s-3) 0; }
.geo .card .figure .small { font-size: var(--t-5); color: var(--text-dim); }
.geo .card p { color: var(--text); font-size: var(--t-3); line-height: 1.55; }
.geo .card .footnote { margin-top: var(--s-3); color: var(--text-faint); font-size: var(--t-2); }
.geo .card-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ─── Tables ─── */
.geo table { width: 100%; border-collapse: collapse; font-size: var(--t-3); margin: var(--s-3) 0; }
.geo th, .geo td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--line); }
.geo th { color: var(--gold-soft); font-weight: normal; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--t-1); }
.geo td.right { text-align: right; font-variant-numeric: tabular-nums; }
.geo td.gold { color: var(--gold-bright); }

/* ─── Code ─── */
.geo code, .geo .mono { font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace; font-size: 0.86em; background: var(--bg-2); padding: 1px 6px; border-radius: 2px; color: var(--gold-bright); }
.geo pre.code { background: var(--bg-2); padding: var(--s-4); margin: var(--s-3) 0; font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace; font-size: var(--t-3); color: var(--gold-bright); overflow-x: auto; border-left: 2px solid var(--gold-soft); }

/* ─── Pills & steps ─── */
.geo .pill { display: inline-block; font-size: var(--t-1); letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--line); color: var(--text-dim); border-radius: 999px; }
.geo .step { display: grid; grid-template-columns: var(--s-7) 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.geo .step .step-n { font-family: Georgia, serif; color: var(--gold); font-size: var(--t-5); }
.geo .step:last-child { border-bottom: 0; }
.geo .step h4 { color: var(--text); font-size: var(--t-4); margin-bottom: 4px; }
.geo .step p { color: var(--text-dim); font-size: var(--t-3); }

/* ─── Pull quote ─── */
.geo blockquote.pull { border-left: 2px solid var(--gold); padding: var(--s-3) var(--s-5); font-family: Georgia, serif; font-size: var(--t-6); line-height: 1.4; color: var(--text); margin: var(--s-5) 0; max-width: 36em; }

/* ─── Scroll reveal ─── */
.geo .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.geo .reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Audience visibility (paired with a body.audience-* toggle) ─── */
.geo .tech-only, .geo .nontech-only { display: none; }
body.audience-tech .geo .tech-only { display: block; }
body.audience-nontech .geo .nontech-only { display: block; }
body.audience-tech .geo .tech-only-inline { display: inline; }
body.audience-nontech .geo .nontech-only-inline { display: inline; }
