@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* =============================================
   YourSalaryTax - Design System
   Palette: deep teal, sand and paper.
   Flat colours only, no gradients anywhere.
   ============================================= */

:root {
  --primary:       #0E3B36;
  --primary-dark:  #092925;
  --navy:          #0E3B36;   /* legacy alias, kept so old rules resolve */
  --cta:           #0F766E;
  --cta-hover:     #0B5A54;
  --amber:         #C9A227;   /* sand accent */
  --amber-light:   #E0BE55;
  --sand-soft:     #F0E9D6;
  --bg:            #F6F5F1;
  --surface:       #FFFFFF;
  --stone:         #E7E4DA;
  --input-bg:      #F3F2EC;
  --text:          #1F2A28;
  --text-muted:    #5E6B68;
  --muted:         #5E6B68;
  --positive:      #1A7F4B;
  --success:       #1A7F4B;
  --negative:      #B3392C;
  --error:         #B3392C;
  --border:        #E3E0D6;
  --border-strong: #CFCBBE;
  --border-focus:  #0F766E;
  --row-alt:       #F6F5F1;
  --shadow-sm:     0 1px 2px rgba(14,59,54,0.05);
  --shadow-md:     0 3px 10px rgba(14,59,54,0.06);
  --shadow-lg:     0 12px 28px rgba(14,59,54,0.11);
  --radius:        10px;
  --radius-lg:     14px;
  --container:     1140px;
  --font-head:     'Space Grotesk', 'Trebuchet MS', Verdana, sans-serif;
  --font-body:     'Source Sans 3', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cta); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--primary);
}

h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(23px, 3.4vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: 18px; font-weight: 600; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-amber { color: #8A6B14; }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }

/* =============================================
   Layout
   ============================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 26px;
}

.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1300px; }

/* =============================================
   Buttons - pill shaped
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.btn--primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  text-decoration: none;
  color: #fff;
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1F2A28;
}
.btn--amber:hover {
  background: #AE8C1E;
  border-color: #AE8C1E;
  text-decoration: none;
  color: #1F2A28;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--cta);
  color: var(--cta);
  background: transparent;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.84);
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.11);
  color: #fff;
  text-decoration: none;
}

.btn--lg { padding: 15px 32px; font-size: 16.5px; }
.btn--sm { padding: 8px 17px; font-size: 14px; }
.btn--full { width: 100%; }

/* =============================================
   Header - light paper bar, not a dark banner
   ============================================= */

.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img { height: 31px; width: auto; }
.site-logo:hover { opacity: 0.85; text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav > li { position: relative; }

.site-nav > li > a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav > li > a:hover,
.site-nav > li > a.active {
  color: var(--primary);
  background: var(--bg);
  text-decoration: none;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 288px;
  max-height: 430px;
  overflow-y: auto;
  display: none;
  z-index: 300;
  list-style: none;
}

.site-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.site-nav > li:hover .site-nav__dropdown,
.site-nav > li:focus-within .site-nav__dropdown { display: block; }

.site-nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
}
.site-nav__dropdown a:hover {
  background: var(--bg);
  color: var(--cta);
  text-decoration: none;
}

.site-nav__flag { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; }
.site-nav__flag img { display: inline-block; border-radius: 2px; }

.site-header__actions { display: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--primary);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* =============================================
   Hero - light page, dark calculator card
   ============================================= */

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 76px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 412px;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6B550E;
  background: var(--sand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  border-bottom: none;
}

.hero__heading {
  font-size: clamp(33px, 4.8vw, 54px);
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.028em;
}

.hero__heading em {
  font-style: normal;
  color: var(--cta);
  box-shadow: inset 0 -0.28em 0 var(--sand-soft);
}

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 520px;
  padding-left: 0;
  border-left: none;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero__trust-item svg { color: var(--cta); }

/* =============================================
   Calculator Widget (Hero / Home) - dark card
   ============================================= */

.calc-widget {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.calc-widget__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.calc-widget__field { margin-bottom: 15px; }

.calc-widget__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 7px;
}

.calc-widget__input,
.calc-widget__select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  font-family: var(--font-body);
  font-size: 15.5px;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-widget__select option { color: var(--text); background: #fff; }
.calc-widget__input::placeholder { color: rgba(255,255,255,0.4); }
.calc-widget__input:focus,
.calc-widget__select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: none;
  background: rgba(255,255,255,0.12);
}

.calc-widget__input-wrap { position: relative; }
.calc-widget__currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}
.calc-widget__input--with-prefix { padding-left: 36px; }

.calc-widget__select-wrap { position: relative; }
.calc-widget__select-wrap::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

.calc-widget__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 22px 0;
}

