/* THE INDEX — shared base for all pages of glf-ai.com.
   Visual law: design/DESIGN_GUIDE.md v2 (project folder), incl. the Responsive law section.
   Page-specific styles stay in each page's own <style> block. */

:root {
  --ground: #FBFAF7;   /* warm white page ground */
  --ink: #141412;      /* text, rules, structure */
  --soft: #57534A;     /* secondary text */
  --box: #FAFAF8;      /* quiet content boxes (hairline border) */
  --accent: #9A2318;   /* crimson: links, the CTA, key numerals */
  --numeral: #8A857A;  /* catalog ghost numerals, large only */
  --hair: #DAD7CE;     /* hairlines, never text */
  --green: #3E6B4F;    /* sign-off devices only */
  --white: #FFFFFF;    /* form field grounds, text on accent */
  --accent-deep: #7C1C13;  /* accent hover only */
  --on-ink-soft: #C9C4B8;  /* soft text on ink panels */
  --accent-tint: #F5EDE9;  /* quiet crimson tint (library mark) */
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.65; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: underline; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: normal; letter-spacing: -0.005em; }
img, svg { max-width: 100%; }

header { background: var(--ground); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; max-width: 1060px; margin: 0 auto; }
.nav .links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; }
.nav .links a { color: var(--ink); text-decoration: none; }
.nav .links a:hover { color: var(--accent); }
.nav .links a.on { border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.nav .links svg { vertical-align: -1px; margin-right: 1px; }
.wordmark { font-family: var(--serif); font-weight: bold; font-size: 19px; letter-spacing: 0.06em; color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: var(--white); padding: 12px 24px; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; }
.btn:hover { background: var(--accent-deep); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }

/* The time-value panel table (index #proof + track-record #time).
   Always lives inside a .tscroll so a long cell can never force page-level horizontal scroll. */
.tscroll { overflow-x: auto; }
table.tt { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 14px; }
table.tt caption { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
table.tt th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding: 6px 0; border-bottom: 1px solid var(--ink); }
table.tt th:last-child, table.tt td:last-child { text-align: right; white-space: nowrap; }
table.tt td { padding: 8px 0; border-bottom: 1px solid var(--hair); color: var(--soft); vertical-align: top; }
table.tt td:last-child { color: var(--ink); font-weight: 600; }
table.tt tr.total td { border-bottom: 0; color: var(--ink); font-weight: 600; }
table.tt tr.total td:last-child { font-family: var(--serif); font-size: 17px; }
.figures { display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid var(--hair); margin-top: 22px; padding-top: 18px; }
.figures .f .n { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.figures .f p { font-size: 13.5px; color: var(--soft); margin: 2px 0 0; max-width: 220px; }
.estnote { font-size: 13px; color: var(--soft); margin-top: 16px; }

/* ---- Shared page devices (S42 consolidation) ----
   One recipe per device, site-wide. Pages override only true page-specifics
   (index's grid-entry + ruleless close, library's shelf grid, column counts). */
.top { padding: 40px 0 30px; }
.top h1 { font-size: clamp(28px, 4.5vw, 40px); }
.top p { color: var(--soft); font-size: 17px; margin-top: 14px; max-width: 620px; }

.jump { border-bottom: 1px solid var(--hair); padding: 12px 0; }
.jump .wrap { display: flex; gap: 8px 24px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.jump .jl { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }

.entry { padding: 42px 0 34px; border-top: 1px solid var(--ink); margin-top: 34px; }
.entry:first-of-type { margin-top: 0; }
.entry-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.entry h2 { font-size: 27px; margin-bottom: 8px; }
.entry h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 28px 0 2px; }
.entry .lede { font-size: 15.5px; color: var(--soft); max-width: 620px; margin-bottom: 16px; }
.entry p { font-size: 15.5px; color: var(--soft); max-width: 660px; margin-bottom: 14px; }
.entry p:last-child { margin-bottom: 0; }
.entry p strong { color: var(--ink); font-weight: 600; }

.rows { list-style: none; max-width: 680px; }
.rows li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.rows li:last-child { border-bottom: 0; }
.rows .rl { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.rows .rw { color: var(--soft); }

/* Quiet timeline rail; the page sets its own column count. */
.tl { list-style: none; display: grid; gap: 0 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 1px; background: var(--hair); }
.tl li { position: relative; padding-top: 16px; }
.tl .dot { position: absolute; top: 0; left: 0; width: 7px; height: 7px; background: var(--ink); }
.tl li.now .dot { background: var(--accent); }
.tl .yr { font-family: var(--serif); font-size: 17px; display: block; height: 26px; }
.tl li.now .yr { color: var(--accent); }
.tl .tlab { font-size: 13px; color: var(--soft); line-height: 1.45; display: block; max-width: 180px; }

.final { border-top: 1px solid var(--ink); margin-top: 44px; padding: 42px 0 56px; }
.final h2 { font-size: 27px; margin-bottom: 10px; }
.final p { color: var(--soft); font-size: 16px; max-width: 620px; margin-bottom: 22px; }

footer { border-top: 1px solid var(--hair); padding: 24px 0; font-size: 13px; color: var(--soft); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--soft); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand svg { flex: none; }

/* Anchored jumps must clear the sticky header at every width. */
[id] { scroll-margin-top: 72px; }

/* ---- Responsive ladder (DESIGN_GUIDE: Responsive law) ----
   700 = nav tightens; 640 = label-left rows and grids stack; 430 = buttons go full width.
   Page-specific steps (e.g. the homepage stats row at 520) live in that page's block. */

@media (max-width: 700px) {
  .nav { padding: 6px 20px; }
  .nav .links { gap: 18px; font-size: 14px; }
  .nav .links a { display: inline-block; padding: 12px 0; }
  .jump .wrap { gap: 2px 20px; }
  .jump a { display: inline-block; padding: 8px 0; }
  footer a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .tl { grid-template-columns: 1fr; }
  .tl::before { left: 3px; top: 4px; bottom: 4px; right: auto; width: 1px; height: auto; }
  .tl li { padding: 0 0 18px 22px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl .dot { top: 5px; }
  .tl .yr { height: auto; margin-bottom: 2px; }
}
@media (max-width: 430px) {
  .nav { padding: 4px 16px; }
  .nav .links { gap: 11px; font-size: 12.5px; }
  .wordmark { font-size: 17px; }
  .btn { display: block; width: 100%; text-align: center; align-self: stretch; }
  [id] { scroll-margin-top: 104px; }
}
