:root {
  --ink: #1b2f48;
  --ink-soft: #5f6f81;
  --deep: #20377e;
  --deep-2: #2d439c;
  --teal: #2d439c;
  --teal-soft: #edf1fa;
  --sand: #f6f7f9;
  --line: #d9e0e8;
  --orange: #b9854c;
  --warn: #9d602e;
  --warn-soft: #fbf2e6;
  --radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

body { background: var(--sand); }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible { outline-color: #2d439c; }

/* The navigation reads like an index to a technical dossier. */
.sidebar {
  width: 272px;
  flex-basis: 272px;
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 26px 16px 20px;
  scrollbar-color: #c6d0e1 transparent;
}
.brand {
  gap: 11px;
  margin: 0 8px 28px;
  padding: 0 4px 25px;
  border-bottom: 1px solid var(--line);
}
.brand-symbol { display: block; width: 27px; height: 47px; object-fit: contain; flex: 0 0 27px; }
.brand-copy { gap: 0; }
.brand-copy strong { color: #172d4b; font-size: 21px; letter-spacing: -.045em; font-weight: 700; }
.brand-copy small { color: #4b5e7b; font-size: 9px; letter-spacing: .1em; font-weight: 700; }
.sidebar-caption { color: #718096; margin-bottom: 10px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; }
.sidebar-group { margin-bottom: 24px; }
.nav-overview, .step-link { color: #43536c; border-radius: 0; }
.nav-overview { height: 41px; padding: 0 11px; font-size: 13px; }
.nav-icon { font-size: 19px; width: 21px; color: #4b5f99; }
.nav-arrow { color: #7080a2; }
.nav-overview:hover, .step-link:hover { color: #263b91; background: #f2f4fa; }
.nav-overview.is-active, .step-link.is-active {
  color: #243b8d;
  background: #eef1fa;
  box-shadow: inset 3px 0 #2d439c;
}
.case-select {
  background: #fff;
  border: 1px solid #cbd4e3;
  border-radius: 2px;
  color: #1c2f4b;
  font-size: 12px;
  padding: 11px;
}
.case-mini { color: #65748a; }
.case-mini-dot { border-radius: 0; width: 11px; flex-basis: 11px; height: 2px; background: #354aa1; margin-top: 7px; }
.step-list { gap: 1px; }
.step-link { padding: 9px 8px; }
.step-number {
  border: 0;
  border-radius: 0;
  color: #6b7b98;
  font-family: Consolas, monospace;
  font-size: 11px;
}
.step-link.is-active .step-number { color: #243b8d; border: 0; background: transparent; }
.step-copy strong { color: inherit; font-size: 12px; }
.step-copy small { color: #8490a0; }
.step-indicator { border: 1px solid #bbc5d4; border-radius: 0; }
.step-indicator--done { color: #fff; background: #2d439c; border-color: #2d439c; }
.sidebar-bottom { border-top-color: var(--line); }
.sidebar-bottom-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #7080aa;
  color: #304499;
  font-family: Georgia, serif;
  font-size: 15px;
}
.sidebar-bottom strong { color: #34465f; }
.sidebar-bottom small { color: #758397; }

.topbar { height: 62px; flex-basis: 62px; background: #fff; }
.breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #607086; }
.breadcrumb span { color: #b1bfd0; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.language-switch { display: flex; border: 1px solid #cbd4e5; background: #fff; }
.language-option { min-width: 48px; padding: 7px 9px; border: 0; background: transparent; color: #53627a; font-size: 10px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.language-option + .language-option { border-left: 1px solid #cbd4e5; }
.language-option:hover { background: #edf1fa; color: #20377e; }
.language-option.is-active, .language-option.is-active:hover { background: #2d439c; color: #fff; }
.topbar-right { color: #354a91; font-size: 10px; letter-spacing: .11em; }
.demo-dot { display: none; }
.topbar-version { border: 1px solid #cbd4e5; border-radius: 2px; background: #f3f5fa; color: #5e6d84; }
.site-footer { color: #7d899b; border-top: 1px solid var(--line); }

/* Overview: typography and a measured process drawing carry the page. */
.overview { padding-top: 31px; }
.hero {
  min-height: 425px;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  background: #fff;
  color: var(--ink);
  border: 1px solid #d5deeb;
  border-top: 4px solid #2d439c;
  border-radius: 0;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(34px, 4vw, 57px); }
.hero-kicker { color: #2d439c; font-size: 10px; letter-spacing: .17em; }
.hero h1 {
  max-width: 620px;
  margin: 40px 0 21px;
  color: #182e49;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(35px, 3.65vw, 54px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.14;
}
.hero h1 em { color: #2d439c; font-style: normal; }
.hero p { max-width: 490px; margin: 0 0 27px; color: #617086; font-size: 14px; line-height: 1.65; }
.hero-graphic { min-height: 420px; background: #f0f3f8; border-left: 1px solid #d5deeb; }
.hero-graphic::after { display: none; }
.hero-graphic img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hero-note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: auto;
  padding-top: 34px;
  color: #2d439c;
  font-family: Consolas, monospace;
  font-size: 22px;
}
.hero-note span { color: #8090a8; font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.button { border-radius: 2px; font-size: 12px; transition: background .18s, border-color .18s; }
.button:not(:disabled):hover { transform: none; box-shadow: none; }
.button--primary, .button--dark { background: #2d439c; color: #fff; }
.button--primary:not(:disabled):hover, .button--dark:not(:disabled):hover { background: #1e317d; }
.button--light { background: #f2f4fa; color: #263b89; border-color: #cbd4e4; }
.button--outline { border-color: #aebcd2; color: #263b89; background: #fff; }
.section-heading { margin-top: 46px; }
.quick-guide { margin-top: 20px; padding: 18px 22px; border: 1px solid #d5deeb; background: #fff; }
.quick-guide .eyebrow { margin: 0 0 13px; color: #354aa1; }
.quick-guide > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quick-guide span { color: #66758b; font-size: 12px; line-height: 1.5; }
.quick-guide strong { display: block; margin-bottom: 3px; color: #273d5d; font-size: 12px; }
.section-heading .eyebrow { color: #354aa1; }
.section-heading h2 { max-width: 630px; font: 600 clamp(25px, 2.5vw, 33px)/1.2 Arial, sans-serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 355px; color: #738094; }
.scenario-grid { gap: 14px; }
.scenario-card {
  min-height: 317px;
  border-color: #d9e0e9;
  border-radius: 0;
  padding: 19px 20px 0;
}
.scenario-card:hover { transform: none; border-color: #2d439c; box-shadow: inset 0 3px #2d439c; }
.scenario-id { color: #445aa3; font-family: Consolas, monospace; font-size: 10px; }
.scenario-open { color: #354ba0; }
.scenario-art { display: block; height: 106px; margin: 18px -20px 19px; border-top: 1px solid #e0e6ef; border-bottom: 1px solid #e0e6ef; }
.scenario-art img { display: block; width: 100%; height: 100%; object-fit: contain; background: #eef2f8; }
.scenario-card > strong { font: 600 22px/1.2 Arial, sans-serif; letter-spacing: -.03em; }
.scenario-sub { color: #6b7a8f; font-size: 12px; line-height: 1.45; }
.scenario-bottom { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; color: #7a889b; border-top-color: #e2e7ef; }
.scenario-bottom span:last-child { color: #2d439c; }
.principles { border-top-color: #cbd5e2; margin-top: 38px; }
.principle-number { color: #354aa1; font-family: Consolas, monospace; }
.principle strong { color: #263b57; }
.principle p { color: #6f7f93; }

/* Working pages use square paper panels and restrained status cues. */
.workspace { padding-top: 34px; }
.case-header { padding-bottom: 25px; border-bottom: 1px solid #ccd6e4; }
.case-kicker { color: #354aa1; font-family: Consolas, monospace; }
.case-header h1 { font: 600 clamp(31px, 3vw, 43px)/1.16 Arial, sans-serif; letter-spacing: -.04em; }
.case-header p { color: #718096; }
.progress-card { border-radius: 0; border-color: #cfd8e7; border-top: 3px solid #2d439c; background: #fff; }
.progress-card > span { color: #5e6e87; }
.progress-card strong { font: 600 29px Arial, sans-serif; }
.progress-card small { color: #7c889b; }
.progress-track { height: 4px; background: #e7ebf3; border-radius: 0; }
.progress-track div { background: #2d439c; border-radius: 0; }
.workspace-grid { gap: 19px; }
.stage-panel {
  position: relative;
  border-color: #d8e0ea;
  border-top: 3px solid #2d439c;
  border-radius: 0;
  box-shadow: none;
}
.stage-symbol {
  position: absolute;
  top: 31px;
  right: 34px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #354aa1;
  background: #f0f3fa;
  border: 1px solid #d5dfee;
}
.stage-symbol svg { width: 41px; height: 41px; }
.stage-heading { padding-right: 73px; padding-bottom: 20px; border-bottom: 1px solid #e2e7ef; }
.stage-index { color: #354aa1; font-family: Consolas, monospace; }
.stage-heading h2 { font: 600 clamp(26px, 2.5vw, 36px)/1.17 Arial, sans-serif; letter-spacing: -.04em; }
.stage-heading p { color: #6e7e92; line-height: 1.6; }
.detail-box, .content-card, .source-toolbar, .source-list, .source-item,
.later-notice, .component, .review-hero, .choice-card, .base-card,
.approval-summary, .approval-checklist, .preview-box, .empty-preview,
.rail-card, .rail-alert { border-radius: 0; }
.detail-box { background: #f5f7fa; border-color: #e0e6ef; border-top: 2px solid #aebbd7; }
.detail-label, .card-overline { color: #53668f; }
.content-card { border-color: #dfe5ed; }
.content-card p { color: #4f6076; }
.content-card .lead-copy { color: #263b57; font: 500 18px/1.48 Arial, sans-serif; }
.content-card--fact { background: #f0f4fa; border-color: #d9e2f0; }
.content-card--interpretation { background: #f7f5f0; border-color: #e9e1d3; }
.content-card--soft { background: #f7f8fa; }
.card-divider { background: #e0e6ef; }
.source-foot { color: #697b9a; }
.question-box, .decision-note { border-radius: 0; border-left-color: #ab824e; background: #faf7f0; }
.question-icon { border-radius: 0; background: #eee3d0; }
.form-row input, .form-row textarea, .percent-input { border-color: #c5d0df; border-radius: 2px; }
.source-toolbar { background: #f1f4f9; }
.source-list { border-color: #dce4ed; }
.source-moment { border-radius: 0; color: #2e4498; background: #e9eef9; }
.source-moment--later { color: #8e5b2a; background: #f7e9d6; }
.source-title code, .source-kind { color: #687d9d; }
.later-notice { background: #f5f7fa; border-color: #cbd6e7; }
.later-notice--active { background: #fbf6ed; border-color: #e1cfaf; }
.component { border-color: #dce3ed; }
.component:hover { border-color: #9facce; background: #f8faff; }
.component--selected { border-color: #8fa3d4; background: #f2f5fc; }
.component--caution.component--selected { border-color: #d9b280; background: #fbf7ef; }
.component-check { border-radius: 0; border-color: #adbdd9; }
.component--selected .component-check { background: #2d439c; border-color: #2d439c; }
.component-meta code { color: #2d439c; }
.mini-label { border-radius: 0; background: #e8edf8; color: #6073a6; }
.component-arrow { color: #6175ad; }
.status { border-radius: 0; }
.status--done { color: #254891; background: #e8eef9; }
.status--pending { color: #8c5927; background: #fbf0df; }
.review-hero { color: #fff; background: #263d83; }
.review-hero-symbol, .review-hero .card-overline { color: #c7d2ed; }
.review-hero strong { font: 600 18px Arial, sans-serif; }
.review-hero p { color: #d0d9ed; }
.choice-card { border-color: #dce3ed; }
.choice-card--selected { background: #f0f4fc; border-color: #93a5d0; }
.choice-icon, .separation-strip strong { color: #2d439c; }
.separation-strip { color: #6a7b96; }
.separation-line { background: #cbd6e7; }
.base-head { background: #f5f7fa; }
.base-head h3 { font: 600 18px Arial, sans-serif; }
.base-total { border-radius: 0; }
.base-total--valid { color: #28538c; background: #e9eff9; }
.base-total--invalid { color: #955c2c; background: #fbefde; }
.approval-summary { background: #f2f5fa; }
.approval-check--ready { background: #2d439c; }
.approval-checklist .approval-check--ready + span + strong { color: #2d439c; }
.preview-box { border-color: #b8c7df; box-shadow: none; background: #fff; }
.preview-box h3 { font: 600 27px Arial, sans-serif; }
.preview-stamp { transform: none; border-radius: 0; }
.empty-preview { background: #f5f7fa; border-color: #bdcbe0; }
.empty-preview strong { font: 600 22px Arial, sans-serif; }
.empty-preview--ready { background: #f0f4fb; border-color: #91a5d2; }
.text-button { color: #2d439c; }
.rail-card { border-color: #d8e0ea; }
.rail-card .eyebrow { color: #6d7e9c; }
.rail-card h3 { font: 600 21px Arial, sans-serif; }
.rail-card p { color: #718096; }
.rail-card--dark { color: #fff; background: #263d83; border-color: #263d83; }
.rail-card--dark .eyebrow { color: #c4d0ec; }
.rail-card--dark p { color: #d2dbee; }
.rail-divider { background: #5b70a6; }
.blocker-list li { color: #596b83; }
.blocker-list li > span { border-radius: 0; background: #b7844e; }
.rail-card--source a, .reset-link { color: #2d439c; }

@media (max-width: 1200px) {
  .sidebar { width: 238px; flex-basis: 238px; }
  .hero h1 { font-size: clamp(33px, 3.4vw, 45px); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .72fr; }
  .hero-graphic { min-height: 395px; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; padding: 9px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { width: 155px; margin: 0 0 9px; padding: 0; border: 0; }
  .brand-symbol { width: 20px; height: 34px; flex-basis: 20px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 8px; }
  .sidebar > div.sidebar-group:first-of-type { display: block; position: absolute; right: 16px; top: 11px; margin: 0; }
  .sidebar > nav.sidebar-group { position: static; margin-bottom: 7px; }
  .nav-overview { width: auto; height: 31px; padding: 0 7px; font-size: 11px; }
  .nav-icon, .nav-arrow { display: none; }
  .sidebar-group { margin-bottom: 7px; }
  .sidebar-caption { display: none; }
  .case-select { height: 37px; }
  .step-list { padding-bottom: 2px; }
  .step-link { border: 1px solid #dbe2ed; box-shadow: none; }
  .step-link.is-active { border-color: #2d439c; box-shadow: inset 0 3px #2d439c; }
  .step-number { border: 0; }
  .topbar { height: 42px; flex-basis: 42px; }
  .overview, .workspace { padding-top: 19px; }
  .quick-guide { padding: 16px 18px; }
  .quick-guide > div { grid-template-columns: 1fr; gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 28px; }
  .hero h1 { margin: 24px 0 18px; font-size: clamp(30px, 8vw, 39px); }
  .hero-note { padding-top: 29px; }
  .hero-graphic { display: block; min-height: 230px; height: 230px; border-left: 0; border-top: 1px solid #d5deeb; }
  .scenario-card { min-height: 295px; }
  .scenario-art { height: 104px; margin: 18px -20px 19px; }
  .case-header { align-items: start; }
  .case-header { padding-bottom: 15px; margin-bottom: 16px; }
  .stage-symbol { top: 24px; right: 24px; width: 51px; height: 51px; }
  .stage-symbol svg { width: 34px; height: 34px; }
}
@media (max-width: 560px) {
  .topbar-right { display: none; }
  .breadcrumb { font-size: 10px; }
  .hero-graphic { height: 205px; min-height: 205px; }
  .section-heading { margin-top: 37px; }
  .case-header h1 { font-size: 29px; }
  .progress-card { padding: 9px 12px; }
  .progress-card > span { display: inline; }
  .progress-card strong { display: inline; margin: 0 0 0 12px; font-size: 19px; }
  .progress-card small { margin-left: 3px; }
  .progress-track { margin-top: 7px; }
  .stage-panel { padding: 23px 18px; }
  .stage-symbol { top: 20px; right: 18px; width: 45px; height: 45px; }
  .stage-symbol svg { width: 30px; height: 30px; }
  .stage-heading { padding-right: 53px; }
  .stage-heading h2 { font-size: 27px; }
  .hero-note { font-size: 17px; white-space: nowrap; }
  .hero-note span { white-space: normal; }
}
