:root {
  --forest: #0a2a43;
  --forest-2: #061c2d;
  --mist: #e9f0f2;
  --paper: #f7f9fa;
  --ink: #101922;
  --muted: #697985;
  --line: #ccd6db;
  --signal: #2f8299;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 20; background: var(--signal); color: var(--ink); padding: 12px 18px; }
.skip-link:focus { top: 16px; }
.site-header { height: 92px; padding: 0 3.2vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand-logo { display: block; object-fit: contain; }
.brand-logo-horizontal { width: 210px; height: 58px; object-position: left center; }
.brand-logo-icon { display: none; width: 36px; height: 42px; }
nav { display: flex; gap: 34px; font-size: 14px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--forest); transition: right .25s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.header-action { justify-self: end; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding: 10px 0; }
.menu-button, .mobile-nav { display: none; }

.registry { min-height: calc(100vh - 92px); padding: 64px 3.2vw 0; background: var(--paper); }
.registry-heading { display: grid; grid-template-columns: 1fr minmax(320px, 520px); align-items: end; gap: 60px; padding-bottom: 42px; }
.eyebrow, .section-label, .panel-meta, .registry-foot, .reference-head, .ledger-head, .document-type span, .index-status { font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--forest); }
.status-dot { width: 7px; height: 7px; background: var(--signal); border: 1px solid var(--forest); border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,130,153,.18); }
h1 { font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(40px, 4.2vw, 64px); line-height: .98; letter-spacing: -.025em; margin: 0; font-weight: 600; }
.registry-intro { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 520px; }
.registry-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; border: 1px solid var(--forest); min-height: 360px; background: var(--white); }
.query-console { position: relative; overflow: hidden; padding: 30px 34px 34px; background: var(--forest); color: var(--white); }
.registry-mark { position: absolute; right: 34px; bottom: -30px; width: 180px; height: 190px; object-fit: contain; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; }
.panel-meta { display: flex; justify-content: space-between; color: #b9cbc5; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.2); }
.search-form { margin-top: 74px; }
.search-form label { display: block; font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(25px, 2.4vw, 37px); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 24px; }
.search-row { display: grid; grid-template-columns: 56px 1fr auto; border: 1px solid rgba(255,255,255,.55); background: var(--white); }
.search-prefix { display: grid; place-items: center; min-height: 74px; color: var(--forest); font: 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; border-right: 1px solid var(--line); }
.search-row input { border: 0; border-radius: 0; background: var(--white); color: var(--ink); min-height: 74px; padding: 0 20px; width: 100%; outline: none; font-size: 17px; }
.search-row:focus-within { box-shadow: 0 0 0 3px var(--signal); }
.search-row button { border: 0; border-left: 1px solid var(--forest); border-radius: 0; background: var(--signal); color: var(--white); padding: 0 28px; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; cursor: pointer; transition: background .2s ease; }
.search-row button:hover { background: #4194aa; }
.search-form > p { color: #aebfba; font-size: 13px; line-height: 1.5; margin-top: 14px; }
.search-reference { display: grid; grid-template-rows: auto 1fr 1fr auto; background: var(--paper); }
.reference-head, .reference-row, .document-type { padding: 24px; border-bottom: 1px solid var(--line); }
.reference-head { display: flex; color: var(--muted); }
.reference-row { display: block; }
.reference-row strong { font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 20px; font-weight: 600; }
.reference-row p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 9px 0 0; }
.document-type { border-bottom: 0; background: var(--mist); }
.document-type span { display: block; color: var(--muted); margin-bottom: 9px; }
.document-type strong { font-size: 14px; font-weight: 600; }
.report-ledger { border: 1px solid var(--line); border-top: 0; background: var(--white); }
.ledger-head { min-height: 43px; display: grid; grid-template-columns: 1.5fr 1fr 140px; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); padding: 0 22px; }
.search-state { min-height: 82px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 0 22px; color: var(--muted); font-size: 14px; }
.search-state[hidden] { display: none; }
.search-state p { margin: 0; }
.empty-index { font: 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--line); }
.index-status { color: var(--forest); }
.results { display: grid; }
.results[hidden] { display: none; }
.result-card { min-height: 82px; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.result-card:last-child { border-bottom: 0; }
.result-card strong { display: block; font-size: 16px; margin-bottom: 7px; }
.result-card p { margin: 0; color: var(--muted); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.result-card a { align-self: center; border-bottom: 1px solid var(--forest); color: var(--forest); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; padding: 8px 0; }
.no-results { min-height: 82px; display: flex; align-items: center; padding: 18px 22px; color: var(--muted); line-height: 1.6; }
.registry-foot { display: flex; justify-content: space-between; padding: 17px 0 19px; color: var(--muted); }

.method { position: relative; overflow: hidden; padding: 92px 6.5vw 104px; background-color: var(--forest-2); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; color: var(--white); }
.method::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--signal); }
.method-header { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(520px,1.5fr); align-items: end; gap: 36px 7vw; padding-bottom: 42px; }
.method-kicker { align-self: start; display: flex; flex-direction: column; gap: 10px; color: #8fc0ce; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.method-header h2 { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: clamp(10px,1.8vw,28px); margin: 0; font: 600 clamp(29px,3.2vw,54px)/.95 Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.015em; white-space: nowrap; }
.method-header h2 i { color: var(--signal); font: 300 .72em/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.method-header > p { margin: 0; max-width: 410px; color: #b9cbd3; font-size: 14px; line-height: 1.55; }
.section-label { color: var(--muted); margin: 0 0 24px; }
.standards h2 { font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.035em; font-weight: 500; margin: 0; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(143,192,206,.4); background: rgba(4,20,32,.88); }
.steps::before { content: ""; position: absolute; top: 53px; left: 9%; right: 9%; height: 1px; background: var(--signal); opacity: .65; }
.steps li { position: relative; display: grid; grid-template-rows: 66px 1fr; min-height: 245px; padding: 0 28px 30px; border-right: 1px solid rgba(143,192,206,.28); }
.steps li:last-child { border-right: 0; }
.step-code { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #8fc0ce; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-code span { display: grid; place-items: center; min-width: 74px; height: 32px; padding: 0 12px; border: 1px solid var(--signal); background: var(--forest-2); font-size: 10px; letter-spacing: .14em; }
.steps h3 { margin: 35px 0 16px; color: var(--white); font: 600 24px/1.05 Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.01em; }
.steps p { margin: 0; color: #aebfc7; font-size: 14px; line-height: 1.65; max-width: 340px; }
.standards-grid article > span { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: var(--muted); }
.standards { background: var(--forest-2); color: var(--white); padding: 105px 6.5vw 110px; display: grid; grid-template-columns: .55fr 1.45fr; gap: 55px 6vw; }
.section-label.light { color: #aebfba; }
.standards h2 { color: var(--white); }
.standards-grid { grid-column: 2; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.22); }
.standards-grid article { padding: 25px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.22); min-height: 175px; }
.standards-grid article + article { padding-left: 28px; }
.standards-grid article:last-child { border-right: 0; }
.standards-grid article > span { color: var(--signal); }
.standards-grid p { color: #b9cbc5; line-height: 1.55; margin: 48px 0 0; }
footer { padding: 48px 3.2vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 25px; border-top: 1px solid var(--line); background: var(--white); }
.footer-brand img { display: block; width: min(340px, 42vw); height: auto; }
footer p { color: var(--muted); font-size: 13px; margin: 0; }
footer > a:last-child { justify-self: end; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; height: 78px; }
  nav, .header-action { display: none; }
  .menu-button { display: block; justify-self: end; border: 0; background: none; border-bottom: 1px solid var(--ink); padding: 7px 0; }
  .mobile-nav { position: absolute; top: 78px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 5vw; gap: 22px; flex-direction: column; }
  .mobile-nav:not([hidden]) { display: flex; }
  .registry { padding-top: 48px; }
  .registry-heading { grid-template-columns: 1fr; gap: 22px; }
  .registry-workspace { grid-template-columns: 1fr; }
  .search-reference { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .reference-head { grid-column: 1 / -1; }
  .reference-row { border-bottom: 0; }
  .reference-row + .reference-row { border-left: 1px solid var(--line); }
  .document-type { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .method-header { grid-template-columns: 1fr; align-items: start; }
  .method-header h2 { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 34px; bottom: 34px; left: 46px; right: auto; width: 1px; height: auto; }
  .steps li { grid-template-columns: 90px 1fr; grid-template-rows: auto; min-height: 180px; padding: 24px 28px 24px 18px; border-right: 0; border-bottom: 1px solid rgba(143,192,206,.28); }
  .steps li:last-child { border-bottom: 0; }
  .step-code { align-items: start; justify-content: flex-start; }
  .steps h3 { margin-top: 10px; }
  .standards { grid-template-columns: 1fr; }
  .standards-grid { grid-column: auto; }
}
@media (max-width: 620px) {
  .brand-logo-horizontal { display: none; }
  .brand-logo-icon { display: block; }
  .registry { min-height: auto; padding: 38px 0 0; }
  .registry-heading { padding: 0 5vw 30px; }
  h1 { font-size: 42px; }
  .registry-intro { font-size: 15px; }
  .registry-workspace { border-left: 0; border-right: 0; }
  .query-console { padding: 24px 5vw 28px; }
  .search-form { margin-top: 48px; }
  .search-row { grid-template-columns: 42px 1fr; }
  .search-prefix { min-height: 64px; }
  .search-row input { min-height: 64px; padding: 0 14px; min-width: 0; }
  .search-row button { min-height: 54px; }
  .search-row button { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--forest); }
  .search-reference { grid-template-columns: 1fr; }
  .reference-head, .document-type { grid-column: auto; }
  .reference-row + .reference-row { border-left: 0; border-top: 1px solid var(--line); }
  .document-type { border-top: 1px solid var(--line); }
  .report-ledger { border-left: 0; border-right: 0; }
  .ledger-head { display: none; }
  .search-state { grid-template-columns: 32px 1fr; min-height: 94px; padding: 0 5vw; }
  .index-status { display: none; }
  .registry-foot { padding: 15px 5vw 17px; }
  .registry-foot span:last-child { display: none; }
  .method { padding: 70px 5vw 76px; }
  .method-header { gap: 26px; padding-bottom: 34px; }
  .method-header h2 { flex-wrap: wrap; gap: 8px 12px; font-size: clamp(25px,8.7vw,40px); white-space: normal; }
  .method-header > p { font-size: 13px; }
  .steps li { grid-template-columns: 84px 1fr; min-height: 190px; padding: 20px 18px 22px 12px; }
  .steps::before { left: 49px; }
  .steps h3 { font-size: 16px; }
  .standards { padding: 80px 5vw; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-grid article, .standards-grid article + article { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); min-height: auto; }
  .standards-grid p { margin-top: 24px; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer > a:last-child { justify-self: start; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
