@font-face {
  font-family: "YS Text";
  src: url("/calculator/assets/fonts/ys-text-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YS Text";
  src: url("/calculator/assets/fonts/ys-text-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YS Text";
  src: url("/calculator/assets/fonts/ys-text-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #18191d;
  --muted: #656a74;
  --line: #dde0e5;
  --page: #f4f5f6;
  --surface: #ffffff;
  --ink: #2e3036;
  --green: #128451;
  --green-soft: #e4f5eb;
  --yellow-soft: #fff2c7;
  --red-soft: #f8e2df;
  --lavender: #eeebff;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --motion-out: cubic-bezier(.22, 1, .36, 1);
  --motion-in-out: cubic-bezier(.77, 0, .175, 1);
  --question-reveal-enter: 500ms;
  --question-reveal-exit: 120ms;
  --checker-modal-open: 250ms;
  --checker-modal-close: 150ms;
  --font: "YS Text", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; width: 180px; height: 30px; flex: 0 0 180px; overflow: hidden; }
.brand-logo img { display: block; width: 192.5px; max-width: none; height: auto; transform: translate(-5.8px, -11.3px); }
.header-action { padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.header-action:hover { background: #f0f1f3; }
.header-action:active { transform: scale(.97); }

.breadcrumbs { display: flex; gap: 8px; align-items: center; min-height: 58px; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.program-hero { background: var(--surface); border-block: 1px solid var(--line); }
.program-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 56px; padding-block: 54px 58px; }
.program-labels { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.program-labels > span, .program-labels > a { padding: 5px 9px; border-radius: 6px; background: #f0f1f3; color: #5b6069; font-size: 12px; font-weight: 500; }
.program-labels > a { text-decoration: none; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.program-labels > a:hover { background: #e4e6e9; color: var(--text); }
.program-labels > a:active { transform: scale(.97); }
.program-labels > a:focus-visible { outline: 2px solid #5b8def; outline-offset: 2px; }
.program-labels .status.is-active { background: var(--green-soft); color: #087342; }
.program-labels .status.is-closed { background: var(--red-soft); color: #923d33; }
.program-labels .status.is-announced { background: var(--yellow-soft); color: #765900; }
.program-labels .status.is-review { background: var(--lavender); color: #564596; }
.program-hero h1 { max-width: 820px; margin: 20px 0 18px; font-size: 44px; line-height: 1.08; letter-spacing: 0; }
.lead { max-width: 800px; margin: 0; color: #555a64; font-size: 18px; }
.status-note { margin: 20px 0 0; padding-left: 14px; border-left: 3px solid #c5c9d0; color: var(--muted); font-size: 14px; }
.program-check-primary { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.program-check-primary small { color: #66707d; font-size: 12px; line-height: 1.35; }
.program-check-action { display: inline-flex; min-height: 60px; align-items: center; gap: 18px; padding: 10px 12px 10px 22px; border: 0; border-radius: 8px; background: #1458c8; color: #fff; box-shadow: 0 12px 28px rgba(20, 88, 200, .22); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out); }
.program-check-action i { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 20px; }
.program-check-action:hover { background: #0f4faf; box-shadow: 0 14px 34px rgba(20, 88, 200, .28); }
.program-check-action:active { transform: scale(.98); }
.program-check-action:focus-visible { outline: 3px solid rgba(20, 88, 200, .3); outline-offset: 4px; }
.program-hero-aside { display: grid; min-width: 0; gap: 28px; align-content: start; }
.program-hero-media {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  background: #e7e9ec;
  filter: drop-shadow(0 16px 24px rgba(26, 29, 35, .10));
}
.program-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.program-hero-media.shape-drop { clip-path: polygon(50% 0, 88% 8%, 100% 28%, 94% 67%, 74% 87%, 50% 100%, 26% 87%, 6% 67%, 0 28%, 12% 8%); }
.program-hero-media.shape-cut-corner { border-radius: 36px 8px 36px 8px; clip-path: polygon(0 0, 78% 0, 100% 23%, 100% 100%, 0 100%); }
.program-hero-media.shape-shield { clip-path: polygon(12% 0, 88% 0, 100% 16%, 92% 69%, 72% 88%, 50% 100%, 28% 88%, 8% 69%, 0 16%); }
.program-hero-media.shape-arch { border-radius: 50% 50% 12px 12px / 38% 38% 12px 12px; }
.program-hero-media.shape-petal { border-radius: 54% 18% 54% 18% / 40% 54% 46% 60%; }
.program-facts { align-self: start; border-top: 3px solid var(--ink); }
.program-facts div { padding: 17px 0 18px; border-bottom: 1px solid var(--line); }
.program-facts span, .program-facts strong { display: block; }
.program-facts span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.program-facts strong { font-size: 16px; line-height: 1.35; }

.article-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 44px; padding-block: 48px 64px; }
.page-nav { position: sticky; top: 24px; display: grid; align-self: start; padding: 4px; border: 0; border-radius: 8px; background: #eceef0; }
.page-nav-list { display: grid; gap: 2px; }
.page-nav button { width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-left: 3px solid transparent; border-radius: 6px; background: transparent; color: #555d68; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.page-nav button:hover { color: var(--text); }
.page-nav button[aria-selected="true"] { border-left-color: var(--green); background: var(--green-soft); color: #087346; font-weight: 500; box-shadow: none; }
.page-nav button:active { transform: scale(.98); }
.page-nav button:focus-visible { outline: 2px solid #5b8def; outline-offset: 2px; }
.article-content { min-width: 0; }
.tab-panels { min-width: 0; }
.content-section { margin: 0 0 34px; scroll-margin-top: 24px; }
.content-section[hidden] { display: none; }
.content-section.is-entering { animation: panel-enter 160ms var(--ease-out); }
.content-section:focus-visible { outline: 2px solid #5b8def; outline-offset: 6px; border-radius: 3px; }
.section-copy { max-width: 720px; }
.content-section h2, .related-section h2, .calculator-cta h2 { margin: 0 0 22px; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.section-copy p { margin: 0 0 16px; color: #343b45; font-size: 17px; line-height: 1.7; }
.section-copy > p:last-child, .legal-copy p:last-child { margin-bottom: 0; }
.section-intro { margin-bottom: 14px !important; }
.section-subheading { margin: 24px 0 8px; color: var(--text); font-size: 18px; line-height: 1.4; }
.section-copy > .section-subheading:first-child { margin-top: 0; }
.section-note { margin-top: 14px !important; padding: 13px 15px; border-left: 3px solid #aeb5bf; border-radius: 6px; background: #f4f5f6; font-size: 15px !important; line-height: 1.55 !important; }
.section-note.is-caution { border-left-color: #c99400; background: #fff7db; color: #59491b; }
@keyframes panel-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.structured-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.structured-list li { position: relative; display: grid; gap: 4px; padding: 11px 0 11px 26px; border-bottom: 1px solid #e6e8eb; color: #343b45; font-size: 16px; line-height: 1.55; }
.structured-list li:last-child { border-bottom: 0; }
.structured-list li::before { position: absolute; top: 20px; left: 6px; width: 6px; height: 6px; border-radius: 50%; background: #39a66f; content: ""; }
.structured-list li strong, .structured-list li span { display: block; }
.structured-list li strong { color: var(--text); font-size: 16px; line-height: 1.45; }
.structured-list li.is-caution { margin-top: 8px; padding: 14px 16px 14px 38px; border: 0; border-radius: 8px; background: #fff7db; color: #59491b; }
.structured-list li.is-caution::before { top: 22px; left: 18px; background: #c99400; }
.receipt-copy { display: grid; gap: 12px; }
.receipt-copy p { margin: 0; padding: 0; }
.receipt-copy p + p { padding-top: 12px; border-top: 1px solid #e6e8eb; }

.steps-list { counter-reset: program-step; }
.steps-list li { min-height: 58px; padding: 14px 0 14px 52px; counter-increment: program-step; }
.steps-list li::before { top: 13px; left: 0; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #b9d9c8; border-radius: 50%; background: #e8f6ee; color: #087346; content: counter(program-step); font-size: 14px; font-weight: 700; }

.amount-highlight { max-width: 760px; padding: 22px 24px; border-left: 4px solid var(--green); border-radius: 8px; background: #e9f6ee; }
.amount-highlight span, .amount-highlight strong { display: block; }
.amount-highlight span { margin-bottom: 7px; color: #357156; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.amount-highlight strong { font-size: 30px; line-height: 1.25; overflow-wrap: anywhere; }
.amount-highlight.is-long strong { font-size: 22px; line-height: 1.35; }
.amount-detail { margin-top: 18px; }

.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; color: var(--text); font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #e7eaee; font-size: 18px; font-style: normal; font-weight: 400; transition: background-color 160ms ease, transform 180ms var(--ease-out); }
.faq-list summary:hover i { background: #dfe3e8; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 48px 18px 0; }
.faq-answer p { margin: 0; font-size: 16px; }
.legal-copy { padding-left: 18px; border-left: 3px solid #aeb5bf; }

.source-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px auto; gap: 30px; align-items: center; overflow: hidden; max-width: 720px; padding: 28px 30px; border: 1px solid #d7dfe9; border-left: 4px solid #4382d7; border-radius: 8px; background: #fbfdff; box-shadow: 0 12px 30px rgba(38, 67, 104, .06); }
.source-copy { min-width: 0; }
.source-eyebrow, .source-date { display: block; }
.source-eyebrow { color: #697483; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.source-date { margin-top: 5px; font-size: 21px; line-height: 1.25; }
.source-copy p { max-width: 520px; margin: 7px 0 0; color: #596474; font-size: 14px; }
.source-stamp { position: relative; display: grid; width: 86px; height: 86px; place-content: center; border: 2px solid #4382d7; border-radius: 50%; opacity: 0; color: #286fc9; text-align: center; transform: scale(1.45) rotate(-12deg); }
.source-stamp::before { position: absolute; inset: 5px; border: 1px dashed #4382d7; border-radius: inherit; content: ""; }
.source-stamp-check, .source-stamp-label { position: relative; display: block; }
.source-stamp-check { font-size: 28px; font-weight: 700; line-height: .9; }
.source-stamp-label { margin-top: 6px; font-size: 9px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.source-section.is-stamped .source-stamp { animation: source-stamp-in 560ms cubic-bezier(.2, 1.35, .35, 1) both; }
.source-link { display: inline-flex; min-width: 0; align-items: center; gap: 12px; color: #1769c7; font-weight: 500; text-decoration: none; }
.source-link > span { border-bottom: 1px dashed currentColor; line-height: 1.4; }
.source-link i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #e7f1ff; font-style: normal; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.source-link:hover > span { color: #0d53a7; }
.source-link:hover i { background: #d8e9ff; transform: translate(2px, -2px); }
.source-link:focus-visible { outline: 2px solid #5b8def; outline-offset: 5px; border-radius: 3px; }
@keyframes source-stamp-in {
  0% { opacity: 0; transform: scale(1.45) rotate(-12deg); }
  62% { opacity: 1; transform: scale(.9) rotate(-7deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}

.calculator-cta { background: var(--ink); color: #fff; }
.calculator-cta .shell { display: flex; min-height: 220px; align-items: center; justify-content: space-between; gap: 50px; }
.calculator-cta p, .section-heading p { margin: 0 0 8px; color: #aeb2bb; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.calculator-cta h2 { max-width: 650px; margin: 0; }
.calculator-cta a, .calculator-cta button { flex: none; padding: 15px 19px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.calculator-cta a:hover, .calculator-cta button:hover { background: #eceef1; }
.calculator-cta a:active, .calculator-cta button:active { transform: scale(.97); }

.program-checker {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: #f1f2f4;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(17, 18, 21, .2);
  opacity: 0;
  transform: scale(.96);
  transform-origin: center;
  transition: opacity var(--checker-modal-close) var(--motion-out), transform var(--checker-modal-close) var(--motion-out);
}
.program-checker[open],
.program-checker.is-opening { opacity: 0; transform: scale(.96); }
.program-checker.is-open { opacity: 1; transform: scale(1); transition-duration: var(--checker-modal-open); }
.program-checker.is-closing { opacity: 0; transform: scale(.98); }
.program-checker::backdrop {
  background: rgba(17, 18, 21, 0);
  backdrop-filter: blur(3px);
  transition: background-color var(--checker-modal-close) var(--motion-out);
}
.program-checker[open]::backdrop,
.program-checker.is-opening::backdrop { background: rgba(17, 18, 21, 0); }
.program-checker.is-open::backdrop { background: rgba(17, 18, 21, .42); transition-duration: var(--checker-modal-open); }
body:has(.program-checker[open]) { overflow: hidden; }

.checker-frame {
  display: flex;
  min-height: min(720px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
}
.checker-dialog-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.checker-head,
.checker-header { display: flex; align-items: center; gap: 16px; padding: 24px 32px 12px; border: 0; }
.checker-header { justify-content: flex-start; }
.checker-header > div { display: none; }
.checker-close {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #858897;
  font: inherit;
  font-size: 0;
  cursor: pointer;
  transition: transform 140ms var(--motion-out), background-color 160ms ease, color 160ms ease;
}
.checker-close::before,
.checker-close::after { position: absolute; width: 24px; height: 1.8px; border-radius: 2px; background: currentColor; content: ""; }
.checker-close::before { transform: rotate(45deg); }
.checker-close::after { transform: rotate(-45deg); }
.checker-close:active { transform: scale(.94); }
.checker-close:focus-visible { outline: 2px solid #303136; outline-offset: 3px; }

.checker-progress { min-width: 0; flex: 1; padding: 0; }
.checker-progress-meta,
.checker-progress > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; color: #73777f; font-size: 13px; }
.checker-progress-track,
.checker-progress > i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #dfe2e7; }
.checker-progress-track > b,
.checker-progress > i > b,
.checker-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: #42c878; transition: width 240ms var(--motion-in-out); }

.checker-body {
  display: flex;
  min-height: 440px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 42px 54px 28px;
}
.checker-body[hidden] { display: none; }
.checker-question-reveal { overflow: hidden; }
.checker-question-line {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(12px);
  transition: opacity var(--question-reveal-enter) var(--motion-in-out), transform var(--question-reveal-enter) var(--motion-in-out), filter var(--question-reveal-enter) var(--motion-in-out);
}
.checker-question-reveal.is-shown .checker-question-line { opacity: 1; filter: blur(0); transform: translateY(0); }
.checker-question-reveal.is-hiding .checker-question-line {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-4px);
  transition-duration: var(--question-reveal-exit);
}
.checker-question-reveal.motion-instant .checker-question-line { opacity: 1; filter: none; transform: none; transition: none; }
.checker-body h2,
.checker-result h2 { max-width: 780px; margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: 0; }
.checker-body h2:focus { outline: 0; }

.checker-hint { display: none; }
.checker-details { max-width: 780px; margin: 20px 0 0; }
.checker-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.checker-details summary::-webkit-details-marker { display: none; }
.checker-details summary::before { font-size: 11px; content: "▶"; transition: transform 160ms var(--motion-out); }
.checker-details[open] summary::before { transform: rotate(90deg); }
.checker-details summary:focus-visible { border-radius: 4px; outline: 2px solid #303136; outline-offset: 3px; }
.checker-details > div { max-width: 680px; margin-top: 10px; padding: 18px; border-radius: 16px; background: #fff; color: #5f636d; }
.checker-details p { margin: 0; }
.checker-details p + p { margin-top: 14px; }

.checker-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.checker-answers button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.checker-answers button span { display: none; }
.checker-answers button[data-checker-random] { border-color: #d9dce1; color: #555963; }
.checker-answers button.selected,
.checker-answers button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.checker-answers button:active { transform: scale(.98); }
.checker-answers button:focus-visible { outline: 2px solid #303136; outline-offset: 3px; }

.checker-previous {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.checker-previous:disabled { opacity: .4; cursor: default; }
.checker-previous:focus-visible { border-radius: 4px; outline: 2px solid #303136; outline-offset: 3px; }

.checker-result {
  min-height: 440px;
  flex: 1;
  padding: 42px 54px 28px;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(12px);
  transition: opacity var(--question-reveal-enter) var(--motion-in-out), transform var(--question-reveal-enter) var(--motion-in-out), filter var(--question-reveal-enter) var(--motion-in-out);
}
.checker-result[hidden] { display: none; }
.checker-result.is-shown { opacity: 1; filter: blur(0); transform: translateY(0); }
.checker-result.is-hiding { opacity: 0; filter: blur(2px); transform: translateY(-4px); transition-duration: var(--question-reveal-exit); }
.checker-result.motion-instant { opacity: 1; filter: none; transform: none; transition: none; }
.checker-result-content { max-width: 780px; }
.checker-result-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: #e6e9ec; font-size: 26px; font-weight: 700; }
.checker-result[data-result="yes"] .checker-result-icon { background: #dff3e8; color: #087346; }
.checker-result[data-result="no"] .checker-result-icon { background: #f5e6e4; color: #9a4036; }
.checker-result[data-result="unknown"] .checker-result-icon { background: #fff0c8; color: #846000; }
.checker-result-content > p:first-of-type { margin: 0 0 10px; color: #69717c; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.checker-result-content > p:last-of-type { max-width: 680px; margin: 20px 0 0; color: #555d68; font-size: 16px; line-height: 1.6; }
.checker-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.checker-result-actions button {
  min-height: 54px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.checker-result-actions button:last-child { background: var(--ink); color: #fff; }
.checker-result-actions button:active { transform: scale(.98); }
.checker-result-actions button:focus-visible { outline: 2px solid #303136; outline-offset: 3px; }

.checker-footer { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; padding: 0 54px 48px; border: 0; background: transparent; }
.checker-footer > p { display: none; }
.checker-footer button { font: inherit; }
.checker-bottom-back {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.checker-bottom-back:active { transform: scale(.98); }
.checker-bottom-back:focus-visible { outline: 2px solid #303136; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .checker-close:hover { background: #e6e7ea; color: var(--text); }
  .checker-answers button:hover,
  .checker-result-actions button:first-child:hover,
  .checker-bottom-back:hover { background: #e9eaee; }
  .checker-answers button.selected:hover,
  .checker-answers button[aria-pressed="true"]:hover,
  .checker-result-actions button:last-child:hover { background: #202126; }
}

.related-section { padding-block: 68px 76px; }
.section-heading p { color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.related-grid a { display: grid; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; transition: border-color 160ms ease, transform 140ms var(--ease-out); }
.related-grid a:hover { border-color: #a9aeb7; }
.related-grid a:active { transform: scale(.985); }
.related-grid span { color: var(--muted); font-size: 12px; }
.related-grid strong { margin: 14px 0; font-size: 18px; line-height: 1.3; }
.related-grid small { align-self: end; color: var(--muted); }

.site-footer { padding-block: 36px; border-top: 1px solid var(--line); background: #fff; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 30px; }
.footer-logo { align-self: center; text-decoration: none; }
.site-footer p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; }

.catalog-page .shell { width: min(1500px, calc(100% - 64px)); }
.catalog-intro { padding-block: 78px 66px; border-bottom: 1px solid var(--line); background: #f1f2f4; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.catalog-intro h1 { max-width: 1120px; margin: 0; font-size: 64px; font-weight: 500; line-height: 1.05; letter-spacing: 0; }
.catalog-intro > .shell > p:not(.eyebrow) { max-width: 820px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.catalog-filter-search { max-width: 760px; margin-top: 42px; }
.catalog-filter-search > label,
.catalog-filters label { display: grid; gap: 7px; color: #5d626c; font-size: 14px; }
.catalog-search-control { position: relative; }
.catalog-search-control span { position: absolute; top: 50%; left: 22px; color: #777c86; font-size: 25px; line-height: 1; transform: translateY(-54%); pointer-events: none; }
.catalog-search-control input,
.catalog-filters select {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 1px solid #c8cbd1;
  border-radius: 999px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.catalog-search-control input { padding-left: 54px; }
.catalog-search-control input:focus,
.catalog-filters select:focus { border-color: #4c5059; box-shadow: 0 0 0 3px rgba(46, 48, 54, .08); }
.catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-top: 24px; }
.catalog-card-territory { color: #626873; font-size: 14px; line-height: 1.5; margin-top: 12px; }
.catalog-reset { min-width: 150px; height: 58px; padding: 0 24px; border: 1px solid #2e3036; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.catalog-reset:hover { background: #fff; }
.catalog-reset:active { transform: scale(.97); }
.catalog-results { padding-block: 52px 80px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.catalog-toolbar-state { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.catalog-active-filter { min-height: 38px; padding: 0 14px; border: 1px solid #f0b7ad; border-radius: 999px; background: #fff1ee; color: #99372c; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.catalog-active-filter:hover { background: #ffe5e0; }
.catalog-active-filter:active { transform: scale(.97); }
.catalog-active-filter[hidden] { display: none; }
.catalog-tabs { display: flex; min-width: 0; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tabs button { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0 22px; border: 1px solid #d1d4d9; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.catalog-tabs button.active { border-color: #24262b; background: #24262b; color: #fff; }
.catalog-tabs button:active { transform: scale(.97); }
.level-dot { width: 7px; height: 7px; border-radius: 50%; background: #7f838c; }
.level-dot.federal { background: #82c900; }
.level-dot.regional { background: #589fea; }
.level-dot.mixed { background: linear-gradient(90deg, #82c900 0 50%, #589fea 50%); }
.level-dot.municipal { background: #e0a337; }
.catalog-count { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 14px; }
.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-card { display: flex; min-height: 340px; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid transparent; border-radius: 8px; background: #f0f1f2; text-decoration: none; transition: border-color 160ms ease, transform 140ms var(--ease-out), box-shadow 160ms ease; }
.catalog-card[hidden] { display: none; }
.catalog-card:hover { border-color: #c8cbd1; box-shadow: 0 10px 30px rgba(26, 29, 35, .07); }
.catalog-card:active { transform: scale(.99); }
.catalog-card .program-labels > span { padding: 4px 8px; border: 0; background: #e1e3e6; color: #373a42; }
.catalog-card .program-labels .level.federal { background: #b9ec75; color: #244300; }
.catalog-card .program-labels .level.regional { background: #dcecff; color: #275f97; }
.catalog-card .program-labels .level.municipal { background: #ffe9bd; color: #755019; }
.catalog-card .program-labels .level.mixed { background: #ddf1d6; color: #315f2b; }
.catalog-card h2 { margin: 24px 0 14px; font-size: 22px; font-weight: 500; line-height: 1.22; overflow-wrap: anywhere; }
.catalog-card > p { display: -webkit-box; overflow: hidden; margin: 0; color: #4e535d; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.catalog-card footer { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 28px; }
.catalog-card footer strong { min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-card-arrow { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; border-radius: 50%; background: #81c800; color: #fff; font-size: 24px; }
.catalog-empty { display: grid; gap: 5px; padding: 56px 20px; border-radius: 8px; background: #f0f1f2; color: var(--muted); text-align: center; }
.catalog-empty[hidden] { display: none; }
.catalog-empty strong { color: var(--text); font-size: 20px; }
.catalog-infinite { display: flex; min-height: 70px; align-items: center; justify-content: center; padding-top: 24px; color: #747982; font-size: 14px; }
.catalog-infinite[hidden] { display: none; }
.catalog-infinite span { position: relative; padding-left: 22px; }
.catalog-infinite span::before { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; border: 2px solid #c9ccd1; border-top-color: #6e727a; border-radius: 50%; content: ""; animation: catalog-spin 700ms linear infinite; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .program-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .program-hero-aside:has(.program-hero-media) { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; }
  .program-hero-media { margin: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .page-nav { position: static; display: block; overflow-x: auto; scrollbar-width: none; }
  .page-nav::-webkit-scrollbar { display: none; }
  .page-nav-list { display: flex; min-width: max-content; gap: 3px; }
  .page-nav button { width: auto; min-height: 40px; flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; }
  .page-nav button[aria-selected="true"] { border-bottom-color: var(--green); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .catalog-intro h1 { font-size: 52px; }
  .catalog-filters { grid-template-columns: 1fr 1fr; }
  .catalog-reset { width: 100%; }
  .catalog-list { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar-state { justify-content: space-between; }
}

@media (max-width: 620px) {
  .shell, .catalog-page .shell { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 64px; }
  .header-action { padding: 9px 11px; font-size: 12px; }
  .breadcrumbs { min-height: 50px; }
  .program-hero-grid { padding-block: 36px 40px; }
  .program-hero-aside:has(.program-hero-media) { grid-template-columns: 1fr; }
  .program-hero-media { width: min(100%, 360px); justify-self: center; }
  .program-hero h1, .catalog-intro h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .article-layout { padding-block: 34px 48px; }
  .page-nav { margin-inline: -14px; padding-inline: 14px; border-inline: 0; border-radius: 0; }
  .content-section { margin-bottom: 28px; }
  .content-section h2, .related-section h2, .calculator-cta h2 { font-size: 24px; }
  .program-check-primary { align-items: stretch; flex-direction: column; gap: 8px; }
  .program-check-action { width: 100%; justify-content: space-between; }
  .section-copy p { font-size: 16px; line-height: 1.65; }
  .structured-list li { font-size: 15px; }
  .amount-highlight { padding: 18px 20px; }
  .amount-highlight strong { font-size: 25px; }
  .amount-highlight.is-long strong { font-size: 19px; }
  .faq-list summary { min-height: 58px; font-size: 16px; }
  .faq-answer { padding-right: 38px; }
  .source-section { grid-template-columns: minmax(0, 1fr) 76px; gap: 20px; padding: 22px 20px; }
  .source-stamp { width: 72px; height: 72px; }
  .source-stamp-check { font-size: 23px; }
  .source-stamp-label { margin-top: 4px; font-size: 8px; }
  .source-link { grid-column: 1 / -1; justify-self: start; }
  .calculator-cta .shell { min-height: 0; align-items: stretch; flex-direction: column; padding-block: 42px; }
  .calculator-cta a { text-align: center; }
  .calculator-cta button { width: 100%; text-align: center; }
  .program-checker { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 24px; }
  .checker-frame { min-height: min(620px, calc(100dvh - 20px)); max-height: calc(100dvh - 20px); }
  .checker-head, .checker-header { padding: 14px; }
  .checker-progress-meta, .checker-progress > div { font-size: 12px; }
  .checker-body, .checker-result { min-height: 0; padding: 30px 20px 24px; }
  .checker-body h2, .checker-result h2 { font-size: 32px; line-height: 1.1; }
  .checker-details { margin-top: 18px; }
  .checker-details > div { padding: 16px; }
  .checker-answers { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .checker-answers button { min-height: 54px; gap: 8px; padding-inline: 18px; font-size: 16px; }
  .checker-result-actions { display: grid; grid-template-columns: 1fr; }
  .checker-result-actions button { width: 100%; }
  .checker-footer { padding: 0 20px 24px; }
  .checker-bottom-back { margin-top: 16px; }
  .related-grid, .catalog-list { grid-template-columns: 1fr; }
  .site-footer .shell { flex-direction: column; }
  .catalog-intro { padding-block: 44px 40px; }
  .catalog-filter-search { margin-top: 32px; }
  .catalog-filters { grid-template-columns: 1fr; gap: 15px; }
  .catalog-results { padding-block: 34px 56px; }
  .catalog-toolbar { gap: 16px; margin-bottom: 22px; }
  .catalog-tabs { margin-inline: -14px; padding-inline: 14px; }
  .catalog-tabs button { min-height: 44px; padding-inline: 17px; }
  .catalog-list { padding-block: 0; }
  .catalog-card { min-height: 300px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .program-checker,
  .checker-question-line,
  .checker-question-reveal.is-hiding .checker-question-line,
  .checker-result { filter: none !important; transform: none !important; transition: opacity 120ms ease !important; }
  .program-checker::backdrop { transition: background-color 120ms ease !important; }
  .checker-progress b,
  .checker-details summary::before { transition: none !important; }
}
