/* Chief Research — local assets only, no remote font dependency. */
.ocr-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.8 var(--sans);
  max-width: 100%;
}
.figure-card .tag {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .top-actions .help-launch {
    display: inline-flex !important;
    font-size: 11px;
    padding: 7px;
  }
  .brand small {
    display: none;
  }
}
:root {
  --ink: #152a38;
  --muted: #526674;
  --navy: #0c2232;
  --navy2: #173c50;
  --cyan: #007c91;
  --bright: #70d9e4;
  --paper: #f4f6f7;
  --line: #d8e1e5;
  --white: #fff;
  --green: #166c49;
  --yellow: #8c5a00;
  --red: #b73337;
  --gray: #596674;
  --radius: 10px;
  --sans:
    "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Segoe UI",
    sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--cyan);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  touch-action: manipulation;
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover,
.button:hover {
  background: #eaf3f5;
  border-color: var(--cyan);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}
.primary:hover {
  background: #006375;
  color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #007b99;
  outline-offset: 4px;
}
input,
select,
textarea {
  border: 1px solid #b5c3cd;
  background: #fff;
  border-radius: 5px;
  padding: 10px 12px;
  max-width: 100%;
  min-height: 44px;
}
label {
  font-size: 0.9rem;
  font-weight: 700;
}
h1,
h2,
h3,
h4 {
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.3rem);
  margin: 0.2em 0 0.55em;
  line-height: 1.4;
  max-width: 920px;
}
h2 {
  font-size: 1.6rem;
  margin: 0 0 20px;
}
h3 {
  font-size: 1.13rem;
  margin: 1.6em 0 0.65em;
}
p {
  margin: 0.5em 0 1.2em;
}
small,
.small {
  font-size: 0.8rem;
}
code,
.mono,
.eyebrow {
  font-family: var(--mono);
}
code {
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -70px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  height: 76px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  background: var(--navy);
  color: #fff;
  z-index: 30;
  border-bottom: 1px solid #284352;
}
.brand {
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  font: 700 25px var(--mono);
  border: 1px solid #70d9e4;
  padding: 3px 8px;
  color: var(--bright);
}
.brand strong {
  font-size: 14px;
  display: block;
  letter-spacing: 0.03em;
}
.brand small {
  display: block;
  color: #a4bdcc;
  font: 10px var(--mono);
  letter-spacing: 0.15em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-actions button,
.top-actions a {
  font-size: 13px;
  background: transparent;
  border-color: #4c6675;
  color: #e3eff3;
}
.top-actions button:hover,
.top-actions a:hover {
  background: #214457;
}
.top-actions .search-launch {
  width: 180px;
  justify-content: space-between;
  color: #c6d7e0;
}
kbd {
  border: 1px solid #5e7584;
  border-radius: 3px;
  font-size: 10px;
  padding: 1px 5px;
}
.sidebar {
  width: 246px;
  position: fixed;
  left: 0;
  top: 76px;
  bottom: 0;
  overflow-y: auto;
  padding: 27px 18px 24px 26px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 25;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6c7e89;
  margin: 18px 0 10px;
}
.sidebar a {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 13px;
  text-decoration: none;
  color: #536573;
  padding: 7px 9px;
  margin: 3px 0;
  border-radius: 5px;
  line-height: 1.6;
}
.sidebar a:hover {
  background: #eff5f6;
  color: var(--cyan);
}
.sidebar a[aria-current="page"] {
  color: #005e72;
  background: #e4f0f3;
  font-weight: 700;
}
.nav-num {
  font: 11px var(--mono);
  color: #7c929f;
}
.sidebar .nav-footer {
  font-size: 11px;
  margin: 26px 9px 4px;
  color: #687b88;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.mobile-toggle {
  display: none !important;
}
.layout {
  margin-left: 246px;
  padding-top: 76px;
  min-height: 100vh;
  min-height: 100dvh;
}
.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 46px 52px;
  min-width: 0;
}
.breadcrumbs {
  font-size: 11px;
  color: #607583;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.page-header {
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.page-header .lede {
  font-size: 17px;
  color: #486170;
  max-width: 830px;
  line-height: 1.95;
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d5dd;
  border-radius: 4px;
  padding: 2px 9px;
  color: #206175;
  background: #edf7f9;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 700;
  gap: 5px;
}
.tag-neutral {
  background: #edf0f3;
  color: #536472;
  border-color: #d6dfe5;
}
.tag-warning {
  color: #815000;
  background: #fff5db;
  border-color: #d8c083;
}
.meta-row {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #657583;
  margin-top: 20px;
}
.hero {
  color: #e6f4f7;
  background: var(--navy);
  padding: 36px 38px;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 20px;
  margin: 0 0 26px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-top: 20px;
}
.hero .eyebrow {
  color: #77d6df;
}
.hero .lede {
  color: #b4cbd6;
  font-size: 15px;
}
.hero .tag {
  background: #1b3a4b;
  border-color: #3c6175;
  color: #cee6ec;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.hero .button:not(.primary) {
  background: transparent;
  border-color: #466573;
  color: #e2eef3;
}
.hero .primary {
  background: #72d8e1;
  color: #0b2b3a;
  border-color: #72d8e1;
}
.blueprint {
  align-self: center;
  min-width: 0;
}
.blueprint svg {
  width: 100%;
  height: auto;
  display: block;
}
.blueprint figcaption {
  font-size: 10px;
  color: #adc4cd;
  text-align: left;
  margin: 0;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 32px;
}
.hero-strip > div {
  padding: 17px 21px;
  border-right: 1px solid var(--line);
}
.hero-strip > div:last-child {
  border: 0;
}
.hero-strip strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}
.hero-strip span {
  font-size: 11px;
  color: var(--muted);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin: 32px 0;
}
.intro-grid p {
  color: var(--muted);
}
.section-no {
  font: 12px var(--mono);
  color: var(--cyan);
  margin-bottom: 8px;
}
.read-path {
  list-style: none;
  padding: 0;
  margin: 0;
}
.read-path li {
  border-bottom: 1px solid var(--line);
}
.read-path a {
  display: flex;
  padding: 13px 0;
  text-decoration: none;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.read-path a span:first-child {
  font: 12px var(--mono);
  color: var(--cyan);
}
.read-path a span:last-child {
  margin-left: auto;
  color: var(--cyan);
}
.summary-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  background: #fff;
  padding: 25px 28px;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.summary-panel h2 {
  font-size: 1.1rem;
}
.takeaways {
  padding-left: 20px;
  margin: 0;
  color: #425a69;
  font-size: 14px;
}
.takeaways li {
  padding: 5px 0;
}
.fact-stack {
  display: grid;
  gap: 12px;
}
.fact {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.fact:last-child {
  border: 0;
  padding: 0;
}
.fact dt {
  font-size: 11px;
  color: var(--muted);
}
.fact dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.fact dd small {
  font-weight: 400;
  font-size: 10px;
  margin-left: 9px;
}
.content-section {
  margin: 35px 0 40px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 1.3rem;
  margin: 0;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
}
.source-copy {
  max-width: 900px;
}
.source-block {
  position: relative;
  margin-bottom: 20px;
}
.source-block p {
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  overflow-wrap: anywhere;
}
.source-ref {
  display: block;
  color: #617986;
  font-size: 10px;
  line-height: 1.7;
  margin-top: -8px;
  text-decoration: none;
}
.source-heading {
  font-size: 1.2rem;
  margin-top: 28px;
}
.notice {
  padding: 16px 20px;
  border: 1px solid #c3d3dc;
  background: #edf3f6;
  color: #3c596b;
  font-size: 13px;
  line-height: 1.9;
  margin: 20px 0;
}
.notice strong {
  display: block;
}
.notice.warning {
  background: #fff8e9;
  border-color: #dfc99d;
  color: #775924;
}
.table-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 14px 0;
}
.table-tools label {
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  margin: 12px 0 18px;
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.85;
  min-width: 610px;
}
.table-wrap caption {
  text-align: left;
  padding: 14px 17px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
th {
  background: #e9eff2;
  font-size: 12px;
  text-align: left;
  color: #284a5b;
}
td,
th {
  padding: 13px 16px;
  border-bottom: 1px solid #dce5e9;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-weight: 600;
}
tbody tr:hover {
  background: #f4f8fa;
}
th button {
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  justify-content: flex-start;
}
.scroll-hint {
  font-size: 11px;
  color: #647e8b;
}
.table-empty {
  padding: 15px;
  color: var(--muted);
}
.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.figure-card {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 15px;
  min-width: 0;
}
.figure-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: #edf3f6;
  display: block;
  overflow: hidden;
}
.figure-card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
.figure-card figcaption {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 13px;
}
.figure-card figcaption strong {
  display: block;
  margin: 6px 0;
}
.figure-card .source-ref {
  margin: 5px 0 0;
}
.missing-figure {
  background: repeating-linear-gradient(
    135deg,
    #f6f8f9,
    #f6f8f9 8px,
    #f0f4f6 8px,
    #f0f4f6 9px
  );
  padding: 24px 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: #687d8b;
  font-size: 12px;
}
.missing-figure b {
  font: 20px var(--mono);
  color: #92a3ad;
}
.figure-card.provided {
  grid-column: span 2;
}
.figure-card.provided img {
  max-height: 540px;
}
.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.timeline-tabs button {
  flex-direction: column;
  font-size: 11px;
  padding: 14px 5px;
  line-height: 1.5;
  border-radius: 5px;
}
.timeline-tabs b {
  font: 24px var(--mono);
  margin-bottom: 5px;
}
.timeline-tabs button[aria-selected="true"],
.arch-node[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.timeline-detail,
.arch-detail {
  padding: 25px;
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 16px;
}
.timeline-detail h3,
.arch-detail h3 {
  margin-top: 0;
}
.timeline-detail dl,
.arch-detail dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 10px;
  font-size: 14px;
}
.timeline-detail dt,
.arch-detail dt {
  font-weight: 700;
}
.timeline-detail dd,
.arch-detail dd {
  margin: 0;
}
.arch-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.arch-node {
  font-size: 13px;
  min-width: 115px;
  flex: 1;
  flex-direction: column;
  padding: 15px 10px;
}
.arch-node small {
  font: 10px var(--mono);
}
.arch-flow .arrow {
  color: #8299a6;
  font: 16px var(--mono);
}
.formula {
  font-family: var(--mono);
  background: #edf2f4;
  border: 1px solid #d2dce1;
  padding: 20px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.9;
  margin: 14px 0;
}
.formula-note {
  font-size: 13px;
  color: var(--muted);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.compare-grid article {
  padding: 25px;
  border-right: 1px solid var(--line);
}
.compare-grid article:last-child {
  border: 0;
}
.compare-grid h3 {
  margin-top: 0;
}
.compare-grid p {
  font-size: 13px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  margin: 20px 0;
}
.control {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.control label {
  font-size: 12px;
}
.control input,
.control select {
  width: 100%;
}
.persistent-demo {
  position: sticky;
  top: 76px;
  z-index: 15;
  padding: 11px 18px;
  background: #f7efda;
  color: #6d5123;
  border: 1px solid #d5be8c;
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0;
}
.monitor {
  background: var(--navy);
  color: #e5f0f4;
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.monitor-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #355464;
  padding-bottom: 15px;
}
.monitor-header h3 {
  margin: 0;
  font: 16px var(--mono);
}
.monitor-header .status {
  margin-left: auto;
}
.monitor-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #b5cbd6;
  margin: 15px 0;
}
.monitor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.monitor-stats small {
  display: block;
  color: #b2cad5;
  font-size: 11px;
}
.monitor-stats strong {
  font: 24px var(--mono);
  display: block;
  margin: 8px 0;
}
.monitor-stats em {
  font-style: normal;
  font-size: 11px;
  color: #b2cad5;
}
.status {
  padding: 3px 9px;
  display: inline-block;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  background: #e7edf0;
  color: var(--gray);
}
.status.normal {
  background: #e1f4ea;
  color: var(--green);
}
.status.warning {
  background: #fff0cb;
  color: var(--yellow);
}
.status.alarm {
  background: #ffe6e6;
  color: var(--red);
}
.chart {
  border: 1px solid var(--line);
  padding: 16px;
  background: #fff;
  min-width: 0;
  margin: 12px 0;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart h3 {
  font-size: 13px;
  margin: 0 0 10px;
}
.chart p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}
.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.event-detail {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  font-size: 13px;
}
.event-detail h3 {
  margin: 0 0 10px;
}
.sim-board {
  background: #fff;
  border: 1px solid var(--line);
  padding: 25px;
}
.sim-summary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.sim-summary .clock {
  font: 28px var(--mono);
}
.votes {
  display: flex;
  gap: 7px;
  margin: 17px 0;
}
.vote {
  border: 1px solid #c7d4dc;
  background: #eef3f5;
  min-width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font: 13px var(--mono);
  border-radius: 5px;
}
.vote.over {
  background: #fff2ce;
  border-color: #d4b255;
  color: #855800;
}
.sim-buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.sim-buttons button {
  font-size: 12px;
}
.sim-log {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 12px 18px;
  font: 12px/1.9 var(--mono);
  background: #f2f5f7;
}
.budget-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 2fr 110px;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  margin: 15px 0;
}
.budget-track {
  height: 12px;
  background: #e3ebef;
}
.budget-fill {
  height: 100%;
  background: #107f95;
}
.budget-row strong {
  text-align: right;
  font-family: var(--mono);
}
.budget-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.budget-total strong {
  font: 30px var(--mono);
}
.storage-output {
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.8;
  background: #edf4f6;
  padding: 20px;
  border: 1px solid var(--line);
  display: block;
}
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.coverage-table td {
  font-size: 11px;
}
.page-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  margin-top: 50px;
}
.page-pager a {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
}
.page-pager a:last-child {
  text-align: right;
}
.page-pager small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}
.site-footer {
  font-size: 11px;
  color: #607583;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 25px 0;
}
.related {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.related a {
  font-size: 12px;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  max-width: min(820px, 94vw);
  width: 820px;
  max-height: 88vh;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 90px #001a3155;
}
.dialog::backdrop {
  background: #051824bb;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.dialog-header h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-body {
  padding: 24px;
}
.dialog input[type="search"] {
  width: 100%;
}
.search-results {
  list-style: none;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.search-results li {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.search-results a {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.search-results p {
  font-size: 12px;
  margin: 5px 0;
  color: var(--muted);
}
.lightbox {
  width: 1200px;
  max-width: 96vw;
}
.lightbox .image-stage {
  overflow: auto;
  max-height: 67vh;
  background: #e7edef;
  text-align: center;
  padding: 14px;
}
.lightbox img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.lightbox img.zoomed {
  max-width: none;
}
.lightbox-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 22px;
  font-size: 12px;
}
.search-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.no-js-note {
  padding: 15px;
  background: #fff4d8;
  color: #715926;
}
details {
  border: 1px solid var(--line);
  padding: 15px 20px;
  background: #fff;
  margin: 16px 0;
}
summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 30px;
}
details p {
  font-size: 13px;
}
.metric-results {
  font-family: var(--mono);
  font-size: 20px;
  padding: 15px;
  background: #eaf1f4;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chips button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.empty-note {
  color: var(--muted);
  padding: 20px;
}
[hidden] {
  display: none !important;
}
.noscript-nav {
  padding: 20px;
}
.noscript-nav a {
  margin: 5px;
  display: inline-block;
}
.section-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.section-index a {
  padding: 15px 18px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.section-index a span {
  color: var(--cyan);
  font: 12px var(--mono);
}
.section-index a:hover {
  background: #edf4f6;
}
html:not(.js) .js-only {
  display: none !important;
}
@media (min-width: 1600px) {
  .page-wrap {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 216px;
    padding-left: 16px;
  }
  .layout {
    margin-left: 216px;
  }
  .page-wrap {
    padding: 25px 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .blueprint {
    max-width: 450px;
    margin: 0;
  }
  .hero h1 {
    max-width: 650px;
  }
  .trend-grid {
    grid-template-columns: 1fr;
  }
  .hero-strip > div {
    padding: 15px;
  }
  .figure-grid {
    grid-template-columns: 1fr;
  }
  .figure-card.provided {
    grid-column: auto;
  }
}
@media (max-width: 850px) {
  .topbar {
    padding: 0 18px;
    height: 68px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    top: 68px;
    width: 260px;
    box-shadow: 18px 0 60px #05233325;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .layout {
    margin-left: 0;
    padding-top: 68px;
  }
  .mobile-toggle {
    display: inline-flex !important;
  }
  .top-actions .search-launch {
    width: auto;
  }
  .top-actions kbd,
  .top-actions .desktop-label,
  .top-actions .source-top {
    display: none;
  }
  .persistent-demo {
    top: 68px;
  }
  .page-wrap {
    padding: 25px 28px;
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero .lede {
    font-size: 13px;
  }
  .hero {
    padding: 28px;
    gap: 14px;
  }
  .hero .blueprint {
    margin: 0;
  }
  .top-actions button {
    padding: 8px 11px;
  }
  .top-actions {
    gap: 5px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .page-wrap {
    padding: 20px 18px 30px;
  }
  .topbar {
    padding: 0 13px;
    gap: 10px;
  }
  .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 12px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .brand-mark {
    font-size: 19px;
    padding: 3px 5px;
  }
  .top-actions .help-launch {
    display: none;
  }
  .hero {
    display: block;
    padding: 24px;
    margin-left: -18px;
    margin-right: -18px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero .blueprint {
    max-width: 350px;
    margin: 24px auto 0;
  }
  .hero-strip {
    grid-template-columns: 1fr;
  }
  .hero-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    display: flex;
    align-items: baseline;
    gap: 15px;
  }
  .hero-strip strong {
    font-size: 14px;
  }
  .summary-panel,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .summary-panel {
    padding: 20px;
  }
  .fact-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .fact dd {
    font-size: 15px;
  }
  .timeline-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline-tabs button {
    padding: 11px;
  }
  .timeline-detail,
  .arch-detail {
    padding: 18px;
  }
  .timeline-detail dl,
  .arch-detail dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .timeline-detail dd,
  .arch-detail dd {
    margin: 0 0 12px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .monitor {
    padding: 18px;
  }
  .monitor-stats {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .monitor-stats strong {
    font-size: 23px;
  }
  .monitor-header .status {
    margin-left: 0;
  }
  .budget-row {
    grid-template-columns: 1fr 90px;
    gap: 7px;
  }
  .budget-row .budget-track {
    grid-column: 1;
    grid-row: auto;
  }
  .budget-row strong {
    grid-column: 2;
    grid-row: auto;
  }
  .budget-row > span {
    grid-column: 1 / -1;
  }
  .budget-total strong {
    font-size: 23px;
  }
  .section-index {
    grid-template-columns: 1fr;
  }
  .page-pager {
    gap: 10px;
  }
  .page-pager a {
    padding: 13px;
    font-size: 12px;
  }
  .source-block p {
    text-align: left;
    font-size: 14px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading span {
    max-width: 100px;
    text-align: right;
  }
  .controls {
    gap: 10px;
  }
  .control {
    min-width: 130px;
  }
  .sim-board {
    padding: 18px;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-header {
    padding: 14px 18px;
  }
  .source-heading {
    font-size: 18px;
  }
  .breadcrumbs {
    margin-bottom: 18px;
  }
  .figure-card {
    padding: 12px;
  }
  .figure-grid {
    gap: 14px;
  }
  .formula {
    font-size: 13px;
  }
  .sim-buttons button {
    flex: 1;
  }
  .control input[type="range"] {
    padding: 0;
  }
  .page-header .lede {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .topbar,
  .sidebar,
  .page-pager,
  .js-only,
  .table-tools,
  .controls,
  button,
  .site-footer {
    display: none !important;
  }
  .layout {
    padding: 0;
    margin: 0;
  }
  .page-wrap {
    max-width: none;
    padding: 0;
  }
  .hero {
    color: #111;
    background: #fff;
  }
  .hero h1,
  .hero .lede {
    color: #111;
  }
  .source-copy {
    max-width: none;
  }
  .figure-card,
  .content-section {
    break-inside: avoid;
  }
  .table-wrap {
    overflow: visible;
  }
  .persistent-demo {
    position: static;
  }
  .dialog {
    display: none;
  }
  a {
    color: #222;
  }
}
