@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================
   NetSalaryAfterTax - Design System
   Palette: Bordeaux, Stone and Mustard
   Flat colours only, no gradients anywhere.
   ============================================= */

:root {
  --primary:       #4A1626;
  --primary-dark:  #3E1220;
  --navy:          #4A1626;   /* legacy alias, kept so old rules resolve */
  --cta:           #9B2C3E;
  --cta-hover:     #7E2233;
  --amber:         #C08A2E;   /* mustard accent */
  --amber-light:   #DDB05C;
  --bg:            #F7F4F2;
  --surface:       #FFFFFF;
  --stone:         #EFE9E5;
  --input-bg:      #F5F0ED;
  --text:          #2B2226;
  --text-muted:    #6F6167;
  --muted:         #6F6167;
  --positive:      #157A4E;
  --success:       #157A4E;
  --negative:      #A6392B;
  --error:         #A6392B;
  --border:        #E4DAD6;
  --border-strong: #D3C4BD;
  --border-focus:  #9B2C3E;
  --row-alt:       #F7F4F2;
  --shadow-sm:     0 1px 2px rgba(74,22,38,0.05);
  --shadow-md:     0 2px 8px rgba(74,22,38,0.07);
  --shadow-lg:     0 6px 20px rgba(74,22,38,0.10);
  --radius:        4px;
  --radius-lg:     6px;
  --container:     1120px;
  --font-head:     'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', 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: 16px;
  line-height: 1.65;
  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.18;
  letter-spacing: -0.005em;
  color: var(--primary);
}

h1 { font-size: clamp(29px, 5vw, 45px); }
h2 { font-size: clamp(23px, 3.4vw, 33px); }
h3 { font-size: clamp(18px, 2.4vw, 23px); }
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: #8A6115; }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }

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

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

.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1280px; }

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s 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: #2B2226;
}
.btn--amber:hover {
  background: #A87823;
  border-color: #A87823;
  text-decoration: none;
  color: #2B2226;
}

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

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

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

/* =============================================
   Header
   ============================================= */

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

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

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

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

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

.site-nav > li > a {
  display: block;
  padding: 22px 13px;
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav > li > a:hover,
.site-nav > li > a.active {
  color: #fff;
  border-bottom-color: var(--amber-light);
  text-decoration: none;
}

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

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

.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: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}
.site-nav__dropdown a:hover {
  background: var(--bg);
  color: var(--primary);
  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: rgba(255,255,255,0.85);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

/* =============================================
   Hero - light editorial panel, not a dark banner
   ============================================= */

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

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

.hero__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A6115;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--amber);
}

.hero__heading {
  font-size: clamp(32px, 4.6vw, 52px);
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.hero__heading em {
  font-style: italic;
  color: var(--cta);
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  padding-left: 16px;
  border-left: 3px solid var(--stone);
}

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

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero__trust-item svg { color: var(--positive); }

/* =============================================
   Calculator Widget (Hero / Home)
   ============================================= */

.calc-widget {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.calc-widget__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

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

.calc-widget__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-widget__input,
.calc-widget__select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-widget__input:focus,
.calc-widget__select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(155,44,62,0.12);
  background: var(--surface);
}

.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: var(--text-muted);
  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: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

.calc-widget__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 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: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calc-widget__net-amount {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.calc-widget__net-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-widget__mini-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.calc-widget__mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.calc-widget__mini-row span:first-child { color: var(--text-muted); }
.calc-widget__mini-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-widget__mini-row--deduction span:last-child { color: var(--negative); }

/* =============================================
   Section headers - left aligned editorial style
   ============================================= */

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 40px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

.section-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A6115;
  margin-bottom: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 9px;
  position: relative;
  top: -2px;
}

/* =============================================
   Country Grid (Home page)
   ============================================= */

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

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--stone);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.country-card:hover {
  border-color: var(--border-strong);
  border-left-color: var(--cta);
  background: var(--bg);
  text-decoration: none;
  color: var(--primary);
}
.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: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-card__currency { font-size: 12px; color: var(--text-muted); }

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

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  padding: 30px 28px;
  background: var(--surface);
  border-radius: 0;
  border: none;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: #F3ECE0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A6115;
  margin-bottom: 16px;
}

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

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

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

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

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

.profession-card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--stone);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.profession-card:hover {
  border-color: var(--border-strong);
  border-bottom-color: var(--amber);
  background: var(--bg);
  text-decoration: none;
}
.profession-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.profession-card__meta { font-size: 12px; color: var(--text-muted); }
.profession-card__salary {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--cta);
  font-variant-numeric: tabular-nums;
}
.profession-card__salary-label { font-size: 11px; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

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

.blog-section {
  padding: 72px 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-top: 3px solid var(--stone);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--border-strong); border-top-color: var(--cta); }
.article-card:hover { text-decoration: none; }

.article-card__body { padding: 24px; }
.article-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A6115;
  margin-bottom: 12px;
}
.article-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.article-card__footer {
  padding: 13px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

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

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.62);
  padding: 56px 0 30px;
  border-top: 4px solid var(--amber);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 250px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  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: 16px; }