.calc-widget__result { display: none; }
.calc-widget__result.visible { display: block; }

.calc-widget__net {
  text-align: left;
  padding: 4px 0 14px;
}
.calc-widget__net-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 5px;
}
.calc-widget__net-amount {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.calc-widget__net-period {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.calc-widget__mini-breakdown {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.calc-widget__mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.calc-widget__mini-row span:first-child { color: rgba(255,255,255,0.6); }
.calc-widget__mini-row span:last-child { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.calc-widget__mini-row--deduction span:last-child { color: var(--amber-light); }

/* =============================================
   Section headers
   ============================================= */

.section-header {
  text-align: left;
  max-width: 660px;
  margin-bottom: 38px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cta);
  background: #E6F0EE;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-eyebrow::before { content: none; }

/* =============================================
   Country Grid (Home page) - hairline tile grid
   ============================================= */

.country-section {
  padding: 76px 0;
  background: var(--surface);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  background: var(--surface);
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.country-card:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--cta);
}
.country-card__flag { font-size: 22px; line-height: 1; flex-shrink: 0; display: flex; align-items: center; }
.country-card__flag img { border-radius: 2px; }
.country-card__info { min-width: 0; }
.country-card__name {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-card__currency { font-size: 12.5px; color: var(--text-muted); }

/* =============================================
   Features / Benefits Section
   ============================================= */

.features-section {
  padding: 76px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.feature-card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  margin-bottom: 18px;
}

.feature-card__title {
  font-family: var(--font-head);
  font-size: 19.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   Profession Cards
   ============================================= */

.professions-section {
  padding: 76px 0;
  background: var(--surface);
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.profession-card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.profession-card:hover {
  border-color: var(--cta);
  background: var(--bg);
  text-decoration: none;
}
.profession-card__title {
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.profession-card__meta { font-size: 12.5px; color: var(--text-muted); }
.profession-card__salary {
  margin-top: 15px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--cta);
  font-variant-numeric: tabular-nums;
}
.profession-card__salary-label { font-size: 11.5px; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

/* =============================================
   Blog / Articles
   ============================================= */

.blog-section {
  padding: 76px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--cta); }
.article-card:hover { text-decoration: none; }

.article-card__body { padding: 25px; }
.article-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6B550E;
  background: var(--sand-soft);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-card__title {
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.32;
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.article-card__footer {
  padding: 14px 25px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.62);
  padding: 62px 0 32px;
  border-top: none;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 262px 1fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Two-column country list inside footer */
.footer-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.footer-calc-grid ul { list-style: none; }
.footer-col--calculators { min-width: 0; }

.footer-brand__logo { margin-bottom: 18px; }
.footer-brand__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.56);
  margin-bottom: 16px;
}
.footer-brand__email {
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
}
.footer-brand__email a { color: var(--amber-light); }
.footer-brand__email a:hover { color: #fff; }

.footer-col__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  padding-bottom: 0;
  margin-bottom: 15px;
  border-bottom: none;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.62);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--amber-light); text-decoration: none; }

.site-footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}

.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal a { color: rgba(255,255,255,0.46); }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

.footer-disclaimer {
  font-size: 12.5px;
  color: rgba(255,255,255,0.48);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 16px;
  line-height: 1.6;
}

/* =============================================
   Breadcrumb
   ============================================= */

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  font-size: 13.5px;
}
.breadcrumb__item { color: var(--text-muted); }
.breadcrumb__item a { color: var(--cta); }
.breadcrumb__item a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--border-strong); }
.breadcrumb__item--current { color: var(--text); font-weight: 500; }

/* =============================================
   Forms (Contact, etc.)
   ============================================= */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 7px;
}
.form-label .required { color: var(--negative); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.13);
  background: var(--surface);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6B68' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12.5px; color: var(--negative); margin-top: 5px; display: none; }
