/* ==========================================================================
   Solvanepay — 绯红档案 (Crimson Ledger) design system
   Scope: marketing site, login, register, admin-login skin, 404 compat
   Palette: paper #FAF6EF · ink #1C1A17 · crimson #A5212F · deep #7C1822
   Status colours are typographic (ink / crimson / gray) — no colour-wheel hues.
   ========================================================================== */

:root {
  --paper: #FAF6EF;
  --paper-2: #F2EBDD;
  --paper-3: #EAE0CC;
  --card: #FFFDF7;
  --ink: #1C1A17;
  --ink-2: #5B564D;
  --ink-3: #8B857B;
  --crimson: #A5212F;
  --crimson-2: #7C1822;
  --crimson-3: #5E131B;
  --crimson-wash: #F1E0DC;
  --rule: #E0D7C4;
  --rule-2: #C8BEA7;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --mono: Consolas, "SF Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --seal-url: url("/assets/brand/solvanepay-seal-dark.svg");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--crimson); color: var(--paper); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }
.mono { font-family: var(--mono); }
.txt-crimson { color: var(--crimson); }

/* ---------- shared type voices ---------- */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.sect { padding-block: clamp(44px, 7vw, 78px); }
.sect-head { margin-bottom: 34px; }
.sect-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--crimson);
}
.sect-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 8px 0 10px; font-weight: 700; }
.sect-rule { border: 0; border-top: 3px solid var(--ink); margin: 14px 0 0; }
.sect-rule + .sect-rule { border-top-width: 1px; margin-top: 3px; }

