:root {
  --ink: #142137;
  --muted: #5c687a;
  --paper: #f6f7f4;
  --white: #ffffff;
  --blue: #175f78;
  --blue-dark: #0e455a;
  --blue-soft: #e9f4f6;
  --green: #1c7358;
  --green-soft: #e6f4ee;
  --amber: #9b5b0b;
  --amber-soft: #fff2d9;
  --red: #a13c3c;
  --line: #dce2e6;
  --shadow: 0 18px 50px rgba(21, 39, 54, 0.09);
  --radius: 22px;
  --font: "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 226, 230, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  background: var(--blue);
  border-radius: 12px 12px 12px 3px;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.trial-badge {
  padding: 6px 10px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--amber-soft);
  border: 1px solid #f0d8a8;
  border-radius: 999px;
}

.hero {
  padding: 84px 0 76px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(81, 184, 185, 0.35), transparent 24%),
    linear-gradient(135deg, #0f3c51 0%, #175f78 58%, #237b82 100%);
}

.hero-grid,
.station-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.eyebrow,
.panel-kicker,
.facility-type {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a7e8e7;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 21px;
  line-height: 1.35;
}

.hero-copy,
.station-intro {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
}

.button.primary {
  color: var(--blue-dark);
  background: var(--white);
}

.button.secondary {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: #bddbdf;
}

.button.small {
  min-height: 42px;
  font-size: 14px;
}

.answer-panel,
.quick-answer,
.sources-box {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.answer-panel {
  color: var(--ink);
}

.panel-kicker {
  color: var(--blue);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric {
  min-height: 118px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metric strong,
.metric span,
.metric small {
  display: block;
}

.metric strong {
  color: var(--blue-dark);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
}

.panel-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.review-callout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-callout h2,
.review-callout p {
  margin-bottom: 0;
}

.review-callout > p {
  color: var(--muted);
}

.station-section,
.content-section {
  padding: 76px 0 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 28px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 520px;
  color: var(--muted);
}

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

.station-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quality-pill {
  max-width: 190px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: right;
  line-height: 1.35;
}

.quality-rich {
  color: var(--green);
  background: var(--green-soft);
}

.quality-limited {
  color: var(--amber);
  background: var(--amber-soft);
}

.station-card h2 {
  margin: 24px 0 4px;
  font-size: 24px;
}

.aliases {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.aliases.large {
  font-size: 15px;
}

.mini-metrics {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.mini-metrics strong {
  color: var(--ink);
}

.source-line {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.alt-status {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
}

.has-alt {
  color: var(--green);
}

.no-alt {
  color: var(--red);
}

.card-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.card-link.muted {
  color: #8d96a3;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--blue);
}

.station-hero {
  padding: 50px 0 62px;
}

.station-hero h1 {
  color: var(--blue-dark);
}

.station-hero .station-intro {
  color: var(--muted);
}

.quick-answer {
  border-top: 6px solid var(--blue);
}

.quick-answer h2 {
  font-size: 25px;
}

.quick-answer dl,
.alternative-card dl {
  margin: 0;
}

.quick-answer dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.quick-answer dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-answer dd {
  margin: 0;
  font-weight: 800;
}

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

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

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

.data-table thead th {
  color: var(--muted);
  font-size: 12px;
  background: #eef2f2;
}

.data-table tbody th {
  width: 42%;
}

.data-table tbody th strong,
.data-table tbody th small {
  display: block;
}

.data-table tbody th small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
}

.count-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.count-pills span,
.status {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.count-pills span {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.count-pills .unknown-text,
.status.uncertain {
  color: var(--amber);
  background: var(--amber-soft);
}

.status.positive {
  color: var(--green);
  background: var(--green-soft);
}

.source-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.fallback-section {
  padding: 76px 0;
  background: #eaf1f2;
}

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

.alternative-card {
  padding: 24px;
  background: var(--white);
  border-radius: 18px;
}

.facility-type {
  color: var(--green);
}

.alternative-card dl div {
  margin-bottom: 13px;
}

.alternative-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.alternative-card dd {
  margin: 2px 0 0;
}

.alternative-card dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.empty-state {
  padding: 30px;
  background: var(--white);
  border-left: 5px solid var(--amber);
  border-radius: 12px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.limits-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 52px;
  padding-top: 76px;
  padding-bottom: 90px;
}

.limit-list,
.source-list {
  padding: 0;
  list-style: none;
}

.limit-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.limit-list span {
  color: var(--muted);
}

.sources-box h2 {
  font-size: 23px;
}

.source-list li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
}

.source-list .evidence-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.source-list span,
.sources-box > p {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 30px 0;
  color: #d7e3e5;
  background: #132c39;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 920px) {
  .hero-grid,
  .station-hero-grid,
  .review-callout,
  .limits-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .station-hero-grid {
    gap: 36px;
  }

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

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

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

  .header-inner {
    min-height: 66px;
  }

  .trial-badge {
    display: none;
  }

  .hero {
    padding: 56px 0;
  }

  h1 {
    font-size: 39px;
  }

  .metric-grid,
  .station-grid,
  .alternative-grid {
    grid-template-columns: 1fr;
  }

  .review-callout {
    gap: 18px;
    padding: 24px;
  }

  .station-section,
  .content-section,
  .fallback-section {
    padding: 56px 0;
  }

  .station-card {
    min-height: auto;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .data-table th,
  .data-table td,
  .data-table tbody th {
    width: auto;
    padding: 6px 0;
    border: 0;
  }

  .quick-answer dl div,
  .limit-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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