.form-control.error { border-color: var(--negative); }
.form-control.error + .form-error { display: block; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  margin-top: 16px;
}
.form-status.success {
  background: #E4F0E8;
  border: 1px solid rgba(26,127,75,0.25);
  color: #14603C;
}
.form-status.error {
  background: #FBEEEC;
  border: 1px solid rgba(179,57,44,0.2);
  color: #8A2C22;
}

/* =============================================
   Page Header (inner pages)
   ============================================= */

.page-header {
  background: var(--primary);
  padding: 52px 0;
  color: #fff;
  border-bottom: none;
}
.page-header h1 { color: #fff; font-size: clamp(26px, 4vw, 39px); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.72); font-size: 16.5px; margin: 0; }

/* Older markup on a few profession pages uses these names */
.page-hero {
  background: var(--primary);
  padding: 52px 0;
  color: #fff;
  border-bottom: none;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 39px); margin-bottom: 12px; }
.page-hero .hero-sub,
.page-hero p { color: rgba(255,255,255,0.72); font-size: 16.5px; margin: 0; }

/* =============================================
   Content Sections (Policy pages, About, Professions, Blog)
   ============================================= */

.content-section { padding: 62px 0; }

/* Profession / blog page layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 48px;
  align-items: start;
}

.content-sidebar { min-width: 0; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}
.sidebar-widget h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li { margin-bottom: 10px; }
.sidebar-widget li a {
  font-size: 14.5px;
  color: var(--cta);
  text-decoration: none;
}
.sidebar-widget li a:hover { text-decoration: underline; }

/* UK-style profession page layout */
.profession-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 48px;
  align-items: start;
}
.profession-main { min-width: 0; }
.profession-section { margin-bottom: 40px; }
.profession-section h2 {
  font-size: clamp(21px, 2.5vw, 26px);
  margin-bottom: 14px;
  color: var(--primary);
}

/* data-table - used in UK profession pages */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table thead tr {
  background: var(--sand-soft);
  color: var(--primary);
}
.data-table th {
  padding: 12px 15px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 2px solid var(--amber);
}
.data-table td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.data-table tbody tr:hover { background: var(--bg); }
.data-table tbody tr.alt { background: #FBFAF7; }
.data-table tbody tr.alt:hover { background: var(--bg); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Profession sidebar elements */
.profession-sidebar {
  position: sticky;
  top: 92px;
}
.sidebar-highlight {
  background: var(--primary);
  border-radius: var(--radius-lg);
  border-bottom: none;
  padding: 26px;
  text-align: left;
  margin-bottom: 16px;
}
.sidebar-highlight__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.sidebar-highlight__amount {
  font-family: var(--font-head);
  font-size: 39px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.sidebar-highlight__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.52);
  line-height: 1.45;
}
.sidebar-links {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 16px;
}
.sidebar-links__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--border);
}
.sidebar-links ul { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 9px; }
.sidebar-links li a { font-size: 14.5px; color: var(--cta); text-decoration: none; }
.sidebar-links li a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .profession-layout { grid-template-columns: 1fr; }
  .profession-sidebar { position: static; order: -1; }
}

/* Content main area richtext */
.content-main h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 0;
  padding-left: 15px;
  border-bottom: none;
  border-left: 3px solid var(--amber);
  color: var(--primary);
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 {
  font-size: clamp(17px, 2vw, 21px);
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--primary);
}
.content-main p {
  margin-bottom: 16px;
  line-height: 1.78;
  color: var(--text);
}
.content-main ul,
.content-main ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.content-main li {
  margin-bottom: 8px;
  line-height: 1.78;
  color: var(--text);
}
.content-main ul li::marker { color: var(--cta); }
.content-main strong { font-weight: 600; color: var(--primary); }

/* Tables inside content-main and prose */
.content-main table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0;
}
.content-main table thead tr,
.prose table thead tr {
  background: var(--sand-soft);
  color: var(--primary);
}
.content-main table th,
.prose table th {
  padding: 12px 15px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 2px solid var(--amber);
}
.content-main table td,
.prose table td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.content-main table tbody tr:nth-child(even),
.prose table tbody tr:nth-child(even) {
  background: #FBFAF7;
}
.content-main table tbody tr:last-child td,
.prose table tbody tr:last-child td {
  border-bottom: none;
}
.content-main table tbody tr:hover,
.prose table tbody tr:hover {
  background: var(--bg);
}
/* Overflow wrapper so tables do not break the mobile layout */
.content-main .table-wrap,
.prose .table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.content-main .table-wrap table,
.prose .table-wrap table {
  margin: 0;
  border: none;
}

