:root {
  --navy-950: #102f3d;
  --navy-900: #163f50;
  --navy-800: #1e5363;
  --blue-600: #176b87;
  --red-700: #a73332;
  --red-600: #bd3f36;
  --gold-600: #b38326;
  --green-700: #26705d;
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink: #1d2a2f;
  --muted: #617178;
  --line: #d8dedf;
  --line-strong: #bcc7ca;
  --soft-blue: #e9f1f3;
  --soft-red: #f8ecea;
  --soft-gold: #f7f1e4;
  --soft-green: #e8f2ee;
  --shadow: 0 16px 42px rgba(16, 47, 61, 0.1);
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.35);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 42px;
  line-height: 1.3;
  color: var(--navy-950);
}

h2 {
  margin-bottom: 0;
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 30px;
  line-height: 1.35;
  color: var(--navy-950);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.utility-bar {
  color: #e9f2f4;
  background: var(--navy-950);
  font-size: 13px;
}

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

.utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
}

.agency-lockup,
.government-brand {
  display: flex;
  align-items: center;
}

.agency-lockup {
  gap: 10px;
  min-width: 0;
}

.agency-name {
  font-weight: 600;
}

.agency-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.government-brand {
  gap: 7px;
}

.government-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: var(--white);
  background: var(--red-700);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 11px;
  line-height: 1;
}

.government-brand strong {
  font-size: 13px;
  font-weight: 600;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red-700);
  border: 4px double rgba(255, 255, 255, 0.8);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 25px;
  font-weight: 700;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: var(--navy-950);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 22px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.global-search {
  position: relative;
  width: min(390px, 40vw);
  height: 46px;
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.global-search input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.global-search button {
  width: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: var(--red-700);
  cursor: pointer;
}

.global-search button:hover {
  background: var(--red-600);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: var(--soft-blue);
}

.search-result span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.search-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
}