/* ---------- buttons ---------- */
.btn-solid, .btn-outline, .button, .button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--crimson); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid, .button-primary, .button.primary { background: var(--crimson); color: var(--paper); }
.btn-solid:hover, .button-primary:hover, .button.primary:hover { background: var(--crimson-2); border-color: var(--crimson-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.button { background: transparent; color: var(--ink); border-color: var(--ink); }
.button:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-ghost-light { border-color: rgba(250,246,239,.65); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { background: rgba(250,246,239,.14); border-color: var(--paper); }

/* ==========================================================================
   MASTHEAD — double-rule newspaper head
   ========================================================================== */
.mast { border-bottom: 1px solid var(--ink); }
.mast-util {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 9px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.mast-util-links { display: flex; gap: 20px; }
.mast-util-links a { text-decoration: none; }
.mast-util-links a:hover { color: var(--crimson); text-decoration: underline; }
.mast-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.mast-logo { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.mast-logo img { width: 47px; height: 47px; }
.mast-wordmark {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -.01em; line-height: 1;
}
.mast-wordmark em { font-style: normal; color: var(--crimson); }
.mast-tag {
  margin: 0; text-align: right; font-style: italic; color: var(--ink-2); font-size: 15px; max-width: 340px;
}
.mast-tag b { font-style: normal; color: var(--crimson); font-weight: 700; }
.mast-sections {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 4px; overflow-x: auto; white-space: nowrap;
  border-top: 3px solid var(--ink); background: var(--paper);
  scrollbar-width: none;
}
.mast-sections::-webkit-scrollbar { display: none; }
.mast-sections a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; padding: 12px 14px; color: var(--ink-2); border-bottom: 2px solid transparent;
}
.mast-sections a:hover { color: var(--crimson); }
.mast-sections a[aria-current="page"] { color: var(--crimson); border-bottom-color: var(--crimson); font-weight: 700; }

/* ==========================================================================
   FRONT PAGE
   ========================================================================== */
.lead-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); gap: clamp(26px,4vw,52px); padding-block: clamp(34px,5vw,58px); }
.lead-no { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--crimson); text-transform: uppercase; }
.lead-hl {
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.015em;
  font-weight: 700; margin: 14px 0 18px;
}
.lead-hl em { font-style: italic; color: var(--crimson); }
.lead-deck { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 26px; }
.lead-sign { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lead-byline { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.rail { border-left: 1px solid var(--rule-2); padding-left: clamp(22px, 3vw, 40px); }
.rail-block { border-top: 2px solid var(--ink); padding-block: 16px; }
.rail-block + .rail-block { margin-top: 20px; }
.rail-block h3 { margin: 8px 0 10px; font-size: 19px; }
.rail-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); }
.rail-block p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.ledger-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.ledger-tbl caption { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.ledger-tbl th, .ledger-tbl td { padding: 7px 4px; border-bottom: 1px solid var(--rule); text-align: right; font-family: var(--mono); font-weight: 400; }
.ledger-tbl th:first-child, .ledger-tbl td:first-child { text-align: left; font-family: var(--serif); }
.ledger-tbl .neg { color: var(--crimson); }
.ledger-tbl tr.total td { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 700; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.col-story { padding: 0 clamp(18px, 2.6vw, 34px); border-left: 1px solid var(--rule-2); }
.col-story:first-child { border-left: 0; padding-left: 0; }
.col-story:last-child { padding-right: 0; }
.col-no { font-family: var(--mono); font-size: 30px; color: var(--crimson); font-weight: 700; line-height: 1; }
.col-story h3 { font-size: 22px; margin: 12px 0 10px; line-height: 1.25; }
.col-story p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 12px; }
.col-more { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); text-decoration: none; border-bottom: 1px solid var(--crimson); padding-bottom: 2px; }
.col-more:hover { color: var(--crimson-2); border-color: var(--crimson-2); }

.stats-band { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat { padding: 26px clamp(16px, 2.4vw, 30px); border-left: 1px solid var(--rule-2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.stat-num small { font-size: 55%; color: var(--crimson); }
.stat-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }

.feature-quote { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(26px,4vw,56px); align-items: start; }
.fq-mark { font-size: 92px; line-height: .6; color: var(--crimson); font-family: var(--serif); display: block; margin-bottom: 18px; }
.fq-text { font-size: clamp(23px, 2.6vw, 32px); line-height: 1.4; font-style: italic; margin: 0; }
.fq-who { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 18px; }
.fq-copy p { color: var(--ink-2); }
.fq-copy .fq-list { list-style: none; margin: 18px 0 0; padding: 0; }
.fq-copy .fq-list li { border-top: 1px solid var(--rule); padding-block: 11px; display: flex; gap: 14px; }
.fq-copy .fq-list b { font-family: var(--mono); color: var(--crimson); font-weight: 700; font-size: 14px; }

.cta-band { background: var(--crimson); color: var(--paper); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: clamp(34px, 5vw, 54px); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; line-height: 1.2; }
.cta-band .eyebrow { color: rgba(250,246,239,.75); }
.cta-band p { margin: 0; color: rgba(250,246,239,.85); max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions .btn-ghost-light:hover { background: var(--paper); color: var(--crimson); border-color: var(--paper); }
.cta-actions .btn-paper { background: var(--paper); color: var(--crimson); border-color: var(--paper); }
.cta-actions .btn-paper:hover { background: var(--paper-2); }

/* ==========================================================================
   ARTICLE PAGE (business-banking) — sticky contents + long form
   ========================================================================== */
.art { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(28px, 4vw, 60px); padding-block: clamp(30px, 4vw, 54px); }
.art-toc { position: sticky; top: 74px; align-self: start; }
.toc-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.toc-item { display: flex; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.toc-item:hover { background: var(--paper-2); }
.toc-item b { font-family: var(--mono); color: var(--crimson); font-size: 12px; }
.toc-item span { font-size: 14.5px; }
.toc-note { font-size: 13px; color: var(--ink-3); font-style: italic; margin-top: 16px; }
.art-body .art-sec { border-top: 2px solid var(--ink); padding-block: 26px; margin-top: 26px; }
.art-body .art-sec:first-child { margin-top: 0; }
.art-body h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 10px 0 14px; line-height: 1.22; }
.art-body p { color: var(--ink-2); max-width: 68ch; }
.art-body p b, .art-body li b { color: var(--ink); }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 20px; border-top: 3px solid var(--ink); border-bottom: 3px double var(--ink); }
.cmp-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.cmp-table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: top; }
.cmp-table td:first-child { font-weight: 700; }
.cmp-table .mono-cell { font-family: var(--mono); font-size: 13.5px; }
.art-cta { border-top: 2px solid var(--ink); margin-top: 34px; padding-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   TELEGRAPH PAGE (treasury-payments)
   ========================================================================== */
.tele-wrap { max-width: 880px; margin-inline: auto; padding-block: clamp(30px,4vw,54px); }
.tele {
  border: 1px solid var(--ink); background: var(--card);
  padding: clamp(20px, 3vw, 34px); margin-top: 26px;
  box-shadow: 6px 6px 0 rgba(28,26,23,.08);
}
.tele-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--ink); padding-bottom: 10px; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.tele-head b { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.tele-head span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.tele-line { display: flex; justify-content: space-between; gap: 18px; padding-block: 9px; border-bottom: 1px dotted var(--rule-2); font-family: var(--mono); font-size: 13.5px; }
.tele-line i { font-style: normal; color: var(--crimson); }
.flow-ol { list-style: none; margin: 30px 0 0; padding: 0; border-left: 2px solid var(--crimson); }
.flow-ol li { position: relative; padding: 0 0 26px 30px; }
.flow-ol li::before {
  content: counter(flow, decimal-leading-zero);
  counter-increment: flow;
  position: absolute; left: -17px; top: 0;
  width: 32px; height: 32px; background: var(--paper); border: 1px solid var(--crimson);
  color: var(--crimson); font-family: var(--mono); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-ol { counter-reset: flow; }
.flow-ol h3 { font-size: 20px; margin: 2px 0 8px; }
.flow-ol p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.fee-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; text-align: left; padding: 9px 8px; border-bottom: 2px solid var(--ink); }
.fee-table td { font-family: var(--mono); font-size: 13.5px; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.fee-table td:first-child { font-family: var(--serif); font-size: 15.5px; }
.fee-table .neg { color: var(--crimson); }
.fx-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 30px; }
.fx-cell { padding: 18px clamp(12px,2vw,24px); border-left: 1px solid var(--rule-2); }
.fx-cell:first-child { border-left: 0; }
.fx-pair { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-2); text-transform: uppercase; }
.fx-rate { font-size: 26px; font-weight: 700; font-family: var(--serif); margin-top: 4px; }
.fx-delta { font-family: var(--mono); font-size: 12px; color: var(--crimson); }
.fx-delta.up { color: var(--ink); }

/* ==========================================================================
   BULLETIN PAGE (security)
   ========================================================================== */
.bulletin { max-width: 760px; margin-inline: auto; padding-block: clamp(30px,4vw,54px); }
.bull-head {
  background: var(--crimson); color: var(--paper); text-align: center;
  padding: clamp(26px, 4vw, 40px) 24px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px;
}
.bull-head .eyebrow { color: rgba(250,246,239,.8); }
.bull-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 10px; line-height: 1.18; }
.bull-head p { margin: 0 auto; color: rgba(250,246,239,.85); max-width: 46ch; }
.clause { counter-increment: clause; border-top: 1px solid var(--rule-2); padding: 24px 0 6px; margin-top: 24px; display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 20px; }
.clauses { counter-reset: clause; }
.clause-no { font-family: var(--mono); font-size: 15px; color: var(--crimson); font-weight: 700; }
.clause h2 { font-size: 21px; margin: 2px 0 10px; }
.clause p { color: var(--ink-2); margin: 0 0 12px; }
.bull-seal { display: flex; align-items: center; gap: 16px; border-top: 3px double var(--ink); margin-top: 34px; padding-top: 22px; }
.bull-seal img { width: 54px; height: 54px; }
.bull-seal p { margin: 0; font-style: italic; color: var(--ink-2); }

/* ==========================================================================
   EDITORIAL PAGE (about)
   ========================================================================== */
.edit-wrap { padding-block: clamp(30px,4vw,54px); }
.edit-open { max-width: 880px; }
.edit-open blockquote {
  margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.28; font-style: italic; font-weight: 700;
  border-left: 4px solid var(--crimson); padding-left: clamp(20px, 3vw, 34px);
}
.edit-open figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; padding-left: clamp(20px,3vw,34px); }
.two-col { columns: 2; column-gap: clamp(30px, 4vw, 54px); column-rule: 1px solid var(--rule-2); margin-top: 40px; }
.two-col p { color: var(--ink-2); break-inside: avoid-column; }
.timeline { margin-top: 20px; }
.tl-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 22px; border-top: 1px solid var(--rule-2); padding-block: 15px; }
.tl-row:first-child { border-top: 3px solid var(--ink); }
.tl-year { font-family: var(--mono); font-weight: 700; color: var(--crimson); font-size: 15px; }
.tl-row h3 { margin: 0 0 4px; font-size: 17px; }
.tl-row p { margin: 0; color: var(--ink-2); font-size: 15px; }
.board-list { margin-top: 20px; }
.board-row { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 22px; border-top: 1px solid var(--rule); padding-block: 13px; align-items: baseline; }
.board-row:first-child { border-top: 3px solid var(--ink); }
.board-name { font-weight: 700; font-size: 17px; }
.board-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-top: 3px; }
.board-row p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ==========================================================================
   LETTERHEAD PAGE (contact)
   ========================================================================== */
