/* Content-first refinement: answer, estimate, quotation. */
:root {
  --radius: 3px;
  --shadow: none;
}
h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: pretty;
}
h1 {
  font-size: 32px;
  line-height: 1.5;
}
h2 {
  font-size: 23px;
}
.container {
  width: min(1040px, calc(100% - 48px));
}
.section {
  padding-block: 36px;
}
.section-heading {
  margin-bottom: 18px;
  gap: 20px;
}
.eyebrow {
  letter-spacing: 0;
  font-size: 13px;
}
.preview-note {
  background: #f1f5f9;
  color: #344b60;
  padding: 4px 12px;
}
.header-inner {
  min-height: 70px;
}
.brand {
  font-size: 23px;
  letter-spacing: 0.02em;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.brand small {
  font-size: 12px;
  letter-spacing: 0;
  margin: 0;
}
.site-header nav {
  font-size: 13px;
  gap: 24px;
}
.breadcrumbs {
  padding-block: 13px;
  gap: 8px;
}
.area-hero {
  padding-top: 0;
}
.area-hero h1 {
  font-size: 30px;
  margin: 0;
}
.area-hero .year {
  font-size: 20px;
  display: inline-block;
}
.area-hero .hero-description {
  margin-top: 6px;
  font-size: 14px;
}
.checked-row {
  margin: 8px 0 12px;
  font-size: 12px;
}
.subsidy-table table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  border-top: 2px solid var(--green);
}
.subsidy-table caption {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.subsidy-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.subsidy-table th,
.subsidy-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  vertical-align: top;
}
.subsidy-table th {
  width: 150px;
  font-size: 14px;
  background: #f6f8fa;
  font-weight: 600;
}
.subsidy-table td {
  position: relative;
  padding-right: 170px;
}
.subsidy-table td strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.subsidy-table td span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.subsidy-table td a {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 12px;
  padding: 5px 0;
}
.subsidy-table td a.condition-link {
  position: static;
  display: block;
  margin-top: 3px;
  padding: 0;
}
.subsidy-table td a.condition-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.stacking-summary {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.stacking-summary a {
  margin-left: 8px;
  white-space: nowrap;
}
.quick-estimate {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quick-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.quick-heading h2 {
  font-size: 23px;
}
.quick-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.quick-assumption {
  font-size: 13px;
  margin: 8px 0 16px;
  color: var(--muted);
}
.estimate-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.4fr;
  gap: 18px;
  align-items: center;
}
.estimate-equation > div {
  min-width: 0;
}
.estimate-equation label {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}
.estimate-input {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.estimate-input input {
  min-width: 0;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 3px;
  padding: 8px 12px;
}
.estimate-input span {
  flex-shrink: 0;
  font-size: 13px;
}
.equation-sign {
  font-size: 22px;
  padding-top: 22px;
}
.quick-answer {
  background: #f1f5f9;
  border-left: 3px solid var(--green);
  padding: 10px 18px;
}
.quick-answer > span {
  font-size: 12px;
}
.quick-answer p {
  margin: 0;
  white-space: nowrap;
}
.quick-answer strong {
  font-size: 44px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.quick-answer p span {
  font-size: 16px;
  margin-left: 6px;
}
#quick-note {
  margin-top: 10px;
  font-size: 12px;
}
.cta-panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  margin-top: 18px;
}
.cta-panel strong {
  font-size: 15px;
}
.cta-panel p {
  font-size: 13px;
}
.cta-panel small {
  font-size: 12px;
}
.cta-pending .text-link {
  font-size: 12px;
}
.button {
  border-radius: 3px;
}
.button:disabled {
  background: #e8edf2;
  color: #4d5c6b;
}
.detailed-calculator {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.detailed-calculator > summary {
  font-size: 14px;
}
.detailed-calculator > .container {
  width: 100%;
}
.detailed-calculator .section-heading {
  display: block;
}
.detailed-calculator .section-heading > p {
  margin-top: 8px;
}
.calculator-form,
.result-card,
.program-card,
.stacking-list article {
  border-radius: 3px;
  box-shadow: none;
}
.result-card {
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid var(--line);
}
.result-card .small,
.result-card .result-footnote,
.result-label {
  color: var(--muted);
}
.result-card .result-line,
.result-card .result-footnote,
#result-notes details {
  border-color: var(--line);
}
.program-card {
  padding: 22px 0;
  border-width: 0 0 1px;
}
.program-head {
  margin-bottom: 10px;
}
.program-meta {
  margin: 16px 0;
}
.badge.warning {
  background: #edf1f5;
  color: #344b60;
}
.notice {
  padding: 16px 20px;
}
.home-hero {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 32px 0;
}
.home-hero h1 {
  font-size: 34px;
}
.home-hero .eyebrow {
  margin-bottom: 10px;
}
.home-hero .hero-description {
  margin-top: 12px;
  font-size: 15px;
  max-width: 70ch;
}
.search-card {
  border-radius: 3px;
  padding: 20px 24px;
  box-shadow: none;
  background: #f5f7fa;
}
.search-card::before {
  display: none;
}
.search-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
#region-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 16px;
}
.search-card label {
  margin: 0 0 6px;
  font-size: 13px;
}
.search-card .button {
  width: auto;
  margin: 0;
}
.search-card > .small {
  margin-top: 10px;
  font-size: 12px;
}
#region-error:empty {
  display: none;
}
.region-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--green);
}
.region-card {
  display: grid;
  grid-template-columns: 85px 150px 1fr 180px;
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 12px;
  min-height: 0;
}
.region-card .eyebrow {
  font-size: 13px;
}
.region-card h3 {
  font-size: 18px;
  margin: 0;
}
.region-card p {
  font-size: 13px;
  margin: 0;
}
.card-foot {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
}
.region-card:hover {
  background: #f5f7fa;
  box-shadow: none;
}
.site-footer {
  padding: 28px 0;
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    min-height: 58px;
    gap: 10px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .brand svg {
    width: 24px;
    height: 24px;
  }
  .brand small {
    display: none;
  }
  .site-header nav {
    font-size: 12px;
  }
  .breadcrumbs {
    padding-block: 9px;
    font-size: 11px;
  }
  .area-hero h1 {
    font-size: 23px;
    line-height: 1.5;
  }
  .area-hero .year {
    font-size: 16px;
  }
  .equipment-title {
    white-space: nowrap;
  }
  .area-hero .hero-description {
    font-size: 13px;
    margin-top: 4px;
  }
  .checked-row {
    font-size: 11px;
    margin: 5px 0 8px;
  }
  .subsidy-table caption {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .subsidy-table th {
    width: 88px;
    font-size: 12px;
    padding: 10px 8px;
  }
  .subsidy-table td {
    padding: 6px;
  }
  .subsidy-table td strong {
    font-size: 17px;
  }
  .subsidy-table td span {
    font-size: 12px;
    margin: 2px 0;
  }
  .subsidy-table td a {
    position: static;
    display: inline-block;
    font-size: 12px;
    padding: 4px 0;
  }
  .stacking-summary {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
  }
  .quick-estimate {
    margin-top: 10px;
    padding-top: 10px;
  }
  .quick-heading {
    gap: 2px;
  }
  .quick-heading h2 {
    font-size: 20px;
  }
  .quick-heading > span {
    font-size: 11px;
  }
  .quick-assumption {
    font-size: 12px;
    margin: 6px 0 10px;
    line-height: 1.6;
  }
  .estimate-equation {
    grid-template-columns: 1fr 16px 1fr;
    gap: 8px;
  }
  .estimate-equation label {
    font-size: 11px;
    min-height: 20px;
  }
  .estimate-input input {
    font-size: 22px;
    padding: 6px 8px;
  }
  .estimate-input {
    gap: 5px;
  }
  .equation-sign {
    font-size: 19px;
  }
  .estimate-equation > .equation-sign:nth-child(4) {
    display: none;
  }
  .quick-answer {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
  }
  .quick-answer > span {
    font-size: 12px;
    max-width: 55%;
  }
  .quick-answer strong {
    font-size: 34px;
  }
  .quick-answer p span {
    font-size: 14px;
  }
  .cta-panel {
    gap: 12px;
    padding: 16px 0;
  }
  .cta-pending {
    align-items: start;
  }
  .region-card {
    grid-template-columns: 65px 1fr;
    gap: 5px 10px;
    padding: 14px 4px;
  }
  .region-card p {
    grid-column: 2;
  }
  .region-card .card-foot {
    grid-column: 2;
    font-size: 15px;
  }
  .home-hero {
    padding: 24px 0;
    gap: 18px;
  }
  .home-hero h1 {
    font-size: 27px;
  }
  .home-hero .hero-description {
    font-size: 14px;
  }
  .search-card {
    padding: 18px;
  }
  #region-search {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-card .button {
    width: 100%;
  }
  .section {
    padding-block: 28px;
  }
  .section-heading > p {
    font-size: 13px;
    margin-top: 8px;
  }
  .detailed-calculator > summary {
    font-size: 13px;
  }
}

