:root {
  --bg: #ffffff;
  --panel: #f7f9fb;
  --panel-strong: #eef3f6;
  --ink: #071a36;
  --body: #283c55;
  --muted: #66758a;
  --soft: #8a96a6;
  --line: #d6dee7;
  --line-strong: #b7c4d1;
  --navy: #0a315c;
  --green: #356b2e;
  --green-soft: #edf5eb;
  --cyan: #2d7383;
  --radius: 7px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
p { margin: 0; color: var(--body); line-height: 1.65; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { max-width: 850px; font-size: 62px; line-height: 1.04; font-weight: 840; }
h2 { font-size: 31px; line-height: 1.16; font-weight: 820; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }
code, pre { font-family: var(--mono); }
code { font-size: .92em; }

.site-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: grid; grid-template-columns: minmax(205px, auto) minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 66px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--ink); font-size: 17px; font-weight: 880; text-transform: uppercase; letter-spacing: .045em; }
.site-logo { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: stretch; justify-content: center; gap: 30px; min-width: 0; align-self: stretch; }
.site-nav a { position: relative; display: inline-flex; align-items: center; color: #243852; font-size: 14px; font-weight: 680; white-space: nowrap; }
.site-nav a:after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]:after { background: var(--green); }
.header-action { justify-self: end; }