.letter-wrap { max-width: 900px; margin-inline: auto; padding-block: clamp(30px,4vw,54px); }
.letterhead { border: 1px solid var(--ink); background: var(--card); padding: clamp(24px, 3.4vw, 44px); box-shadow: 6px 6px 0 rgba(28,26,23,.08); }
.lh-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; border-block: 3px double var(--ink); padding-block: 14px; margin-bottom: 26px; }
.lh-row { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12.5px; }
.lh-row b { letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
.letter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.lt-field { display: flex; flex-direction: column; gap: 6px; }
.lt-field.full { grid-column: 1 / -1; }
.lt-field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.lt-field input, .lt-field select, .lt-field textarea {
  font-family: var(--serif); font-size: 16.5px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 2px; border-radius: 0; outline: none;
}
.lt-field textarea { min-height: 120px; resize: vertical; border: 1px solid var(--ink); padding: 10px; }
.lt-field input:focus, .lt-field select:focus, .lt-field textarea:focus { border-color: var(--crimson); box-shadow: 0 1px 0 var(--crimson); }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 3px solid var(--ink); margin-top: 50px; }
.office { padding: 18px clamp(14px, 2vw, 26px); border-left: 1px solid var(--rule-2); }
.office:first-child { border-left: 0; padding-left: 0; }
.office h3 { font-size: 17px; margin: 6px 0 6px; }
.office p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.office .rail-cap { display: block; }

