:root {
  --paper: #EDF1F4;
  --grid: #E2E8ED;
  --grid-major: #D7DFE6;
  --ink: #232A30;
  --line: #C7D2DB;
  --muted: #5C6B77;
  --accent: #A63226;
  --accent-2: #3E4A54;
  --steelhui: #2A4035;
  --plate: #F3F6F8;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell,
.shell-wide,
.shell-narrow {
  width: calc(100% - 48px);
  margin-inline: auto;
}

.shell {
  max-width: 1180px;
}

.shell-wide {
  max-width: 1080px;
}

.shell-narrow {
  max-width: 760px;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

.brand-note,
.file-status,
.drawer-label,
.article-meta,
.section-index,
.contents-label,
.record-header span,
.record-labels,
.record-footer,
.package-code,
.footer-cell span,
.closing-code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand-note {
  color: var(--muted);
}

.file-status {
  display: grid;
  grid-template-columns: auto auto auto;
  border: 1px solid var(--line);
  background: var(--plate);
}

.file-status span,
.file-status strong {
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  font-weight: 400;
}

.file-status strong {
  color: var(--accent);
}

.file-status span:last-child {
  border-right: 0;
}

main {
  overflow: hidden;
}

.article-header {
  position: relative;
  margin-top: 72px;
  padding: 74px 72px 58px;
  text-align: center;
}

.card-plate {
  background: var(--plate);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(35, 42, 48, 0.06);
}

.card-plate::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.punch-hole {
  position: absolute;
  top: 13px;
  right: 18px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  background: var(--paper);
}

.drawer-label,
.section-index {
  margin: 0 0 18px;
  color: var(--muted);
}

.drawer-label span,
.section-index::first-letter {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  max-width: 680px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  font-size: 58px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 22px;
  font-size: 34px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.dek {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--accent-2);
}

.short-red-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 34px auto 0;
  background: var(--accent);
}

.answer-band {
  padding: 96px 0 84px;
}

.answer-band h2 {
  max-width: 680px;
}

.answer-band p:not(.section-index),
.prose section > p,
.limits-note p {
  margin: 0 0 20px;
}

.answer-band p:not(.section-index):first-of-type {
  font-size: 19px;
}

.responsibility-map {
  padding: 40px 0 0;
  border-top: 2px solid var(--accent);
  background: var(--plate);
}

.responsibility-map .section-heading {
  padding: 0 34px 22px;
}

.responsibility-map .section-heading h2 {
  margin-bottom: 0;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.responsibility-cell {
  min-width: 0;
  padding: 30px 34px 34px;
  border-right: 1px solid var(--line);
}

.responsibility-cell:last-child {
  border-right: 0;
}

.responsibility-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.typed-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.contents-strip {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  margin-top: 84px;
  margin-bottom: 100px;
  padding: 28px 30px;
  background: var(--plate);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.contents-label {
  color: var(--accent-2);
}

.contents-strip ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 22px;
  font-family: var(--mono);
  font-size: 13px;
}

.prose > section {
  margin-bottom: 104px;
  scroll-margin-top: 36px;
}

.prose > section > h2::after,
.answer-band h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 24px;
  background: var(--accent);
}

.prose section > p {
  max-width: 68ch;
}

.prose section > p a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 600;
  text-decoration: none;
}

.record-note {
  margin: 34px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--plate);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
}

.record-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.record-note p {
  margin: 0;
}

