@layer reset,base,layout,components;
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  dd {
    margin: 0;
  }
  button,
  input,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  summary {
    -webkit-tap-highlight-color: transparent;
  }
  button,
  select,
  summary {
    cursor: pointer;
  }
  button:disabled {
    cursor: not-allowed;
  }
  img,
  svg {
    display: block;
    max-width: 100%;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    --ink: #222b35;
    --muted: #536170;
    --paper: #ffffff;
    --surface: #fff;
    --line: #d5dde4;
    --green: #164f7b;
    --green-soft: #f1f5f9;
    --amber: #536170;
    --amber-soft: #f1f5f9;
    --error: #a32626;
    --radius: 16px;
    --shadow: 0 12px 36px #222b3508;
    --font:
      -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
      "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  a {
    color: var(--green);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }
  a:hover {
    text-decoration-thickness: 2px;
  }
  button,
  input,
  select {
    color: var(--ink);
  }
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 3px solid #164f7b;
    outline-offset: 4px;
  }
  h1,
  h2,
  h3,
  h4 {
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.025em;
    text-wrap: balance;
  }
  h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.55;
    letter-spacing: 0.04em;
  }
  h2 {
    font-size: clamp(24px, 3vw, 32px);
  }
  h3 {
    font-size: 19px;
  }
  p + p {
    margin-top: 16px;
  }
  small,
  .small {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
  }
  svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    flex-shrink: 0;
  }
  ul,
  ol {
    padding-left: 1.4em;
  }
  li + li {
    margin-top: 10px;
  }
  input,
  select {
    width: 100%;
    border: 1px solid #a7b5aa;
    border-radius: 8px;
    background: var(--surface);
    min-height: 50px;
    padding: 12px;
    font-size: 16px;
  }
  input::placeholder {
    color: #67766c;
  }
  input[aria-invalid="true"],
  select[aria-invalid="true"] {
    border: 2px solid var(--error);
  }
  button {
    border: 0;
  }
  .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    color: var(--muted);
  }
  .external {
    font-size: 12px;
  }
  ::selection {
    background: #d5e6f4;
  }
}
@layer layout {
  .container {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
  }
  .section {
    padding-block: 64px;
  }
  .section + .section {
    padding-top: 8px;
  }
  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
  }
  .section-heading .eyebrow {
    margin-bottom: 8px;
  }
  .section-heading > p,
  .section-intro {
    color: var(--muted);
    font-size: 14px;
    max-width: 43ch;
  }
  .section-intro {
    margin: 16px 0 24px;
    max-width: 75ch;
  }
  .preview-note {
    background: var(--green);
    color: #fff;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 6px 12px;
  }
  .site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 25px;
    letter-spacing: 0.08em;
    font-weight: 750;
    line-height: 1.45;
  }
  .brand svg {
    width: 37px;
    height: 37px;
  }
  .brand small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
    margin-top: 4px;
  }
  .site-header nav {
    display: flex;
    gap: 32px;
    font-size: 13px;
  }
  .site-header nav a {
    text-decoration: none;
    padding: 10px 0;
  }
  .home-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 76px;
  }
  .home-hero .eyebrow {
    margin-bottom: 20px;
  }
  .home-hero h1 em {
    font-style: normal;
    background: linear-gradient(transparent 70%, #dbe8d4 70%);
  }
  .hero-description {
    font-size: 16px;
    color: var(--muted);
    margin-top: 24px;
    max-width: 64ch;
    line-height: 2;
  }
  .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    font-size: 11px;
    font-weight: 600;
  }
  .trust-row span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .trust-row svg {
    width: 17px;
    height: 17px;
  }
  .process-strip {
    border-block: 1px solid var(--line);
    background: #f5f7fa;
  }
  .process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-block: 28px;
  }
  .process-grid > div {
    position: relative;
    padding-left: 44px;
  }
  .process-grid span {
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--amber);
    font-size: 13px;
    letter-spacing: 0.09em;
    font-family: Georgia, serif;
  }
  .process-grid strong {
    font-size: 14px;
  }
  .process-grid p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
  }
  .region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .editorial-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 42px;
    background: var(--green-soft);
    border-radius: var(--radius);
  }
  .editorial-panel .eyebrow {
    margin-bottom: 12px;
  }
  .editorial-panel p {
    font-size: 14px;
    color: var(--muted);
  }
  .editorial-panel .text-link {
    margin-top: 20px;
  }
  .site-footer {
    margin-top: 32px;
    padding: 48px 0;
    background: #f5f7fa;
    border-top: 1px solid var(--line);
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
  }
  .footer-inner .brand {
    font-size: 21px;
  }
  .footer-inner > p {
    font-size: 13px;
    color: var(--muted);
    align-self: center;
  }
  .footer-inner > div {
    display: flex;
    gap: 24px;
    font-size: 12px;
  }
  .footer-inner > small {
    grid-column: 2;
    grid-row: 2/4;
  }
  .breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    padding-block: 22px;
    color: var(--muted);
  }
  .breadcrumbs a {
    text-decoration: none;
  }
  .area-hero {
    padding-top: 22px;
    padding-bottom: 8px;
  }
  .area-hero h1 {
    font-size: clamp(32px, 4vw, 47px);
    margin-top: 12px;
  }
  .area-lead {
    font-size: 20px;
    font-weight: 650;
    margin-top: 20px;
  }
  .area-hero .hero-description {
    margin-top: 10px;
    font-size: 14px;
    max-width: 78ch;
  }
  .checked-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 18px;
    font-size: 12px;
    color: var(--muted);
  }
  .checked-row > span:last-child {
    margin-left: auto;
  }
  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #164f7b;
  }
  .benefit-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
  }
  .benefit-overview > div {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .benefit-overview > div + div {
    border-left: 1px solid var(--line);
  }
  .benefit-overview span {
    font-size: 12px;
    color: var(--muted);
  }
  .benefit-overview strong {
    font-size: 19px;
    line-height: 1.7;
  }
  .benefit-overview small {
    font-size: 11px;
  }
  .overview-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 20px 0 26px;
  }
  .overview-bottom p {
    font-size: 13px;
    color: var(--muted);
  }
  .calculator-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .calculator-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
  }
  .form-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 24px;
  }
  .form-heading:not(:first-child) {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-top: 32px;
  }
  .form-heading h3 {
    font-size: 17px;
  }
  .result-card {
    position: sticky;
    top: 24px;
    padding: 32px;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius);
  }
  .result-card .eyebrow {
    color: #ccdac8;
  }
  .result-card > h3 {
    font-size: 17px;
    margin: 16px 0 24px;
  }
  .result-card .small,
  .result-card .result-footnote {
    color: #d4e0d3;
  }
  .result-empty {
    font-size: 22px;
    line-height: 1.7;
    font-weight: 600;
    min-height: 100px;
  }
  .result-footnote {
    font-size: 11px;
    border-top: 1px solid #ffffff32;
    margin-top: 28px;
    padding-top: 20px;
  }
  .result-label {
    font-size: 12px;
    color: #d4e0d3;
  }
  .result-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .result-amount strong {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
  }
  .result-amount span {
    font-size: 16px;
  }
  #result-breakdown {
    margin-top: 24px;
  }
  #result-breakdown:empty {
    margin: 0;
  }
  .result-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 9px 0;
    border-top: 1px solid #ffffff22;
  }
  .result-line strong {
    white-space: nowrap;
    font-weight: 550;
  }
  #result-notes {
    font-size: 12px;
    line-height: 1.9;
  }
  #result-notes h4 {
    font-size: 12px;
    margin: 24px 0 8px;
  }
  #result-notes details {
    margin-top: 18px;
    border-color: #ffffff35;
  }
  #result-notes .small {
    margin-top: 16px;
  }
  .reading {
    max-width: 850px;
  }
  .reading h1 {
    font-size: clamp(30px, 4vw, 43px);
  }
  .article-section {
    margin-top: 48px;
  }
  .article-section h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  .article-section p {
    margin-top: 16px;
  }
  .article-section .sources {
    margin-top: 20px;
  }
  .article-section .sources li {
    padding: 8px 0;
  }
  .article-section .sources a {
    font-size: 12px;
  }
}
@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 50px;
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    padding: 14px 22px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
    transition:
      background 0.15s,
      box-shadow 0.15s;
  }
  .button:hover {
    background: #103e64;
    text-decoration: none;
    box-shadow: 0 3px 12px #164f7b10;
  }
  .button:active {
    background: #0b304f;
  }
  .button:disabled {
    background: #e2e7de;
    color: #556454;
    box-shadow: none;
  }
  .button.secondary {
    background: transparent;
    color: var(--green);
    border: 1px solid #a8b9c9;
  }
  .button.secondary:hover {
    background: var(--green-soft);
  }
  .button svg,
  .text-link svg {
    width: 19px;
    height: 19px;
  }
  .text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
  }
  .search-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
  }
  .search-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 3px;
    background: var(--green);
    border-radius: 0 0 3px 3px;
  }
  .card-number {
    font-family: Georgia, serif;
    color: var(--amber);
    font-size: 21px;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .card-number span {
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .search-card h2 {
    font-size: 23px;
    margin: 20px 0 24px;
  }
  .search-card label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    margin: 18px 0 8px;
  }
  .search-card .button {
    width: 100%;
    margin: 24px 0 0;
  }
  .search-card > .small {
    margin-top: 20px;
    font-size: 11px;
  }
  .search-foot {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
  }
  .search-foot strong {
    font-size: 12px;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
  }
  .region-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    min-height: 230px;
    transition:
      border-color 0.15s,
      box-shadow 0.15s;
  }
  .region-card:hover {
    border-color: #6f8c78;
    box-shadow: var(--shadow);
    text-decoration: none;
  }
  .region-card .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .region-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 23px;
    margin-top: 8px;
  }
  .region-card h3 svg {
    width: 21px;
  }
  .region-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 20px;
  }
  .card-foot {
    font-size: 11px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: auto;
    font-weight: 600;
    line-height: 1.8;
  }
  .step-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    white-space: nowrap;
  }
  .field {
    margin-bottom: 22px;
  }
  .field label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
  }
  .hint {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.8;
  }
  .money-input {
    position: relative;
  }
  .money-input input {
    padding-right: 40px;
    font-variant-numeric: tabular-nums;
  }
  .money-input > span {
    position: absolute;
    right: 14px;
    top: 12px;
    color: var(--muted);
    font-size: 14px;
  }
  .field-error {
    font-size: 12px;
    color: var(--error);
    line-height: 1.7;
    margin-top: 6px;
  }
  .field-error:empty {
    display: none;
  }
  .sample-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -10px;
    margin-bottom: 24px;
    align-items: center;
  }
  .sample-buttons span {
    width: 100%;
    font-size: 10px;
    color: var(--muted);
  }
  .sample-buttons button {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 6px;
    font-size: 12px;
    min-height: 44px;
    padding: 8px 14px;
  }
  .sample-buttons button:hover {
    background: var(--green-soft);
  }
  details {
    border-top: 1px solid var(--line);
    padding: 15px 0;
  }
  summary {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 0;
    min-height: 36px;
  }
  details > ul,
  details > p {
    margin-top: 16px;
  }
  details.condition-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 18px;
    margin: 20px 0;
  }
  details.condition-details .field:first-of-type {
    margin-top: 22px;
  }
  details.condition-details .field:last-child {
    margin-bottom: 6px;
  }
  .calculate-button {
    width: 100%;
    margin: 10px 0 16px;
  }
  .cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    flex-wrap: wrap;
    padding: 24px;
    background: var(--green-soft);
    border: 1px solid #dce5d6;
    border-radius: 12px;
    margin-top: 24px;
  }
  .cta-panel strong {
    font-size: 15px;
  }
  .cta-panel p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
  }
  .cta-panel small {
    font-size: 10px;
    width: 100%;
    margin-top: -7px;
  }
  .cta-pending {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .cta-pending .text-link {
    font-size: 11px;
  }
  .cta-pending .button {
    min-height: 44px;
    padding-block: 10px;
    font-size: 12px;
  }
  .program-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 28px;
    margin-bottom: 16px;
  }
  .program-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    background: var(--green-soft);
    color: var(--green);
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.8;
  }
  .badge.warning {
    background: var(--amber-soft);
    color: var(--amber);
  }
  .status-badge {
    font-size: 11px;
    color: var(--muted);
  }
  .program-card h3 {
    font-size: 20px;
  }
  .program-amount {
    font-size: 18px;
    font-weight: 650;
    margin: 12px 0 14px;
  }
  .program-card > p:not(.program-amount) {
    font-size: 14px;
    color: var(--muted);
  }
  .program-meta {
    margin: 24px 0;
  }
  .program-meta > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    font-size: 13px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .program-meta dt {
    color: var(--muted);
  }
  .program-meta small {
    font-size: 11px;
  }
  .program-card details {
    font-size: 13px;
  }
  .program-card .official-link {
    margin-top: 16px;
  }
  .notice {
    background: var(--amber-soft);
    border-left: 3px solid #164f7b;
    padding: 22px 24px;
    margin-top: 24px;
    font-size: 14px;
  }
  .notice p {
    margin-top: 10px;
  }
  .stacking-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  .stacking-list article {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    padding: 24px;
  }
  .stacking-list h3 {
    font-size: 15px;
    margin: 16px 0 12px;
    line-height: 1.8;
  }
  .stacking-list p {
    font-size: 12px;
    color: var(--muted);
  }
  .checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .checklist-grid > div {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .checklist-grid svg {
    color: #164f7b;
    margin-bottom: 14px;
  }
  .checklist-grid h3 {
    font-size: 15px;
  }
  .checklist-grid p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
  }
  .steps-heading {
    margin: 40px 0 18px;
  }
  .steps {
    list-style: none;
    padding: 0;
  }
  .steps li {
    display: flex;
    gap: 24px;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    margin: 0;
  }
  .steps li > span {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--amber);
  }
  .steps li > p {
    font-size: 14px;
  }
  .faq h2 {
    margin-bottom: 24px;
  }
  .faq details p {
    font-size: 14px;
    color: var(--muted);
  }
  .sources {
    padding: 0;
    list-style: none;
    margin-top: 24px;
  }
  .sources li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .sources a {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .sources span:not(.external) {
    font-size: 11px;
    color: var(--muted);
  }
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    background: var(--surface);
    padding: 10px 20px;
    z-index: 20;
    transform: translateY(-200%);
  }
  .skip-link:focus {
    transform: none;
  }
  .consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 48px #0002;
    border-radius: 12px;
    padding: 24px;
    z-index: 10;
  }
  .consent p {
    font-size: 13px;
  }
  .consent > div {
    display: flex;
    gap: 12px;
    margin-top: 16px;
  }
  .consent .button {
    font-size: 12px;
    padding: 10px 16px;
  }
  .consent-link {
    padding: 0;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--muted);
    background: none;
    font-size: 11px;
    min-height: 44px;
    justify-self: start;
  }
}
@media (min-width: 801px) {
  .eligible-cost {
    margin-top: 24px;
  }
}
@media (max-width: 1000px) {
  .home-hero {
    gap: 40px;
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit-overview > div {
    padding: 18px;
  }
  .benefit-overview strong {
    font-size: 16px;
  }
  .result-card,
  .calculator-form {
    padding: 24px;
  }
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 86px;
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    font-size: 9px;
  }
  .site-header nav {
    gap: 20px;
    font-size: 11px;
  }
  .site-header nav a:last-child {
    display: none;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .home-hero h1 {
    font-size: 39px;
    line-height: 1.5;
  }
  .home-hero .hero-description br {
    display: none;
  }
  .home-hero .hero-description {
    max-width: 40ch;
    font-size: 14px;
  }
  .home-hero .eyebrow {
    font-size: 10px;
  }
  .trust-row {
    margin-top: 20px;
    font-size: 10px;
    gap: 12px;
  }
  .search-card {
    padding: 28px;
  }
  .search-card h2 {
    margin: 16px 0;
  }
  .process-grid {
    gap: 16px;
    padding-block: 22px;
  }
  .process-grid > div {
    padding-left: 0;
  }
  .process-grid span {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
  .process-grid strong {
    font-size: 12px;
  }
  .process-grid p {
    font-size: 10px;
  }
  .section {
    padding-block: 44px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  .section-heading > p {
    margin-top: 12px;
    font-size: 12px;
  }
  .editorial-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .footer-inner > div {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .footer-inner > small {
    font-size: 11px;
  }
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .result-card {
    position: static;
  }
  .calculator-form {
    padding: 24px 20px;
  }
  .result-amount strong {
    font-size: 44px;
  }
  .area-hero {
    padding-top: 16px;
  }
  .area-hero h1 {
    font-size: 33px;
  }
  .area-lead {
    font-size: 18px;
  }
  .area-hero .hero-description {
    font-size: 13px;
  }
  .benefit-overview {
    grid-template-columns: 1fr;
  }
  .benefit-overview > div {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 6px 12px;
    padding: 14px 18px;
  }
  .benefit-overview > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .benefit-overview strong {
    font-size: 15px;
  }
  .benefit-overview small {
    grid-column: 2;
    font-size: 10px;
  }
  .checked-row {
    font-size: 10px;
  }
  .checked-row > span:last-child {
    margin-left: 0;
    width: 100%;
  }
  .overview-bottom {
    display: block;
  }
  .overview-bottom .button {
    margin-top: 16px;
    width: 100%;
  }
  .overview-bottom p {
    font-size: 12px;
  }
  .overview-bottom p br {
    display: none;
  }
  .cta-panel {
    padding: 20px;
  }
  .cta-panel strong {
    font-size: 14px;
  }
  .cta-pending {
    width: 100%;
  }
  .cta-pending .button {
    width: 100%;
  }
  .cta-panel .button {
    width: 100%;
  }
  .program-card {
    padding: 22px 20px;
  }
  .program-card h3 {
    font-size: 18px;
  }
  .program-amount {
    font-size: 16px;
  }
  .program-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .program-meta > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stacking-list {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .steps li {
    gap: 18px;
  }
  .steps li > p {
    font-size: 13px;
  }
  .reading h1 {
    font-size: 31px;
  }
  .article-section {
    margin-top: 36px;
  }
  .article-section h2 {
    font-size: 23px;
  }
  .consent {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media (max-width: 420px) {
  .container {
    width: calc(100% - 36px);
  }
  .home-hero h1 {
    font-size: 35px;
  }
  .region-grid {
    grid-template-columns: 1fr;
  }
  .region-card {
    min-height: 190px;
    padding: 22px;
  }
  .search-card {
    padding: 24px;
  }
  .search-card h2 {
    font-size: 21px;
  }
  .process-grid {
    gap: 12px;
  }
  .process-grid strong {
    font-size: 11px;
  }
  .process-grid p {
    font-size: 10px;
  }
  .area-hero h1 {
    font-size: 30px;
  }
  .preview-note {
    font-size: 10px;
  }
  .form-heading {
    gap: 10px;
  }
  .form-heading h3 {
    font-size: 16px;
  }
  .result-amount strong {
    font-size: 40px;
  }
  .status-badge {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .cta-panel,
  .preview-note,
  .consent,
  .button {
    display: none;
  }
  .container {
    width: 100%;
  }
  .calculator-layout {
    display: block;
  }
  .result-card {
    position: static;
    color: #000;
    background: #fff;
    border: 1px solid #ccc;
  }
  .section {
    padding-block: 20px;
  }
  details {
    break-inside: avoid;
  }
  .result-card .small,
  .result-card .result-footnote {
    color: #333;
  }
}

@media (max-width: 420px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .process-grid > div {
    padding-left: 34px;
  }
  .process-grid span {
    position: absolute;
    top: 0;
    left: 0;
  }
  .process-grid strong {
    font-size: 14px;
  }
  .process-grid p {
    font-size: 12px;
  }
}

summary {
  min-height: 44px;
}
