:root {
  --navy: #003a5d;
  --navy-deep: #062f49;
  --teal: #008f92;
  --teal-dark: #006f73;
  --ink: #1d2f38;
  --muted: #5f6d73;
  --paper: #ffffff;
  --surface: #f4f6f6;
  --mist: #e8f0f0;
  --line: #d6dfe1;
  --warning: #fff7dd;
  --warning-line: #d89b21;
  --danger: #992f3d;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
button, input, select { font: inherit; }
h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: "Source Serif 4", Georgia, serif; font-weight: 650; letter-spacing: -.025em; }
p { margin-top: 0; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 960px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-200%); padding: 10px 14px; background: #fff; border: 2px solid var(--teal); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(0, 143, 146, .42); outline-offset: 3px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); }
.header-row { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 1 335px; width: 335px; }
.brand img { width: 100%; height: auto; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.site-header nav a { padding: 36px 0 32px; border-bottom: 3px solid transparent; color: var(--ink); font-size: 14px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { border-color: var(--teal); color: var(--navy); }
.portal-link { min-height: 43px; display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--navy); color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.portal-link:hover { background: var(--navy); color: #fff; }
.development-notice { border-bottom: 1px solid #e8d7a4; background: #fff9e8; color: #554315; font-size: 13px; }
.development-notice .shell { padding-block: 8px; }

.hero-section { border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.28fr .72fr; align-items: center; gap: 90px; padding-block: 88px; }
.eyebrow { margin-bottom: 17px; color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-section h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.02; }
.hero-lead { max-width: 760px; color: #40535b; font-size: 21px; line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 21px; border: 1px solid var(--navy); border-radius: 2px; font-size: 12px; font-weight: 850; letter-spacing: .065em; line-height: 1; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--navy-deep); }
.button.secondary { background: #fff; color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: #fff; }
.principle-panel { padding: 38px; border-top: 5px solid var(--teal); background: var(--navy); color: #fff; box-shadow: 20px 20px 0 var(--mist); }
.principle-panel .panel-number { color: #7be0dc; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.principle-panel h2 { margin-bottom: 16px; color: #fff; font-size: 38px; }
.principle-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 25px 0; padding: 22px 0; border-block: 1px solid rgba(255,255,255,.18); list-style: none; }
.principle-panel li::before { content: "×"; margin-right: 8px; color: #7be0dc; font-weight: 900; }
.principle-panel a { color: #fff; font-weight: 800; }

.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { min-height: 115px; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 1px solid var(--line); }
.trust-grid b { color: var(--navy); font-size: 15px; }
.trust-grid span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.section { padding-block: 88px; }
.section-muted { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 80px; margin-bottom: 46px; }
.section-heading h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(38px, 4vw, 55px); line-height: 1.1; }
.section-heading > p { margin-bottom: 3px; color: var(--muted); font-size: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { min-height: 440px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: #fff; }
.card-top, .line-code { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-top > span, .line-code > span { color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 800; }
.product-card h3 { margin: 28px 0 14px; font-size: 28px; line-height: 1.16; }
.product-card > p { color: var(--muted); font-size: 15px; }
.product-card dl { margin: auto 0 22px; }
.product-card dt { margin-top: 13px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card dd { margin: 3px 0 0; font-size: 13px; line-height: 1.45; }
.product-card > a { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; text-decoration: none; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 2px; color: var(--teal-dark); font-family: "Source Sans 3", Arial, sans-serif; font-size: 10px; font-weight: 850; letter-spacing: .07em; line-height: 1; text-transform: uppercase; }
.status-development, .status-draft, .status-consultation { color: #8a5b00; background: #fff8e6; }
.status-published, .status-certified, .status-maintained, .status-open { color: #17613c; background: #edf8f1; }
.status-suspended, .status-withdrawn, .status-not_certified { color: var(--danger); background: #fff0f2; }

.system-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.system-grid h2 { font-size: 50px; line-height: 1.1; }
.system-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.text-link { font-weight: 800; text-decoration: none; }
.system-grid ol { margin: 0; padding: 0; list-style: none; }
.system-grid li { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.system-grid li:last-child { border-bottom: 1px solid var(--line); }
.system-grid li > span { color: var(--teal); font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.system-grid h3 { margin-bottom: 5px; font-size: 23px; }
.system-grid li p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.public-trust { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 50px; }
.public-trust h2 { max-width: 520px; margin-bottom: 0; font-size: 42px; line-height: 1.12; }
.public-trust > p { margin-bottom: 0; color: var(--muted); }

.page-mast { padding-block: 75px; background: var(--navy); color: #fff; }
.page-mast .eyebrow { color: #7be0dc; }
.page-mast h1 { max-width: 1000px; margin-bottom: 20px; color: #fff; font-size: clamp(45px, 5.2vw, 69px); line-height: 1.06; }
.page-mast > .shell > p:last-child { max-width: 850px; margin-bottom: 0; color: #d6e5eb; font-size: 19px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: #bfd6df; font-size: 13px; }
.breadcrumbs a { color: #fff; }

.library-search, .registry-form { margin-bottom: 34px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.library-search label, .registry-form label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 800; }
.library-search > div, .registry-form > div { display: grid; grid-template-columns: 1fr auto; }
.library-search input, .registry-form input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #aebdc1; border-right: 0; background: #fff; }
.library-search .button, .registry-form .button { height: 52px; }
.library-summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 17px; border-bottom: 2px solid var(--navy); color: var(--muted); font-size: 13px; }
.library-summary p { margin-bottom: 0; }
.library-summary strong { color: var(--navy); font-size: 19px; }
.legend { width: 11px; height: 11px; display: inline-block; margin: 0 5px 0 15px; }
.legend.requirement { background: var(--navy); }
.legend.development { border: 2px solid #8a5b00; background: #fff8e6; }
.document-list > article { display: grid; grid-template-columns: 235px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.document-number { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 850; }
.document-meta { margin-bottom: 7px; color: var(--teal-dark); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.document-list h2 { margin-bottom: 10px; font-size: 28px; }
.document-list h2 a { color: var(--navy); text-decoration-thickness: 1px; }
.document-list article p { max-width: 800px; margin-bottom: 16px; color: var(--muted); }
.document-actions { display: flex; align-items: center; gap: 18px; }
.document-actions a { font-size: 13px; font-weight: 800; }
.empty-state { margin-top: 32px; padding: 50px; border: 1px solid var(--line); background: var(--surface); text-align: center; }

.reader-mast { padding: 42px 0 38px; border-bottom: 1px solid var(--line); background: var(--surface); }
.reader-mast .breadcrumbs { margin-bottom: 23px; color: var(--muted); }
.reader-mast .breadcrumbs a { color: var(--navy); }
.reader-title { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: start; }
.reader-title h1 { max-width: 980px; margin: 7px 0 12px; font-size: clamp(40px, 4.2vw, 58px); line-height: 1.08; }
.reader-title p { margin-bottom: 0; color: var(--muted); }
.reader-title > .status { margin-top: 10px; }
.warning { margin-top: 28px; padding: 15px 18px; border-left: 4px solid var(--warning-line); background: var(--warning); color: #5e4816; }
.warning p { margin: 3px 0 0; font-size: 14px; }
.reader-tabs { display: flex; gap: 0; padding-inline: max(24px, calc((100% - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: #fff; overflow-x: auto; }
.reader-tabs a { flex: 0 0 auto; padding: 17px 22px 14px; border-bottom: 4px solid transparent; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.reader-tabs a[aria-current="page"] { border-color: var(--teal); color: var(--navy); }
.reader-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr) 190px; gap: 42px; align-items: start; padding-block: 45px 90px; }
.reader-toc, .reader-side { position: sticky; top: 20px; }
.reader-toc > p { margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.reader-toc nav { max-height: calc(100vh - 100px); overflow-y: auto; border-block: 1px solid var(--line); }
.reader-toc a { display: grid; grid-template-columns: 42px 1fr; gap: 7px; padding: 9px 7px; border-bottom: 1px solid #edf0f1; color: var(--ink); font-size: 12px; line-height: 1.35; text-decoration: none; }
.reader-toc a:hover { background: var(--surface); color: var(--navy); }
.reader-toc a span { color: var(--teal-dark); font-family: ui-monospace, monospace; font-weight: 800; }
.reader-content { min-width: 0; }
.scope-summary { margin-bottom: 36px; padding: 22px 24px; border-left: 4px solid var(--teal); background: var(--surface); }
.scope-summary strong { color: var(--navy); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.scope-summary p { margin: 5px 0 0; }
.clause { position: relative; scroll-margin-top: 25px; padding: 31px 0 36px; border-top: 1px solid var(--line); }
.clause:first-of-type { border-top: 2px solid var(--navy); }
.clause-heading { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; }
.clause-heading > span { color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 850; }
.clause-heading p { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.clause-heading h2 { margin-bottom: 19px; font-size: 29px; line-height: 1.16; }
.clause > p { margin-left: 82px; font-size: 18px; }
.clause.normative { border-left: 4px solid var(--navy); padding-left: 20px; }
.requirement-detail { margin: 17px 0 0 82px; padding: 13px 16px; border: 1px solid var(--line); background: #fafbfb; }
.requirement-detail strong { color: var(--navy); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.requirement-detail p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.clause-link { position: absolute; top: 34px; right: 0; color: var(--muted); text-decoration: none; opacity: .4; }
.clause:hover .clause-link { opacity: 1; }
.reader-side { border-top: 4px solid var(--teal); background: var(--surface); }
.reader-side > div { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.reader-side span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.reader-side strong { display: block; margin-top: 2px; color: var(--navy); font-size: 13px; }
.reader-side > a { display: block; padding: 14px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.reader-details > h2 { margin: 34px 0 18px; font-size: 32px; }
.reader-details > h2:first-child { margin-top: 0; }
.reader-details > dl, .record-details { display: grid; grid-template-columns: 220px 1fr; margin: 0; border-top: 2px solid var(--navy); }
.reader-details dt, .reader-details dd, .record-details dt, .record-details dd { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.reader-details dt, .record-details dt { background: var(--surface); color: var(--navy); font-size: 13px; font-weight: 800; }
.reader-details dd, .record-details dd { font-size: 15px; }
.reader-details table { width: 100%; border-collapse: collapse; }
.reader-details th, .reader-details td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reader-details th { background: var(--surface); color: var(--navy); font-size: 12px; }
.download-list { display: grid; gap: 12px; }
.download-list a { display: grid; padding: 20px; border: 1px solid var(--line); text-decoration: none; }
.download-list span { margin-top: 3px; color: var(--muted); font-size: 14px; }
.callout { margin-top: 30px; padding: 21px 23px; border-left: 4px solid var(--teal); background: var(--surface); }
.callout strong { color: var(--navy); }
.callout p { margin: 5px 0 0; }
.small-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

.binary-banner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; padding: 35px; background: var(--navy); color: #fff; }
.binary-banner > div p { margin-bottom: 6px; color: #7be0dc; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.binary-banner h2 { margin-bottom: 0; color: #fff; font-size: 36px; }
.binary-banner ul { margin: 0; padding-left: 20px; align-self: center; }
.certification-lines > article { display: grid; grid-template-columns: 240px 1fr; gap: 50px; padding: 50px 0; border-bottom: 1px solid var(--line); }
.certification-lines h2 { margin-bottom: 10px; font-size: 40px; }
.line-object { color: var(--muted); font-size: 18px; }
.certification-lines dl { display: grid; grid-template-columns: 180px 1fr; margin-top: 27px; border-top: 1px solid var(--line); }
.certification-lines dt, .certification-lines dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.certification-lines dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.certification-lines dd { font-size: 14px; }
.boundary { margin-top: 22px; padding: 18px; border-left: 4px solid var(--warning-line); background: var(--warning); }
.boundary strong { color: var(--navy); font-size: 12px; text-transform: uppercase; }
.boundary p { margin: 4px 0 0; font-size: 14px; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.process-grid h2 { font-size: 45px; }
.process-grid ol { margin: 0; padding: 0; list-style: none; }
.process-grid li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.process-grid li > span { color: var(--teal-dark); font-family: ui-monospace, monospace; font-size: 23px; font-weight: 850; }
.process-grid li p { margin: 0; }

.registry-form { margin-bottom: 45px; }
.registry-results > p { padding-bottom: 12px; border-bottom: 2px solid var(--navy); color: var(--muted); font-size: 13px; }
.registry-results article { padding: 28px 0; border-bottom: 1px solid var(--line); }
.registry-results article > div { display: flex; justify-content: space-between; gap: 20px; color: var(--teal-dark); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 800; }
.registry-results h2 { margin: 14px 0 8px; font-size: 31px; }
.registry-results article > p { color: var(--muted); }
.registry-results dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.registry-results dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.registry-results dd { margin: 2px 0 0; font-size: 13px; }
.registry-guidance { padding: 35px; border: 1px solid var(--line); }
.registry-guidance h2 { font-size: 33px; }
.registry-guidance > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.registry-guidance > div p { padding-top: 13px; border-top: 3px solid var(--teal); font-size: 14px; }
.certificate-status { display: flex; align-items: center; gap: 15px; }
.certificate-status > span:last-child { color: #d6e5eb; font-family: ui-monospace, monospace; }
.record-details { margin-bottom: 30px; }

.governance-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.governance-principles article { padding: 25px; border-top: 4px solid var(--teal); background: var(--surface); }
.governance-principles span, .policy-number { color: var(--teal-dark); font-family: ui-monospace, monospace; font-weight: 850; }
.governance-principles h2 { margin: 17px 0 10px; font-size: 24px; }
.governance-principles p { margin: 0; color: var(--muted); font-size: 14px; }
.policy-content { max-width: 900px; }
.policy-content > section { padding: 35px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.policy-content h2 { font-size: 40px; }
.policy-content > section > p:not(.policy-number) { font-size: 19px; }
.prohibited { margin-top: 25px; padding: 25px; border-left: 5px solid var(--danger); background: #fff4f5; }
.prohibited strong { color: var(--danger); }
.prohibited ul { columns: 2; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; }
.about-grid > div { padding-top: 22px; border-top: 4px solid var(--teal); }
.about-grid h2 { font-size: 34px; }
.about-grid p { color: var(--muted); font-size: 18px; }
.independence { max-width: 950px; }
.independence h2 { font-size: 48px; }
.independence > div { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.independence ul { margin: 0; padding-left: 20px; }
.error-page { min-height: 470px; display: grid; align-items: center; }

.site-footer { padding: 60px 0 25px; border-top: 6px solid var(--teal); background: #e9eeee; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; }
.footer-grid img { width: 310px; }
.footer-grid > div:first-child p { max-width: 360px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.footer-grid h2 { margin-bottom: 13px; font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 7px 0; color: var(--ink); font-size: 13px; text-decoration: none; }
.legal-row { margin-top: 45px; padding-top: 20px; border-top: 1px solid #c7d1d3; color: var(--muted); font-size: 11px; }
.legal-row p:last-child { max-width: 900px; }

@media (max-width: 1100px) {
  .header-row { flex-wrap: wrap; padding-block: 18px; }
  .site-header nav { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); }
  .site-header nav a { padding: 14px 0 10px; }
  .portal-link { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .principle-panel { max-width: 650px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .reader-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .reader-side { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 30px, var(--max)); }
  .brand { width: 280px; flex-basis: 280px; }
  .portal-link { display: none; }
  .site-header nav { gap: 17px; overflow-x: auto; justify-content: flex-start; }
  .site-header nav a { font-size: 12px; }
  .hero-grid { min-height: 0; padding-block: 60px; }
  .hero-section h1 { font-size: 48px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(3) { border-left: 1px solid var(--line); }
  .section { padding-block: 60px; }
  .section-heading, .system-grid, .public-trust, .process-grid { grid-template-columns: 1fr; gap: 35px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .document-list > article, .certification-lines > article { grid-template-columns: 1fr; gap: 15px; }
  .reader-layout { grid-template-columns: 1fr; }
  .reader-toc { position: static; }
  .reader-toc nav { max-height: 280px; }
  .binary-banner { grid-template-columns: 1fr; gap: 20px; }
  .governance-principles { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .brand { width: 240px; flex-basis: 240px; }
  .development-notice { font-size: 11px; }
  .hero-section h1, .page-mast h1 { font-size: 39px; }
  .hero-lead { font-size: 18px; }
  .principle-panel { padding: 26px; box-shadow: 10px 10px 0 var(--mist); }
  .principle-panel ul { grid-template-columns: 1fr; }
  .trust-grid, .governance-principles, .registry-guidance > div, .independence > div { grid-template-columns: 1fr; }
  .section-heading h2, .system-grid h2 { font-size: 37px; }
  .library-search > div, .registry-form > div { grid-template-columns: 1fr; gap: 8px; }
  .library-search input, .registry-form input { border-right: 1px solid #aebdc1; }
  .library-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .reader-tabs { padding-inline: 8px; }
  .reader-tabs a { padding-inline: 13px; }
  .reader-title { grid-template-columns: 1fr; }
  .reader-title > .status { justify-self: start; }
  .clause-heading { grid-template-columns: 48px 1fr; }
  .clause > p, .requirement-detail { margin-left: 60px; }
  .reader-details > dl, .record-details, .certification-lines dl { grid-template-columns: 1fr; }
  .reader-details dd, .record-details dd { padding-top: 0; }
  .registry-results dl { grid-template-columns: 1fr; }
  .prohibited ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .development-notice, .reader-tabs, .reader-toc, .reader-side, .site-footer, .clause-link { display: none !important; }
  .reader-mast { padding: 20px 0; background: #fff; }
  .reader-title h1 { color: #000; }
  .reader-layout { display: block; padding: 20px 0; }
  .clause { break-inside: avoid; }
  body { color: #000; font-size: 11pt; }
}