.visual-wide {
  width: min(980px, calc(100vw - 32px));
  margin: 8px 0 104px 50%;
  transform: translateX(-50%);
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.inspection-record {
  position: relative;
  padding: 30px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.inspection-record::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
}

.record-header {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  border: 1px solid var(--line);
}

.record-header > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.record-header > div:last-child {
  border-right: 0;
}

.record-header span {
  color: var(--muted);
}

.record-header strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.record-columns {
  display: grid;
  grid-template-columns: 0.6fr 1.5fr 1.45fr 1.2fr 1.1fr;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.record-columns > span {
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.record-columns > span:last-child {
  border-right: 0;
}

.record-labels {
  color: var(--paper);
  background: var(--ink);
}

.record-labels > span {
  font-size: 11px;
}

.state-pass {
  color: var(--accent-2);
  font-weight: 600;
}

.state-review {
  color: var(--accent);
  font-weight: 600;
}

.record-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 17px;
  color: var(--muted);
}

.characteristic-register {
  padding: 34px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.register-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.register-title-row h2 {
  margin-bottom: 0;
}

.rubber-stamp {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 2px double var(--accent);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  transform: rotate(-7deg);
}

.register-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.1fr 2fr 0.8fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.register-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.register-head {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
}

.mono,
.register-state {
  font-family: var(--mono);
}

.register-state {
  color: var(--accent-2);
  font-size: 11px !important;
  font-weight: 600;
}

.register-state.open {
  color: var(--accent);
}

.register-state.neutral {
  color: var(--muted);
}

.visual-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.bubble-plot {
  padding: 30px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.plot-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.plot-title span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.plot-title strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.bubble-field {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  border: 1px solid var(--line);
}

.bubble-field::before,
.bubble-field::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: var(--accent-2);
}

.bubble-field::before {
  left: 54px;
  bottom: 48px;
  width: calc(100% - 88px);
  height: 1px;
}

.bubble-field::after {
  top: 30px;
  left: 54px;
  width: 1px;
  height: calc(100% - 78px);
}

.axis {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.axis-y {
  top: 24px;
  left: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.axis-x {
  right: 26px;
  bottom: 18px;
}

.risk-bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  background: rgba(237, 241, 244, 0.94);
  text-align: center;
}

.risk-bubble span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
}

.risk-bubble strong {
  max-width: 13ch;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
}

.bubble-a {
  top: 46px;
  right: 10%;
  width: 180px;
  height: 180px;
  border-color: var(--accent);
}

.bubble-b {
  top: 92px;
  left: 31%;
  width: 154px;
  height: 154px;
}

.bubble-c {
  right: 31%;
  bottom: 67px;
  width: 136px;
  height: 136px;
}

.bubble-d {
  bottom: 64px;
  left: 12%;
  width: 118px;
  height: 118px;
  border-color: var(--line);
}

.plot-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.plot-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plot-key i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
}

.plot-key .key-high {
  border-color: var(--accent);
}

.plot-key .key-low {
  border-color: var(--line);
}

.evidence-table {
  padding: 32px;
  overflow-x: auto;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.evidence-table h2 {
  margin-bottom: 24px;
}

.evidence-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.evidence-table th,
.evidence-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.evidence-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
}

.package-index {
  padding: 34px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.package-index-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.package-index-header span:first-child {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.package-index-header h2 {
  margin: 7px 0 0;
}

.package-code {
  color: var(--muted);
}

.package-files {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.package-files li {
  display: grid;
  grid-template-columns: 42px minmax(180px, 0.9fr) minmax(260px, 1.4fr);
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.package-files li > span,
.package-files code {
  font-family: var(--mono);
  font-size: 12px;
}

.package-files li > span {
  color: var(--accent);
}

.package-files strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.package-files code {
  color: var(--muted);
  white-space: normal;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 34px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.checklist-grid > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px;
  background: rgba(243, 246, 248, 0.84);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checklist-grid span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.checklist-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.limits-note {
  padding: 36px;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--accent);
}

.limits-note .section-index {
  color: #B9C4CC;
}

.limits-note h2::after {
  background: var(--accent) !important;
}

#references {
  padding-top: 8px;
  border-top: 8px dotted var(--line);
}

.references-list {
  margin: 0;
  padding-left: 22px;
}

.references-list li {
  margin-bottom: 18px;
  padding-left: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.references-list a {
  overflow-wrap: anywhere;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
}

.closing-band {
  color: var(--paper);
  background: var(--ink);
}

.closing-inner {
  min-height: 168px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  align-items: center;
}

.closing-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 42px;
}

.closing-inner p {
  max-width: 740px;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.28;
}

.closing-code {
  color: #B9C4CC;
}

.catalog-footer {
  padding: 52px 0 64px;
  background: var(--paper);
}

.footer-card {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1fr;
  background: var(--plate);
  border-top: 3px solid var(--accent);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.footer-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-cell:nth-child(3) {
  border-right: 0;
}

.footer-cell:nth-child(4) {
  grid-column: span 2;
}

.footer-cell:nth-child(4),
.footer-cell:nth-child(5) {
  border-bottom: 0;
}

.footer-cell:nth-child(5) {
  border-right: 0;
}

.footer-cell span {
  color: var(--muted);
}

.footer-cell strong,
.footer-cell a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.family-cell a {
  color: var(--steelhui);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .article-header {
    margin-top: 44px;
    padding: 62px 44px 48px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .responsibility-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .responsibility-cell:last-child {
    border-bottom: 0;
  }

  .record-columns {
    grid-template-columns: 0.6fr 1.5fr 1.35fr 1.1fr 1.1fr;
  }

  .record-columns > span {
    padding: 10px 8px;
    font-size: 10px;
  }

  .bubble-a {
    right: 5%;
  }

  .bubble-b {
    left: 24%;
  }

  .package-files li {
    grid-template-columns: 38px 1fr;
  }

  .package-files code {
    grid-column: 2;
  }

  .footer-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cell:nth-child(2),
  .footer-cell:nth-child(4) {
    border-right: 0;
  }

  .footer-cell:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .footer-cell:nth-child(4) {
    grid-column: auto;
  }

  .footer-cell:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 660px) {
  .shell,
  .shell-wide,
  .shell-narrow {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-note {
    display: none;
  }

  .file-status span:first-child,
  .file-status span:last-child {
    display: none;
  }

  .file-status strong {
    border-right: 0;
  }

  .article-header {
    padding: 56px 24px 40px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 27px;
  }

  .dek {
    font-size: 18px;
  }

  .article-meta {
    flex-direction: column;
  }

  .answer-band {
    padding: 70px 0 62px;
  }

  .responsibility-map {
    width: 100%;
  }

  .contents-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 62px;
    margin-bottom: 76px;
    padding: 22px;
  }

  .contents-strip ol {
    grid-template-columns: 1fr;
  }

  .prose > section {
    margin-bottom: 78px;
  }

  .inspection-record,
  .characteristic-register,
  .bubble-plot,
  .evidence-table,
  .package-index {
    padding: 20px;
  }

  .record-header {
    grid-template-columns: 1fr;
  }

  .record-header > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .record-header > div:last-child {
    border-bottom: 0;
  }

  .record-columns {
    grid-template-columns: 54px 1fr;
  }

  .record-columns > span {
    min-height: 42px;
    padding: 10px;
    font-size: 11px;
  }

  .record-columns > span:nth-child(even) {
    border-right: 0;
  }

  .record-columns > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .record-labels {
    display: none;
  }

  .record-footer,
  .register-title-row,
  .plot-title,
  .package-index-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .register-grid {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .register-grid > div:nth-child(4n + 3),
  .register-grid > div:nth-child(4n + 4) {
    border-top: 0;
  }

  .register-head:nth-child(3),
  .register-head:nth-child(4) {
    display: none;
  }

  .bubble-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .bubble-field::before,
  .bubble-field::after,
  .axis {
    display: none;
  }

  .risk-bubble {
    position: static;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    padding: 12px;
  }

  .risk-bubble strong {
    font-size: 10px;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .limits-note {
    padding: 28px 22px;
  }

  .closing-inner {
    grid-template-columns: 46px 1fr;
    padding: 38px 0;
  }

  .closing-inner p {
    font-size: 24px;
  }

  .closing-code {
    grid-column: 2;
  }

  .footer-card {
    grid-template-columns: 1fr;
  }

  .footer-cell,
  .footer-cell:nth-child(2),
  .footer-cell:nth-child(3),
  .footer-cell:nth-child(4),
  .footer-cell:nth-child(5) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-cell:last-child {
    border-bottom: 0;
  }
}

@media (prefers-contrast: more) {
  body,
  .bubble-field {
    background-image: none;
  }

  :root {
    --line: #7D8C98;
    --muted: #3F4B55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body,
  .bubble-field {
    background-image: none;
  }

  .site-header,
  .closing-band,
  .catalog-footer {
    break-inside: avoid;
  }

  .visual-wide {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}

/* Restrained site shell for Home, Resources, and reusable article routes. */
.brand-lockup {
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 0 6px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-contact,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.header-contact:hover,
.header-contact:focus-visible,
.file-button:hover,
.file-button:focus-visible {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.page-hero {
  position: relative;
  margin-top: 72px;
  padding: 74px 72px 62px;
}

.page-hero::before {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  content: "";
}

.page-hero h1 {
  max-width: 780px;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.page-hero .dek {
  max-width: 720px;
  margin-right: 0;
  margin-left: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 34px;
}

.file-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-section {
  margin-top: 96px;
  margin-bottom: 96px;
}

.site-section .section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.site-section .section-heading h2 {
  margin-bottom: 0;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.archive-card {
  min-width: 0;
  padding: 30px;
  background: var(--plate);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-card > span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px solid var(--accent);
  border-left: 1px solid var(--line);
}

.field-grid > div {
  min-height: 130px;
  padding: 20px;
  background: rgba(243, 246, 248, 0.9);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field-grid span,
.field-grid strong {
  display: block;
}

.field-grid span {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.field-grid strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.boundary-ledger {
  padding: 34px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.6fr);
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.ledger-row span {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.ledger-row p {
  margin: 0;
  color: var(--muted);
}

.resource-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
  padding: 38px;
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.resource-callout h2 {
  max-width: 680px;
}

.resource-callout p:not(.section-index) {
  max-width: 68ch;
  margin: 0;
  color: #C7D2DB;
}

.resource-callout .section-index {
  color: #B9C4CC;
}

.resource-callout .file-button {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.resource-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 26px;
  align-items: start;
  padding: 32px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  text-decoration: none;
}

.resource-entry:hover,
.resource-entry:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
}

.resource-entry h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.resource-entry p {
  margin: 0;
  color: var(--muted);
}

.resource-number,
.resource-state {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.resource-state {
  color: var(--muted);
  text-align: right;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 12px;
}

.rendered-article-body {
  padding-bottom: 96px;
}

.article-page .article-body > .article-hero-media {
  width: min(980px, calc(100% - 48px));
  margin: 48px auto 0;
  padding: 20px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.article-page .article-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.rendered-article-body > h2 {
  margin-top: 76px;
  scroll-margin-top: 36px;
}

.rendered-article-body > h2::after {
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 24px;
  background: var(--accent);
  content: "";
}

.rendered-article-body > p,
.rendered-article-body > ul,
.rendered-article-body > ol,
.rendered-article-body > table,
.rendered-article-body > blockquote {
  max-width: 68ch;
}

.rendered-article-body table {
  width: 100%;
  border-collapse: collapse;
}

.rendered-article-body th,
.rendered-article-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 860px) {
  .header-inner {
    gap: 18px;
  }

  .header-contact {
    padding-inline: 10px;
  }

  .route-grid,
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-entry {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .resource-state {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 660px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .header-contact {
    margin-left: auto;
  }

  .page-hero {
    margin-top: 44px;
    padding: 58px 24px 42px;
  }

  .route-grid,
  .field-grid,
  .resource-callout,
  .resource-entry {
    grid-template-columns: 1fr;
  }

  .site-section {
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .boundary-ledger {
    padding: 26px 22px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resource-callout {
    align-items: start;
    padding: 28px 22px;
  }

  .resource-callout .file-button {
    justify-self: start;
  }

  .resource-entry {
    padding: 24px;
  }

  .resource-state {
    grid-column: auto;
  }
}

/* Dedicated Articles entry below the existing cover. */
[data-articles-entry] { border-top: 1px solid var(--line, var(--hairline, #d5d5d5)); border-bottom: 1px solid var(--line, var(--hairline, #d5d5d5)); }
.articles-entry-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.articles-entry-inner h2 { max-width: 620px; margin: 10px 0 0; }
.articles-entry-inner p:not(.eyebrow) { max-width: 620px; margin: 12px 0 0; color: var(--muted, #657078); }
.articles-entry-link { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; border: 1px solid currentColor; padding: 12px 16px; text-decoration: none; }
.articles-entry-link:hover { background: currentColor; color: var(--white, #fff); }
@media (max-width: 720px) { .articles-entry-inner { width: min(100% - 32px, 1180px); align-items: flex-start; flex-direction: column; } }