.footer-brand__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.footer-brand__email {
  font-size: 14px;
  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-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; 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: 13px;
}

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

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

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

.breadcrumb {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 13px;
}
.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: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 7px;
}
.form-label .required { color: var(--negative); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 15px;
  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(155,44,62,0.12);
  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='%236F6167' 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: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; 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: var(--radius);
  font-size: 14px;
  margin-top: 16px;
}
.form-status.success {
  background: rgba(21,122,78,0.09);
  border: 1px solid rgba(21,122,78,0.25);
  color: #0F5236;
}
.form-status.error {
  background: rgba(166,57,43,0.08);
  border: 1px solid rgba(166,57,43,0.2);
  color: #7E2A20;
}

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

.page-header {
  background: var(--primary);
  padding: 46px 0;
  color: #fff;
  border-bottom: 3px solid var(--amber);
}
.page-header h1 { color: #fff; font-size: clamp(25px, 4vw, 38px); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; }

/* Older markup on a few profession pages uses these names */
.page-hero {
  background: var(--primary);
  padding: 46px 0;
  color: #fff;
  border-bottom: 3px solid var(--amber);
}
.page-hero h1 { color: #fff; font-size: clamp(25px, 4vw, 38px); margin-bottom: 12px; }
.page-hero .hero-sub,
.page-hero p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; }

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

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

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

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

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--stone);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  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: 14px;
  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 288px;
  gap: 46px;
  align-items: start;
}
.profession-main { min-width: 0; }
.profession-section { margin-bottom: 38px; }
.profession-section h2 {
  font-size: clamp(21px, 2.5vw, 25px);
  margin-bottom: 14px;
  color: var(--primary);
}

/* data-table - used in UK profession pages */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border-strong);
}
.data-table thead tr {
  background: var(--primary);
  color: #fff;
}
.data-table th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--amber);
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.data-table tbody tr:hover { background: #FBF6F5; }
.data-table tbody tr.alt { background: var(--bg); }
.data-table tbody tr.alt:hover { background: #FBF6F5; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Profession sidebar elements */
.profession-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-highlight {
  background: var(--primary);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--amber);
  padding: 24px;
  text-align: left;
  margin-bottom: 16px;
}
.sidebar-highlight__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.sidebar-highlight__amount {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.sidebar-highlight__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
}
.sidebar-links {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.sidebar-links__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 9px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-links ul { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links li a { font-size: 14px; 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(21px, 2.5vw, 27px);
  margin-top: 42px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--primary);
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 {
  font-size: clamp(17px, 2vw, 20px);
  margin-top: 28px;
  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: 20px;
  margin-bottom: 18px;
}
.content-main li {
  margin-bottom: 8px;
  line-height: 1.78;
  color: var(--text);
}
.content-main ul li::marker { color: var(--amber); }
.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: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.content-main table thead tr,
.prose table thead tr {
  background: var(--primary);
  color: #fff;
}
.content-main table th,
.prose table th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--amber);
}
.content-main table td,
.prose table td {
  padding: 10px 14px;
  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: var(--bg);
}
.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: #FBF6F5;
}
/* Overflow wrapper so tables do not break the mobile layout */
.content-main .table-wrap,
.prose .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.content-main .table-wrap table,
.prose .table-wrap table {
  margin: 0;
  border: none;
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}
.prose h3 { font-size: 19px; margin-top: 28px; 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
   ============================================= */

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

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

.faq-item { border-bottom: 1px solid var(--border-strong); }

.faq-question {
  width: 100%;
  padding: 19px 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(--amber);
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  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: 3px solid var(--amber);
  padding: 16px 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: 14px;
  color: rgba(255,255,255,0.72);
}
.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-top: 3px solid var(--stone);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--border-strong); border-top-color: var(--cta); }
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.blog-card__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  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: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card__read {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cta);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--amber);
}
.blog-card__read:hover { color: var(--cta-hover); 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(25px, 4vw, 38px); margin-bottom: 12px; }
.page-header__lead { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; }

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

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

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
}
.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 22px;
  border-radius: var(--radius);
  background: var(--cta);
  color: #fff;
  font-size: 15px;
  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 9px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--amber { background: #F3ECE0; color: #8A6115; }
.badge--blue  { background: #F7EAEC; color: var(--cta); }
.badge--green { background: #E7F1EB; color: var(--positive); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 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: 40px; }
  .hero { padding: 52px 0 58px; }
  .hero__sub { max-width: 100%; }
  .calc-widget { max-width: 480px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .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: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    padding: 24px;
    gap: 2px;
    overflow-y: auto;
    z-index: 199;
  }
  .site-nav.mobile-open > li > a {
    font-size: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0;
  }
  .site-nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px;
    border-radius: 0;
  }
  .site-nav__dropdown > * { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 2px; }
  .site-nav__dropdown a { color: rgba(255,255,255,0.72); }
  .site-nav__dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .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: 13px; opacity: 0.65; }

  .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(140px, 1fr)); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
}

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