:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e1ee;
  --line-strong: #c5d0e1;
  --accent: #1d4ed8;
  --accent-text: #1d4ed8;
  --accent-dark: #173b8f;
  --accent-secondary: #047857;
  --accent-rgb: 29, 78, 216;
  --accent-soft: #e7efff;
  --green: #047857;
  --green-soft: #e7f6f0;
  --score-good: #047857;
  --score-mid: #b45309;
  --score-bad: #b42318;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--accent-rgb), 0.08), transparent 34%),
    radial-gradient(circle at 92% 3%, rgba(4, 120, 87, 0.1), transparent 30%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 44px) 34px;
}

.hero-nav,
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.hero-nav {
  min-height: 58px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-nav a:not(.brand),
.top-links a,
.text-link {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 850;
}

.top-links a:hover,
.top-links a:active,
.text-link:hover,
.breadcrumbs a:hover {
  color: var(--accent);
}

.hero-nav > a:last-child,
.download-actions a,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: 470px;
  padding: 48px 4px 16px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #101828;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  color: #101828;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #475467;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.48;
}

.hero-stats {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats div {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-bottom: 0;
}

.hero-stats span,
.muted {
  color: var(--muted);
}

.hero-stats strong {
  color: #101828;
  font-size: 28px;
  line-height: 1;
}

.search-shell {
  position: relative;
  width: min(100%, 620px);
}

.site-header .search-shell {
  justify-self: end;
  width: min(34vw, 420px);
}

.search-shell.large {
  margin-top: 26px;
}

.search-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.search-shell.large input {
  min-height: 58px;
  font-size: 17px;
}

.search-shell input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-results[hidden] {
  display: none;
}

.search-results a,
.search-empty {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.search-results a:hover {
  background: var(--accent-soft);
}

.search-results span {
  color: var(--muted);
  font-size: 13px;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 44px) 64px;
}

.map-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.map-copy {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-copy p {
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}

.district-map {
  width: 100%;
  min-height: 260px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.district-map rect {
  fill: var(--accent-soft);
  stroke: #b7c9f6;
  transition:
    fill 160ms ease,
    transform 160ms ease;
}

.district-map a:hover rect {
  fill: #d4e2ff;
  transform: translateY(-2px);
}

.district-map text {
  fill: var(--accent-dark);
  font-size: 24px;
  font-weight: 950;
  pointer-events: none;
}

.district-map text.small {
  fill: var(--muted);
  font-size: 14px;
}

.district-list {
  display: none;
  gap: 1px;
  padding: 0;
  margin: 0 0 26px;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.district-list li {
  background: var(--panel);
}

.district-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  text-decoration: none;
}

.tree-intro,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 18px;
}

.tree-intro h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.directory-list {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.directory-list.region-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 0;
  background: var(--panel);
}

.directory-list a {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
  text-decoration: none;
}

.directory-list a:hover {
  background: var(--accent-soft);
}

.directory-list strong {
  overflow-wrap: anywhere;
}

.directory-list span,
.directory-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.directory-list em {
  flex: 0 0 auto;
  padding-right: 18px;
}

.feature-band,
.record-grid,
.guidance-grid,
.info-article-grid,
.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

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

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

.feature-band > div,
.guidance-grid > article,
.info-article-grid > article,
.explain-grid > article,
.fact-panel,
.tool-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-band p,
.guidance-grid p,
.info-article-grid p,
.explain-grid p,
.usage-section li,
.tool-panel p {
  color: #475467;
  font-size: 16px;
  line-height: 1.58;
}

.classifier-section,
.copy-section,
.risk-score-panel,
.source-board,
.siblings-section,
.popular-section,
.howto-section,
.faq-section,
.typed-directory,
.source-note {
  margin-top: 36px;
}

.type-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.type-overview a,
.source-note {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.type-overview a {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.type-overview strong {
  color: var(--accent-dark);
  font-size: 28px;
}

.type-overview span,
.source-note p {
  color: #475467;
  line-height: 1.55;
}

.source-note h2 {
  font-size: 28px;
}

.source-board {
  display: grid;
  gap: 12px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid #98a2b3;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.source-row.ready {
  border-left-color: var(--score-good);
}

.source-row.empty {
  border-left-color: var(--score-mid);
}

.source-row.missing {
  border-left-color: #98a2b3;
}

.source-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.source-row p {
  max-width: 720px;
  margin: 0;
  color: #475467;
  line-height: 1.5;
}

.source-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, auto));
  gap: 14px;
  margin: 0;
}

.source-row dt {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-row dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.warning-panel {
  border-color: rgba(180, 83, 9, 0.25);
}

.content-warning {
  margin-top: 36px;
  padding: 22px 24px;
  background: #fffaf0;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-left: 6px solid var(--score-mid);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.content-warning h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.content-warning p {
  max-width: 880px;
  margin-bottom: 0;
  color: #475467;
  line-height: 1.58;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.audit-table td:last-child a {
  color: var(--accent-text);
}

.replacement-warning {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 22px;
  color: #7a271a;
  background: #fff4ed;
  border: 1px solid #fecdca;
  border-left: 6px solid var(--score-bad);
  border-radius: 14px;
}

.replacement-warning strong {
  color: #7a271a;
  font-size: 22px;
}

.replacement-warning p {
  max-width: 820px;
  margin: 0;
  line-height: 1.55;
}

.replacement-warning .copy-button {
  justify-self: start;
  margin-top: 6px;
}

.section-head.compact {
  margin-top: 0;
}

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

.copy-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 180px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.copy-card span,
.copy-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.copy-card strong {
  overflow-wrap: anywhere;
  color: #101828;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  line-height: 1.15;
}

.copy-button.secondary {
  justify-self: start;
  min-height: 38px;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.risk-score-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--score-good);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.risk-score-panel.mid {
  border-left-color: var(--score-mid);
}

.risk-score-panel.bad,
.risk-score-panel.warning {
  border-left-color: var(--score-bad);
}

.risk-score-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.risk-score-summary h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.risk-score-summary p {
  color: #475467;
  line-height: 1.55;
}

.risk-score-summary > strong {
  flex: 0 0 auto;
  color: var(--score-good);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
}

.risk-score-panel.mid .risk-score-summary > strong {
  color: var(--score-mid);
}

.risk-score-panel.bad .risk-score-summary > strong {
  color: var(--score-bad);
}

.risk-warning {
  margin-bottom: 0;
  color: var(--score-bad) !important;
  font-weight: 850;
}

.risk-factor-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.risk-factor {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.risk-factor:last-child {
  border-bottom: 0;
}

.risk-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
}

.risk-factor.pass .risk-icon {
  color: var(--score-good);
  border-color: var(--score-good);
}

.risk-factor.fail .risk-icon {
  color: var(--score-bad);
  border-color: var(--score-bad);
}

.risk-factor div {
  display: grid;
  gap: 4px;
}

.risk-factor a,
.risk-factor strong {
  color: var(--accent-text);
  font-weight: 900;
  text-decoration: none;
}

.risk-factor span:not(.risk-icon) {
  color: #475467;
  line-height: 1.5;
}

.faq-list details {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.faq-list summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: #475467;
  line-height: 1.55;
}

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

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.task-grid a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  color: inherit;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.task-grid strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.task-grid span {
  color: #475467;
  line-height: 1.45;
}

.article-card-grid a {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.article-card-grid strong {
  color: var(--accent-dark);
  font-size: 22px;
}

.article-card-grid span {
  color: #475467;
  line-height: 1.5;
}

.article-page article {
  max-width: 820px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.article-page article p {
  color: #475467;
  font-size: 18px;
  line-height: 1.62;
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.abbr-table {
  min-width: 680px;
}

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

.data-table th {
  color: #344054;
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 900;
}

.data-table td {
  font-size: 14px;
}

.code-cell {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 950;
}

.plain-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: #475467;
  line-height: 1.55;
}

.region-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.region-summary div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--panel);
}

.region-summary span {
  color: var(--muted);
  font-size: 13px;
}

.region-summary strong {
  font-size: 28px;
  line-height: 1;
}

.changes-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.changes-toolbar div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--panel);
}

.changes-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.changes-toolbar strong {
  font-size: 24px;
  line-height: 1.1;
}

.changes-list {
  display: grid;
  gap: 14px;
}

.changes-list article {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.changes-list a {
  display: grid;
  gap: 8px;
  align-content: start;
  color: inherit;
  text-decoration: none;
}

.changes-list a strong {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.3;
}

.changes-list dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: transparent;
}

.changes-list dl div {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.steps-list li {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--panel);
}

.steps-list strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.steps-list span {
  color: #475467;
  line-height: 1.5;
}

.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  scrollbar-width: thin;
}

