:root {
  --blue-900: #123b66;
  --blue-800: #174d80;
  --blue-700: #21669b;
  --blue-100: #e7f0f8;
  --ink: #263746;
  --muted: #5d6c78;
  --line: #c7d2dc;
  --surface: #ffffff;
  --surface-soft: #f1f4f6;
  --accent: #c88520;
  --focus: #f4bd32;
  --shadow: 0 1px 3px rgba(19, 47, 72, .16);
  --content-width: 1120px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  background: #e9edf0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--blue-800); text-decoration: underline; }
a:hover { color: var(--blue-900); }
:focus-visible { outline: 3px solid var(--blue-900); outline-offset: 3px; box-shadow: 0 0 0 6px var(--focus); }

.container { width: min(calc(100% - 32px), var(--content-width)); margin: 0 auto; }
.site-header { background: var(--surface); }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 10; padding: 10px 14px; color: #fff; background: var(--blue-900); }
.skip-link:focus { top: 8px; }

.utility-bar { color: #dfeaf4; background: #102e4c; font-size: .78rem; }
.utility-inner { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.utility-inner nav { display: flex; gap: 18px; }
.utility-inner a { color: #fff; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0 18px; background: var(--surface); }
.institutional-name { display: grid; gap: 2px; border-left: 5px solid var(--accent); padding-left: 14px; }
.institutional-name__agency { color: var(--blue-900); font-size: 1.05rem; font-weight: 700; }
.institutional-name__section { color: var(--blue-900); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.institutional-name__portal { color: var(--muted); font-size: .95rem; }
.masthead-meta { display: grid; gap: 3px; color: var(--muted); font-size: .78rem; text-align: right; }

.nav-shell { background: var(--blue-800); border-bottom: 4px solid var(--accent); box-shadow: var(--shadow); }
.nav-container { display: flex; align-items: stretch; }
.site-nav { display: flex; width: 100%; }
.site-nav__link { padding: 12px 16px; color: #fff; font-size: .9rem; text-decoration: none; border-right: 1px solid rgba(255,255,255,.18); }
.site-nav__link:hover, .site-nav__link--active { background: var(--blue-900); }
.site-nav__link--active { box-shadow: inset 0 -4px 0 var(--accent); }
.menu-toggle { display: none; }

.page-content { padding-top: 18px; padding-bottom: 42px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--blue-800); }
.intro-panel { display: flex; justify-content: space-between; gap: 28px; padding: 27px 30px; border: 1px solid var(--line); border-top: 5px solid var(--blue-700); background: var(--surface); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 4px; color: var(--blue-700); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--blue-900); line-height: 1.2; }
h1 { max-width: 750px; margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.intro-panel__stamp { align-self: center; min-width: 150px; padding: 12px; border: 2px solid #9bb1c5; color: var(--blue-800); text-align: center; transform: rotate(-2deg); }
.intro-panel__stamp strong { display: block; font-size: 1.5rem; letter-spacing: .12em; }
.intro-panel__stamp span { display: block; font-size: .7rem; text-transform: uppercase; }
.notice { margin: 18px 0 28px; padding: 12px 15px; border-left: 5px solid var(--accent); background: #fff9e9; font-size: .9rem; }
.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; border-bottom: 2px solid var(--blue-700); }
.section-heading h2 { margin-bottom: 7px; font-size: 1.25rem; }
.section-heading a, .muted { color: var(--muted); font-size: .8rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.card:hover { border-color: var(--blue-700); background: var(--blue-100); }
.card__number { color: var(--accent); font-size: .75rem; font-weight: 700; }
.card h3 { margin: 5px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }
.card__action { margin-top: auto; padding-top: 15px; font-size: .82rem; font-weight: 700; }
.content-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; }
.news-item { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--muted); font-size: .76rem; }
.news-item h3 { margin: 3px 0 4px; font-size: 1rem; }
.news-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.indicator-panel { padding: 0 18px 12px; background: var(--surface-soft); border: 1px solid var(--line); }
.indicator-list { margin: 0; }
.indicator-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.indicator-list div:last-child { border-bottom: 0; }
.indicator-list dt { color: var(--muted); font-size: .85rem; }
.indicator-list dd { margin: 0; color: var(--blue-900); font-size: 1.2rem; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .88rem; }
.data-table th, .data-table td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: #fff; background: var(--blue-800); font-size: .78rem; }
.data-table tr:nth-child(even) { background: var(--surface-soft); }
.tag { display: inline-block; padding: 2px 7px; border: 1px solid #9bb1c5; border-radius: 2px; color: var(--blue-900); background: var(--blue-100); font-size: .72rem; font-weight: 700; }

.panel { margin-top: 24px; padding: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 10px; font-size: 1.3rem; }
.panel h3 { margin: 18px 0 5px; font-size: 1rem; }
.panel p:last-child { margin-bottom: 0; }
.prose { max-width: 820px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin-top: 6px; padding-left: 22px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.table-caption { margin: 0 0 7px; color: var(--muted); font-size: .8rem; }
.report-controls { margin-bottom: 24px; }
.report-summary { margin: 18px 0 0; color: var(--blue-900); font-size: .9rem; }
.report-empty { margin: 18px 0 0; padding: 14px; border-left: 4px solid var(--accent); color: var(--muted); background: #fff9e9; }
.not-found-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 30px; border: 1px solid var(--line); border-top: 5px solid var(--blue-700); background: var(--surface); box-shadow: var(--shadow); }
.not-found-panel h1 { margin-bottom: 10px; }
.not-found-code { min-width: 190px; padding: 14px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); text-align: center; }
.not-found-code span { display: block; font-size: .75rem; }
.not-found-code strong { display: block; margin-top: 3px; color: var(--blue-900); font-size: 1.15rem; letter-spacing: .05em; }
.not-found-details { margin-bottom: 20px; }
.not-found-support { max-width: 780px; color: var(--muted); font-size: .9rem; }
.report-table { min-width: 850px; margin-top: 0; }
.report-table caption { padding: 8px 0; color: var(--muted); font-size: .8rem; text-align: left; }
.report-detail-row { background: var(--surface) !important; }
.report-detail-row > td { padding: 0 10px 12px; }
.report-detail-row details { color: var(--muted); font-size: .86rem; }
.report-detail-row summary { color: var(--blue-800); cursor: pointer; font-weight: 700; }
.report-detail { max-width: 850px; padding: 10px 0 2px 18px; border-left: 3px solid var(--line); }
.report-detail p { margin: 0 0 9px; }
.report-detail strong { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-field { display: grid; gap: 5px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--blue-900); font-size: .85rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 9px; border: 1px solid #9eabb6; color: var(--ink); background: #fbfcfd; font: inherit; }
.form-field textarea { min-height: 88px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.button { padding: 9px 15px; border: 1px solid var(--blue-900); color: #fff; background: var(--blue-800); font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--blue-900); }
.form-message { margin: 0; color: var(--blue-900); font-size: .85rem; }
.form-message[hidden] { display: none; }
.definition-list { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; margin: 0; }
.definition-list dt, .definition-list dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--muted); font-weight: 700; }
.definition-list dd { margin: 0; }
.org-chart { display: grid; gap: 8px; max-width: 650px; margin-top: 14px; }
.org-chart div { padding: 10px 13px; border-left: 4px solid var(--accent); background: var(--surface-soft); }
.org-chart div:nth-child(n+2) { margin-left: 24px; border-left-color: var(--blue-700); }

.site-footer { color: #e8f0f7; background: #193b5b; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 25px 0; font-size: .82rem; }
.footer-grid strong { color: #fff; }
.footer-grid p { margin: 4px 0; }
.footer-grid a { color: #fff; }
.footer-note { color: #c7d8e7; font-size: .75rem; }

@media (max-width: 700px) {
  .container { width: min(calc(100% - 24px), var(--content-width)); }
  .utility-inner, .masthead { align-items: flex-start; }
  .utility-inner { font-size: .7rem; }
  .utility-inner nav { gap: 10px; }
  .masthead { display: block; padding: 15px 0; }
  .institutional-name__section { font-size: 1.3rem; }
  .masthead-meta { display: flex; justify-content: space-between; margin-top: 10px; text-align: left; font-size: .72rem; }
  .nav-container { display: block; }
  .js .menu-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 0; border: 0; color: #fff; background: transparent; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
  .menu-toggle__icon { font-size: 1.2rem; }
  .js .site-nav { display: none; flex-direction: column; }
  .js .site-nav[data-open="true"] { display: flex; }
  .site-nav__link { border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .intro-panel { display: block; padding: 22px 18px; }
  .intro-panel__stamp { width: 145px; margin: 20px 0 0 auto; }
  .not-found-panel { display: block; padding: 22px 18px; }
  .not-found-code { width: 190px; margin: 20px 0 0 auto; }
  .card-grid, .content-columns, .footer-grid { grid-template-columns: 1fr; }
  .content-columns { gap: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .section-heading a { margin-bottom: 8px; }
  .form-grid, .definition-list { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .definition-list dt { padding-bottom: 2px; border-bottom: 0; }
  .definition-list dd { padding-top: 0; }
}