/* Reduce the initially visible page to subsidy, payment, and quote. */
.area-hero .checked-row {
  margin-bottom: 16px;
}
.subsidy-table caption {
  font-size: 19px;
  margin-bottom: 10px;
}
.subsidy-table table {
  border-top: 1px solid var(--line);
}
.subsidy-table th {
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  vertical-align: middle;
}
.subsidy-table td {
  padding: 14px 16px;
}
.subsidy-table td strong {
  font-size: 20px;
  font-weight: 600;
}
.stacking-summary {
  font-size: 14px;
  margin-top: 12px;
}
.quick-estimate {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}
.quick-estimate h2 {
  font-size: 24px;
}
.quick-assumption {
  font-size: 16px;
  margin: 12px 0 22px;
  color: var(--ink);
}
.quick-assumption strong {
  font-weight: 600;
}
.estimate-equation label,
.national-deduction > span {
  font-size: 14px;
}
.national-deduction p {
  margin: 8px 0 0;
  font-size: 16px;
}
.national-deduction strong {
  font-size: 30px;
  font-weight: 600;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.quick-answer {
  border: 0;
  background: #f5f6f8;
}
.quick-answer > span {
  font-size: 14px;
}
.quick-answer strong {
  font-size: 46px;
}
.estimate-scope {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.estimate-scope p {
  margin: 0;
}
.estimate-scope a {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 0;
}
#quick-note {
  font-size: 12px;
  max-width: 80ch;
}
.quick-estimate .cta-panel {
  display: block;
  margin-top: 26px;
  padding-top: 24px;
}
.cta-panel strong {
  font-size: 19px;
  font-weight: 600;
}
.cta-panel p {
  font-size: 16px;
  margin-top: 6px;
  max-width: 52ch;
}
.cta-pending {
  display: block;
  margin: 18px 0 10px;
}
.cta-pending .button,
.quick-estimate .cta-panel > .button {
  width: min(100%, 480px);
  min-height: 54px;
  font-size: 16px;
  padding: 14px 20px;
}
.cta-panel small {
  display: block;
  margin-top: 0;
}
.detailed-calculator {
  margin-top: 24px;
  border-bottom: 0;
}
.detailed-calculator > summary {
  font-size: 16px;
  font-weight: 400;
  padding-block: 10px;
}
.program-details {
  margin-top: 12px;
}
.program-details h2 {
  margin-bottom: 20px;
}
.program-detail {
  padding: 0;
}
.program-detail:last-child {
  border-bottom: 1px solid var(--line);
}
.program-detail > summary {
  display: list-item;
  font-size: 17px;
  font-weight: 500;
  padding: 18px 4px;
}
.program-detail > summary span {
  font-size: 14px;
  color: var(--muted);
  margin-left: 16px;
  font-weight: 400;
  display: inline-block;
}
.detail-body {
  padding: 4px 22px 26px;
  font-size: 16px;
  max-width: 84ch;
}
.detail-body h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.detail-body h4 {
  font-size: 16px;
  margin: 24px 0 10px;
  font-weight: 600;
}
.detail-body p + p {
  margin-top: 10px;
}
.detail-body ul {
  margin-top: 10px;
}
.detail-body li {
  margin-top: 6px;
}
.detail-body .sources {
  margin-top: 0;
}
.detail-body .sources a {
  font-size: 14px;
}
.detail-body .sources span {
  font-size: 12px;
}
.combination-rule {
  margin-bottom: 18px;
}
.combination-rule strong {
  font-weight: 500;
}
#contract-checklist {
  padding-top: 0;
  padding-bottom: 0;
}
.practical-details > summary {
  font-size: 16px;
  font-weight: 400;
  padding-block: 10px;
}
.contract-items {
  margin-bottom: 24px;
}
.application-steps {
  padding-left: 1.5em;
}
.application-steps li {
  margin-top: 10px;
}
.faq {
  padding-top: 28px;
}
.faq h2 {
  font-size: 20px;
}
.faq summary {
  font-size: 16px;
  font-weight: 400;
  padding-block: 8px;
}
.faq details > p {
  font-size: 16px;
}
@media (max-width: 800px) {
  .area-hero .checked-row {
    margin-bottom: 14px;
  }
  .subsidy-table caption {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .subsidy-table th {
    width: 96px;
    font-size: 14px;
    padding: 12px 4px;
  }
  .subsidy-table td {
    padding: 12px 4px;
  }
  .subsidy-table td strong {
    font-size: 19px;
  }
  .stacking-summary {
    font-size: 13px;
    line-height: 1.8;
  }
  .quick-estimate {
    margin-top: 30px;
  }
  .quick-estimate h2 {
    font-size: 22px;
  }
  .quick-assumption {
    font-size: 15px;
    margin: 10px 0 18px;
    line-height: 1.8;
  }
  .estimate-equation {
    column-gap: 10px;
    row-gap: 14px;
  }
  .estimate-equation label {
    font-size: 13px;
    min-height: 46px;
    margin-bottom: 4px;
  }
  .national-deduction > span {
    font-size: 13px;
    display: block;
  }
  .national-deduction p {
    margin-top: 8px;
  }
  .national-deduction strong {
    font-size: 28px;
  }
  .quick-answer {
    display: block;
    text-align: left;
    padding: 16px;
  }
  .quick-answer > span {
    max-width: none;
    font-size: 14px;
  }
  .quick-answer p {
    margin-top: 4px;
  }
  .quick-answer strong {
    font-size: 42px;
  }
  .estimate-scope {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 14px;
  }
  .estimate-scope a {
    padding-block: 10px;
  }
  .quick-estimate .cta-panel {
    padding-top: 22px;
    margin-top: 24px;
  }
  .cta-panel strong {
    font-size: 18px;
  }
  .cta-panel p {
    font-size: 15px;
  }
  .cta-pending .button {
    font-size: 15px;
  }
  .program-detail > summary {
    font-size: 16px;
    padding-block: 16px;
  }
  .program-detail > summary span {
    display: block;
    margin: 4px 0 0 18px;
    font-size: 13px;
  }
  .detail-body {
    padding: 0 4px 24px;
  }
  .detail-body .sources {
    overflow-wrap: anywhere;
  }
  .detailed-calculator > summary {
    font-size: 15px;
  }
}

/* Visual hierarchy: inputs feed one highlighted result; details stay quiet. */
.area-hero h1 {
  font-size: 30px;
}
.quick-estimate {
  margin-top: 44px;
}
.quick-estimate h2 {
  font-size: 22px;
}
.quick-assumption {
  font-size: 16px;
  margin: 10px 0 22px;
}
.estimate-workspace {
  display: grid;
  grid-template-columns: 1fr 20px 1.18fr;
  gap: 18px;
  align-items: start;
}
.estimate-inputs {
  display: grid;
  grid-template-columns: 1.25fr 20px 1fr;
  gap: 12px;
  padding-top: 20px;
  align-items: center;
}
.estimate-inputs > div {
  min-width: 0;
}
.estimate-inputs label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.estimate-inputs .equation-sign {
  padding-top: 24px;
}
.estimate-inputs .field-error {
  grid-column: 1/-1;
}
.quick-answer {
  padding: 24px;
  border-radius: 4px;
  background: #edf3f8;
}
.quick-answer .current-basis {
  font-size: 14px;
  white-space: normal;
  margin: 0 0 20px;
  color: #344b60;
}
.quick-answer .current-basis strong {
  font-size: inherit;
  font-weight: 600;
}
.quick-answer > span {
  font-size: 15px;
  color: #344b60;
}
.quick-answer .answer-number {
  margin-top: 4px;
}
.quick-answer .answer-number strong {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  color: #132d44;
}
.quick-answer .estimate-scope {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  color: #344b60;
}
.quick-answer .estimate-scope p {
  white-space: normal;
  margin: 0;
}
.quick-estimate #quick-note {
  margin-top: 12px;
  font-size: 13px;
}
.detailed-estimate-link {
  display: inline-block;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px 0;
}
.quick-estimate .cta-panel {
  border-top: 0;
  margin-top: 40px;
  padding-top: 0;
}
.cta-panel strong {
  font-size: 20px;
}
.cta-panel > .button {
  margin-top: 20px;
  background: #164f7b;
  color: #fff;
}
.cta-panel p.cta-unavailable {
  color: var(--muted);
  font-size: 15px;
  margin: 16px 0 4px;
}
.detailed-calculator {
  margin-top: 44px;
  border: 0;
}
.program-details {
  margin-top: 24px;
}
.program-detail {
  border-top: 0;
  margin-bottom: 4px;
}
.program-detail:last-child {
  border: 0;
}
.program-detail > summary {
  padding: 14px 4px;
}
.practical-details,
.faq details {
  border: 0;
}
.faq details {
  padding-block: 8px;
}
@media (max-width: 800px) {
  .area-hero h1 {
    font-size: 26px;
    line-height: 1.45;
  }
  .equipment-title {
    white-space: nowrap;
  }
  .area-hero .year {
    font-size: 16px;
  }
  .area-hero .hero-description {
    font-size: 15px;
    margin-top: 10px;
  }
  .subsidy-table td strong {
    font-size: 19px;
  }
  .quick-estimate {
    margin-top: 40px;
  }
  .quick-estimate h2 {
    font-size: 21px;
  }
  .quick-assumption {
    font-size: 15px;
    margin: 10px 0 18px;
  }
  .estimate-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .estimate-inputs {
    padding-top: 0;
    gap: 12px;
  }
  .estimate-inputs label {
    min-height: 44px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  .national-deduction > span {
    font-size: 14px;
  }
  .estimate-input input {
    font-size: 24px;
  }
  .quick-answer {
    padding: 20px;
  }
  .quick-answer .current-basis {
    margin-bottom: 16px;
    font-size: 13px;
  }
  .quick-answer > span {
    font-size: 15px;
  }
  .quick-answer .answer-number strong {
    font-size: 40px;
  }
  .quick-answer .estimate-scope {
    font-size: 13px;
  }
  .cta-panel strong {
    font-size: 20px;
  }
  .quick-estimate .cta-panel {
    margin-top: 36px;
    padding-top: 0;
  }
  .detailed-calculator {
    margin-top: 40px;
  }
}

.workspace-equals {
  font-size: 22px;
  margin-top: 58px;
}
@media (max-width: 800px) {
  .workspace-equals {
    display: none;
  }
}

/* Major sections use one clear, consistent heading treatment. */
.section-title,
.quick-estimate h2.section-title,
.faq h2.section-title {
  display: block;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 4px solid #164f7b;
  background: #f2f4f6;
  color: #222b35;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.area-hero > .section-title {
  margin-top: 24px;
}
.subsidy-table table {
  border-top: 0;
}
.quick-estimate {
  margin-top: 48px;
}
.quick-estimate .cta-panel {
  margin-top: 48px;
}
.cta-panel > div > .section-title {
  margin-bottom: 16px;
}
.program-details {
  padding-top: 32px;
  margin-top: 16px;
}
.section-heading:has(> .section-title) {
  display: block;
}
.section-heading > .section-title + .text-link {
  margin-top: 0;
}
@media (max-width: 800px) {
  .section-title,
  .quick-estimate h2.section-title,
  .faq h2.section-title {
    font-size: 20px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  .quick-estimate,
  .quick-estimate .cta-panel {
    margin-top: 40px;
  }
}

/* Secondary and tertiary headings remain distinct from the main heading bands. */
.detail-body h3,
.form-heading h3,
.result-card > h3 {
  margin: 8px 0 18px;
  padding: 10px 12px;
  border-left: 3px solid #164f7b;
  border-bottom: 1px solid #c8d3dc;
  color: #222b35;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}
.form-heading {
  align-items: center;
}
.form-heading h3 {
  flex: 1;
  margin: 0;
}
.detail-body h4,
#result-notes h4 {
  position: relative;
  margin: 30px 0 14px;
  padding: 0 0 9px 18px;
  border-bottom: 1px solid #d5dde4;
  color: #222b35;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.detail-body h4::before,
#result-notes h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: #164f7b;
}
.program-detail > summary {
  border-bottom: 1px solid #d5dde4;
  font-weight: 600;
}
.program-detail[open] > summary {
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .detail-body h3,
  .form-heading h3,
  .result-card > h3 {
    font-size: 18px;
  }
  .detail-body h4,
  #result-notes h4 {
    font-size: 16px;
  }
}

/* Small, preview-only model comparison. */
.model-comparison h1 {
  font-size: 30px;
}
.model-comparison .section-title {
  margin-top: 40px;
}
.model-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}
.model-controls label {
  font-size: 14px;
}
.model-controls select,
.model-controls input {
  margin-top: 8px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.model-item {
  min-width: 0;
}
.model-item h3 {
  padding: 10px 0;
  border-bottom: 2px solid #164f7b;
  font-size: 20px;
  margin-bottom: 10px;
}
.model-item > p {
  font-size: 14px;
}
.model-item dl {
  margin: 20px 0 14px;
}
.model-item dl > div {
  margin-bottom: 18px;
}
.model-item dt {
  font-size: 13px;
  color: var(--muted);
}
.model-item dd {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.model-item .model-result {
  padding: 14px;
  background: #edf3f8;
}
.model-result dd {
  font-size: 28px;
  color: #132d44;
}
.model-item details p {
  font-size: 14px;
}
.model-comparison li {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .model-controls,
  .model-grid {
    grid-template-columns: 1fr;
  }
  .model-comparison h1 {
    font-size: 26px;
  }
  .model-item {
    margin-bottom: 20px;
  }
  .model-item dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .model-item .model-result {
    grid-column: 1/-1;
  }
}

/* Editorial next step: no reserved advertising space when no provider exists. */
.quote-guidance { margin-top: 40px; }
.quote-guidance p { margin: 16px 0 8px; }
.quote-guidance ul { margin: 8px 0 12px; padding-left: 1.4em; line-height: 1.8; }

.subsidy-status { display: block; font-size: 13px; font-weight: 400; line-height: 1.6; margin-top: 4px; color: #475569; }

/* Region-page related links share the surrounding section width. */
.related-guides ul { list-style: none; padding: 0; margin: 18px 0 0; }
.related-guides li { margin: 0; border-bottom: 1px solid var(--line); }
.related-guides li:first-child { border-top: 1px solid var(--line); }
.related-guides a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; line-height: 1.7; }
.related-guides a > span:first-child { min-width: 0; }
.related-guides a > span:last-child { flex-shrink: 0; }

/* Responsive, semantic diagrams: a horizontal sequence on desktop,
   a single unambiguous top-to-bottom sequence on phones. */
.flow-diagram { margin: 24px 0; }
.flow-diagram figcaption { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.flow-diagram ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 26px; }
.flow-diagram li { position: relative; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #cbd5df; padding: 16px 12px; min-width: 0; margin: 0; background: #fff; }
.flow-diagram li:last-child { background: #f1f5f8; border-color: #315c80; }
.flow-number { color: #315c80; font-size: 15px; font-weight: 700; line-height: 1.7; flex: 0 0 auto; }
.flow-diagram strong { display: block; font-size: 16px; line-height: 1.6; }
.flow-detail { display: block; color: #475569; font-size: 13px; line-height: 1.7; margin-top: 6px; }
.flow-arrow { position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); color: #315c80; font-size: 20px; }
.flow-note { font-size: 14px; line-height: 1.8; margin-top: 12px; }
.article-explanation, .flow-extra { margin-top: 16px; }
.article-explanation summary, .flow-extra summary { cursor: pointer; color: #315c80; font-size: 15px; font-weight: 600; padding: 12px 0; }
.region-short-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.region-short-links li { margin: 0; border-bottom: 1px solid var(--line); }
.region-short-links a { display: block; padding: 14px 0; }
@media (max-width: 700px) {
  .flow-diagram ol { grid-template-columns: 1fr; gap: 25px; }
  .flow-diagram li { padding: 12px 16px; align-items: center; }
  .flow-diagram li > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .flow-diagram .flow-detail { margin: 0; }
  .flow-arrow { left: 50%; top: calc(100% + 1px); transform: translateX(-50%) rotate(90deg); }
  .region-short-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared navigation keeps category and detail pages aligned. */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.7; }
.breadcrumbs li { display: inline; margin: 0; }
.breadcrumbs li + li::before { content: '›'; padding: 0 10px; color: #64748b; }
.breadcrumbs [aria-current] { color: #374151; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.directory-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 10px; }
.directory-controls label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.directory-controls input, .directory-controls select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 3px; background: white; color: #1f2937; font: inherit; }
.directory-count { font-size: 14px; margin: 12px 0; color: #475569; }
.directory-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.directory-table th, .directory-table td { padding: 16px 10px; text-align: left; border-bottom: 1px solid #d8e0e7; vertical-align: top; overflow-wrap: anywhere; }
.directory-table thead th { background: #f3f4f6; font-size: 13px; }
.directory-table th:first-child { width: 15%; }
.directory-table th:nth-child(2) { width: 28%; }
.directory-table th:nth-child(3) { width: 21%; }
.directory-state { font-size: 13px; }
.state-open { color: #164f7b; font-weight: 600; }
.state-closed, .state-unconfirmed { color: #475569; }
.directory-empty { padding: 24px 0; }
.guide-index { list-style: none; padding: 0; margin: 24px 0 32px; }
.guide-index a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calculator-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calculator-form legend { font-weight: 700; font-size: 19px; margin: 16px 0 24px; padding: 0; }
.calc-step-buttons { display: flex; gap: 12px; justify-content: space-between; margin: 24px 0 16px; }
.calc-step-buttons .button { width: auto; }
.calc-progress { font-size: 14px; font-weight: 600; color: #164f7b; }
.comparison-context { padding: 16px 0; margin: 16px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .directory-controls { grid-template-columns: 1fr; gap: 16px; }
  .directory-table, .directory-table tbody { display: block; }
  .directory-table thead { display: none; }
  .directory-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .directory-table th, .directory-table td { display: block; width: auto !important; border: 0; padding: 0; font-size: 14px; }
  .directory-table th { grid-column: 1/-1; font-size: 17px; }
  .directory-table td::before { content: attr(data-label); display: block; font-size: 12px; color: #64748b; margin-bottom: 3px; }
}
.directory-prefecture { display: block; font-size: 12px; font-weight: 400; color: #64748b; margin-top: 4px; }
@media (max-width: 800px) {
  .site-header nav { gap: 10px; font-size: 11px; }
  .site-header nav a, .site-header nav a:last-child { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
}

/* Keep the longer public brand intact on narrow phones. */
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; row-gap: 2px; }
  .header-inner .brand { white-space: nowrap; flex-shrink: 0; }
  .site-header nav { margin-left: auto; }
  .home-hero h1 { font-size: clamp(23px, 6.8vw, 30px); line-height: 1.55; }
}