.primary-nav {
  color: var(--white);
  background: var(--navy-900);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  min-width: 138px;
  padding: 15px 24px;
  text-align: center;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner a:hover,
.nav-inner a.active {
  background: var(--red-700);
}

.notice-strip {
  border-bottom: 1px solid var(--line);
  background: #f1f3ef;
}

.notice-inner {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.notice-inner p {
  margin: 0;
  color: #46565c;
}

.notice-inner time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.notice-label {
  padding-right: 18px;
  color: var(--red-700);
  font-weight: 700;
  border-right: 1px solid var(--line-strong);
}

.section {
  padding: 76px 0;
}

.section-muted {
  background: #eef1ed;
}

.section-ink {
  color: #eaf1f2;
  background: var(--navy-950);
}

.overview {
  padding-top: 68px;
}

.overview-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading > p {
  max-width: 520px;
  margin-bottom: 3px;
  color: var(--muted);
  line-height: 1.8;
}

.light-heading h2 {
  color: var(--white);
}

.light-heading > p {
  color: #bac9cd;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 700;
}

.section-ink .eyebrow {
  color: #e4b15f;
}

.lede {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 5px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-confirmed {
  color: #195647;
  background: var(--soft-green);
}

.status-suggested {
  color: #815d17;
  background: var(--soft-gold);
}

.status-reserved {
  color: #8b3430;
  background: var(--soft-red);
}

.status-base {
  color: #4d6269;
  background: #e8edef;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 46px 0 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.metric {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  border-right: 1px solid var(--line-strong);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  color: var(--navy-900);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.map-workbench {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.map-tab {
  position: relative;
  align-self: stretch;
  padding: 0 17px;
  border: 0;
  color: #4d6067;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.map-tab::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.map-tab:hover,
.map-tab.active {
  color: var(--navy-950);
}

.map-tab.active::after {
  background: var(--red-700);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 620px;
}

.planning-map {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
  background: #e8ece8;
}

.planning-map > img {
  width: 100%;
  height: 540px;
  object-fit: contain;
  background: #e8ece8;
}

.planning-map figcaption {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.planning-map figcaption strong {
  display: block;
  color: var(--navy-950);
  font-size: 18px;
}

.planning-map figcaption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.map-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--navy-900);
  background: var(--white);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--navy-800);
  background: var(--soft-blue);
}

.map-index {
  padding: 28px 24px;
  background: #fafbf8;
}

.aside-heading {
  margin-bottom: 18px;
}

.aside-heading h2 {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
}

.quick-districts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-district {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  color: var(--ink);
  background: #fafbf8;
  text-align: left;
  cursor: pointer;
}

.quick-district:hover {
  color: var(--red-700);
}

.quick-district code {
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.quick-district small {
  color: var(--muted);
  font-size: 11px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--red-700);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.district-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.district-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.district-card-link {
  text-decoration: none;
}

.district-grid-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.district-card:hover,
.district-card.active {
  border-color: var(--navy-800);
  box-shadow: 0 10px 24px rgba(16, 47, 61, 0.09);
  transform: translateY(-2px);
}

.district-card.active {
  border-top: 4px solid var(--red-700);
  padding-top: 17px;
}

.district-card-top,
.district-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.district-card code {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
}

.district-card h3 {
  margin: 10px 0 4px;
  color: var(--navy-950);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 23px;
}

.district-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.district-card-bottom {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.district-detail {
  position: sticky;
  top: 20px;
  min-height: 520px;
  padding: 28px;
  border-left: 4px solid var(--red-700);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 47, 61, 0.08);
}

.district-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.district-detail h3 {
  margin: 2px 0 4px;
  color: var(--navy-950);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 28px;
}

.district-detail-header p,
.district-summary {
  color: var(--muted);
}

.district-summary {
  margin-bottom: 22px;
  line-height: 1.8;
}

.detail-statline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-statline div {
  padding: 16px 8px;
}

.detail-statline div + div {
  border-left: 1px solid var(--line);
}

.detail-statline dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-statline dd {
  margin: 5px 0 0;
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 700;
}

.subunit-group + .subunit-group {
  margin-top: 20px;
}

.subunit-group h4 {
  margin: 0 0 10px;
  color: var(--navy-950);
  font-size: 14px;
}

.subunit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subunit-list button,
.subunit-name {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #42565e;
  background: #f7f9f7;
}

.subunit-list button {
  cursor: pointer;
}

.subunit-name {
  cursor: default;
}

.subunit-list button:hover {
  color: var(--red-700);
  border-color: #d6a29d;
  background: var(--soft-red);
}

.empty-detail {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-detail strong,
.empty-detail span {
  display: block;
}

.empty-detail strong {
  color: var(--navy-900);
}

.empty-detail span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.topic-catalog-heading h3 {
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
}

.topic-catalog-heading {
  margin-bottom: 22px;
}

.topic-catalog-heading h3 {
  margin-top: 6px;
  font-size: 24px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e8eff0;
  background: #173c49;
  text-decoration: none;
}

.topic-card-link {
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.topic-card-link:hover,
.topic-card-link:focus-visible {
  border-color: rgba(240, 195, 116, 0.78);
  background: #1d4b59;
  transform: translateY(-2px);
  outline: 0;
}

.topic-card.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 47, 61, 0.42), rgba(16, 47, 61, 0.95)), var(--topic-image);
  background-position: center;
  background-size: cover;
}

.topic-card > * {
  position: relative;
  z-index: 1;
}

.topic-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #f0c374;
  border: 1px solid rgba(240, 195, 116, 0.45);
}

.topic-card h3 {
  margin: 26px 0 10px;
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 20px;
}

.topic-card p {
  margin-bottom: 0;
  color: #c5d1d4;
  font-size: 13px;
  line-height: 1.8;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.topic-card-footer span:first-child {
  color: #f0c374;
  font-size: 12px;
  font-weight: 700;
}

.topic-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topic-link-cue {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #f0c374;
  border: 1px solid rgba(240, 195, 116, 0.45);
}

.topic-link-cue svg {
  width: 15px;
  height: 15px;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: start;
}

.resource-table-wrap {
  overflow-x: auto;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.resource-table th,
.resource-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.resource-table th {
  color: var(--muted);
  background: #f0f3ef;
  font-size: 12px;
  font-weight: 600;
}

.resource-table td:first-child {
  color: var(--navy-950);
  font-weight: 600;
}

.resource-table td:nth-child(2) {
  color: var(--muted);
  font-size: 13px;
}

.resource-table td:last-child {
  width: 48px;
  padding-left: 0;
}

.resource-open {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
}

.resource-open:hover {
  color: var(--white);
  background: var(--red-700);
}

.archive-note {
  padding: 28px;
  color: #e8eff0;
  background: var(--navy-900);
}

.archive-note > svg {
  width: 28px;
  height: 28px;
  color: #f0c374;
}

.archive-note h3 {
  margin-top: 20px;
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
}

.archive-note p {
  color: #c5d1d4;
  font-size: 13px;
  line-height: 1.8;
}

.archive-note dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-note dl div {
  padding-top: 16px;
}

.archive-note dt {
  color: #afc1c5;
  font-size: 11px;
}

.archive-note dd {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 21px;
  font-weight: 700;
}

.site-footer {
  color: #c4d0d3;
  background: #0c2732;
  border-top: 4px solid var(--red-700);
}

.footer-inner {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
}

.footer-inner p {
  margin: 7px 0 0;
  font-size: 13px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--white);
}

dialog {
  max-width: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(10, 31, 39, 0.76);
}

.map-dialog {
  width: min(1200px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
}

.map-dialog img {
  width: 100%;
  max-height: calc(100vh - 126px);
  object-fit: contain;
  background: #e9ece8;
}

.info-dialog {
  width: min(600px, calc(100% - 32px));
}

.dialog-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading span {
  color: var(--red-700);
  font-size: 12px;
  font-weight: 700;
}

.dialog-heading h2 {
  margin-top: 3px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
}

.guide-content {
  padding: 24px;
}

.guide-content p {
  color: #405158;
  line-height: 1.8;
}

.guide-content code {
  padding: 2px 5px;
  color: var(--navy-900);
  background: var(--soft-blue);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 36px;
  }

  .nav-inner a {
    min-width: 0;
    flex: 1;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .district-browser {
    grid-template-columns: 1fr;
  }

  .district-detail {
    position: static;
    min-height: 0;
  }

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

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

}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .utility-inner {
    min-height: 42px;
  }

  .utility-links span {
    display: none;
  }

  .header-main {
    min-height: 132px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    padding: 18px 0;
  }

  .global-search {
    width: 100%;
  }

  .nav-inner {
    overflow-x: auto;
  }

  .nav-inner a {
    flex: 0 0 auto;
    padding: 14px 18px;
  }

  .notice-inner {
    grid-template-columns: auto 1fr;
  }

  .notice-inner time {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .overview-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .status-legend {
    justify-content: flex-start;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .planning-map > img {
    height: 460px;
  }

  .resource-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 25px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .utility-inner {
    gap: 10px;
  }

  .agency-lockup {
    gap: 6px;
  }

  .agency-name,
  .government-brand strong {
    font-size: 11px;
  }

  .government-mark {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px;
  }

  .notice-inner {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px 0;
  }

  .notice-label {
    padding-right: 0;
    border-right: 0;
  }

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

  .metric,
  .metric:nth-child(2) {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .map-toolbar {
    padding: 0 6px;
  }

  .planning-map > img {
    height: 340px;
  }

  .planning-map figcaption {
    align-items: flex-start;
  }

  .planning-map figcaption p {
    line-height: 1.6;
  }

  .map-index {
    padding: 24px 20px;
  }

  .district-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .district-card {
    min-height: 132px;
  }

  .district-detail {
    padding: 24px 20px;
  }

  .district-detail-header {
    flex-direction: column;
  }

  .resource-table th:nth-child(2),
  .resource-table td:nth-child(2) {
    display: none;
  }

  .footer-inner {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Government portal additions */
.primary-action {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red-700);
  text-decoration: none;
}

.primary-action:hover {
  background: var(--red-600);
}

.city-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 48px;
  padding: 42px;
  border-top: 4px solid var(--red-700);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-intro h2 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: 30px;
}

.profile-intro p:not(.eyebrow) {
  margin: 0;
  color: #465960;
  line-height: 1.95;
}

.profile-intro p + p {
  margin-top: 16px;
}

.city-structure {
  border-top: 1px solid var(--line-strong);
}

.city-structure article {
  position: relative;
  display: grid;
  grid-template-columns: 42px 110px 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}

.city-structure article > span {
  color: var(--red-700);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
}

.city-structure h3 {
  margin: 1px 0 0;
  color: var(--navy-950);
  font-size: 16px;
}

.city-structure p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.subunit-preview {
  margin-top: 24px;
  padding: 18px;
  border-left: 3px solid #d6aa5e;
  background: #f5f2e9;
}

.subunit-preview strong,
.subunit-preview span {
  display: block;
}

.subunit-preview strong {
  color: var(--navy-950);
}

.subunit-preview span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-section {
  background: #f7f8f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.contact-primary {
  padding: 32px;
  color: #eaf1f2;
  background: var(--navy-900);
  border-top: 4px solid var(--red-700);
}

.contact-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-seal {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid #e7bd77;
  color: #f0c374;
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 24px;
  font-weight: 700;
}

.contact-title h3 {
  margin: 0;
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 22px;
}

.contact-title p {
  margin: 5px 0 0;
  color: #aebfc4;
  font-size: 11px;
}

.contact-primary address {
  margin: 24px 0;
  font-style: normal;
}

.contact-primary address p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  color: #d3dddf;
  font-size: 14px;
  line-height: 1.7;
}

.contact-primary address svg {
  width: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  color: #f0c374;
}

.contact-primary a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.contact-primary a:hover,
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.service-hotline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-hotline span {
  color: #b8c7ca;
  font-size: 13px;
}

.service-hotline a {
  grid-row: span 2;
  color: #f0c374;
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 34px;
  font-weight: 700;
}

.service-hotline small {
  color: #91a7ad;
}

.contact-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-directory article {
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.contact-directory h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--navy-900);
  color: var(--navy-950);
  font-size: 17px;
}

.contact-directory h3 svg {
  color: var(--red-700);
}

.contact-directory dl {
  margin: 0;
}

.contact-directory dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.contact-directory dl div:last-child {
  border-bottom: 0;
}

.contact-directory dt {
  color: #45575e;
}

.contact-directory dd {
  margin: 0;
  text-align: right;
}

.contact-directory a {
  color: var(--red-700);
  text-decoration: none;
}

.contact-directory a:hover {
  text-decoration: underline;
}

.footer-grid {
  min-height: 178px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-grid strong {
  color: var(--white);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 18px;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #aebfc4;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 28px;
  font-size: 13px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-bottom {
  padding: 15px 0;
  color: #82999f;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

@media (max-width: 1040px) {
  .city-profile,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .city-profile {
    gap: 30px;
    padding: 30px;
  }

  .contact-directory {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0;
  }
}

@media (max-width: 560px) {
  .overview-heading .primary-action {
    width: 100%;
  }

  .city-profile {
    padding: 24px 20px;
  }

  .profile-intro h2 {
    font-size: 24px;
  }

  .city-structure article {
    grid-template-columns: 34px 1fr;
  }

  .city-structure article p {
    grid-column: 2;
  }

  .contact-primary,
  .contact-directory article {
    padding: 24px 20px;
  }

  .contact-directory dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .contact-directory dd {
    text-align: left;
  }

  .service-hotline {
    grid-template-columns: 1fr;
  }

  .service-hotline a {
    grid-row: auto;
  }

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