:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #182c3c;
  background: #f4f7f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #075b70; text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #c77419; outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h2 { font-size: 1.2rem; }
.muted { color: #536775; }
.eyebrow { color: #0a6173; font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }

.site-header { background: #102b3b; color: white; }
.site-header__inner, .site-footer__inner { max-width: 1180px; margin: auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; white-space: nowrap; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.1rem; letter-spacing: .015em; }
.brand small { color: #bfd1d9; font-size: .75rem; }
.brand__mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid #7ed4db; border-radius: .65rem; color: #7ed4db; font-size: 1.8rem; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.site-nav a { padding: .55rem .7rem; border-radius: .45rem; color: #e5f1f3; text-decoration: none; font-size: .9rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #315466; color: white; }

.site-frame { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
.prototype-notice { display: flex; flex-wrap: wrap; gap: .4rem .9rem; padding: .85rem 1rem; border-left: 4px solid #ba6a1b; border-radius: .3rem; background: #fff5e7; color: #523a20; }
main { padding: 2.8rem 0 3.5rem; }
.page-heading { max-width: 750px; }
.page-heading__lead { color: #3c5868; font-size: 1.13rem; }
.empty-state, .reference-panel { border: 1px solid #d7e2e5; border-radius: .85rem; background: white; box-shadow: 0 8px 28px rgba(19, 49, 65, .04); }
.empty-state { display: flex; gap: 1.3rem; max-width: 850px; margin-top: 2rem; padding: 2rem; }
.empty-state__symbol { display: grid; place-items: center; flex: 0 0 3rem; width: 3rem; height: 3rem; border-radius: 50%; background: #e4f1f3; color: #075b70; font-size: 1.8rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.button { display: inline-block; padding: .7rem 1rem; border-radius: .45rem; background: #075b70; color: white; font-weight: 650; text-decoration: none; }
.button:hover { background: #064a5b; }
.text-link { font-weight: 650; }
.reference-panel { padding: 1.6rem 1.8rem; }
.metadata-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.metadata-grid div { padding: .85rem; border-radius: .45rem; background: #f2f6f7; }
.metadata-grid dt, .label-guide dt { font-size: .8rem; font-weight: 750; color: #496271; }
.metadata-grid dd, .label-guide dd { margin: .35rem 0 0; }
.label-guide { border-top: 1px solid #d7e2e5; padding-top: 1rem; }
.label-guide summary { width: fit-content; color: #075b70; font-weight: 650; cursor: pointer; }
.label-guide dl { display: grid; gap: .8rem; margin-bottom: 0; }
.label-guide dl div { padding: .7rem 0; }
.site-footer { margin-top: 2rem; border-top: 1px solid #d7e2e5; color: #536775; font-size: .86rem; }

/* Page-specific public shells use the same panel language and honest empty states. */
.section-grid { display: grid; gap: 1.15rem; margin: 1.15rem 0; }
.section-grid--map { grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); }
.section-grid--sidebar { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.65fr); }
.section-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { min-width: 0; padding: 1.45rem; border: 1px solid #d7e2e5; border-radius: .75rem; background: white; box-shadow: 0 8px 28px rgba(19, 49, 65, .04); }
.panel > :last-child { margin-bottom: 0; }
.panel--quiet { margin-top: 1.15rem; border-left: 4px solid #0a7184; background: #f8fbfc; }
.panel__heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .7rem; }
.panel__heading h2 { margin-bottom: 1rem; }
.status-pill { display: inline-block; padding: .35rem .65rem; border-radius: 10rem; background: #e9f0f3; color: #35596a; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.helper-text { color: #536775; font-size: .89rem; }
.link-row { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin: 1.2rem 0; font-weight: 650; }
.link-stack { display: grid; gap: .65rem; margin-top: 1.3rem; font-weight: 650; }
.inline-notice { margin: 1.25rem 0; padding: .8rem 1rem; border-left: 4px solid #bb711e; background: #fff5e7; }
.control-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.control-disabled { display: inline-block; padding: .45rem .7rem; border: 1px dashed #b8cbd1; border-radius: .4rem; background: #f3f7f8; color: #536775; font-size: .85rem; }
.map-placeholder, .chart-placeholder { display: grid; place-items: center; padding: 1.5rem; border: 1px dashed #8faeba; border-radius: .55rem; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(13, 95, 112, .045) 31px 32px), repeating-linear-gradient(90deg, #f2f7f8 0 31px, #e9f1f3 31px 32px); color: #3c5868; text-align: center; }
.map-placeholder { min-height: 320px; }
.map-placeholder--small { min-height: 240px; }
.map-placeholder strong { display: block; font-size: 1.25rem; color: #24485b; }
.map-placeholder p { max-width: 320px; margin: .5rem auto 0; }
.chart-placeholder { min-height: 180px; }
.fact-list { margin: .5rem 0 1.2rem; }
.fact-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.fact-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .68rem 0; border-bottom: 1px solid #e4ecee; }
.fact-list dt { color: #536775; font-size: .87rem; }
.fact-list dd { margin: 0; text-align: right; font-weight: 650; }
.empty-list { padding: 1.5rem; border: 1px dashed #b8cbd1; border-radius: .55rem; background: #f8fbfc; }
.empty-list strong { color: #24485b; }
.empty-list p { margin: .4rem 0 0; color: #536775; }
.disabled-form { display: grid; gap: .65rem; margin: 1rem 0 0; padding: 1rem; border: 1px solid #d7e2e5; border-radius: .5rem; background: #f8fbfc; }
.disabled-form legend { padding: 0 .25rem; font-size: .85rem; font-weight: 700; color: #536775; }
.disabled-form label { font-weight: 650; font-size: .88rem; }
.disabled-form input:not([type="checkbox"]), .disabled-form select { width: 100%; min-height: 2.5rem; padding: .55rem; border: 1px solid #b8cbd1; border-radius: .4rem; background: #edf2f4; color: #536775; }
.disabled-form button, .panel button:disabled { width: fit-content; padding: .65rem .85rem; border: 1px solid #b8cbd1; border-radius: .4rem; background: #e4ecee; color: #536775; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.form-grid > div { display: grid; gap: .4rem; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; }
.timeline-preview { width: 100%; accent-color: #7e9fa9; }
.site-header--org { background: #203044; }
.login-panel { max-width: 520px; margin-top: 1.4rem; }
.login-form { display: grid; gap: 1rem; }
.login-form > div { display: grid; gap: .4rem; }
.login-form label { font-weight: 650; }
.login-form input { width: 100%; min-height: 2.7rem; padding: .6rem; border: 1px solid #9bb4be; border-radius: .4rem; font: inherit; }
.login-form input:focus-visible { outline: 3px solid #c77419; outline-offset: 2px; }
.login-form .button, .login-panel .button { width: fit-content; border: 0; font: inherit; cursor: pointer; }
.logout-button { padding: .45rem .7rem; border: 1px solid #9bb4be; border-radius: .4rem; background: white; color: #075b70; font: inherit; font-weight: 650; cursor: pointer; }
.logout-button:hover { background: #e9f0f3; }
.demo-banner { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.4rem 0; padding: .8rem 1rem; border: 2px solid #805b18; border-radius: .45rem; background: #fff2d6; color: #493518; }
.state-switcher { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0; }
.state-switcher a { padding: .6rem .8rem; border: 1px solid #9bb4be; border-radius: .45rem; background: white; color: #075b70; font-weight: 650; text-decoration: none; }
.state-switcher a:hover, .state-switcher a[aria-current="page"] { border-color: #075b70; background: #e4f1f3; color: #24485b; }
.state-example { max-width: 850px; border-left: 5px solid #bb711e; }
.state-example h2 { font-size: 1.7rem; }
.state-example__next { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #d7e2e5; }
.state-example__next h3 { margin: 0 0 .4rem; font-size: 1rem; }
.state-example__next .link-row { margin-bottom: 0; }

@media (max-width: 850px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-grid--map, .section-grid--sidebar, .section-grid--equal, .section-grid--three { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-frame { padding: 1rem; }
  .empty-state { padding: 1.25rem; }
  .metadata-grid { grid-template-columns: 1fr; }
  .fact-list--columns, .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.1rem; }
}
