:root {
  --ink: #14231f;
  --ink-soft: #30423c;
  --muted: #68766f;
  --paper: #f4f7f3;
  --paper-deep: #e9efe9;
  --surface: #ffffff;
  --line: #d9e1dc;
  --line-strong: #bac8c0;
  --accent: #e85b36;
  --accent-dark: #bb3e20;
  --accent-soft: #fff0e9;
  --brand: #1e7168;
  --brand-dark: #124c47;
  --brand-soft: #e8f5f1;
  --yellow: #f2c94c;
  --yellow-soft: #fff8d9;
  --blue: #3f6f9f;
  --blue-soft: #edf5fc;
  --rose: #b44d69;
  --rose-soft: #fceef3;
  --success: #258b65;
  --warning: #aa6a00;
  --danger: #b43a2e;
  --shadow-sm: 0 2px 8px rgba(20, 35, 31, 0.06);
  --shadow-md: 0 16px 42px rgba(20, 35, 31, 0.11);
  --shadow-lg: 0 28px 78px rgba(20, 35, 31, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 25px;
  --radius-xl: 34px;
  --font-body: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 4%, rgba(242, 201, 76, 0.16), transparent 22rem),
    radial-gradient(circle at 96% 30%, rgba(30, 113, 104, 0.1), transparent 28rem),
    var(--paper);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

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

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

h1,
h2,
h3 {
  line-height: 1.28;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid rgba(232, 91, 54, 0.56);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--brand);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.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;
}

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

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(217, 225, 220, 0.9);
  background: rgba(244, 247, 243, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--brand);
  border-radius: 10px 10px 4px 10px;
  place-items: center;
  box-shadow: 7px 7px 0 rgba(232, 91, 54, 0.18);
}

.brand-mark::before {
  width: 13px;
  height: 13px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 8px 0 -5px currentColor;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.desktop-nav a[aria-current="page"]::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto 0;
  content: "";
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  padding: 13px 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(232, 91, 54, 0.22);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-dark);
}

.btn-brand {
  color: #fff;
  background: var(--brand);
}

.btn-brand:hover {
  color: #fff;
  background: var(--brand-dark);
}

.btn-outline {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
}