.prose h2 {
  font-size: 25px;
  margin-top: 42px;
  margin-bottom: 16px;
  color: var(--primary);
}
.prose h3 { font-size: 19.5px; margin-top: 30px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; color: var(--text); line-height: 1.78; }
.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.prose li { margin-bottom: 6px; line-height: 1.72; }
.prose a { color: var(--cta); }
.prose strong { font-weight: 600; }

/* =============================================
   FAQ Section - separated cards
   ============================================= */

.faq-section { padding: 62px 0; background: var(--bg); }

.faq-list { max-width: 800px; margin: 0; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq-item.open { border-color: var(--cta); }

.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--cta); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--cta);
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.78;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { display: block; }

/* =============================================
   Cookie Banner
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-top: none;
  padding: 17px 24px;
  z-index: 1000;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.74);
}
.cookie-banner__text a { color: var(--amber-light); }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* =============================================
   Legacy markup names still used on some pages
   ============================================= */

/* Card grids on the blog and comparison index pages */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--cta); }
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  padding-bottom: 13px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.blog-card__title {
  font-family: var(--font-head);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card__title a { color: var(--primary); }
.blog-card__title a:hover { color: var(--cta); text-decoration: none; }
.blog-card__excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card__read {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cta);
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.blog-card__read:hover { color: #fff; background: var(--cta); border-color: var(--cta); text-decoration: none; }

/* Older page-header markup */
.page-header__content,
.page-header__inner { display: block; }
.page-header__flag { font-size: 30px; line-height: 1; margin-bottom: 10px; display: inline-block; }
.page-header__title { color: #fff; font-size: clamp(26px, 4vw, 39px); margin-bottom: 12px; }
.page-header__lead { color: rgba(255,255,255,0.72); font-size: 16.5px; margin: 0; }

/* Older breadcrumb markup */
.breadcrumb-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb-list {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-list li + li::before { content: '/'; color: var(--border-strong); margin-right: 7px; }
.breadcrumb-list a { color: var(--cta); }

/* Older two-column content layout */
.content-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 26px 76px;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 48px;
  align-items: start;
}
.content-layout .content-sidebar { position: sticky; top: 92px; }

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.sidebar-card h3 {
  font-family: var(--font-head);
  color: var(--primary);
}

.profession-grid { min-width: 0; }

.faq-block {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
}
.btn-primary:hover { background: var(--cta-hover); color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-layout .content-sidebar { position: static; order: -1; }
}

/* =============================================
   Utility
   ============================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.badge--amber { background: var(--sand-soft); color: #6B550E; }
.badge--blue  { background: #E6F0EE; color: var(--cta); }
.badge--green { background: #E4F0E8; color: var(--positive); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 42px 0;
}

.ad-slot {
  text-align: center;
  padding: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot:empty { display: none; min-height: 0; padding: 0; }

/* Hide empty ad slots inside calc panel */
.calc-page__ad { display: none; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding: 56px 0 62px; }
  .hero__sub { max-width: 100%; }
  .calc-widget { max-width: 480px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 34px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav, .site-header__actions { display: none; }
  .hamburger { display: flex; }

  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 22px;
    gap: 2px;
    overflow-y: auto;
    z-index: 199;
  }
  .site-nav.mobile-open > li > a {
    font-size: 16px;
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    color: var(--primary);
  }
  .site-nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px;
    border-radius: 0;
    max-height: none;
  }
  .site-nav__dropdown > * { background: var(--bg); border-radius: 8px; padding: 2px; margin-bottom: 2px; }
  .site-nav__dropdown a { color: var(--text-muted); }
  .site-nav__dropdown a:hover { background: var(--stone); color: var(--primary); }
  .site-nav.mobile-open .has-dropdown.mobile-sub-open .site-nav__dropdown { display: block; }
  .site-nav.mobile-open .has-dropdown .site-nav__dropdown { display: none; }
  .nav-parent-link::after { content: ' +'; font-size: 15px; opacity: 0.6; }

  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
}

@media (max-width: 480px) {
  .container { padding: 0 17px; }
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__trust { gap: 8px; }
  .calc-widget { padding: 22px; }
}
