/* ------------------------------------------------------------------
   Agorum AI — site stylesheet
   House theme inherited from the document system and the VE console:
   navy 1E2761, gold C9891A, fill F5F7FA, rule D9DEEA.
   No external requests. No web fonts. No JavaScript.
   ------------------------------------------------------------------ */

:root {
  /* structure */
  --navy:       #1E2761;
  --navy-deep:  #161C48;
  --navy-lift:  #2A3578;
  --gold:       #C9891A;
  --gold-deep:  #9E6A11;

  /* neutrals, biased toward the navy rather than pure grey */
  --ink:        #171A2E;
  --slate:      #56607D;
  --slate-soft: #7C859C;
  --paper:      #FBFBFD;
  --fill:       #F4F6FB;
  --rule:       #DDE2ED;
  --rule-soft:  #EAEEF6;

  /* accents */
  --wash:       #FFFBF2;
  --wash-ink:   #5C4A1E;
  --red:        #9B2226;

  /* type */
  --sans: "Segoe UI", Calibri, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --frame: 1120px;
  --rail: 150px;
  --gut: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- skip link ---------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #fff; padding: 10px 18px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- masthead ------------------------------------------------ */
.masthead {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.masthead .inner {
  max-width: var(--frame); margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 28px;
  min-height: 74px;
}

/* wordmark: gold square + navy bar, the document section-banner motif */
.wordmark {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: #fff; padding: 12px 0;
}
.wordmark .mark {
  width: 15px; height: 15px; background: var(--gold);
  flex: 0 0 auto; display: block;
}
.wordmark .name {
  font-size: 19px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1;
}
.wordmark .name span { font-weight: 400; color: #C6CEE8; }

/* Masthead lockup runs 1.5x the footer wordmark; the square scales with it
   so the mark and the name stay in proportion. */
.masthead .wordmark .name { font-size: 28.5px; }
.masthead .wordmark .mark { width: 22px; height: 22px; }
.masthead .inner { min-height: 88px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 2px; padding-bottom: 4px; }
.nav a {
  color: #CBD3EA; text-decoration: none;
  font-size: 14.5px; padding: 7px 13px; border-radius: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--gold); font-weight: 600;
}

/* ---------- ruled band grid ----------------------------------------- */
/* Every section is a ruled band with a margin label — the convention of
   an audited document, where provenance sits in the margin.            */
.band { border-top: 1px solid var(--rule); }
.band:first-of-type { border-top: 0; }
.band > .inner {
  max-width: var(--frame); margin: 0 auto; padding: 54px 28px;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 var(--gut); align-items: start;
}
.band.tight > .inner { padding-top: 34px; padding-bottom: 34px; }
.band.fill { background: var(--fill); }
.band.deep { background: var(--navy); color: #E6EAF6; border-top: 0; }

.rail {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold);
  padding-top: 6px; line-height: 1.5;
}
.rail .sub {
  display: block; font-weight: 400; letter-spacing: .04em;
  text-transform: none; color: var(--slate-soft); font-size: 12px;
  margin-top: 6px;
}
.band.deep .rail { color: var(--gold); }
.band.deep .rail .sub { color: #9AA6CC; }

/* Prose holds a reading measure; data blocks span the full track — the
   composition of a printed report rather than one narrow column. */
.col { min-width: 0; }
.col > h1, .col > h2, .col > p, .col > ul, .col > .panel, .col > .refs,
.col > .ctarow { max-width: 66ch; }
.col > h1 { max-width: 21ch; }
.col > .lead { max-width: 58ch; }

/* ---------- type ---------------------------------------------------- */
h1, h2, h3 { color: var(--navy); text-wrap: balance; margin: 0; }
.band.deep h2, .band.deep h3 { color: #fff; }

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14; letter-spacing: -.021em; font-weight: 700;
}
h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.22; letter-spacing: -.014em; font-weight: 700;
}
h3 {
  font-size: 18px; line-height: 1.34; letter-spacing: -.005em;
  font-weight: 700; margin-top: 30px;
}
h3:first-child { margin-top: 0; }

p { margin: 0 0 17px; }
p:last-child { margin-bottom: 0; }
.lead {
  font-size: clamp(18.5px, 2vw, 21px); line-height: 1.5;
  color: var(--slate); margin-top: 22px;
}
.band.deep .lead, .band.deep p { color: #C9D2EA; }
strong { font-weight: 700; color: var(--navy); }
.band.deep strong { color: #fff; }

a { color: var(--navy); text-decoration-color: var(--gold);
    text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--gold-deep); }
.band.deep a { color: #fff; text-decoration-color: var(--gold); }

/* ---------- eyebrow above an h1 ------------------------------------- */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 16px;
}

/* ---------- lists ---------------------------------------------------- */
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
ul.plain > li { padding-left: 22px; position: relative; }
ul.plain > li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--gold);
}
ul.plain > li b { color: var(--navy); }

/* ---------- definition rows ----------------------------------------- */
.rows { display: grid; gap: 0; margin: 4px 0 0; }
.rows > div {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 26px; padding: 17px 0; border-top: 1px solid var(--rule-soft);
}
.rows > div:first-child { border-top: 0; padding-top: 4px; }
.rows dt, .rows .k {
  font-weight: 700; color: var(--navy); font-size: 16px; margin: 0;
}
.rows dd, .rows .v { margin: 0; color: var(--slate); font-size: 16px; }
.rows .v strong { color: var(--navy); }

/* ---------- statement panel ------------------------------------------ */
.panel {
  background: var(--wash); border-left: 3px solid var(--gold);
  padding: 20px 24px; margin: 26px 0; color: var(--wash-ink);
  font-size: 16.5px;
}
.panel .lbl {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.panel p { margin-bottom: 12px; }
.panel strong { color: var(--navy); }

.panel.caution { background: #FDF4F4; border-left-color: var(--red); color: #6B2226; }
.panel.caution .lbl { color: var(--red); }

.panel.notice {
  background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--navy);
  color: var(--slate);
}
.panel.notice .lbl { color: var(--navy); }

/* ---------- data table ------------------------------------------------ */
.tw { overflow-x: auto; margin: 26px 0; border: 1px solid var(--rule); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
caption {
  caption-side: top; text-align: left; padding: 13px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
  background: var(--fill); border-bottom: 1px solid var(--rule);
}
th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 10px 16px; font-weight: 600; font-size: 14px;
  vertical-align: bottom;
}
td { padding: 12px 16px; border-top: 1px solid var(--rule-soft); vertical-align: top; background: #fff; }
tbody tr:nth-child(even) td { background: var(--fill); }
td:first-child { font-weight: 600; color: var(--navy); }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- three-up ---------------------------------------------------- */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; }
.trio > div > h3 { margin-top: 0; padding-top: 15px; border-top: 2px solid var(--gold); }
.trio p { font-size: 16px; color: var(--slate); margin-top: 10px; }

/* ---------- figure / statistic ------------------------------------------ */
.gap-fig {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 34px; margin: 4px 0 22px;
}
.gap-fig > div { padding: 20px 0 18px; border-top: 2px solid var(--navy); }
.gap-fig .n {
  font-size: 46px; line-height: 1; font-weight: 700; color: var(--navy);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.gap-fig > div + div .n { color: var(--gold-deep); }
.gap-fig .t { font-size: 15px; color: var(--slate); margin-top: 9px; }

/* ---------- references --------------------------------------------------- */
sup.ref { font-size: 11px; line-height: 0; vertical-align: super; font-family: var(--mono); }
sup.ref a { text-decoration: none; color: var(--gold-deep); font-weight: 700; padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }

.refs { font-size: 13.5px; color: var(--slate); font-family: var(--mono); line-height: 1.7; }
.refs ol { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.refs li { padding-left: 4px; }
.refs a { color: var(--slate); word-break: break-word; }
.refs a:hover { color: var(--navy); }
.refs li:target { background: var(--wash); outline: 6px solid var(--wash); }

/* ---------- call to action ------------------------------------------------ */
.cta { display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 13px 24px; font-weight: 600; font-size: 16px; margin-top: 6px; }
.cta:hover { background: var(--navy-lift); color: #fff; }
.cta.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.cta.ghost:hover { background: var(--navy); color: #fff; }
.band.deep .cta { background: var(--gold); color: #221703; }
.band.deep .cta:hover { background: #E0A02E; color: #221703; }
.ctarow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- contact addresses --------------------------------------------- */
.addr { font-family: var(--mono); font-size: 16px; }

/* ---------- colophon ------------------------------------------------------- */
.colophon { background: var(--navy-deep); color: #A8B2D2; border-top: 3px solid var(--gold); }
.colophon .inner {
  max-width: var(--frame); margin: 0 auto; padding: 44px 28px 38px;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 26px var(--gut);
}
.colophon .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px 34px;
}
.colophon h2 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.colophon a { color: #CBD3EA; text-decoration: none; }
.colophon a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.colophon .fine {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 20px; margin-top: 8px; font-size: 13px; color: #8E99BE;
  display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between;
}
.colophon .fine p { margin: 0; max-width: 62ch; }

/* ---------- access gate ------------------------------------------------------ */
.gate-wrap { max-width: 620px; margin: 0 auto; padding: 76px 28px 84px; }
.gate-line {
  font-size: clamp(21px, 2.7vw, 28px); line-height: 1.3; color: var(--navy);
  font-weight: 700; letter-spacing: -.017em; margin: 0 0 18px; text-wrap: balance;
}
.gate-sub { color: var(--slate); font-size: 17px; margin: 0 0 8px; }

.gate-form { display: grid; gap: 22px; border-top: 2px solid var(--gold);
  padding-top: 30px; margin-top: 34px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy); }
.field .hint { font-size: 13.5px; color: var(--slate-soft); line-height: 1.5; }

input[type="email"], textarea {
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  padding: 12px 14px; width: 100%; max-width: 100%;
}
input[type="email"]:focus, textarea:focus {
  border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: -1px;
}
textarea { min-height: 140px; resize: vertical; }

button.cta { font-family: var(--sans); border: 0; cursor: pointer; justify-self: start; }

/* honeypot — off-screen, never shown to a person, only bots fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gate-note { font-size: 13.5px; line-height: 1.6; color: var(--slate);
  border-top: 1px solid var(--rule); padding-top: 20px; }
.gate-note strong { color: var(--navy); }

.gate-foot {
  border-top: 1px solid var(--rule); background: var(--fill);
  font-size: 13px; color: var(--slate);
}
.gate-foot .inner { max-width: 620px; margin: 0 auto; padding: 22px 28px 30px;
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.gate-foot p { margin: 0; max-width: 52ch; }
.gate-foot a { color: var(--slate); }

/* ---------- responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .band > .inner, .colophon .inner { grid-template-columns: minmax(0, 1fr); }
  .band > .inner { padding: 40px 22px; gap: 14px; }
  .rail { padding-top: 0; }
  .rail .sub { display: inline; margin-left: 8px; }
  .masthead .inner { padding: 0 22px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 15px 0; }
  .colophon .inner { padding: 36px 22px 32px; }
  .gap-fig .n { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print ------------------------------------------------------------ */
@media print {
  body { font-size: 11pt; background: #fff; }
  .masthead, .nav, .colophon .cols, .cta, .skip { display: none !important; }
  .band { border-top: 1px solid #999; break-inside: avoid; }
  .band > .inner { padding: 16pt 0; grid-template-columns: 110pt 1fr; }
  .band.fill, .band.deep { background: #fff !important; }
  .band.deep, .band.deep h2, .band.deep p, .band.deep .lead { color: #000 !important; }
  a { text-decoration: none; color: #000; }
  .refs a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .tw { overflow: visible; }
}