.btn-icon {
  width: 42px;
  min-height: 42px;
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.page-alert {
  padding: 9px 0;
  color: var(--ink-soft);
  background: var(--yellow-soft);
  border-bottom: 1px solid rgba(170, 106, 0, 0.15);
  font-size: 11px;
  text-align: center;
}

.page-alert strong {
  color: #6f4600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 34px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 32px;
  right: -70px;
  width: 460px;
  height: 280px;
  content: "";
  opacity: 0.5;
  background-image: radial-gradient(rgba(30, 113, 104, 0.2) 1px, transparent 1px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs span {
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.hero h1 {
  max-width: 840px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  color: var(--brand);
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: 0.07em;
  left: -2%;
  height: 0.23em;
  content: "";
  background: rgba(242, 201, 76, 0.56);
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.search-shell {
  position: relative;
  z-index: 3;
  margin-top: 31px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow-md);
}

.search-main {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 150px 165px auto;
  gap: 8px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field-control {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field-control:focus {
  border-color: var(--brand);
}

.field-control::placeholder {
  color: #87938d;
}

.search-submit {
  align-self: end;
  min-height: 49px;
  border-radius: 12px;
}

.quick-search {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.quick-search span {
  padding: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.quick-chip,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.quick-chip:hover,
.chip:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.diagnosis-card {
  position: relative;
  min-height: 300px;
  padding: 27px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.diagnosis-card::before {
  position: absolute;
  top: -115px;
  right: -100px;
  width: 300px;
  height: 300px;
  content: "";
  border: 34px solid rgba(242, 201, 76, 0.22);
  border-radius: 50%;
}

.diagnosis-card::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 94px;
  height: 94px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.04), 0 0 0 38px rgba(255, 255, 255, 0.025);
}

.diagnosis-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.diagnosis-label {
  margin-bottom: 10px;
  color: #b8d5ce;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.diagnosis-card h2 {
  max-width: 270px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 27px;
}

.diagnosis-card p {
  max-width: 360px;
  margin-bottom: 23px;
  color: #c9d7d3;
  font-size: 12px;
}

.match-ring {
  position: relative;
  display: grid;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 82%, rgba(255, 255, 255, 0.14) 82% 100%);
  place-items: center;
}

.match-ring::before {
  position: absolute;
  width: 62px;
  height: 62px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

.match-ring strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 19px;
}

.diagnosis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.diagnosis-meta span {
  padding: 5px 9px;
  color: #dce7e3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
}

.diagnosis-card .btn {
  position: relative;
  z-index: 2;
}

.evidence-strip {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 1px 24px;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

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

.stat strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.catalog-section {
  padding: 45px 0 86px;
  scroll-margin-top: 84px;
}

#regions,
#guides {
  scroll-margin-top: 84px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-heading h2 {
  margin: 0;
  font-size: 15px;
}

.filter-reset {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-group h3 {
  margin-bottom: 11px;
  font-size: 12px;
}

.check-list {
  display: grid;
  gap: 7px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button {
  min-height: 32px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.filter-mobile-button {
  display: none;
}

.results-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.results-title h2 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
}

.results-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-count {
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 800;
  vertical-align: 0.22em;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.sort-control select {
  min-height: 38px;
  padding: 7px 34px 7px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 14px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #c8e0d9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.active-filter::after {
  content: "×";
}

.results-list {
  display: grid;
  gap: 12px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  padding: 21px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(20, 35, 31, 0.02);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.result-card:hover {
  border-color: #aabdb4;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.result-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(30, 113, 104, 0.12);
}

.card-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.purpose-glyph {
  display: grid;
  width: 54px;
  height: 54px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 15px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  place-items: center;
}

.purpose-glyph[data-tone="orange"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.purpose-glyph[data-tone="blue"] {
  color: #315c86;
  background: var(--blue-soft);
}

.purpose-glyph[data-tone="yellow"] {
  color: #7a5a00;
  background: var(--yellow-soft);
}

.purpose-glyph[data-tone="rose"] {
  color: var(--rose);
  background: var(--rose-soft);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.badge-status {
  color: #fff;
  background: var(--success);
}

.badge-status[data-status="募集予定"] {
  color: #5b4200;
  background: var(--yellow);
}

.badge-status[data-status="受付終了"] {
  color: var(--muted);
  background: #e6ebe8;
}

.badge-type {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.card-title {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.card-summary {
  display: -webkit-box;
  max-width: 680px;
  margin-bottom: 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tags span {
  color: var(--muted);
  font-size: 9px;
}

.card-tags span::before {
  margin-right: 3px;
  content: "#";
}

.card-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding-top: 35px;
  padding-left: 19px;
  border-left: 1px solid var(--line);
  pointer-events: none;
}

.card-fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.card-amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.card-rate {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.card-deadline {
  min-width: 80px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.card-deadline.is-urgent {
  color: var(--danger);
}

.deadline-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.card-actions {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 5px;
}

.icon-action {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  place-items: center;
}

.icon-action:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.icon-action.is-on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.result-empty {
  padding: 55px 25px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.result-empty h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.result-empty p {
  max-width: 440px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.load-more-wrap {
  padding-top: 22px;
  text-align: center;
}

.ad-slot {
  margin: 20px 0;
}

.ad-slot:empty {
  display: none;
}

.ad-slot--wide {
  width: min(calc(100% - 40px), var(--container));
  margin: 16px auto 0;
}

.ad-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.ad-link:hover {
  border-color: var(--line-strong);
}

.ad-link img {
  width: 100%;
  height: auto;
}

.ad-label {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 7px;
  padding: 2px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.ad-slot--inline {
  grid-column: 1 / -1;
  margin: 2px 0;
}

.ad-slot--inline .ad-link {
  background: var(--paper);
}

.compare-tray {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: 18px;
  display: none;
  width: min(calc(100% - 32px), 760px);
  padding: 12px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateX(50%);
}

.compare-tray.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-items {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-items span {
  max-width: 190px;
  padding: 6px 9px;
  overflow: hidden;
  color: #d4e2dd;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-actions {
  display: flex;
  gap: 7px;
}

.compare-actions .btn {
  min-height: 36px;
  padding: 7px 13px;
}

.section {
  padding: 72px 0;
}

.landing-hero {
  padding: 44px 0 28px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.landing-grid h1 {
  max-width: 820px;
  margin-bottom: 15px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.045em;
}

.landing-lead {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 14px;
}

.landing-facts {
  max-width: 760px;
  grid-template-columns: repeat(3, 1fr);
}

.landing-list {
  display: grid;
  gap: 12px;
}

.fact-box h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
}

.section-tight {
  padding: 44px 0;
}

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

.section-heading h2 {
  max-width: 730px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.route-card {
  position: relative;
  min-height: 235px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.route-card:hover {
  color: var(--ink);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.route-card::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  content: "";
  border: 22px solid var(--brand-soft);
  border-radius: 50%;
}

.route-card:nth-child(2)::after {
  border-color: var(--accent-soft);
}

.route-card:nth-child(3)::after {
  border-color: var(--yellow-soft);
}

.route-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 33px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  place-items: center;
}

.route-card:nth-child(2) .route-number {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.route-card:nth-child(3) .route-number {
  color: #745600;
  background: var(--yellow-soft);
}

.route-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 23px;
}

.route-card p {
  max-width: 270px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.region-board {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.region-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.region-link:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.region-link span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.9fr);
  gap: 14px;
}

.guide-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.guide-card:first-child {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.guide-card .kicker {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.guide-card:first-child .kicker {
  color: #b9ddd6;
}

.guide-card h3 {
  max-width: 380px;
  margin-bottom: 11px;
  font-family: var(--font-display);
  font-size: 25px;
}

.guide-card p {
  max-width: 380px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.guide-card:first-child p {
  color: #c6dad5;
}

.guide-card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  content: "→";
  font-size: 22px;
}

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

.faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: 0 0 20px;
  color: var(--brand);
  content: "+";
  font-size: 20px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 19px 18px;
  color: var(--muted);
  font-size: 12px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-xl);
}

.cta-band h2 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
}

.cta-band p {
  max-width: 690px;
  margin-bottom: 0;
  color: #ffe6de;
  font-size: 12px;
}

.cta-band .btn {
  color: var(--ink);
  background: #fff;
}

.site-footer {
  padding: 50px 0 30px;
  color: #c8d7d2;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 38px;
}

.footer-brand .brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand .brand-mark {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-name small {
  color: #9eb2ac;
}

.footer-brand p {
  max-width: 350px;
  color: #9eb2ac;
  font-size: 11px;
}

.footer-column h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  color: #b4c4bf;
  font-size: 11px;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 36px;
  color: #7f938c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
}

.dialog {
  width: min(calc(100% - 32px), 940px);
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgba(13, 24, 21, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  place-items: center;
}

.dialog-body {
  padding: 24px;
}

.filters-dialog .filter-panel {
  position: static;
  display: block;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.filters-dialog .dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.filters-dialog .dialog-actions .btn {
  flex: 1;
}

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

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 11px;
}

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

.compare-table th {
  width: 125px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Detail page */
.detail-hero {
  padding: 42px 0 28px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.detail-hero h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 57px);
}

.detail-lead {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.detail-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.detail-hub-links a {
  padding: 5px 9px;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.fact-box {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.fact-box .status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.fact-box dl {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
}

.fact-box dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.fact-box dt {
  color: var(--muted);
  font-size: 10px;
}

.fact-box dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.fact-box dd.is-large {
  font-family: var(--font-display);
  font-size: 23px;
}

.fact-box .btn {
  width: 100%;
  margin-top: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  align-items: start;
  padding-bottom: 82px;
}

.detail-content {
  min-width: 0;
}

.content-block {
  padding: 28px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.content-block h2 {
  margin-bottom: 17px;
  font-family: var(--font-display);
  font-size: 28px;
}

.content-block h3 {
  margin: 25px 0 9px;
  font-size: 15px;
}

.quick-answer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 17px 0 0;
}

.quick-answer div {
  padding: 14px;
  background: var(--paper);
  border-radius: 11px;
}

.quick-answer span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.quick-answer strong {
  font-size: 13px;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

.checklist label:has(input:checked) {
  background: var(--brand-soft);
  border-color: #c8e0d9;
}

.checklist input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.readiness-meter {
  margin-top: 17px;
  padding: 14px;
  background: var(--ink);
  border-radius: 11px;
}

.readiness-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  color: #d3e1dc;
  font-size: 10px;
}

.meter-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.meter-fill {
  width: 0;
  height: 100%;
  background: var(--yellow);
  border-radius: inherit;
  transition: width 260ms ease;
}

.simulator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 18px;
  background: var(--paper);
  border-radius: 14px;
}

.simulator .field label {
  color: var(--ink-soft);
}

.simulator .field-control {
  background: #fff;
}

.simulation-result {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 12px;
}

.simulation-result span {
  color: #b9d2cc;
  font-size: 10px;
}

.simulation-result strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 18px;
  background: var(--paper);
  border-radius: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .field:last-of-type {
  grid-column: 1 / -1;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}

.timeline-step:not(:last-child)::before {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 15px;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.timeline-index {
  display: grid;
  width: 31px;
  height: 31px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  place-items: center;
}

.timeline-step h3 {
  margin: 2px 0 5px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 8px 0 8px 17px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.plain-list li::before {
  position: absolute;
  top: 1.25em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--brand);
  border-radius: 50%;
}

.detail-aside {
  position: sticky;
  top: 92px;
}

.toc {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.toc h2 {
  margin-bottom: 11px;
  font-size: 12px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-decoration: none;
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover {
  color: var(--brand-dark);
}

.source-note {
  padding: 16px;
  margin-top: 12px;
  color: var(--muted);
  background: var(--yellow-soft);
  border-radius: 12px;
  font-size: 10px;
}

/* Diagnosis page */
.diagnosis-page {
  padding: 50px 0 90px;
}

.diagnosis-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.diagnosis-heading h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 56px);
  letter-spacing: -0.04em;
}

.diagnosis-heading p {
  color: var(--muted);
  font-size: 13px;
}

.diagnosis-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.wizard-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.wizard-progress {
  margin-bottom: 32px;
}

.wizard-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.wizard-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.wizard-track span {
  height: 5px;
  background: var(--line);
  border-radius: 999px;
}

.wizard-track span.is-done {
  background: var(--brand);
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
  animation: rise-in 260ms ease both;
}

.wizard-step > h1,
.wizard-step > h2 {
  max-width: 740px;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
}

.wizard-step > p {
  color: var(--muted);
  font-size: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 100px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(232, 91, 54, 0.56);
  outline-offset: 3px;
}

.choice-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.choice-body span {
  color: var(--muted);
  font-size: 10px;
}

.choice-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 19px;
  height: 19px;
  color: transparent;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  place-items: center;
}

.choice-card:has(input:checked) .choice-check {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.choice-check::before {
  content: "✓";
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}

.wizard-actions .btn {
  min-width: 120px;
}

.wizard-aside {
  position: sticky;
  top: 95px;
  padding: 23px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.wizard-aside h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 23px;
}

.wizard-aside p {
  color: #b7c8c2;
  font-size: 11px;
}

.answer-summary {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.answer-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  color: #dbebe6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.answer-summary strong {
  color: #fff;
}

.diagnosis-results {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.diagnosis-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.score-dial {
  display: grid;
  width: 62px;
  height: 62px;
  color: var(--brand-dark);
  background: conic-gradient(var(--brand) var(--score), var(--paper-deep) 0);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  place-items: center;
}

.score-dial::before {
  display: grid;
  width: 49px;
  height: 49px;
  content: attr(data-score);
  background: #fff;
  border-radius: 50%;
  place-items: center;
}

.diagnosis-result h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

.diagnosis-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.diagnosis-result .btn {
  min-height: 36px;
  padding: 7px 12px;
}

/* Guide page */
.article-hero {
  padding: 50px 0 30px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  justify-content: center;
  gap: 46px;
  padding-bottom: 82px;
}

.article-hero h1 {
  max-width: 850px;
  margin-bottom: 17px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
}

.article-hero p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 14px;
}

.article-body {
  padding: 31px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.article-body h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 29px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-hero-image {
  margin: 0 0 22px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--radius-md);
}

.article-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h3 {
  margin-top: 26px;
  margin-bottom: 9px;
  font-size: 16px;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
  font-size: 12px;
}

.article-body table {
  width: 100%;
  margin: 17px 0;
  border-collapse: collapse;
  font-size: 11px;
}

.article-body th,
.article-body td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-body th {
  background: var(--paper);
}

.article-aside {
  position: sticky;
  top: 96px;
}

.article-cta {
  padding: 22px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
}

.article-cta h2 {
  font-family: var(--font-display);
  font-size: 22px;
}

.article-cta p {
  color: #b9d2cc;
  font-size: 11px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }

  .search-main {
    grid-template-columns: 1fr 130px 145px;
  }

  .search-submit {
    grid-column: 1 / -1;
  }

  .catalog-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 22px;
  }

  .result-card {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

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

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .desktop-nav,
  .header-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 35px;
  }

  .hero-grid,
  .detail-hero-grid,
  .diagnosis-shell,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 26px;
  }

  .diagnosis-card {
    min-height: 250px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

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

  .stat:first-child,
  .stat {
    padding-left: 0;
  }

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

  .filter-panel {
    display: none;
  }

  .filter-mobile-button {
    display: inline-flex;
  }

  .results-top {
    align-items: center;
  }

  .route-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 210px;
  }

  .guide-card .kicker {
    margin-bottom: 34px;
  }

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

  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .detail-aside {
    position: static;
    grid-row: 1;
  }

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

  .toc {
    display: none;
  }

  .wizard-aside {
    position: static;
    grid-row: 2;
  }

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

  .article-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  .quick-chip,
  .chip,
  .segmented button,
  .active-filter {
    min-height: 40px;
  }

  .icon-action {
    width: 40px;
    height: 40px;
  }

  .page-alert {
    padding-inline: 14px;
    line-height: 1.55;
  }

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

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 13px;
  }

  .search-shell {
    padding: 8px;
  }

  .search-main {
    grid-template-columns: 1fr 1fr;
  }

  .search-main .field:first-child,
  .search-submit {
    grid-column: 1 / -1;
  }

  .field-control,
  .search-submit {
    min-height: 46px;
  }

  .diagnosis-card {
    padding: 22px;
  }

  .diagnosis-top {
    display: block;
  }

  .match-ring {
    position: absolute;
    top: 21px;
    right: 21px;
  }

  .diagnosis-card h2 {
    padding-right: 76px;
    font-size: 24px;
  }

  .evidence-strip {
    overflow: hidden;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat {
    padding: 0;
    border: 0;
  }

  .stat strong {
    font-size: 23px;
  }

  .catalog-section {
    padding-top: 34px;
  }

  .results-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
  }

  .results-title {
    min-width: 0;
  }

  .results-title h2 {
    font-size: 27px;
  }

  .results-top > div:last-child {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .filter-mobile-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sort-control {
    margin-left: auto;
  }

  .sort-control {
    display: block;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    max-width: 126px;
  }

  .result-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .card-main {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 11px;
  }

  .purpose-glyph {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    font-size: 16px;
  }

  .card-title {
    padding-right: 50px;
    font-size: 15px;
  }

  .card-summary {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }

  .card-facts {
    grid-template-columns: 1fr auto;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-amount {
    font-size: 19px;
  }

  .card-actions {
    top: 13px;
    right: 13px;
    flex-direction: column;
  }

  .region-board {
    padding: 18px;
  }

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

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 10px;
    font-size: 31px;
  }

  .cta-band {
    padding: 24px;
  }

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

  .footer-bottom {
    display: block;
  }

  .compare-tray.is-visible {
    display: block;
  }

  .compare-actions {
    margin-top: 9px;
  }

  .detail-hero {
    padding-top: 28px;
  }

  .detail-hero h1 {
    font-size: 34px;
  }

  .content-block {
    padding: 20px;
  }

  .quick-answer,
  .two-column-list,
  .simulator,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .landing-facts {
    grid-template-columns: 1fr;
  }

  .simulation-result {
    grid-column: auto;
  }

  .contact-form .field:last-of-type {
    grid-column: auto;
  }

  .wizard-card {
    padding: 20px;
  }

  .choice-grid,
  .choice-grid.three {
    grid-template-columns: 1fr;
  }

  .wizard-step > h1,
  .wizard-step > h2 {
    font-size: 31px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .diagnosis-result {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .diagnosis-result .btn {
    grid-column: 1 / -1;
  }

  .article-body {
    padding: 21px;
  }

  .article-shell {
    padding-bottom: 56px;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.agent-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #c9d8d1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 20%, rgba(232, 189, 65, .18), transparent 34%),
    linear-gradient(135deg, #f2f8f5, #fffdf5);
  box-shadow: 0 14px 34px rgba(17, 67, 54, .07);
}
.agent-contact-card:empty { display: none; }
.agent-contact-kicker { color: var(--green, #0f6f5a); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.agent-contact-copy h2 { margin: 6px 0 10px; font-size: clamp(22px, 3vw, 32px); }
.agent-contact-copy p { margin: 0; max-width: 620px; color: var(--muted, #64716b); line-height: 1.8; }
.agent-contact-status-link { display: inline-flex; margin-top: 14px; color: var(--green, #0f6f5a); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.agent-contact-person { min-width: 170px; text-align: center; }
.agent-contact-person h3 { margin: 0 0 10px; font-size: 16px; }
.agent-contact-channels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.agent-contact-channel { display: grid; gap: 5px; justify-items: center; min-width: 92px; padding: 9px; border: 1px solid #d6e0da; border-radius: 12px; background: #fff; }
.agent-contact-channel img { width: 96px; height: 96px; object-fit: contain; }
.agent-contact-channel span { color: var(--green, #0f6f5a); font-size: 12px; font-weight: 800; }
.agent-contact-channel a { font-size: 11px; font-weight: 700; text-decoration: underline; }
.detail-aside .agent-contact-card,
.article-aside .agent-contact-card { grid-template-columns: 1fr; padding: 18px; }
.detail-aside .agent-contact-person,
.article-aside .agent-contact-person { min-width: 0; }
@media (max-width: 700px) {
  .agent-contact-card { grid-template-columns: 1fr; }
  .agent-contact-person { text-align: left; }
  .agent-contact-channels { justify-content: flex-start; }
}
