.resource-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.resource-page * { box-sizing: border-box; }
.resource-page a { color: inherit; }
.resource-page button { font: inherit; }
.resource-page .page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.resource-page .article-hero { padding: 32px 0 24px; }
.resource-page .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; color: #64748b; font-size: 0.88rem; font-weight: 700; }
.resource-page .breadcrumb a { color: #2563eb; text-decoration: none; }
.resource-page .breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.resource-page .article-hero-grid { display: grid; gap: 22px; align-items: center; }
.resource-page .review-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; padding: 7px 11px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1e40af; font-size: 0.78rem; font-weight: 800; }
.resource-page .review-badge::before { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; content: ""; }
.resource-page h1 { max-width: 820px; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: 0; }
.resource-page .lead { max-width: 760px; margin: 16px 0 0; color: #475569; font-size: 1.08rem; }
.resource-page .hero-summary { padding: 20px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06); }
.resource-page .hero-summary strong { display: block; color: #166534; font-size: 1.02rem; }
.resource-page .hero-summary p { margin: 8px 0 0; color: #475569; }
.resource-page .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.resource-page .primary-cta,
.resource-page .secondary-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border-radius: 9px; font-weight: 850; text-decoration: none; }
.resource-page .primary-cta { background: #2563eb; color: #ffffff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2); }
.resource-page .primary-cta:hover { background: #1d4ed8; }
.resource-page .secondary-cta { border: 1px solid #cbd5e1; background: #ffffff; color: #334155; }
.resource-page main { padding-bottom: 12px; }
.resource-page .guide-toc { margin: 8px 0 24px; }
.resource-page .article-section { margin: 22px 0; scroll-margin-top: 84px; }
.resource-page .article-panel { padding: 22px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055); }
.resource-page .article-panel h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.resource-page .article-panel h3 { margin: 22px 0 8px; font-size: 1.08rem; line-height: 1.3; }
.resource-page .article-panel p { max-width: 76ch; margin: 10px 0; color: #334155; }
.resource-page .article-panel ul,
.resource-page .article-panel ol { max-width: 76ch; margin: 12px 0; padding-left: 22px; color: #334155; }
.resource-page .article-panel li + li { margin-top: 7px; }
.resource-page .quick-answer { border-left: 4px solid #2563eb; background: #eff6ff; }
.resource-page .legal-callout { margin: 16px 0; padding: 15px 16px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #713f12; }
.resource-page .success-callout { margin: 16px 0; padding: 15px 16px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; }
.resource-page .formula-box { margin: 16px 0; padding: 18px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; color: #1e3a8a; font-weight: 850; text-align: center; }
.resource-page .example-box { margin: 18px 0; padding: 18px; border: 1px solid #dbeafe; border-radius: 10px; background: #f8fafc; }
.resource-page .example-box h3 { margin-top: 0; }
.resource-page .example-grid { display: grid; gap: 8px; margin-top: 12px; }
.resource-page .example-row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid #e2e8f0; color: #475569; }
.resource-page .example-row:last-child { border-bottom: 0; }
.resource-page .example-total { color: #166534; font-size: 1.08rem; font-weight: 900; }
.resource-page .responsive-table { width: 100%; margin: 16px 0; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; }
.resource-page table { width: 100%; min-width: 620px; border-collapse: collapse; }
.resource-page th,
.resource-page td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.resource-page th { background: #f8fafc; color: #334155; font-size: 0.84rem; }
.resource-page tr:last-child td { border-bottom: 0; }
.resource-page .checklist { list-style: none; padding-left: 0; }
.resource-page .checklist li { position: relative; padding-left: 27px; }
.resource-page .checklist li::before { position: absolute; left: 0; color: #16a34a; font-weight: 900; content: "✓"; }
.resource-page .related-grid,
.resource-page .source-grid,
.resource-page .hub-grid { display: grid; gap: 14px; }
.resource-page .related-card,
.resource-page .source-card,
.resource-page .hub-card { padding: 17px; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; }
.resource-page .related-card h3,
.resource-page .source-card h3,
.resource-page .hub-card h3 { margin: 0 0 7px; font-size: 1rem; }
.resource-page .related-card p,
.resource-page .source-card p,
.resource-page .hub-card p { margin: 0 0 10px; color: #64748b; font-size: 0.92rem; }
.resource-page .related-card a,
.resource-page .source-card a,
.resource-page .hub-card a { color: #2563eb; font-weight: 800; text-underline-offset: 3px; }
.resource-page .faq-list { display: grid; gap: 10px; }
.resource-page .faq-item { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; }
.resource-page .faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 14px 16px; border: 0; background: transparent; color: #0f172a; font-weight: 800; text-align: left; cursor: pointer; }
.resource-page .faq-question::after { flex: 0 0 auto; color: #2563eb; font-size: 1.25rem; content: "+"; }
.resource-page .faq-item.open .faq-question::after { content: "−"; }
.resource-page .faq-answer { display: none; padding: 0 16px 15px; color: #475569; }
.resource-page .faq-item.open .faq-answer { display: block; }
.resource-page .faq-answer p { margin: 0; }
.resource-page .cookie-banner { position: fixed; z-index: 50; right: 16px; bottom: 16px; left: 16px; display: none; width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18); }
.resource-page .cookie-banner.show { display: block; }
.resource-page .cookie-inner { display: grid; gap: 14px; }
.resource-page .cookie-inner p { margin: 0; color: #475569; font-size: 0.9rem; }
.resource-page .cookie-actions { display: grid; gap: 8px; }
.resource-page .cookie-button { min-height: 44px; padding: 9px 13px; border: 0; border-radius: 8px; background: #2563eb; color: #ffffff; font-weight: 800; cursor: pointer; }
.resource-page .cookie-button.reject { border: 1px solid #fecaca; background: #ffffff; color: #991b1b; }
.resource-page .cookie-button.secondary { border: 1px solid #cbd5e1; background: #ffffff; color: #334155; }
.resource-page .cookie-config { display: none; margin-top: 12px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.resource-page .cookie-config.show { display: block; }
.resource-page .cookie-preferences { display: grid; gap: 8px; margin-top: 10px; }
.resource-page .cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; }
.resource-page .cookie-option span { display: block; color: #64748b; font-size: 0.8rem; }
.resource-page .cookie-option strong { display: block; color: #0f172a; font-size: 0.9rem; }
.resource-page .cookie-option input { width: 20px; min-height: 20px; accent-color: #2563eb; }
.resource-page .cookie-save { width: 100%; margin-top: 10px; }
.resource-page .modal-backdrop { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 18px; background: rgba(15, 23, 42, 0.48); }
.resource-page .modal-backdrop.show { display: grid; }
.resource-page .modal { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow: auto; border-radius: 12px; background: #ffffff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2); }
.resource-page .modal-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid #e2e8f0; background: #ffffff; }
.resource-page .modal-header h2 { margin: 0; font-size: 1.2rem; }
.resource-page .modal-close { min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; cursor: pointer; }
.resource-page .modal-body { padding: 18px; color: #334155; }
.resource-page .modal-body h3 { margin: 20px 0 7px; color: #0f172a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.site-brand {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand span { color: #2563eb; }

.site-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav-link,
.site-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.site-nav-link:hover,
.site-dropdown-toggle:hover,
.site-nav-link:focus-visible,
.site-dropdown-toggle:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

.site-dropdown { position: relative; }

.site-dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.site-dropdown.open .site-dropdown-toggle::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.site-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 250px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.site-dropdown.open .site-dropdown-menu { display: grid; }

.site-dropdown-menu a {
  padding: 10px 11px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.site-dropdown-menu a:hover,
.site-dropdown-menu a:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.site-header-cta:hover,
.site-header-cta:focus-visible { background: #1d4ed8; }

.site-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
}

.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu-icon { position: relative; }
.site-menu-icon::before,
.site-menu-icon::after { position: absolute; content: ""; left: 0; }
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon { background: transparent; }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-mobile-menu {
  display: none;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.site-mobile-menu.open { display: block; }

.site-mobile-menu-inner {
  display: grid;
  gap: 5px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
}

.site-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #334155;
  font-weight: 750;
  text-decoration: none;
}

.site-mobile-menu a:hover,
.site-mobile-menu a:focus-visible { background: #eff6ff; color: #1d4ed8; }

.site-mobile-group {
  margin: 7px 10px 2px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-mobile-menu a.site-mobile-child { padding-left: 24px; font-size: 0.92rem; }
.site-mobile-menu a.site-mobile-cta { justify-content: center; margin-top: 8px; background: #2563eb; color: #ffffff; }

.guide-toc {
  margin: 22px 0 12px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.guide-toc strong { display: block; margin-bottom: 9px; color: #0f172a; font-size: 0.96rem; }
.guide-toc ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.guide-toc a { color: #1d4ed8; font-size: 0.9rem; font-weight: 700; text-underline-offset: 3px; }

.navigation-card-link {
  display: inline-block;
  margin-top: 4px;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.navigation-card-link:hover,
.navigation-card-link:focus-visible { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }

.site-related-grid { display: grid; gap: 14px; }
.site-related-card { padding: 17px; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045); }
.site-related-card h3 { margin: 0 0 7px; color: #0f172a; font-size: 1rem; }
.site-related-card p { margin: 0 0 9px; color: #64748b; font-size: 0.9rem; }
.site-related-card a { color: #2563eb; font-size: 0.9rem; font-weight: 800; text-underline-offset: 3px; }

.content-section h2[id] { scroll-margin-top: 84px; }

.special-calculator-section {
  margin: 8px 0 34px;
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.special-calculator-section * { box-sizing: border-box; }
.special-static-preview { display: grid; gap: 18px; }
.special-static-preview h2 { margin: 5px 0 7px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: 0; }
.special-static-preview h3 { margin: 0 0 8px; font-size: 1rem; }
.special-static-preview p { margin: 0; color: #64748b; }
.special-static-grid { display: grid; gap: 12px; }
.special-static-card { padding: 15px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.special-static-card ul { margin: 8px 0 0; padding-left: 20px; color: #475569; font-size: 0.86rem; }
.special-static-card li + li { margin-top: 5px; }
.special-static-card details { margin-top: 10px; }
.special-static-card summary { color: #1d4ed8; font-size: 0.86rem; font-weight: 850; cursor: pointer; }
.special-static-card details p { margin-top: 8px; font-size: 0.82rem; }
.special-noscript { margin: 0; padding: 12px; border: 1px solid #fde68a; border-radius: 8px; background: #fffbeb; color: #713f12; font-size: 0.84rem; }
.special-calculator-heading { display: grid; gap: 12px; margin-bottom: 22px; }
.special-calculator-heading h2 { margin: 5px 0 7px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: 0; }
.special-calculator-heading p { max-width: 720px; margin: 0; color: #64748b; }
.special-eyebrow { color: #1d4ed8; font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
.special-private { width: fit-content; padding: 7px 10px; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 0.78rem; font-weight: 800; }
.special-calculator-layout { display: grid; gap: 18px; align-items: start; }
.special-form { display: grid; gap: 17px; min-width: 0; }
.special-grid { display: grid; gap: 14px; }
.special-field { min-width: 0; }
.special-field label,
.special-fieldset legend,
.special-subpanel legend { display: block; margin-bottom: 7px; color: #334155; font-size: 0.88rem; font-weight: 800; }
.special-field input,
.special-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #ffffff; color: #0f172a; font: inherit; }
.special-field input:focus,
.special-field select:focus { border-color: #2563eb; outline: 3px solid rgba(37, 99, 235, 0.14); }
.special-help { margin: 7px 0 0; color: #64748b; font-size: 0.78rem; line-height: 1.5; }
.special-fieldset,
.special-subpanel { min-width: 0; margin: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.special-segmented { display: grid; gap: 8px; }
.special-segmented label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 11px; border: 1px solid #dbeafe; border-radius: 8px; background: #ffffff; color: #334155; font-size: 0.86rem; font-weight: 750; cursor: pointer; }
.special-segmented input,
.special-check input { width: 19px; min-height: 19px; accent-color: #2563eb; }
.special-details { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: #ffffff; }
.special-details summary,
.special-explanation summary { min-height: 48px; padding: 13px 15px; color: #1e40af; font-size: 0.88rem; font-weight: 850; cursor: pointer; }
.special-details-body { display: grid; gap: 14px; padding: 2px 15px 15px; }
.special-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; color: #334155; font-size: 0.84rem; font-weight: 750; }
.special-conditional { display: none; }
.special-conditional.show { display: block; }
.special-offer { display: grid; gap: 10px; border-color: #bfdbfe; background: #eff6ff; }
.special-callout { margin-bottom: 18px; padding: 13px 15px; border-left: 4px solid #2563eb; background: #eff6ff; color: #334155; font-size: 0.88rem; }
.special-callout a { color: #1d4ed8; font-weight: 800; }
.special-submit { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 9px; background: #2563eb; color: #ffffff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22); }
.special-submit:hover { background: #1d4ed8; }
.special-submit:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 3px; }
.special-notice { display: none; padding: 11px 13px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 0.84rem; font-weight: 750; }
.special-notice.show { display: block; }
.special-result { overflow: hidden; min-width: 0; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; }
.special-result.calculated { box-shadow: 0 14px 36px rgba(22, 101, 52, 0.1); }
.special-result-top { padding: 20px; border-bottom: 1px solid #bbf7d0; }
.special-result-top span { color: #166534; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.special-result-top strong { display: block; margin: 5px 0; color: #14532d; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.special-result-top p { margin: 0; color: #3f6212; font-size: 0.84rem; }
.special-breakdown { display: grid; gap: 1px; padding: 12px; }
.special-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.72); color: #475569; font-size: 0.82rem; }
.special-breakdown strong { flex: 0 0 auto; color: #166534; }
.special-breakdown .special-net { margin-top: 5px; background: #dcfce7; color: #14532d; font-weight: 850; }
.special-comparison { margin: 0 12px 12px; padding: 15px; border: 1px solid #bfdbfe; border-radius: 9px; background: #ffffff; }
.special-comparison[hidden],
.special-explanation[hidden] { display: none; }
.special-comparison h3 { margin: 0 0 12px; font-size: 1rem; }
.special-comparison-grid { display: grid; gap: 8px; }
.special-comparison-grid span { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-size: 0.82rem; }
.special-comparison-grid strong { color: #0f172a; }
.special-comparison p { margin: 12px 0 7px; color: #475569; font-size: 0.8rem; }
.special-comparison a { color: #1d4ed8; font-size: 0.84rem; font-weight: 850; }
.special-explanation { margin: 0 12px 12px; border: 1px solid #dbeafe; border-radius: 9px; background: #ffffff; }
.special-formula-list { display: grid; gap: 0; margin: 0; padding: 0 14px 14px; list-style: none; }
.special-formula-list li { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.76rem; }
.special-formula-list strong { overflow-wrap: anywhere; color: #334155; font-size: 0.8rem; }
.special-formula-list .special-formula-total { border-bottom: 0; color: #166534; font-weight: 900; }
.special-rule { margin: 0 14px 14px; color: #64748b; font-size: 0.76rem; }
.special-legal { margin: 0; padding: 0 15px 16px; color: #64748b; font-size: 0.74rem; line-height: 1.5; }
.special-base { margin: 16px 0 0; color: #64748b; font-size: 0.78rem; }
.special-base a { color: #1d4ed8; font-weight: 750; text-underline-offset: 3px; }

/* Specialized calculator visual system. Kept self-contained so article styles cannot leak in. */
.special-calculator-section {
  margin: 12px 0 40px;
  padding: clamp(20px, 3vw, 32px);
  border-color: #dbeafe;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}

.special-calculator-section input,
.special-calculator-section select,
.special-calculator-section button { font-family: inherit; letter-spacing: 0; }

.special-calculator-section .special-calculator-heading {
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.special-calculator-section .special-calculator-heading h2 {
  margin: 6px 0 9px;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.special-calculator-section .special-calculator-heading p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.6;
}

.special-calculator-section .special-eyebrow { letter-spacing: 0; }

.special-calculator-section .special-private {
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.special-calculator-section .special-calculator-layout { gap: 26px; }

.special-calculator-section .special-form {
  gap: 20px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

.special-calculator-section .special-grid { gap: 16px; }

.special-calculator-section .special-field label,
.special-calculator-section .special-fieldset legend,
.special-calculator-section .special-subpanel legend {
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.special-calculator-section .special-field input,
.special-calculator-section .special-field select {
  width: 100%;
  height: 54px;
  min-height: 54px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
  color-scheme: light;
}

.special-calculator-section .special-field input:hover,
.special-calculator-section .special-field select:hover { border-color: #94a3b8; }

.special-calculator-section .special-field input:focus,
.special-calculator-section .special-field select:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.special-calculator-section .special-field input::placeholder { color: #94a3b8; opacity: 1; }

.special-calculator-section .special-help {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.special-calculator-section .special-fieldset,
.special-calculator-section .special-subpanel {
  display: flow-root;
  margin: 0;
  padding: 18px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.special-calculator-section .special-fieldset legend,
.special-calculator-section .special-subpanel legend {
  float: left;
  width: 100%;
  padding: 0;
}

.special-calculator-section .special-fieldset legend + *,
.special-calculator-section .special-subpanel legend + * { clear: both; }

.special-calculator-section .special-segmented { gap: 10px; }

.special-calculator-section .special-segmented label {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.special-calculator-section .special-segmented label:hover { border-color: #93c5fd; }

.special-calculator-section .special-segmented label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
  color: #1e40af;
}

.special-calculator-section .special-segmented input[type="radio"] {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
}

.special-calculator-section .special-segmented input[type="radio"]:checked {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 4px #ffffff;
  background: #2563eb;
}

.special-calculator-section .special-segmented input[type="radio"]:focus-visible,
.special-calculator-section .special-check input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.special-calculator-section .special-details {
  border-color: #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.special-calculator-section .special-details summary,
.special-calculator-section .special-explanation summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 48px 14px 16px;
  list-style: none;
  color: #1e40af;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

.special-calculator-section .special-details summary::-webkit-details-marker,
.special-calculator-section .special-explanation summary::-webkit-details-marker { display: none; }

.special-calculator-section .special-details summary::after,
.special-calculator-section .special-explanation summary::after {
  position: absolute;
  right: 15px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.1rem;
  line-height: 1;
  content: "+";
}

.special-calculator-section .special-details[open] summary::after,
.special-calculator-section .special-explanation[open] summary::after { content: "\2212"; }

.special-calculator-section .special-details[open] summary { border-bottom: 1px solid #dbeafe; }
.special-calculator-section .special-details-body { gap: 17px; padding: 18px; }

.special-calculator-section .special-check {
  align-items: center;
  margin-top: 15px;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  line-height: 1.45;
}

.special-calculator-section .special-check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
}

.special-calculator-section .special-subpanel { background: #ffffff; }
.special-calculator-section .special-subpanel > p { margin: 2px 0 16px; color: #64748b; line-height: 1.55; }

.special-calculator-section .special-offer {
  gap: 13px;
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06);
}

.special-calculator-section .special-offer legend { color: #1e40af; }

.special-calculator-section .special-callout {
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  line-height: 1.55;
}

.special-calculator-section .special-submit {
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.special-calculator-section .special-submit:hover {
  background: #1d4ed8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.special-calculator-section .special-submit:active { transform: translateY(0); }

.special-calculator-section .special-notice {
  padding: 13px 15px;
  border-radius: 10px;
  line-height: 1.5;
}

.special-calculator-section .special-result {
  border-color: #bbf7d0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.065);
}

.special-calculator-section .special-result.calculated {
  box-shadow: 0 18px 42px rgba(22, 101, 52, 0.13);
}

.special-calculator-section .special-result-top {
  padding: 24px;
  border-bottom-color: #bbf7d0;
  background: #f0fdf4;
}

.special-calculator-section .special-result-top span { letter-spacing: 0; }

.special-calculator-section .special-result-top strong {
  margin: 8px 0 7px;
  font-size: clamp(2.15rem, 6vw, 3.15rem);
}

.special-calculator-section .special-result-top p { line-height: 1.5; }

.special-calculator-section .special-breakdown {
  gap: 0;
  padding: 8px 20px 18px;
  background: #ffffff;
}

.special-calculator-section .special-breakdown > div {
  min-height: 50px;
  padding: 13px 4px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  font-size: 0.87rem;
  line-height: 1.4;
}

.special-calculator-section .special-breakdown > div:last-child { border-bottom: 0; }
.special-calculator-section .special-breakdown strong { font-size: 0.92rem; }

.special-calculator-section .special-breakdown .special-net {
  min-height: 54px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  background: #dcfce7;
}

.special-calculator-section .special-comparison {
  margin: 0 20px 18px;
  padding: 18px;
  border-color: #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.special-calculator-section .special-comparison h3 { color: #1e3a8a; }

.special-calculator-section .special-comparison-grid span {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #ffffff;
}

.special-calculator-section .special-comparison p { font-size: 0.83rem; line-height: 1.55; }

.special-calculator-section .special-explanation {
  margin: 0 20px 18px;
  border-color: #dbeafe;
  border-radius: 10px;
  background: #ffffff;
}

.special-calculator-section .special-explanation[open] summary { border-bottom: 1px solid #e2e8f0; }
.special-calculator-section .special-formula-list { padding: 6px 16px 16px; }
.special-calculator-section .special-formula-list li { padding: 11px 0; font-size: 0.8rem; line-height: 1.45; }
.special-calculator-section .special-formula-list strong { font-size: 0.84rem; }
.special-calculator-section .special-rule { margin: 0 16px 16px; line-height: 1.5; }
.special-calculator-section .special-legal { padding: 0 20px 20px; font-size: 0.78rem; line-height: 1.55; }

@media (min-width: 720px) {
  .special-calculator-section .special-form { padding: 24px; }
  .special-calculator-section .special-grid,
  .special-calculator-section .special-segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .special-calculator-section .special-calculator-layout { grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr); }
  .special-calculator-section .special-result { position: sticky; top: 84px; }
}

@media (max-width: 719px) {
  .special-calculator-section {
    margin-right: -4px;
    margin-left: -4px;
    padding: 18px 14px;
  }

  .special-calculator-section .special-calculator-heading {
    margin-bottom: 20px;
    padding: 0 2px 19px;
  }

  .special-calculator-section .special-private { width: 100%; white-space: normal; text-align: center; }
  .special-calculator-section .special-form { gap: 17px; padding: 15px; }
  .special-calculator-section .special-fieldset,
  .special-calculator-section .special-subpanel { padding: 15px; }
  .special-calculator-section .special-segmented { grid-template-columns: 1fr; }
  .special-calculator-section .special-result-top { padding: 20px 18px; }
  .special-calculator-section .special-breakdown { padding: 7px 16px 16px; }
  .special-calculator-section .special-breakdown > div { align-items: flex-start; }
  .special-calculator-section .special-comparison,
  .special-calculator-section .special-explanation { margin-right: 16px; margin-left: 16px; }
}

.home-offer-panel { margin: 0; padding: 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.home-offer-panel legend { padding: 0 5px; color: #1e40af; font-size: 0.9rem; font-weight: 850; }
.home-comparison { margin: 0 16px 16px; padding: 15px; border: 1px solid #bfdbfe; border-radius: 9px; background: #ffffff; }
.home-comparison[hidden],
.home-explanation[hidden] { display: none; }
.home-comparison h3 { margin: 0 0 12px; color: #0f172a; font-size: 1rem; }
.home-comparison-grid { display: grid; gap: 8px; }
.home-comparison-grid span { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-size: 0.82rem; }
.home-comparison-grid strong { color: #0f172a; }
.home-comparison p { margin: 12px 0 7px; color: #475569; font-size: 0.8rem; }
.home-comparison a { color: #1d4ed8; font-size: 0.84rem; font-weight: 850; }
.home-explanation { margin: 0 16px 16px; border: 1px solid #dbeafe; border-radius: 9px; background: #ffffff; }
.home-explanation summary { min-height: 48px; padding: 13px 15px; color: #1e40af; font-size: 0.88rem; font-weight: 850; cursor: pointer; }
.home-formula-list { display: grid; gap: 0; margin: 0; padding: 0 14px 14px; list-style: none; }
.home-formula-list li { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.76rem; }
.home-formula-list strong { overflow-wrap: anywhere; color: #334155; font-size: 0.8rem; }
.home-formula-list .home-formula-total { border-bottom: 0; color: #166534; font-weight: 900; }
.situation-calculator-grid { display: grid; gap: 12px; }
.situation-calculator-grid a { display: grid; gap: 5px; min-height: 96px; padding: 16px; border: 1px solid #dbeafe; border-radius: 10px; background: #ffffff; color: #0f172a; text-decoration: none; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045); }
.situation-calculator-grid a:hover,
.situation-calculator-grid a:focus-visible { border-color: #93c5fd; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1); }
.situation-calculator-grid strong { font-size: 0.98rem; }
.situation-calculator-grid span { color: #64748b; font-size: 0.84rem; }

.site-footer {
  margin-top: 34px;
  padding: 42px 0 116px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  text-align: left;
}

.site-footer-inner {
  display: grid;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer-brand strong { display: block; margin-bottom: 7px; color: #0f172a; font-size: 1.05rem; }
.site-footer-brand p { max-width: 330px; margin: 0; font-size: 0.9rem; }
.site-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
.site-footer-group h2 { margin: 0 0 10px; color: #334155; font-size: 0.85rem; }
.site-footer-group a,
.site-footer-group button {
  display: block;
  width: fit-content;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-footer-group a:hover,
.site-footer-group button:hover,
.site-footer-group a:focus-visible,
.site-footer-group button:focus-visible { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { padding-top: 18px; border-top: 1px solid #e2e8f0; font-size: 0.82rem; }

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.guide-toc a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .resource-page .article-hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr); }
  .resource-page .related-grid,
  .resource-page .source-grid,
  .resource-page .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-page .cookie-inner { grid-template-columns: 1fr auto; align-items: end; }
  .resource-page .cookie-actions { grid-template-columns: repeat(3, auto); }
  .site-footer-inner { grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr); }
  .site-footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer-bottom { grid-column: 1 / -1; }
  .special-calculator-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .special-grid,
  .special-segmented,
  .special-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .special-static-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .special-comparison-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .special-comparison-grid span { display: grid; gap: 3px; }
  .home-comparison-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-comparison-grid span { display: grid; gap: 3px; }
  .situation-calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .site-menu-toggle,
  .site-mobile-menu { display: none !important; }
  .site-nav { display: flex; }
  .special-calculator-layout { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); }
  .special-result { position: sticky; top: 82px; }
  .situation-calculator-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1039px) {
  body.site-menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .site-dropdown-toggle::after,
  .site-menu-icon,
  .site-menu-icon::before,
  .site-menu-icon::after { transition: none; }
}