/* ==========================================================================
   ORDINANCES PAGE (legal)
   ========================================================================== */
.ord-wrap { max-width: 920px; margin-inline: auto; padding-block: clamp(30px,4vw,54px); }
.ord-row { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 26px; border-top: 1px solid var(--rule-2); padding-block: 18px; }
.ord-row:first-of-type { border-top: 3px solid var(--ink); }
.ord-key { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); font-weight: 700; }
.ord-body h3 { margin: 0 0 8px; font-size: 18px; }
.ord-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.ord-body p + p { margin-top: 10px; }
.ord-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; border-block: 1px solid var(--rule); padding-block: 10px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ledgerfoot { border-top: 3px solid var(--ink); margin-top: 30px; background: var(--paper-2); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-block: 46px 30px; }
.foot-brand img { width: 44px; height: 44px; margin-bottom: 14px; }
.foot-brand .mast-wordmark { font-size: 24px; }
.foot-brand p { color: var(--ink-2); font-size: 14.5px; max-width: 34ch; margin: 10px 0 0; }
.foot-col .rail-cap { display: block; border-bottom: 2px solid var(--ink); padding-bottom: 7px; margin-bottom: 10px; }
.foot-col a { display: block; text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding-block: 4px; }
.foot-col a:hover { color: var(--crimson); }
.foot-line { border-top: 1px solid var(--rule-2); padding-block: 16px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }

/* ==========================================================================
   AUTH — admin-login (fixed markup, skinned) + client login (letterhead)
   ========================================================================== */
.auth-page { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); min-height: 100vh; background: var(--paper); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 72px); }
.auth-panel > a { margin-bottom: 26px; }
.auth-panel > a img { width: 46px; height: 46px; }
.auth-card {
  width: 100%; max-width: 470px; background: var(--card);
  border: 1px solid var(--rule-2); border-top: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(28,26,23,.08); padding: clamp(26px, 3.4vw, 40px);
}
.auth-card h1 { font-size: clamp(24px, 2.6vw, 30px); margin: 4px 0 8px; line-height: 1.2; }
.auth-card > p { color: var(--ink-2); margin-top: 0; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.auth-form .button.primary, .auth-form .button-primary { width: 100%; padding-block: 15px; }
.auth-links { display: flex; gap: 20px; margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.auth-links a { text-decoration: none; color: var(--ink-2); }
.auth-links a:hover { color: var(--crimson); text-decoration: underline; }
.auth-side {
  background: var(--crimson); color: var(--paper); display: flex; align-items: flex-end;
  padding: clamp(28px, 4vw, 60px); position: relative; overflow: hidden;
}
.auth-side::after {
  content: "№"; position: absolute; right: -30px; top: -60px; font-size: 320px;
  font-family: var(--serif); color: rgba(250,246,239,.12); line-height: 1;
}
.auth-side h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; margin: 10px 0 12px; position: relative; }
.auth-side p { color: rgba(250,246,239,.85); margin: 0; max-width: 40ch; position: relative; }
.auth-side .eyebrow { color: rgba(250,246,239,.75); position: relative; }

/* client login — single letterhead sheet, distinct from admin split */
.auth-page.auth-letter { display: block; }
.auth-letter-inner { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px); }
.letter-login { width: 100%; max-width: 520px; }
.letter-login-rule { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px double var(--ink); padding-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.letter-login .auth-card { margin-top: 26px; border-top-width: 3px; }
.letter-login-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); flex-wrap: wrap; }