.breadcrumbs a {
  flex: 0 0 auto;
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 850;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
}

.breadcrumbs [aria-current="page"] {
  flex: 0 0 auto;
  padding: 2px 8px;
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.record-hero,
.list-hero {
  padding-bottom: 26px;
}

.record-hero h1,
.list-hero h1 {
  max-width: none;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.action-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--accent-text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  transition:
    border-color 120ms ease,
    color 120ms ease,
    background-color 120ms ease;
}

.action-bar button:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.action-bar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-status {
  min-width: 1px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.list-hero p {
  max-width: 720px;
  color: #475467;
  font-size: 18px;
  line-height: 1.5;
}

.copy-button {
  width: auto;
  min-height: 46px;
  border: 0;
  cursor: pointer;
}

.fact-panel h2 {
  font-size: 28px;
}

dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  background: var(--panel);
}

dt {
  color: var(--muted);
  font-weight: 850;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.code-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 950;
}

.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list li {
  display: grid;
  gap: 4px;
}

.link-list a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 900;
}

.children-section,
.usage-section,
.download-section {
  margin-top: 36px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head span {
  color: var(--green);
  font-size: 28px;
  font-weight: 950;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-actions.inline {
  margin-top: 16px;
}

.download-actions a {
  min-height: 42px;
  background: var(--green);
}

.tool-panel {
  max-width: 900px;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.converter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.converter-result {
  min-height: 52px;
  margin-top: 18px;
  padding: 14px 16px;
  color: #475467;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
}

.converter-result a {
  color: var(--accent-text);
  text-decoration: none;
}

.converter-empty {
  color: var(--score-bad);
  font-weight: 850;
}

.converter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.converter-grid input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@media (max-width: 980px) {
  .hero-nav,
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .top-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header .search-shell {
    justify-self: stretch;
    width: 100%;
  }

  .hero-grid,
  .map-section,
  .feature-band,
  .guidance-grid,
  .info-article-grid,
  .explain-grid,
  .audit-grid,
  .record-grid,
  .copy-grid,
  .directory-list.region-grid,
  .article-card-grid,
  .region-summary,
  .changes-toolbar,
  .type-overview,
  .task-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }

  .changes-list article {
    grid-template-columns: 1fr;
  }

  .changes-list dl {
    grid-template-columns: 1fr;
  }

  .risk-score-summary {
    flex-direction: column;
  }

  .source-row,
  .source-row dl {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 34px;
  }

  .district-map {
    display: none;
  }

  .district-list {
    display: grid;
  }

  .tree-intro,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .action-bar {
    position: sticky;
    bottom: 0;
    z-index: 8;
    width: 100%;
    justify-content: space-between;
    border-radius: 14px 14px 0 0;
  }

  .action-bar button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 560px) {
  .home-hero,
  .page {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .lead {
    font-size: 17px;
  }

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

  .directory-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .directory-list em {
    padding: 0 18px 14px;
  }

  .action-bar {
    margin-right: -16px;
    margin-left: -16px;
    max-width: calc(100% + 32px);
  }

  .action-bar button {
    padding: 0 10px;
  }
}

@media print {
  .action-bar {
    display: none !important;
  }
}
