:root {
  --bgk-canvas: #f5f7fb;
  --bgk-surface: #ffffff;
  --bgk-surface-muted: #eef2f7;
  --bgk-ink: #0f172a;
  --bgk-ink-soft: #475569;
  --bgk-line: #dbe3ef;
  --bgk-line-strong: #c7d3e3;
  --bgk-accent: #0f7b6c;
  --bgk-accent-strong: #0a5f54;
  --bgk-warning: #b45309;
  --bgk-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --bgk-text-main: var(--bgk-ink);
  --bgk-text-heading: var(--bgk-ink);
  --bgk-text-muted: var(--bgk-ink-soft);
  --bgk-text-link: var(--bgk-accent-strong);
  --bgk-text-link-hover: var(--bgk-accent);
  --bgk-text-label: var(--bgk-ink);
  --bgk-text-placeholder: color-mix(in srgb, var(--bgk-ink-soft) 72%, #ffffff 28%);
  --bgk-text-footer: var(--bgk-ink-soft);
  --bgk-text-footer-heading: var(--bgk-ink);
  --bgk-text-value: var(--bgk-ink);
  --bgk-text-value-muted: var(--bgk-ink-soft);
  --bgk-radius-sm: 14px;
  --bgk-radius-md: 22px;
  --bgk-radius-lg: 32px;
  --bgk-container: min(1200px, calc(100vw - 32px));
  --bgk-container-narrow: min(760px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7faff 0%, #f5f7fb 34%, #f2f5fa 100%);
  color: var(--bgk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bgk-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--bgk-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 123, 108, 0.35);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: var(--bgk-container);
  margin: 0 auto;
}

.container--wide {
  width: var(--bgk-container);
}

.container--narrow {
  width: var(--bgk-container-narrow);
}

.section {
  padding: 80px 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(199, 211, 227, 0.5);
}

.section--hero {
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.12);
  color: var(--bgk-accent-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.page-header h1,
.hero-copy h1,
.content-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-heading p,
.hero-lead,
.hero-copy p,
.content-card p {
  margin: 0;
  color: var(--bgk-ink-soft);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.92);
  border-bottom: 1px solid rgba(199, 211, 227, 0.75);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bgk-accent-strong), var(--bgk-accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark__text strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-mark__text small {
  color: var(--bgk-ink-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li {
  list-style: none;
}

.site-nav__item a,
.site-nav__list li a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--bgk-ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav__item a:hover,
.site-nav__item a:focus-visible,
.site-nav__list li a:hover,
.site-nav__list li a:focus-visible {
  background: rgba(15, 123, 108, 0.08);
  color: var(--bgk-accent-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--bgk-line);
  border-radius: 14px;
  background: #fff;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--bgk-ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-row--centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--bgk-accent);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 123, 108, 0.2);
}

.button--primary:hover {
  background: var(--bgk-accent-strong);
  color: #fff;
}

.button--secondary {
  border-color: var(--bgk-line-strong);
  background: #fff;
  color: var(--bgk-ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  padding: 20px 0;
}

.hero-pills,
.tag-list,
.methodology-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-pills span,
.tag-list li,
.methodology-card__list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bgk-line);
  color: var(--bgk-ink-soft);
  font-size: 0.875rem;
  list-style: none;
}

.hero-visual,
.hero-visual-card {
  background: linear-gradient(180deg, #ffffff, #eef4f9);
  border: 1px solid rgba(199, 211, 227, 0.75);
  border-radius: var(--bgk-radius-lg);
  padding: 24px;
  box-shadow: var(--bgk-shadow);
}

.hero-card-metric + .hero-card-metric {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bgk-line);
}

.hero-card-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.hero-card-metric span {
  color: var(--bgk-ink-soft);
}

.card-grid,
.step-grid,
.three-column-grid {
  display: grid;
  gap: 18px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--3,
.three-column-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.link-card,
.step-card,
.info-card,
.content-card,
.methodology-card,
.calculator-shell {
  background: var(--bgk-surface);
  border: 1px solid rgba(199, 211, 227, 0.9);
  border-radius: var(--bgk-radius-md);
  box-shadow: var(--bgk-shadow);
}

.feature-card,
.link-card,
.step-card,
.info-card,
.content-card {
  padding: 24px;
}

.feature-card h3,
.link-card h3,
.step-card h3,
.info-card h2,
.capability-item strong {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.link-card p,
.step-card p,
.info-card p,
.capability-item p {
  margin: 0;
  color: var(--bgk-ink-soft);
}

.two-column-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-item {
  padding: 20px 22px;
  border: 1px solid var(--bgk-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.step-card {
  position: relative;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(15, 123, 108, 0.1);
  color: var(--bgk-accent-strong);
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--bgk-line);
  border-radius: var(--bgk-radius-md);
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
}

.trust-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.trust-strip p {
  margin: 0;
  color: var(--bgk-ink-soft);
}

.methodology-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 28px;
}

.site-main--page,
.site-main--default {
  padding: 48px 0 80px;
}

.content-card--page,
.content-card--centered {
  padding: 36px;
}

.content-card--centered {
  text-align: center;
}

.page-header--simple {
  margin-bottom: 22px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose p,
.prose li {
  color: var(--bgk-ink-soft);
}

.prose h2,
.prose h3 {
  margin-bottom: 0.6rem;
  color: var(--bgk-ink);
  letter-spacing: -0.03em;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--bgk-ink-soft);
  font-size: 0.9rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  opacity: 0.6;
}

.site-main--money .section--money-hero {
  padding-bottom: 32px;
}

.hero-grid--money {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.calculator-shell {
  padding: 28px;
}

.calculator-shell__intro {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bgk-line);
}

.calculator-shell__intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.calculator-shell__intro p {
  margin: 0;
  color: var(--bgk-ink-soft);
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--bgk-ink-soft);
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bgk-accent);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.inline-links a,
.link-card a {
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--bgk-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  list-style: none;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--bgk-ink-soft);
}

.site-footer {
  margin-top: 40px;
  padding: 32px 0 24px;
  border-top: 1px solid rgba(199, 211, 227, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.site-footer__menu,
.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu li {
  list-style: none;
}

.site-footer__nav a,
.site-footer__menu a {
  color: var(--bgk-ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__nav a:hover,
.site-footer__menu a:hover {
  color: var(--bgk-accent-strong);
}

.footer-email {
  display: inline-flex;
  margin-top: 18px;
  color: var(--bgk-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bgk-line);
  color: var(--bgk-ink-soft);
  font-size: 0.92rem;
}

.site-footer__meta p {
  margin: 0;
}

.calculator-shell .bgsc-wrap {
  padding: 0;
  background: transparent;
}

.calculator-shell .bgsc-form,
.calculator-shell .bgsc-results,
.calculator-shell .bgsc-compare,
.calculator-shell .bgsc-share-box,
.calculator-shell .bgsc-trust,
.calculator-shell .bgsc-assumptions {
  border: 1px solid var(--bgk-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.calculator-shell .bgsc-form,
.calculator-shell .bgsc-results,
.calculator-shell .bgsc-share-box,
.calculator-shell .bgsc-trust,
.calculator-shell .bgsc-assumptions,
.calculator-shell .bgsc-compare {
  padding: 22px;
}

.calculator-shell .bgsc-form-title,
.calculator-shell .bgsc-results-title,
.calculator-shell .bgsc-trust h4 {
  margin-top: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--bgk-ink);
}

.calculator-shell .bgsc-form-subtitle,
.calculator-shell .bgsc-inline-hint,
.calculator-shell .bgsc-inline-rates,
.calculator-shell .bgsc-legal-disclaimer,
.calculator-shell .bgsc-trust li,
.calculator-shell .bgsc-trust-sources li {
  color: var(--bgk-ink-soft);
}

.calculator-shell .bgsc-input-grid {
  gap: 16px;
}

.calculator-shell .bgsc-field input,
.calculator-shell .bgsc-field select,
.calculator-shell .bgsc-share-row input {
  min-height: 48px;
  border: 1px solid var(--bgk-line-strong);
  border-radius: 14px;
  background: #fff;
}

.calculator-shell .bgsc-btn,
.calculator-shell .bgsc-btn-secondary,
.calculator-shell .bgsc-btn-utility {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

.calculator-shell .bgsc-btn {
  background: var(--bgk-accent);
  color: #fff;
}

.calculator-shell .bgsc-btn-secondary {
  border: 1px solid var(--bgk-line);
  background: #fff;
  color: var(--bgk-ink);
}

.calculator-shell .bgsc-btn-utility {
  border: 1px solid var(--bgk-line-strong);
  background: transparent;
  color: var(--bgk-ink-soft);
}

.calculator-shell .bgsc-result-card {
  border-radius: 16px;
  border: 1px solid var(--bgk-line);
  background: #fff;
}

.calculator-shell .bgsc-highlight {
  border-color: rgba(15, 123, 108, 0.28);
  background: rgba(15, 123, 108, 0.06);
}

.calculator-shell .bgsc-employer {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}

.calculator-shell .bgsc-compare summary,
.calculator-shell .bgsc-assumptions summary,
.calculator-shell .bgsc-methodology summary {
  cursor: pointer;
  font-weight: 700;
}

.calculator-shell .bgsc-error {
  border-radius: 16px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  background: rgba(180, 83, 9, 0.08);
  color: var(--bgk-warning);
}

.bgksc-salary-layout {
  display: grid;
  gap: 18px;
}

.bgksc-salary-hero,
.bgksc-salary-card,
.bgksc-trust-box {
  padding: 24px;
  border: 1px solid var(--bgk-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--bgk-shadow);
}

.bgksc-salary-hero h1,
.bgksc-salary-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.bgksc-salary-hero p,
.bgksc-salary-card p,
.bgksc-trust-box p,
.bgksc-salary-card li {
  color: var(--bgk-ink-soft);
}

.bgksc-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.12);
  color: var(--bgk-accent-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bgksc-pill-row,
.bgksc-link-grid,
.bgksc-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bgksc-pill-row span,
.bgksc-link-grid a {
  padding: 8px 12px;
  border: 1px solid var(--bgk-line);
  border-radius: 999px;
  background: var(--bgk-surface-muted);
  text-decoration: none;
  font-weight: 600;
}

.bgksc-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bgksc-summary-grid .bgksc-salary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bgk-ink-soft);
  font-size: 0.9rem;
}

.bgksc-summary-grid .bgksc-salary-card span {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bgksc-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bgksc-faq-list {
  display: grid;
  gap: 12px;
}

.bgksc-faq-list details {
  border: 1px solid var(--bgk-line);
  border-radius: 16px;
  overflow: hidden;
}

.bgksc-faq-list summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.bgksc-faq-list summary::-webkit-details-marker {
  display: none;
}

.bgksc-faq-list p {
  margin: 0;
  padding: 0 16px 16px;
}

.bgksc-trust-box strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--3,
  .three-column-grid,
  .trust-strip,
  .site-footer__grid,
  .methodology-card,
  .hero-grid,
  .hero-grid--money,
  .two-column-grid,
  .bgksc-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 82px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--bgk-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--bgk-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .site-nav__item a,
  .site-nav__list li a,
  .site-nav__cta {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 58px 0;
  }

  .section--hero {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .content-card--page,
  .content-card--centered,
  .calculator-shell,
  .feature-card,
  .link-card,
  .step-card,
  .info-card {
    padding: 20px;
  }

  .hero-copy h1,
  .section-heading h2,
  .page-header h1,
  .content-card h1 {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__menu,
  .site-footer__nav ul {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    flex-direction: column;
  }

  .calculator-shell .bgsc-form,
  .calculator-shell .bgsc-results,
  .calculator-shell .bgsc-share-box,
  .calculator-shell .bgsc-trust,
  .calculator-shell .bgsc-assumptions,
  .calculator-shell .bgsc-compare {
    padding: 18px;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bgk-canvas: #0b1422;
  --bgk-surface: #101b2d;
  --bgk-surface-muted: #152338;
  --bgk-ink: #e8eef9;
  --bgk-ink-soft: #a9b8d0;
  --bgk-line: #24364f;
  --bgk-line-strong: #32455f;
  --bgk-accent: #28b29c;
  --bgk-accent-strong: #78ebd8;
  --bgk-warning: #f6ad55;
  --bgk-shadow: 0 22px 60px rgba(2, 6, 23, 0.36);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, var(--bgk-canvas) 0%, color-mix(in srgb, var(--bgk-canvas) 88%, #ffffff 12%) 100%);
  color: var(--bgk-ink);
  font-size: 16px;
}

.site-header,
.site-footer,
.hero-visual,
.hero-visual-card,
.capability-item,
.button--secondary,
.nav-toggle,
.theme-toggle,
.calculator-shell .bgsc-form,
.calculator-shell .bgsc-results,
.calculator-shell .bgsc-compare,
.calculator-shell .bgsc-share-box,
.calculator-shell .bgsc-trust,
.calculator-shell .bgsc-assumptions,
.bgksc-salary-hero,
.bgksc-salary-card,
.bgksc-trust-box {
  background: var(--bgk-surface);
  border-color: var(--bgk-line);
}

.hero-visual,
.hero-visual-card {
  background: linear-gradient(180deg, var(--bgk-surface), var(--bgk-surface-muted));
}

.section--muted {
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .section--muted {
  background: rgba(13, 23, 39, 0.76);
  border-block-color: rgba(50, 69, 95, 0.55);
}

.site-header {
  background: rgba(245, 247, 251, 0.92);
  border-bottom-color: rgba(199, 211, 227, 0.75);
}

:root[data-theme="dark"] .site-header {
  background: rgba(11, 20, 34, 0.88);
  border-bottom-color: rgba(50, 69, 95, 0.82);
}

.site-nav {
  margin-left: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--bgk-line);
  border-radius: 14px;
  color: var(--bgk-ink);
  font-size: 1rem;
}

.theme-toggle:hover,
.button--secondary:hover,
.nav-toggle:hover {
  border-color: var(--bgk-line-strong);
}

.footer-language-link {
  display: inline-flex;
  width: fit-content;
  color: var(--bgk-ink-soft);
  text-decoration: none;
}

.footer-language-link:hover {
  color: var(--bgk-accent-strong);
}

.calculator-shell__content {
  display: grid;
  gap: 18px;
}

.disclaimer-strip {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 123, 108, 0.22);
  border-radius: 18px;
  background: rgba(15, 123, 108, 0.07);
}

.disclaimer-strip strong,
.calculator-shell__links strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.disclaimer-strip p,
.calculator-shell__links p {
  margin: 0;
  color: var(--bgk-ink-soft);
}

.details-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.details-card {
  border: 1px solid var(--bgk-line);
  border-radius: 18px;
  background: var(--bgk-surface);
  overflow: hidden;
}

.details-card summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  list-style: none;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-card__content {
  padding: 0 20px 20px;
}

.calculator-shell__links {
  margin-top: 20px;
}

.calculator-shell .bgsc-field label,
.calculator-shell .bgsc-check-row,
.calculator-shell .bgsc-compare summary,
.calculator-shell .bgsc-share-box label {
  color: var(--bgk-ink);
  font-weight: 700;
}

.calculator-shell .bgsc-field input,
.calculator-shell .bgsc-field select,
.calculator-shell .bgsc-share-row input,
.calculator-shell .bgsc-compare-row input {
  min-height: 48px;
  font-size: 16px;
  color: var(--bgk-ink);
}

.calculator-shell .bgsc-result-value > span:first-child {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.calculator-shell .bgsc-result-value small {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--bgk-ink-soft);
}

.partner-card__header,
.partner-card__section {
  margin-bottom: 24px;
}

.partner-card__logo,
.partner-teaser__logo {
  width: auto;
  max-width: 180px;
  max-height: 56px;
  margin-bottom: 18px;
  object-fit: contain;
}

.partner-card__category {
  color: var(--bgk-accent-strong);
  font-weight: 700;
}

.partner-params {
  display: grid;
  gap: 12px;
}

.partner-params__row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--bgk-line);
  border-radius: 16px;
  background: var(--bgk-surface-muted);
}

.partner-teaser {
  height: 100%;
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .partner-params__row {
    grid-template-columns: 1fr;
  }

  .theme-toggle,
  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .details-card summary,
  .details-card__content,
  .disclaimer-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Final redesign pass */

:root {
  --bgk-canvas: #eef4ef;
  --bgk-surface: rgba(255, 255, 255, 0.88);
  --bgk-surface-muted: rgba(248, 251, 249, 0.72);
  --bgk-ink: #15211d;
  --bgk-ink-soft: #51635c;
  --bgk-line: rgba(25, 50, 42, 0.12);
  --bgk-line-strong: rgba(25, 50, 42, 0.2);
  --bgk-accent: #11795f;
  --bgk-accent-strong: #0b5a47;
  --bgk-shadow: 0 18px 60px rgba(15, 33, 28, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bgk-canvas: #0d1614;
  --bgk-surface: rgba(18, 28, 24, 0.92);
  --bgk-surface-muted: rgba(21, 34, 29, 0.85);
  --bgk-ink: #e2e8f0;
  --bgk-ink-soft: #cbd5e1;
  --bgk-line: rgba(205, 227, 218, 0.08);
  --bgk-line-strong: rgba(205, 227, 218, 0.16);
  --bgk-accent: #34b388;
  --bgk-accent-strong: #7be1bf;
  --bgk-warning: #f6ad55;
  --bgk-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  --bgk-text-main: #e2e8f0;
  --bgk-text-heading: #f8fafc;
  --bgk-text-muted: #cbd5e1;
  --bgk-text-link: #b8f7df;
  --bgk-text-link-hover: #d1fae5;
  --bgk-text-label: #e2e8f0;
  --bgk-text-placeholder: #a8b7ca;
  --bgk-text-footer: #cbd5e1;
  --bgk-text-footer-heading: #f8fafc;
  --bgk-text-value: #f8fafc;
  --bgk-text-value-muted: #cbd5e1;
}

html,
body,
.site-header,
.site-footer,
.product-surface,
.content-card,
.compact-card,
.knowledge-card,
.money-note,
.aside-card,
.product-hero__panel,
.money-hero__panel,
.product-surface .bgsc-form,
.product-surface .bgsc-results,
.product-surface .bgsc-compare,
.product-surface .bgsc-share-box,
.product-surface .bgsc-assumptions {
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

body {
  background:
    radial-gradient(circle at top left, rgba(82, 183, 136, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(18, 80, 66, 0.1), transparent 28%),
    linear-gradient(180deg, #f6faf7 0%, #eef4ef 50%, #e8efea 100%);
  color: var(--bgk-ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(52, 179, 136, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(123, 225, 191, 0.08), transparent 26%),
    linear-gradient(180deg, #0f1816 0%, #0d1614 50%, #0b1311 100%);
}

.section {
  padding: 72px 0;
}

.section--hero {
  padding-top: 40px;
  padding-bottom: 36px;
}

.section--compact {
  padding: 36px 0;
}

.section--page-shell {
  padding-top: 44px;
}

.eyebrow {
  background: rgba(17, 121, 95, 0.1);
  color: var(--bgk-accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px 0;
  border-bottom: 1px solid var(--bgk-line);
  background: rgba(244, 249, 246, 0.8);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(13, 22, 20, 0.78);
}

.site-header__inner {
  min-height: 68px;
  gap: 20px;
}

.brand-mark {
  gap: 12px;
}

.brand-mark__icon {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.brand-mark__glyph {
  position: relative;
  display: none;
  width: 22px;
  height: 22px;
}

.brand-mark__animation {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-mark__icon.is-fallback {
  overflow: hidden;
  background: linear-gradient(145deg, #0b3f35 0%, #11795f 55%, #44c89a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.brand-mark__icon.is-fallback .brand-mark__glyph {
  display: block;
}

.brand-mark__icon.is-fallback .brand-mark__animation {
  display: none;
}

.brand-mark__glyph::before,
.brand-mark__glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.brand-mark__glyph::before {
  top: 4px;
  height: 6px;
}

.brand-mark__glyph::after {
  bottom: 4px;
  height: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark__icon {
    overflow: hidden;
    background: linear-gradient(145deg, #0b3f35 0%, #11795f 55%, #44c89a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }

  .brand-mark__glyph {
    display: block;
  }

  .brand-mark__animation {
    display: none;
  }
}

.brand-mark__text strong {
  font-size: 1.05rem;
}

.brand-mark__text small {
  font-size: 0.8rem;
  color: var(--bgk-ink-soft);
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--bgk-line);
  border-radius: 999px;
  background: var(--bgk-surface);
  box-shadow: 0 10px 30px rgba(12, 23, 20, 0.04);
}

.language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--bgk-ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
  color: var(--bgk-accent-strong);
  background: rgba(17, 121, 95, 0.08);
}

.language-switcher__link.is-current {
  color: #fff;
  background: linear-gradient(145deg, var(--bgk-accent-strong), var(--bgk-accent));
  box-shadow: 0 8px 18px rgba(17, 121, 95, 0.22);
}

.theme-toggle {
  width: 72px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bgk-line);
  border-radius: 999px;
  background: var(--bgk-surface);
}

.theme-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 12px;
}

.theme-toggle__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7f4eb, #ffffff);
  box-shadow: 0 6px 16px rgba(9, 26, 20, 0.18);
  transition: transform 0.26s ease, background 0.26s ease;
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--bgk-ink-soft);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__thumb {
  transform: translateX(28px);
  background: linear-gradient(145deg, #1e3f38, #2f5f53);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__moon {
  color: #ffffff;
}

.product-hero__grid,
.money-hero,
.page-shell,
.knowledge-grid,
.product-surface,
.money-notes {
  display: grid;
  gap: 22px;
}

.product-hero__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.product-hero__copy {
  max-width: 680px;
}

.product-hero__copy h1,
.money-hero__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.product-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.product-hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--bgk-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--bgk-ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-hero__panel,
.money-hero__panel,
.product-surface,
.compact-card,
.knowledge-card,
.aside-card,
.money-note {
  border: 1px solid var(--bgk-line);
  border-radius: 28px;
  background: var(--bgk-surface);
  box-shadow: var(--bgk-shadow);
}

.product-hero__panel {
  padding: 24px;
}

.product-hero__panel-grid {
  display: grid;
  gap: 12px;
}

.product-hero__metric,
.money-hero__metric {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: var(--bgk-surface-muted);
  border: 1px solid var(--bgk-line);
}

.product-hero__metric strong,
.money-hero__metric strong {
  font-size: 0.86rem;
  color: var(--bgk-ink-soft);
}

.product-hero__metric span,
.money-hero__metric span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-surface {
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  padding: 30px;
}

.product-surface--money {
  grid-template-columns: 1fr;
}

.product-surface__intro {
  max-width: 340px;
}

.product-surface__intro h2,
.knowledge-card h2,
.compact-card h3,
.money-note h2,
.aside-card h2,
.page-header h1 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.product-surface__intro h2,
.knowledge-card h2,
.money-note h2,
.aside-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.product-surface__intro p,
.knowledge-card p,
.compact-card p,
.money-note p,
.aside-card p,
.page-header p {
  margin: 0;
  color: var(--bgk-ink-soft);
}

.product-surface__calculator,
.product-surface__calculator .bgsc-wrap {
  max-width: none;
}

.product-surface__calculator .bgsc-wrap {
  margin: 0;
}

.compact-card-grid,
.money-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-card,
.knowledge-card,
.aside-card,
.money-note {
  padding: 24px;
}

.knowledge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-grid--money {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.money-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: start;
}

.money-hero__panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.page-shell {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  align-items: start;
}

/* Keep intrinsically wide tables, code samples and embeds inside the grid column. */
.page-shell__main,
.page-shell__aside {
  min-width: 0;
}

.page-shell__main pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-shell__main iframe {
  max-width: 100%;
}

.content-card--page {
  padding: 34px;
  border-radius: 30px;
  background: var(--bgk-surface);
}

.aside-card {
  position: sticky;
  top: 108px;
}

.site-footer {
  margin-top: 28px;
  padding: 30px 0 24px;
  border-top: 1px solid var(--bgk-line);
  background: transparent;
}

.site-footer__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.site-footer__title {
  display: block;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.site-footer__copy {
  margin: 16px 0 0;
  max-width: 360px;
  color: var(--bgk-ink-soft);
}

.site-footer__menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__column,
.site-footer__brand {
  min-width: 0;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__menu li {
  min-width: 0;
}

.site-footer__menu a {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--bgk-ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible,
.inline-links a:hover,
.inline-links a:focus-visible {
  color: var(--bgk-accent-strong);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bgk-line);
  border-radius: 999px;
  color: var(--bgk-ink);
  text-decoration: none;
  font-weight: 700;
}

.product-surface .bgsc-form,
.product-surface .bgsc-results,
.product-surface .bgsc-compare,
.product-surface .bgsc-share-box,
.product-surface .bgsc-assumptions,
.product-surface .bgsc-trust {
  border: 1px solid var(--bgk-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

:root[data-theme="dark"] .product-surface .bgsc-form,
:root[data-theme="dark"] .product-surface .bgsc-results,
:root[data-theme="dark"] .product-surface .bgsc-compare,
:root[data-theme="dark"] .product-surface .bgsc-share-box,
:root[data-theme="dark"] .product-surface .bgsc-assumptions,
:root[data-theme="dark"] .product-surface .bgsc-trust {
  background: rgba(19, 30, 26, 0.92);
}

.product-surface .bgsc-form,
.product-surface .bgsc-results,
.product-surface .bgsc-share-box,
.product-surface .bgsc-assumptions,
.product-surface .bgsc-trust,
.product-surface .bgsc-compare {
  padding: 24px;
}

.product-surface .bgsc-form-title,
.product-surface .bgsc-results-title {
  margin-top: 0;
  font-size: 1.48rem;
  color: var(--bgk-text-heading);
}

.product-surface .bgsc-results-title {
  padding: 0;
  background: transparent;
  color: var(--bgk-ink);
}

.product-surface .bgsc-form-subtitle,
.product-surface .bgsc-inline-hint,
.product-surface .bgsc-inline-rates,
.product-surface .bgsc-result-equivalents,
.product-surface .bgsc-notices p,
.product-surface .bgsc-result-value small {
  color: var(--bgk-text-muted);
}

.product-surface .bgsc-field label,
.product-surface .bgsc-share-box label,
.product-surface .bgsc-compare summary,
.product-surface .bgsc-assumptions summary,
.product-surface .bgsc-advanced summary {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bgk-text-label);
}

.product-surface .bgsc-field input,
.product-surface .bgsc-field select,
.product-surface .bgsc-share-row input,
.product-surface .bgsc-compare-row input {
  min-height: 54px;
  border: 1px solid var(--bgk-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--bgk-text-main);
  font-size: 1rem;
}

:root[data-theme="dark"] .product-surface .bgsc-field input,
:root[data-theme="dark"] .product-surface .bgsc-field select,
:root[data-theme="dark"] .product-surface .bgsc-share-row input,
:root[data-theme="dark"] .product-surface .bgsc-compare-row input {
  background: rgba(15, 22, 20, 0.92);
}

.product-surface .bgsc-btn,
.product-surface .bgsc-btn-secondary,
.product-surface .bgsc-btn-utility {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
}

.product-surface .bgsc-btn {
  background: linear-gradient(145deg, var(--bgk-accent-strong), var(--bgk-accent));
  box-shadow: 0 14px 28px rgba(17, 121, 95, 0.2);
}

.product-surface .bgsc-btn-secondary {
  border: 1px solid var(--bgk-line);
  background: transparent;
  color: var(--bgk-ink);
}

.product-surface .bgsc-btn-utility {
  border: 1px solid var(--bgk-line-strong);
  background: transparent;
  color: var(--bgk-ink-soft);
}

.product-surface .bgsc-result-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--bgk-line);
  background: transparent;
}

.product-surface .bgsc-result-card:last-child {
  border-bottom: 0;
}

.product-surface .bgsc-result-label {
  color: var(--bgk-text-label);
}

.product-surface .bgsc-result-value > span:first-child {
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
  font-weight: 800;
  color: var(--bgk-text-value);
}

.product-surface .bgsc-highlight {
  background: rgba(17, 121, 95, 0.08);
  border-radius: 18px;
  padding-inline: 14px;
}

.product-surface .bgsc-employer {
  background: rgba(21, 33, 29, 0.05);
  border-radius: 18px;
  padding-inline: 14px;
}

.product-surface .bgsc-inline-breakdown {
  gap: 10px;
  padding: 16px 0 8px;
}

.product-surface .bgsc-share-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
}

.product-surface .bgsc-compare-row {
  grid-template-columns: 1fr auto;
}

.product-surface .bgsc-advanced {
  margin-top: 16px;
  border: 1px solid var(--bgk-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0 18px;
}

:root[data-theme="dark"] .product-surface .bgsc-advanced {
  background: rgba(13, 20, 18, 0.55);
}

.product-surface .bgsc-advanced summary {
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
}

.product-surface .bgsc-advanced summary::-webkit-details-marker {
  display: none;
}

.product-surface .bgsc-advanced__content {
  padding: 0 0 16px;
}

.product-surface .bgsc-check-row {
  margin-top: 0;
}

.product-fallback {
  padding: 22px;
  border: 1px dashed var(--bgk-line-strong);
  border-radius: 20px;
}

@media (max-width: 1100px) {
  .product-hero__grid,
  .money-hero,
  .product-surface,
  .page-shell,
  .knowledge-grid,
  .knowledge-grid--money,
  .compact-card-grid,
  .money-notes,
  .site-footer__grid,
  .site-footer__columns {
    grid-template-columns: 1fr;
  }

  .product-surface__intro,
  .product-hero__copy {
    max-width: none;
  }

  body.page-id-172 .page-shell__main,
  body.page-id-172 .page-shell__aside,
  body.page-id-172 .content-card--page,
  body.page-id-172 .entry-content,
  body.page-id-172 .bgsc-examples,
  body.page-id-172 .bgsc-examples-table-wrap {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 8px 0;
  }

  .site-header__inner {
    flex-wrap: wrap;
    min-height: auto;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    flex: 1;
    justify-content: space-between;
  }

  .language-switcher__link {
    min-width: 0;
    flex: 1;
  }

  .product-surface,
  .content-card--page,
  .compact-card,
  .knowledge-card,
  .aside-card,
  .money-note,
  .product-hero__panel,
  .money-hero__panel {
    padding: 20px;
    border-radius: 24px;
  }

  .product-surface .bgsc-form,
  .product-surface .bgsc-results,
  .product-surface .bgsc-share-box,
  .product-surface .bgsc-assumptions,
  .product-surface .bgsc-trust,
  .product-surface .bgsc-compare {
    padding: 18px;
    border-radius: 20px;
  }

  .product-surface .bgsc-share-row,
  .product-surface .bgsc-compare-row,
  .product-surface .bgsc-inline-breakdown,
  .product-surface .bgsc-compare-line {
    grid-template-columns: 1fr;
  }

  .product-hero__copy h1,
  .money-hero__copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
}

/* PASS 2 local refinements: cleaner homepage flow and stronger dark-mode contrast. */
.product-hero {
  padding-top: 24px;
  padding-bottom: 84px;
}

.product-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: none;
}

.product-hero__copy {
  max-width: min(980px, 100%);
}

.product-hero__copy h1 {
  max-width: 18ch;
  margin-bottom: 10px;
}

.product-hero .hero-lead {
  max-width: 72ch;
  margin-bottom: 0;
}

.product-hero__badges {
  margin-top: 16px;
}

.product-hero__actions {
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.product-hero__actions .button--primary {
  min-width: 220px;
}

.product-hero__inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--bgk-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.product-hero__inline-link:hover,
.product-hero__inline-link:focus-visible {
  text-decoration: underline;
}

.product-calculator {
  padding-top: 0;
  margin-top: -96px;
  position: relative;
  z-index: 1;
}

.product-surface {
  align-items: start;
  gap: 18px;
}

.product-surface__intro {
  max-width: 560px;
}

.product-surface__intro,
.product-surface__calculator {
  min-width: 0;
}

.product-surface__intro h2 {
  margin-bottom: 8px;
}

.product-quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.product-quickfacts__item {
  padding: 16px 18px;
  border: 1px solid var(--bgk-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.product-quickfacts__item strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--bgk-ink-soft);
}

.product-quickfacts__item span {
  display: block;
  margin-top: 6px;
  color: var(--bgk-ink);
  font-size: 1rem;
  font-weight: 800;
}

.site-footer__legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--bgk-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.site-footer__legal-title {
  display: block;
  margin-bottom: 8px;
  color: var(--bgk-ink);
  font-size: 1rem;
}

.site-footer__legal-note p {
  margin: 0;
  max-width: 82ch;
  color: var(--bgk-ink-soft);
  line-height: 1.65;
}

:root[data-theme="dark"] .product-hero .hero-lead,
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .compact-card p,
:root[data-theme="dark"] .knowledge-card p,
:root[data-theme="dark"] .site-footer__copy,
:root[data-theme="dark"] .site-footer__meta,
:root[data-theme="dark"] .site-footer__legal-note p {
  color: var(--bgk-text-muted);
}

:root[data-theme="dark"] .product-hero__copy h1,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .compact-card h3,
:root[data-theme="dark"] .knowledge-card h2,
:root[data-theme="dark"] .site-footer__title,
:root[data-theme="dark"] .site-footer__legal-title {
  color: var(--bgk-text-heading);
}

:root[data-theme="dark"] .product-hero__badges span,
:root[data-theme="dark"] .product-quickfacts__item {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme="dark"] .product-hero__badges span {
  color: #e2e8f0;
}

:root[data-theme="dark"] .product-quickfacts__item strong {
  color: #cbd5e1;
}

:root[data-theme="dark"] .product-quickfacts__item span {
  color: #f8fafc;
}

:root[data-theme="dark"] .language-switcher {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

:root[data-theme="dark"] .language-switcher__link {
  color: #dbe7f5;
}

:root[data-theme="dark"] .language-switcher__link:hover,
:root[data-theme="dark"] .language-switcher__link:focus-visible {
  color: #f8fafc;
  background: rgba(120, 235, 216, 0.16);
}

:root[data-theme="dark"] .language-switcher__link.is-current {
  color: #041410;
  background: linear-gradient(145deg, #8ef0cf, #28b29c);
}

:root[data-theme="dark"] .product-hero__inline-link,
:root[data-theme="dark"] .footer-email,
:root[data-theme="dark"] .site-footer__menu a,
:root[data-theme="dark"] .inline-links a {
  color: var(--bgk-text-link);
}

:root[data-theme="dark"] .product-hero__inline-link:hover,
:root[data-theme="dark"] .product-hero__inline-link:focus-visible,
:root[data-theme="dark"] .site-footer__menu a:hover,
:root[data-theme="dark"] .site-footer__menu a:focus-visible,
:root[data-theme="dark"] .inline-links a:hover,
:root[data-theme="dark"] .inline-links a:focus-visible {
  color: var(--bgk-text-link-hover);
}

:root[data-theme="dark"] .inline-links a {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .bgksc-faq-list details {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.88);
}

:root[data-theme="dark"] .faq-item summary,
:root[data-theme="dark"] .bgksc-faq-list summary {
  color: #f8fafc;
}

:root[data-theme="dark"] .faq-item p,
:root[data-theme="dark"] .bgksc-faq-list p {
  color: #cbd5e1;
}

:root[data-theme="dark"] .site-footer__legal-note {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .product-surface .bgsc-form-title,
:root[data-theme="dark"] .product-surface .bgsc-results-title {
  color: var(--bgk-text-heading);
}

:root[data-theme="dark"] .product-surface .bgsc-form-subtitle,
:root[data-theme="dark"] .product-surface .bgsc-inline-hint,
:root[data-theme="dark"] .product-surface .bgsc-inline-rates,
:root[data-theme="dark"] .product-surface .bgsc-result-equivalents,
:root[data-theme="dark"] .product-surface .bgsc-notices p,
:root[data-theme="dark"] .product-surface .bgsc-result-value small {
  color: var(--bgk-text-value-muted);
}

:root[data-theme="dark"] .product-surface .bgsc-field label,
:root[data-theme="dark"] .product-surface .bgsc-share-box label,
:root[data-theme="dark"] .product-surface .bgsc-compare summary,
:root[data-theme="dark"] .product-surface .bgsc-assumptions summary,
:root[data-theme="dark"] .product-surface .bgsc-advanced summary {
  color: var(--bgk-text-label);
}

:root[data-theme="dark"] .product-surface .bgsc-field input,
:root[data-theme="dark"] .product-surface .bgsc-field select,
:root[data-theme="dark"] .product-surface .bgsc-share-row input,
:root[data-theme="dark"] .product-surface .bgsc-compare-row input {
  background: #0f172a;
  border-color: #475569;
  color: var(--bgk-text-main);
}

:root[data-theme="dark"] .product-surface .bgsc-field input::placeholder,
:root[data-theme="dark"] .product-surface .bgsc-share-row input::placeholder,
:root[data-theme="dark"] .product-surface .bgsc-compare-row input::placeholder {
  color: var(--bgk-text-placeholder);
}

:root[data-theme="dark"] .product-surface .bgsc-field input:focus,
:root[data-theme="dark"] .product-surface .bgsc-field select:focus,
:root[data-theme="dark"] .product-surface .bgsc-share-row input:focus,
:root[data-theme="dark"] .product-surface .bgsc-compare-row input:focus {
  border-color: #8ef0cf;
  box-shadow: 0 0 0 3px rgba(142, 240, 207, 0.16);
}

:root[data-theme="dark"] .product-surface .bgsc-btn {
  color: #04140f;
}

:root[data-theme="dark"] .product-surface .bgsc-btn-secondary {
  color: #e2e8f0;
  border-color: #475569;
  background: rgba(15, 23, 42, 0.82);
}

:root[data-theme="dark"] .product-surface .bgsc-btn-utility {
  color: #f8fafc;
  border-color: #64748b;
  background: #1e293b;
}

:root[data-theme="dark"] .product-surface .bgsc-advanced {
  background: rgba(15, 23, 42, 0.86);
  border-color: #334155;
}

:root[data-theme="dark"] .product-surface .bgsc-highlight {
  background: rgba(16, 185, 129, 0.18);
}

:root[data-theme="dark"] .product-surface .bgsc-employer {
  background: rgba(51, 65, 85, 0.55);
}

@media (max-width: 900px) {
  .product-hero {
    padding-bottom: 40px;
  }

  .product-hero__actions {
    align-items: flex-start;
  }

  .product-quickfacts {
    grid-template-columns: 1fr;
  }

  .product-calculator {
    margin-top: -36px;
  }
}

@media (max-width: 680px) {
  .product-hero {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .product-hero__copy h1,
  .product-hero .hero-lead {
    max-width: none;
  }

  .product-calculator {
    margin-top: 0;
  }
} :root[data-theme="dark"] .product-surface .bgsc-highlight .bgsc-result-label, :root[data-theme="dark"] .product-surface .bgsc-highlight .bgsc-result-value { color: var(--bgk-text-value); } :root[data-theme="dark"] .product-surface .bgsc-inline-breakdown, :root[data-theme="dark"] .product-surface .bgsc-inline-breakdown span { color: var(--bgk-text-muted); } :root[data-theme="dark"] .product-surface .bgsc-inline-breakdown strong { color: var(--bgk-text-label); }

@media (max-width: 680px) {
  body.page-id-172 .site-main--page {
    padding-top: 16px;
    padding-bottom: 44px;
  }

  body.page-id-172 .section--page-shell {
    padding-top: 10px;
    padding-bottom: 36px;
  }

  body.page-id-172 .container--wide {
    width: min(100% - 20px, 1200px);
  }

  body.page-id-172 .page-shell,
  body.page-id-172 .page-shell__main,
  body.page-id-172 .content-card--page,
  body.page-id-172 .entry-content,
  body.page-id-172 .wp-block-table {
    min-width: 0;
    max-width: 100%;
  }

  body.page-id-172 .content-card--page {
    padding: 16px 14px 18px;
    border-radius: 22px;
    overflow: hidden;
  }

  body.page-id-172 .content-card--page > .eyebrow {
    margin-bottom: 9px;
    padding: 6px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  body.page-id-172 .page-header--simple {
    margin-bottom: 14px;
  }

  body.page-id-172 .page-header h1 {
    margin-bottom: 8px;
    font-size: clamp(1.52rem, 7vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  body.page-id-172 .page-header p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  body.page-id-172 .prose {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.page-id-172 .prose > * + * {
    margin-top: 0.82rem;
  }

  body.page-id-172 .prose p,
  body.page-id-172 .prose li {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.page-id-172 .prose h2.wp-block-heading {
    margin-top: 1.18rem;
    margin-bottom: 0.45rem;
    font-size: 1.18rem;
    line-height: 1.18;
  }

  body.page-id-172 .wp-block-table {
    margin: 0.85rem 0 1rem;
    overflow: visible;
  }

  body.page-id-172 .wp-block-table table,
  body.page-id-172 .wp-block-table thead,
  body.page-id-172 .wp-block-table tbody,
  body.page-id-172 .wp-block-table tr,
  body.page-id-172 .wp-block-table th,
  body.page-id-172 .wp-block-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-id-172 .wp-block-table table {
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.page-id-172 .wp-block-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.page-id-172 .wp-block-table tbody {
    display: grid;
    gap: 10px;
  }

  body.page-id-172 .wp-block-table tr {
    padding: 12px 12px 10px;
    border: 1px solid var(--bgk-line);
    border-radius: 17px;
    background: var(--bgk-surface-muted);
  }

  body.page-id-172 .wp-block-table td {
    display: grid;
    grid-template-columns: minmax(98px, 0.8fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border: 0;
    color: var(--bgk-ink);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: right;
    overflow-wrap: normal;
  }

  body.page-id-172 .wp-block-table td + td {
    border-top: 1px solid var(--bgk-line);
  }

  body.page-id-172 .wp-block-table td::before {
    color: var(--bgk-ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: normal;
  }

  body.page-id-172 .wp-block-table td:nth-child(1)::before {
    content: "\0411\0440\0443\0442\043e\0020(BGN)";
  }

  body.page-id-172 .wp-block-table td:nth-child(2)::before {
    content: "\0411\0440\0443\0442\043e\0020(EUR)";
  }

  body.page-id-172 .wp-block-table td:nth-child(3)::before {
    content: "\041e\0441\0438\0433\0443\0440\043e\0432\043a\0438";
  }

  body.page-id-172 .wp-block-table td:nth-child(4)::before {
    content: "\0414\0430\043d\044a\043a";
  }

  body.page-id-172 .wp-block-table td:nth-child(5)::before {
    content: "\041d\0435\0442\043e\0020(EUR)";
  }

  body.page-id-172 .wp-block-table td:nth-child(6)::before {
    content: "\041d\0435\0442\043e\0020(BGN)";
  }

  body.page-id-172 .prose .wp-block-quote {
    margin: 1rem 0;
    padding: 13px 14px;
    border-left: 3px solid var(--bgk-accent);
    border-radius: 16px;
    background: rgba(15, 123, 108, 0.08);
  }

  body.page-id-172 .prose .wp-block-quote p {
    margin: 0;
  }

  body.page-id-172 .prose h3.wp-block-heading {
    margin: 0.88rem 0 0;
    padding: 0.9rem 0.95rem 0.35rem;
    border: 1px solid var(--bgk-line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: var(--bgk-surface-muted);
    font-size: 1rem;
    line-height: 1.25;
  }

  body.page-id-172 .prose h3.wp-block-heading + p {
    margin-top: 0;
    padding: 0 0.95rem 0.95rem;
    border: 1px solid var(--bgk-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--bgk-surface-muted);
    font-size: 0.92rem;
  }

  body.page-id-172 .prose > h2.wp-block-heading:nth-last-of-type(1) {
    margin-top: 1.25rem;
  }

  body.page-id-172 .prose > h2.wp-block-heading:nth-last-of-type(1) + p {
    padding: 14px;
    border: 1px solid var(--bgk-line);
    border-radius: 17px;
    background: rgba(15, 123, 108, 0.08);
  }
}

@media (max-width: 360px) {
  body.page-id-172 .container--wide {
    width: min(100% - 16px, 1200px);
  }

  body.page-id-172 .content-card--page {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.page-id-172 .page-header h1 {
    font-size: 1.46rem;
  }

  body.page-id-172 .wp-block-table tr {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.page-id-172 .wp-block-table td {
    grid-template-columns: minmax(90px, 0.78fr) minmax(0, 1fr);
    gap: 8px;
    font-size: 0.88rem;
  }
}