.text-link { display: inline-flex; align-items: center; gap: 7px; width: max-content; color: var(--green); border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 760; line-height: 1.55; transition: color .16s ease, transform .16s ease; }
.text-link:hover { color: var(--navy); transform: translateX(1px); }
.text-link-large { font-size: 17px; }
.muted-link { color: var(--body); border-bottom-color: var(--line-strong); }
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 11px 17px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 780; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.btn { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn:hover { background: #06284c; transform: translateY(-1px); }
.btn-ghost { color: var(--navy); background: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }
.brand:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible, .document-row:focus-visible, .path-item:focus-visible, .guide-index-row:focus-visible, .template-item:focus-visible { outline: 3px solid rgba(45,115,131,.24); outline-offset: 3px; }

.library-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, .7fr); gap: 60px; align-items: center; min-height: 435px; padding: 48px 54px 46px; border-bottom: 1px solid var(--line); }
.hero-copy .lead { max-width: 670px; }
.lead { margin-top: 18px; max-width: 720px; color: var(--body); font-size: 18px; line-height: 1.65; }
.lead-small { margin-top: 16px; max-width: 520px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 27px; }
.index-preview { padding: 0; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; }
.index-title { padding: 10px 13px; color: var(--green); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.index-tree { display: grid; gap: 2px; margin: 0; padding: 13px 18px 15px 46px; list-style: none; counter-reset: index-line; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.index-tree li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); color: var(--body); }
.index-tree li:before { content: counter(index-line); counter-increment: index-line; position: absolute; left: -31px; color: #9aa6b4; }
.index-tree span { color: var(--soft); }
.index-tree a:before { content: "|-- "; color: var(--line-strong); }
.index-tree li:last-child a:before { content: "`-- "; }
.index-tree a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.start-band, .method-band, .worked-band, .template-band { display: grid; border-bottom: 1px solid var(--line); }
.start-band { grid-template-columns: 230px repeat(3, 1fr); border-top: 1px solid var(--line); }
.band-intro { padding: 26px 26px 27px 54px; }
.band-intro h2 { font-size: 18px; text-transform: uppercase; }
.band-intro p { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.band-intro .text-link { margin-top: 13px; }
.path-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 26px 25px; border-left: 1px solid var(--line); transition: background .16s ease; }
.path-item:hover { background: var(--panel); }
.path-number { display: grid; place-items: center; align-self: start; width: 30px; height: 30px; color: var(--green); border: 1px solid #a9c0a5; border-radius: 50%; font-size: 12px; font-weight: 800; }
.path-item b, .path-item small, .path-item em { display: block; }
.path-item b { font-size: 15px; }
.path-item small { margin-top: 5px; color: var(--body); font-size: 13px; line-height: 1.5; }
.path-item em { width: max-content; margin-top: 9px; color: var(--green); border-bottom: 1px solid currentColor; font-size: 12px; font-style: normal; font-weight: 740; }

.method-band { grid-template-columns: 260px minmax(0, 1fr); padding: 0 28px 0 0; }
.method-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 25px 0; list-style: none; }
.method-rail li { position: relative; padding: 4px 28px 3px; border-left: 1px solid var(--line); }
.method-rail li:after { content: "\2192"; position: absolute; top: 4px; right: -8px; color: var(--navy); }
.method-rail li:last-child:after { content: none; }
.method-rail span { color: var(--green); font-family: var(--mono); font-size: 14px; }
.method-rail h3 { display: inline; margin-left: 9px; font-size: 16px; }
.method-rail p { margin-top: 11px; font-size: 13px; line-height: 1.5; }

.section { padding: 62px 54px; border-bottom: 1px solid var(--line); }
.compact-section { padding-top: 34px; padding-bottom: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head p { max-width: 650px; margin-top: 10px; }
.inline-head h2 { font-size: 19px; text-transform: uppercase; }
.section-label { margin-bottom: 11px; color: var(--green); font-size: 12px; font-weight: 820; text-transform: uppercase; letter-spacing: .08em; }
.library-tabs { display: flex; gap: 26px; margin-left: 218px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; }
.library-tabs span { padding-bottom: 8px; }
.library-tabs .active { color: var(--ink); border-bottom: 2px solid var(--green); font-weight: 760; }
.document-list { display: grid; }
.document-row { display: grid; grid-template-columns: 40px minmax(280px, 1.5fr) minmax(100px, .55fr) 100px 120px 20px; gap: 12px; align-items: center; min-height: 47px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; transition: background .16s ease; }
.document-row:hover { background: var(--panel); }
.document-row strong { font-size: 13px; }
.document-row > span:not(.doc-mark), .document-row time { color: var(--muted); }
.document-row i { color: var(--navy); font-size: 16px; font-style: normal; text-align: right; }
.doc-mark { display: inline-grid; place-items: center; width: 29px; height: 32px; color: var(--navy); border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; font-family: var(--mono); font-size: 8px; font-weight: 850; }
.doc-mark.large { width: 42px; height: 48px; font-size: 10px; }

.worked-band { grid-template-columns: 260px minmax(360px, .9fr) minmax(300px, 1.1fr); align-items: stretch; background: var(--panel); }
.folder-map { overflow: auto; margin: 22px 0; padding: 17px 20px; color: #18324f; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; font-size: 12px; line-height: 1.45; }
.worked-notes { padding: 32px 54px 28px 38px; border-left: 1px solid var(--line-strong); }
.worked-notes p { font-size: 14px; }
.check-list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--body); font-size: 13px; }
.check-list li:before { content: "\2713"; margin-right: 9px; color: var(--green); font-weight: 800; }

.template-band { grid-template-columns: 230px repeat(3, 1fr); }
.template-item { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 13px; padding: 24px 25px; border-left: 1px solid var(--line); transition: background .16s ease; }
.template-item:hover { background: var(--panel); }
.template-item b, .template-item small, .template-item em { display: block; }
.template-item b { font-size: 14px; }
.template-item small { margin-top: 5px; color: var(--body); font-size: 12px; line-height: 1.5; }
.template-item em { width: max-content; margin-top: 9px; color: var(--green); border-bottom: 1px solid currentColor; font-size: 12px; font-style: normal; }

.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 62px; align-items: end; padding: 64px 54px 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: 54px; }
.editorial-hero { align-items: center; min-height: 420px; }
.summary-panel, .contact-panel { padding: 22px 0 22px 28px; border-left: 1px solid var(--line-strong); }
.summary-panel h2 { font-size: 16px; text-transform: uppercase; }
.summary-panel ul { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--body); font-size: 14px; line-height: 1.55; }
.summary-panel li:before { content: "\2713"; margin-right: 9px; color: var(--green); }
.summary-panel dl { display: grid; gap: 0; margin: 14px 0 0; }
.summary-panel dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.summary-panel dt { color: var(--muted); }
.summary-panel dd { margin: 0; font-weight: 700; }
.library-page-hero { grid-template-columns: minmax(0, 1fr) 320px; min-height: 390px; }
.library-summary { display: grid; border-top: 1px solid var(--line-strong); }
.library-summary div { display: grid; grid-template-columns: 62px 1fr; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.library-summary strong { color: var(--green); font-family: var(--mono); font-size: 25px; }
.library-summary span { color: var(--body); font-size: 13px; }
.resource-start { margin: 0; }

.guide-index { display: grid; }
.guide-index-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 170px 26px; gap: 20px; align-items: center; min-height: 126px; padding: 22px 10px; border-top: 1px solid var(--line); transition: background .16s ease; }
.guide-index-row:last-child { border-bottom: 1px solid var(--line); }
.guide-index-row:hover { background: var(--panel); }
.guide-number { align-self: start; color: var(--green); font-family: var(--mono); font-size: 13px; }
.guide-category { color: var(--green); font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.guide-index-row h3 { margin-top: 7px; font-size: 20px; }
.guide-index-row p { margin-top: 7px; font-size: 14px; }
.guide-facts { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.guide-index-row i { color: var(--navy); font-size: 20px; font-style: normal; }
.worked-callout, .closing-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 38px 54px; border-bottom: 1px solid var(--line); background: var(--panel); }
.worked-callout p:not(.section-label), .closing-band p { max-width: 760px; margin-top: 10px; }

.lifecycle-list { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.lifecycle-list > li { display: grid; grid-template-columns: 60px minmax(0, 1fr) 280px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stage-number { color: var(--green); font-family: var(--mono); font-size: 15px; }
.lifecycle-list h3 { font-size: 23px; }
.lifecycle-list p { margin-top: 8px; }
.lifecycle-list .text-link { margin-top: 13px; }
.stage-rule { align-self: center; padding-left: 24px; border-left: 1px solid var(--line); }
.stage-rule b, .stage-rule span { display: block; }
.stage-rule b { font-size: 12px; text-transform: uppercase; }
.stage-rule span { margin-top: 7px; color: var(--body); font-size: 13px; line-height: 1.5; }
.split-section { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 80px; }
.principle-list { display: grid; margin: 0; padding: 0; list-style: none; }
.principle-list li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-list span { color: var(--green); font-family: var(--mono); font-size: 12px; }
.principle-list p { margin-top: 5px; font-size: 14px; }
.status-table, .manifest-table { border-top: 1px solid var(--line-strong); }
.status-row { display: grid; grid-template-columns: 150px minmax(0, 1.5fr) minmax(180px, .8fr); gap: 20px; padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.status-head, .manifest-head { color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 760; text-transform: uppercase; }
.status-row strong { color: var(--green); font-family: var(--mono); }

.workspace-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.workspace-sidebar { padding: 40px 26px 40px 54px; border-right: 1px solid var(--line); }
.workspace-sidebar ol { position: sticky; top: 24px; display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.workspace-sidebar a { display: grid; grid-template-columns: 32px 1fr; padding: 9px 0; color: var(--body); font-size: 13px; }
.workspace-sidebar a:hover { color: var(--green); }
.workspace-sidebar span { color: var(--soft); font-family: var(--mono); }
.workspace-main { padding: 40px 54px; }
.large-map { max-width: 760px; margin: 0 0 42px; padding: 25px; font-size: 13px; line-height: 1.55; }
.workspace-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; max-width: 860px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.workspace-stage h2 { font-size: 26px; }
.workspace-stage p { margin-top: 10px; }
.rule-list { display: grid; gap: 9px; margin: 17px 0 0; color: var(--body); line-height: 1.55; }
.example-note, .file-example { margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.example-note b, .example-note span, .file-example span, .file-example small { display: block; }
.example-note b { font-size: 12px; text-transform: uppercase; }
.example-note span, .file-example small { margin-top: 6px; color: var(--body); font-size: 13px; line-height: 1.55; }
.file-example span { font-family: var(--mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.manifest-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 100px 140px; gap: 18px; padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.manifest-row strong { overflow-wrap: anywhere; }

.template-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; }
.download-card { padding: 42px 30px 42px 0; border-right: 1px solid var(--line); }
.download-card + .download-card { padding-left: 30px; }
.download-card:last-child { padding-right: 0; border-right: 0; }
.download-head { display: flex; gap: 15px; align-items: center; }
.download-head .section-label { margin-bottom: 4px; }
.download-head h2 { font-size: 22px; }
.download-card > p { margin-top: 18px; }
.download-card dl { margin: 22px 0 0; }
.download-card dl div { padding: 13px 0; border-top: 1px solid var(--line); }
.download-card dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.download-card dd { margin: 6px 0 0; color: var(--body); font-size: 13px; line-height: 1.5; }
.download-card .actions { align-items: flex-start; flex-direction: column; }
.note-band { margin: 38px 54px; padding: 18px 20px; border: 1px solid var(--line-strong); border-left: 3px solid var(--green); border-radius: 3px; background: var(--panel); }
.note-band strong { display: block; font-size: 13px; }
.note-band p { margin-top: 5px; font-size: 14px; }

.prose-block { font-size: 17px; }
.prose-block p + p { margin-top: 18px; }
.standards-grid, .contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.standards-grid article, .contact-grid article { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); }
.standards-grid article:last-child, .contact-grid article:last-child { border-right: 0; }
.standards-grid span, .contact-grid span { color: var(--green); font-family: var(--mono); font-size: 12px; }
.standards-grid h3, .contact-grid h3 { margin-top: 30px; }
.standards-grid p, .contact-grid p { margin-top: 9px; font-size: 14px; }
.contact-panel > a { display: inline-block; color: var(--navy); font-size: 23px; font-weight: 760; overflow-wrap: anywhere; }
.contact-panel > p:last-child { margin-top: 18px; font-size: 13px; }

.status-hero { align-items: center; min-height: 360px; }
.status-summary { display: flex; align-items: center; gap: 14px; padding: 20px 0 20px 28px; border-left: 1px solid var(--line-strong); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.status-summary strong, .status-summary small { display: block; }
.status-summary small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.status-directory { padding-top: 24px; padding-bottom: 24px; }
.status-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.status-line:first-child { border-top: 1px solid var(--line); }
.status-line h2 { font-size: 18px; }
.status-line p { margin-top: 5px; font-size: 14px; }
.status-line > span { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.article-page { padding: 0 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.breadcrumb a { color: var(--navy); }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 255px; gap: 40px; align-items: start; padding: 38px 0 54px; }
.article-toc { position: sticky; top: 24px; display: grid; padding-right: 24px; border-right: 1px solid var(--line); }
.article-toc p, .article-aside section > p:first-child { margin-bottom: 13px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.article-toc a { padding: 9px 0; color: var(--body); font-size: 13px; line-height: 1.35; }
.article-toc a:hover { color: var(--green); }
.article-content { width: 100%; max-width: 760px; margin: 0 auto; }
.article-header { padding: 6px 0 26px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 18px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.article-meta span:first-child { color: var(--green); font-weight: 800; }
.article-header h1 { font-size: 50px; line-height: 1.07; }
.article-header > p { margin-top: 17px; font-size: 18px; line-height: 1.58; }
.article-content section { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.article-content section h2 { font-size: 25px; }
.article-content section p { margin-top: 12px; }
.article-content ul, .article-content ol { display: grid; gap: 7px; margin: 15px 0 0; padding-left: 21px; color: var(--body); line-height: 1.55; }
.article-content pre { overflow-x: auto; margin: 17px 0 0; padding: 15px 17px; color: #17314d; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.field-list { display: grid; margin: 17px 0 0; }
.field-list div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.field-list div:last-child { border-bottom: 1px solid var(--line); }
.field-list dt { color: var(--ink); font-weight: 800; }
.field-list dd { margin: 0; color: var(--body); line-height: 1.55; }
.example-stack { display: grid; margin-top: 17px; border-top: 1px solid var(--line); }
.example-stack > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.example-stack code { color: var(--navy); font-weight: 750; overflow-wrap: anywhere; }
.example-stack p { margin-top: 5px !important; font-size: 14px; }
.callout { margin-top: 19px; padding: 15px 17px; border-left: 3px solid var(--green); background: var(--panel); }
.callout p { margin-top: 5px !important; font-size: 14px; }
.article-aside { position: sticky; top: 24px; display: grid; }
.article-aside section { padding: 0 0 22px 24px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-aside section + section { padding-top: 22px; }
.article-aside h2 { font-size: 16px; }
.article-aside p { margin-top: 9px; font-size: 13px; }
.article-aside code { display: block; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--navy); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.related-links { display: grid; gap: 8px; }
.related-links h2 { margin-bottom: 5px; }
.related-links a { color: var(--navy); font-size: 13px; line-height: 1.4; }
.related-links a:hover { color: var(--green); text-decoration: underline; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-pager a { padding: 17px; }
.article-pager a + a { border-left: 1px solid var(--line); text-align: right; }
.article-pager span, .article-pager b { display: block; }
.article-pager span { color: var(--muted); font-size: 11px; }
.article-pager b { margin-top: 5px; font-size: 13px; }
.article-pager a:hover b { color: var(--green); }

.legal-page { max-width: 850px; padding: 66px 54px 72px; }
.legal-page h1 { font-size: 52px; }
.legal-intro { margin-top: 20px; font-size: 19px; }
.legal-page section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal-page section h2 { font-size: 22px; }
.legal-page section p { margin-top: 10px; }
.legal-updated { margin-top: 25px; color: var(--muted); font-size: 13px; }
.not-found { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 70px; align-items: center; min-height: 620px; padding: 60px 54px; border-bottom: 1px solid var(--line); }
.not-found h1 { font-size: 54px; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 28px 54px 34px; color: var(--muted); font-size: 12px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: var(--ink); font-size: 13px; text-transform: uppercase; }
.site-footer span { margin-top: 5px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; }
}

@media (max-width: 1080px) {
  h1 { font-size: 52px; }
  .site-header { grid-template-columns: minmax(190px, auto) minmax(0, 1fr); padding: 14px 0 0; }
  .site-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 22px; min-height: 44px; border-top: 1px solid var(--line); }
  .header-action { align-self: center; }
  .library-hero, .page-hero, .not-found { grid-template-columns: 1fr; gap: 34px; }
  .library-hero { padding-top: 42px; }
  .start-band, .template-band { grid-template-columns: 220px repeat(2, 1fr); }
  .start-band .path-item:last-child, .template-band .template-item:last-child { grid-column: 2 / -1; border-top: 1px solid var(--line); }
  .method-band { grid-template-columns: 220px 1fr; }
  .method-rail { grid-template-columns: 1fr 1fr; }
  .method-rail li:nth-child(3), .method-rail li:nth-child(4) { border-top: 1px solid var(--line); }
  .method-rail li:nth-child(2):after { content: none; }
  .worked-band { grid-template-columns: 220px 1fr; }
  .worked-notes { grid-column: 2; border-top: 1px solid var(--line); border-left: 0; }
  .document-row { grid-template-columns: 36px minmax(220px, 1fr) 105px 100px 20px; }
  .document-row time { display: none; }
  .article-layout { grid-template-columns: 160px minmax(0, 1fr); }
  .article-aside { position: static; grid-column: 2; grid-template-columns: repeat(3, 1fr); }
  .article-aside section { border-top: 1px solid var(--line); border-bottom: 0; }
  .article-aside .related-links { grid-column: 1 / -1; }
  .standards-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .standards-grid article:nth-child(2), .contact-grid article:nth-child(2) { border-right: 0; }
  .standards-grid article:nth-child(3), .standards-grid article:nth-child(4), .contact-grid article:nth-child(3), .contact-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .template-library { grid-template-columns: 1fr; }
  .download-card, .download-card + .download-card { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 24px, 1320px); }
  body { font-size: 15px; }
  h1, .page-hero h1, .not-found h1 { font-size: 40px; line-height: 1.08; }
  h2 { font-size: 27px; }
  .site-header { gap: 12px; }
  .brand { font-size: 14px; }
  .site-logo { width: 31px; height: 31px; }
  .header-action { display: none; }
  .site-nav { grid-column: 1 / -1; gap: 13px 18px; flex-wrap: wrap; padding: 8px 0; }
  .site-nav a { min-height: 31px; font-size: 12px; }
  .lead { font-size: 17px; }
  .library-hero, .page-hero, .not-found { min-height: 0; padding: 38px 18px; }
  .library-hero { gap: 30px; }
  .library-hero .index-preview { display: none; }
  .index-tree { font-size: 11px; }
  .start-band, .template-band, .method-band, .worked-band { grid-template-columns: 1fr; }
  .band-intro { padding: 25px 18px; }
  .path-item, .template-item { border-top: 1px solid var(--line); border-left: 0; }
  .start-band .path-item:last-child, .template-band .template-item:last-child { grid-column: auto; }
  .method-band { padding: 0; }
  .method-rail { grid-template-columns: 1fr; padding: 0; }
  .method-rail li { padding: 22px 18px; border-top: 1px solid var(--line); border-left: 0; }
  .method-rail li:after { content: none; }
  .section { padding: 44px 18px; }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 16px; }
  .library-tabs { gap: 16px; margin-left: 0; overflow-x: auto; }
  .document-row { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 9px; padding: 12px 5px; }
  .document-row > span:not(.doc-mark), .document-row time { display: none; }
  .worked-band .folder-map { margin: 0 18px 24px; }
  .worked-notes { grid-column: auto; padding: 26px 18px; border-left: 0; }
  .page-hero { gap: 28px; }
  .summary-panel, .contact-panel, .status-summary { padding: 20px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .library-summary { width: 100%; }
  .guide-index-row { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 12px; min-height: 0; }
  .guide-facts { grid-column: 2; grid-row: 2; }
  .guide-index-row i { grid-column: 3; grid-row: 1; }
  .worked-callout, .closing-band { grid-template-columns: 1fr; padding: 30px 18px; }
  .lifecycle-list > li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .stage-rule { grid-column: 2; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .split-section { grid-template-columns: 1fr; gap: 30px; }
  .status-row, .manifest-row { grid-template-columns: 1fr; gap: 7px; }
  .status-head, .manifest-head { display: none; }
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-sidebar { padding: 24px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-sidebar ol { position: static; grid-template-columns: repeat(5, max-content); overflow-x: auto; }
  .workspace-sidebar a { display: block; padding-right: 18px; }
  .workspace-sidebar span { margin-right: 5px; }
  .workspace-main { padding: 30px 18px; }
  .large-map { font-size: 11px; }
  .workspace-stage { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .workspace-stage h2 { font-size: 23px; }
  .note-band { margin: 28px 18px; }
  .standards-grid, .contact-grid { grid-template-columns: 1fr; }
  .standards-grid article, .contact-grid article { min-height: 0; border-top: 1px solid var(--line); border-right: 0; }
  .article-page { padding: 0; }
  .breadcrumb { padding: 16px 8px; font-size: 11px; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .article-toc { position: static; grid-template-columns: repeat(2, 1fr); gap: 0 14px; padding: 14px; border: 1px solid var(--line); background: var(--panel); }
  .article-toc p { grid-column: 1 / -1; }
  .article-content { max-width: none; }
  .article-header h1 { font-size: 39px; }
  .article-header > p { font-size: 17px; }
  .article-aside { grid-column: auto; grid-template-columns: 1fr; }
  .article-aside section, .article-aside section + section { padding: 18px 0; border-top: 1px solid var(--line); border-left: 0; }
  .field-list div { grid-template-columns: 1fr; gap: 5px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager a + a { border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .legal-page { padding: 48px 18px 60px; }
  .legal-page h1 { font-size: 40px; }
  .site-footer { grid-template-columns: 1fr; padding: 25px 18px 32px; }
  .footer-links { justify-content: flex-start; }
}
