.architecture-page { background: #121719; }
.architecture-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem var(--pad); border-bottom: 1px solid var(--line); background: var(--ink); }
.architecture-header nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .82rem; }
.architecture-header nav a { text-underline-offset: .3em; }
.architecture-main { max-width: 1220px; margin: auto; padding: 0 var(--pad) 4rem; }
.architecture-intro { padding-block: clamp(2.5rem, 6vw, 5rem); }
.architecture-intro .kicker { color: var(--sun); }
.architecture-intro h1 { margin: 1.25rem 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.architecture-lead { max-width: 760px; color: #d4d8d7; font-size: 1.16rem; }
.draft-notice { max-width: 850px; border-left: 3px solid var(--sun); padding: .9rem 1.25rem; margin-block: 2rem; background: #202627; color: #e2e5df; }
.architecture-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 2.5rem; }
.architecture-index > a { padding: 1.8rem; border: 1px solid #536265; text-decoration: none; background: #1b2427; }
.architecture-index > a:hover { border-color: var(--sun); }
.architecture-index span, .architecture-index b { color: var(--sun-soft); font-size: .83rem; }
.architecture-index h2 { margin: .5rem 0; font-size: 2rem; }
.architecture-index p { color: #c9d0cf; }
.architecture-budget { color: #bcc5c4; font-size: .92rem; max-width: 840px; }
.architecture-budget a { color: var(--sun-soft); text-underline-offset: .2em; }
.architecture-document { margin-bottom: 3rem; padding: clamp(1.1rem, 4vw, 3rem); background: #f5f3ec; color: #182329; scroll-margin-top: 1rem; }
.document-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; border-bottom: 2px solid #bdc7c5; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.document-heading > div { min-width: 0; }
.document-heading .kicker { color: #775000; margin-top: 0; }
.document-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .5rem 0 0; }
.document-heading .button { flex-shrink: 0; letter-spacing: .03em; text-align: center; }
.document-body { overflow-wrap: anywhere; }
.document-body p, .document-body li { max-width: 83ch; }
.document-body p { margin-block: 1rem; }
.document-body a { color: #195c74; overflow-wrap: anywhere; text-underline-offset: .2em; }
.document-body h3 { font-family: inherit; font-size: 1.4rem; line-height: 1.35; margin: 2.7rem 0 1rem; letter-spacing: -.02em; }
.document-body h4 { margin: 1.6rem 0 .6rem; font-size: 1.1rem; }
.document-body li { margin-bottom: .6rem; }
.document-body ul, .document-body ol { padding-left: 1.3rem; }
.architecture-figure { margin: 1.7rem 0; border: 1px solid #a7b6b8; background: white; }
.diagram-scroll { overflow-x: auto; }
.diagram-scroll img { display: block; width: 100%; min-width: 800px; height: auto; }
.architecture-figure figcaption { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; padding: .85rem 1rem; border-top: 1px solid #d2dcda; font-size: .8rem; background: #e6ece9; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.table-scroll table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.table-scroll th { text-align: left; background: #20383e; color: white; font-weight: 650; }
.table-scroll td, .table-scroll th { padding: .85rem; vertical-align: top; border-bottom: 1px solid #c7d0ce; }
.table-scroll tbody tr:nth-child(2n) { background: #e8eeeb; }
.back-to-top { display: inline-block; margin-top: 1.5rem; color: #195c74; font-size: .9rem; }
.architecture-document :focus-visible { outline: 3px solid #8a5900; outline-offset: 3px; }
@media (max-width: 950px) {
  .architecture-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .architecture-index { grid-template-columns: 1fr; }
  .document-heading { flex-direction: column; }
  .architecture-main { padding-inline: 1rem; }
  .architecture-document { padding: 1.1rem; }
}
@media print {
  .architecture-page { background: white; color: #182329; }
  .architecture-header, .architecture-index, .back-to-top, .document-heading .button, .site-footer, .skip-link { display: none; }
  .architecture-main { padding: 0; max-width: none; }
  .architecture-intro { padding: 0; }
  .architecture-lead, .architecture-budget { color: #182329; }
  .architecture-document { break-before: page; padding: 0; background: white; }
  .diagram-scroll img { min-width: 0; }
  .table-scroll table { min-width: 0; }
  .architecture-figure, table { break-inside: avoid; }
}