/* fields shared by auth + register + contact-style forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 9px 2px; border-radius: 0; outline: none; width: 100%;
}
.field input:focus, .field select:focus { border-bottom: 2px solid var(--crimson); }
.form-message { min-height: 20px; margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.form-message.error { color: var(--crimson); font-weight: 700; }
.form-message.success { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   REGISTER — progress rail + application sheets
   ========================================================================== */
.reg-shell { background: var(--paper); }
.reg-top { border-bottom: 1px solid var(--ink); background: var(--paper); }
.reg-top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 13px; }
.reg-save { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.reg-progress { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.reg-progress-track { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.reg-step-node { border-left: 1px solid var(--rule); }
.reg-step-node:first-child { border-left: 0; }
.reg-step-btn {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left;
  background: none; border: 0; border-top: 3px solid transparent; cursor: pointer;
  padding: 13px clamp(10px, 1.6vw, 18px); font-family: inherit; color: var(--ink-3);
}
.reg-step-btn:hover:not(:disabled) { background: var(--paper); }
.reg-step-btn:disabled { cursor: not-allowed; }
.reg-step-node.complete .reg-step-btn { border-top-color: var(--ink); color: var(--ink); }
.reg-step-node.active .reg-step-btn { border-top-color: var(--crimson); background: var(--paper); color: var(--ink); }
.reg-step-num { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.reg-step-node.active .reg-step-num { color: var(--crimson); }
.reg-step-name { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.reg-step-sub { display: block; font-size: 12.5px; font-style: italic; }
.reg-main { max-width: 980px; margin-inline: auto; padding-block: clamp(26px, 4vw, 44px) 80px; }
.reg-intro { margin-bottom: 26px; }
.reg-intro h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 6px 0 8px; line-height: 1.22; }
.reg-intro p { color: var(--ink-2); margin: 0; }

/* application sheet */
.rg-card {
  background: var(--card); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(28,26,23,.08); padding: clamp(24px, 3.4vw, 40px);
}
.rg-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 24px; }
.rg-head h1 { font-size: clamp(22px, 2.4vw, 28px); margin: 4px 0 6px; line-height: 1.22; }
.rg-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.rg-pill { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); border: 1px solid var(--crimson); padding: 6px 10px; white-space: nowrap; }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.rg-grid .full { grid-column: 1 / -1; }
.rg-field { display: flex; flex-direction: column; gap: 6px; }
.rg-field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.rg-field input, .rg-field select {
  font-family: var(--serif); font-size: 16.5px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 2px; border-radius: 0; outline: none; width: 100%;
}
.rg-field select { padding-block: 9px; }
.rg-field input:focus, .rg-field select:focus { border-bottom: 2px solid var(--crimson); }
.rg-field small { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.rg-subhead { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; }
.rg-subhead h3 { margin: 0 0 6px; font-size: 18px; }
.rg-subhead p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.password-strength { display: flex; gap: 5px; margin-top: 8px; }
.password-strength i { height: 4px; flex: 1; background: var(--rule-2); transition: background-color .2s ease; }
.password-strength i.active { background: var(--crimson); }
.rg-actions { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.rg-note { font-size: 13px; color: var(--ink-3); font-style: italic; max-width: 46ch; }
.rg-uploads { display: grid; gap: 16px; }
.reg-upload {
  display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 16px; align-items: center;
  border: 1px dashed var(--rule-2); background: var(--paper); padding: 16px 18px;
}
.reg-upload.has-file { border-style: solid; border-color: var(--crimson); background: var(--card); }
.u-ic {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink-2);
}
.reg-upload.has-file .u-ic { background: var(--crimson); color: var(--paper); border-color: var(--crimson); }
.reg-upload strong { display: block; font-size: 16.5px; }
.reg-upload > span > span { display: block; font-size: 13.5px; color: var(--ink-2); }
.reg-upload small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 5px; letter-spacing: .04em; }
.reg-upload.has-file small { color: var(--crimson); }
.upload-button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 10px 15px; cursor: pointer; color: var(--ink);
  background: transparent; white-space: nowrap;
}
.upload-button:hover { background: var(--ink); color: var(--paper); }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.reg-upload { position: relative; }
.upload-button { position: relative; display: inline-flex; }
.rg-radios { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 8px; }
.rg-radio { border: 1px solid var(--rule-2); background: var(--paper); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.rg-radio:hover { border-color: var(--ink); }
.rg-radio:has(input:checked) { border-color: var(--crimson); background: var(--card); box-shadow: inset 0 3px 0 var(--crimson); }
.rg-radio input { accent-color: var(--crimson); margin-bottom: 4px; }
.rg-radio strong { font-size: 15.5px; }
.rg-radio small { color: var(--ink-2); font-size: 12.5px; }
.text-link { background: none; border: 0; padding: 0 0 0 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); cursor: pointer; border-left: 1px solid var(--rule-2); }
.text-link:hover { text-decoration: underline; }
.consent-line { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 18px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent-line input { accent-color: var(--crimson); margin-top: 4px; }
.rg-actions button.is-loading { opacity: .6; pointer-events: none; }
.rg-field textarea { font-family: var(--serif); font-size: 16.5px; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 10px; border-radius: 0; outline: none; width: 100%; resize: vertical; }
.rg-field textarea:focus { border-color: var(--crimson); }

.rg-review { border-top: 2px solid var(--ink); }
.rv-sec { border-bottom: 1px solid var(--rule); padding-block: 16px; }
.rv-sec h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); margin: 0 0 10px; }
.rv-row { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; padding-block: 6px; font-size: 15.5px; }
.rv-row dt { color: var(--ink-2); font-style: italic; }
.rv-row dd { margin: 0; font-family: var(--mono); font-size: 14px; }
.rg-pending { text-align: left; }
.pending-mark {
  width: 64px; height: 64px; border: 2px solid var(--crimson); color: var(--crimson);
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 18px;
}
.pending-ref { border-block: 3px double var(--ink); padding-block: 14px; margin: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.pending-ref span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pending-ref strong { font-family: var(--mono); font-size: 19px; }
.pending-ref strong.empty-reference { color: var(--ink-3); font-size: 14px; font-style: italic; }
.pending-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 22px; }
.pending-steps > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.pending-steps b { font-family: var(--mono); font-size: 11px; color: var(--crimson); letter-spacing: .14em; }
.pending-steps strong { display: block; font-size: 16.5px; margin: 4px 0 4px; }
.pending-steps span { font-size: 13.5px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   404 compatibility (server 404 page classes)
   ========================================================================== */
.section { padding: clamp(60px, 10vw, 120px) 0; }
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }
.registration-card {
  background: var(--card); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(28,26,23,.08); padding: clamp(26px, 4vw, 48px); text-align: center;
}
.pending-card { max-width: 560px; margin-inline: auto; }
.registration-card h1 { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 10px; }
.registration-card p { color: var(--ink-2); }
.hero-actions { margin-top: 22px; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes sv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sect, .lead-grid, .art, .tele-wrap, .bulletin, .edit-wrap, .letter-wrap, .ord-wrap { animation: sv-rise .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .lead-grid, .feature-quote { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; border-top: 3px solid var(--ink); padding-top: 22px; }
  .art { grid-template-columns: 1fr; }
  .art-toc { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
  .toc-cap { display: none; }
  .toc-item { border: 1px solid var(--rule-2); padding: 8px 12px; white-space: nowrap; }
  .toc-note { display: none; }
  .two-col { columns: 1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-block: 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fx-strip { grid-template-columns: 1fr 1fr; }
  .fx-cell:nth-child(odd) { border-left: 0; }
  .offices { grid-template-columns: 1fr; }
  .office { border-left: 0; border-top: 1px solid var(--rule-2); padding-left: 0; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .pending-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cols3 { grid-template-columns: 1fr; }
  .col-story { border-left: 0; border-top: 1px solid var(--rule-2); padding: 20px 0 0; margin-top: 20px; }
  .col-story:first-child { margin-top: 0; padding-top: 0; }
  .mast-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mast-tag { text-align: left; }
  .rg-grid, .letter-form { grid-template-columns: 1fr; }
  .reg-progress-track { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .lh-rows { grid-template-columns: 1fr; }
  .rv-row { grid-template-columns: 1fr; gap: 2px; }
  .tl-row, .board-row, .ord-row { grid-template-columns: 1fr; gap: 6px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .mast-util { flex-wrap: wrap; }
  .foot-cols { grid-template-columns: 1fr; }
  .reg-upload { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 1fr; gap: 8px; }
}
