/*
 * UKMinimumWage — Global Stylesheet
 * Adapted from CalcUK / UKTaxRates calcHub.css
 * All shared styles for every UKMinimumWage tool.
 * Tool-specific styles go in a <style> block inside that tool's HTML.
 */

/* ══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }

/* ══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:          #ffffff;
  --bg-soft:     #f5f7fc;
  --ink:         #1d1d1f;
  --muted:       #5a6580;
  --line:        #d2d2d7;
  --border:      #d2d2d7;
  --accent:      #1565c0;
  --accent-soft: #e3f2fd;
  --accent-dark: #0d47a1;
  --radius:      22px;
  --pill:        999px;
  --nav-bg:      #0d1b3e;
  --property:    #2e7d32;
}

/* ══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════
   NAV — dark navy to match index.html
═══════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--nav-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: #90caf9; }
.brand span { color: #90caf9; }

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  gap: 0;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: #90caf9; }
.nav-logo span { color: #90caf9; }

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

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--pill);
  font-size: .82rem;
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #0d1b3e 0%, #122654 40%, #1a3a6e 70%, #1565c0 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.hero h1 span { color: #90caf9; }

.hero p {
  color: #b0c4e8;
  max-width: 680px;
  font-size: 1.05rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #90caf9;
}

.trust-pill svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   MAIN / LAYOUT
═══════════════════════════════════════════ */
.main {
  padding: 56px 0 0;
  background: linear-gradient(to bottom, #fff 0%, #f7f9fc 100%);
}

.layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: start;
}

/* ══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}

/* ══════════════════════════════════════════
   FORM FIELDS
═══════════════════════════════════════════ */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: .84rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field input:not([type="range"]),
.field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s;
  background: #fff;
  color: var(--ink);
  appearance: auto;
}

.field input:not([type="range"]):focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.full { grid-column: 1 / -1; }

/* ══════════════════════════════════════════
   CUSTOM SLIDER SYSTEM
═══════════════════════════════════════════ */
.slider-wrap {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.slider-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #e5e5ea;
  border-radius: 999px;
  pointer-events: none;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  width: 0%;
}

input[type="range"].field-slider {
  position: absolute;
  left: 0;
  width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
}

input[type="range"].field-slider::-webkit-slider-runnable-track {
  background: transparent !important;
  height: 18px !important;
}

input[type="range"].field-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid var(--accent) !important;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25), 0 1px 3px rgba(0,0,0,.12) !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
  position: relative !important;
  z-index: 2 !important;
}

input[type="range"].field-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 4px 12px rgba(21,101,192,0.35), 0 1px 4px rgba(0,0,0,.15) !important;
}

input[type="range"].field-slider::-moz-range-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid var(--accent) !important;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25), 0 1px 3px rgba(0,0,0,.12) !important;
  cursor: pointer !important;
}

input[type="range"].field-slider::-moz-range-track {
  background: transparent !important;
  height: 2px !important;
  border: none !important;
}

/* ══════════════════════════════════════════
   ACTION BUTTONS
═══════════════════════════════════════════ */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.actions button {
  border-radius: var(--pill);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}

.actions button:hover { background: var(--bg-soft); }

.actions .run {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.actions .run:hover { background: var(--accent-dark); }

/* ══════════════════════════════════════════
   RESULTS
═══════════════════════════════════════════ */
.result-primary {
  background: var(--nav-bg);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-primary > span,
.result-primary > div {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-primary small {
  color: #8899bb;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  gap: 12px;
}

.result-row:last-of-type { border-bottom: none; }
.result-row > span   { color: var(--muted); flex: 1; }
.result-row > strong { font-weight: 700; white-space: nowrap; }

.result-main {
  background: var(--nav-bg);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
}

.result-main .label {
  color: #8899bb;
  font-size: .82rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.result-main .value {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-main .sub {
  color: #8899bb;
  font-size: .88rem;
  margin-top: 6px;
}

.result-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-item .name {
  font-size: .8rem;
  color: var(--muted);
}

.result-item .amt {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.result-item .amt.negative { color: #d93025; }
.result-item .amt.positive { color: var(--accent); }
.result-item .amt.green    { color: #1b7a45; }

/* ══════════════════════════════════════════
   CONTENT SECTIONS (SEO / below-fold)
═══════════════════════════════════════════ */
.content-section {
  max-width: 100%;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.content-section .container {
  max-width: 100%;
  padding: 0;
}

.content-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  margin-top: 24px;
  color: var(--ink);
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a237e;
  margin: 24px 0 12px;
}

.content-section p {
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-section li { margin-bottom: 6px; }

.content-section a { color: #0d47a1; text-decoration: underline; }
.content-section a:hover { color: #1565c0; }

.content-section table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.content-section th, .content-section td { border: 1px solid #cfd8dc; padding: 10px 14px; text-align: left; }
.content-section th { background: #e8eaf6; font-weight: 700; color: #1a237e; }
.content-section tr:nth-child(even) { background: #f5f7fa; }

/* Rates / data tables */
.rates-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.rates-table th {
  background: #f5f7fc;
  color: #5a6580;
  font-weight: 600;
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rates-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #ececef;
  color: var(--ink);
}

.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:nth-child(even) td { background: #fafafc; }

.source-link { font-size: .78rem; color: var(--accent); }

/* Worked example cards */
.example-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.example-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.example-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.example-row:last-child { border-bottom: none; font-weight: 700; }
.example-row .ex-label { color: var(--muted); }

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Warning / tips boxes */
.warning-box {
  background: #fff8e6;
  border: 1px solid #ffd60a;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: .92rem;
}

.warning-box strong {
  color: #7a5800;
  display: block;
  margin-bottom: 4px;
}

.info-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: .95rem;
  color: #0d3c7a;
}
.info-callout a { color: #1565c0; font-weight: 600; }

.success-box {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: .92rem;
  color: #1b5e20;
}

/* FAQ accordion */
.faq-list { max-width: 780px; }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--ink);
  font-size: .95rem;
}

.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q::after { content: "\2212"; }

.faq-a { color: var(--muted); font-size: .95rem; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* Related tools grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(21,101,192,0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.related-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); word-wrap: break-word; overflow-wrap: break-word; }
.related-card p  { font-size: .88rem; color: var(--muted); margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.related-card { min-width: 0; overflow: hidden; }

/* ══════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1b3e;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
#cookie-banner.hidden { display: none !important; }
#cookie-banner p { flex: 1; min-width: 200px; margin: 0; }
#cookie-banner a { color: #90caf9; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: #1565c0; color: #fff; border: none; padding: 9px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .2s; }
.btn-cookie-accept:hover { background: #0d47a1; }
.btn-cookie-decline { background: transparent; color: #ccc; border: 1px solid #555; padding: 9px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.btn-cookie-decline:hover { border-color: #aaa; color: #fff; }

/* Footer styles are inline in each HTML file (matching UKMINIMUMWAGE 2 pattern) */

/* ══════════════════════════════════════════
   VERIFIED / FOOTER BAR
═══════════════════════════════════════════ */
.verified-bar {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  font-size: 13px;
  color: #fff;
}

.verified-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.verified-inner a { color: #90caf9; }

/* ══════════════════════════════════════════
   DATA TABLES
═══════════════════════════════════════════ */
.table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  max-height: 420px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: .9rem;
}

thead th {
  position: sticky;
  top: 0;
  background: #f5f7fc;
  color: #5a6580;
  font-weight: 600;
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th:first-child,
tbody td:first-child { text-align: left; }

tbody td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid #ececef;
  color: var(--ink);
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: #fafafc; }

/* ══════════════════════════════════════════
   DONUT CHART
═══════════════════════════════════════════ */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 16px;
  margin-bottom: 14px;
}
.donut-svg-wrap {
  flex-shrink: 0;
  position: relative;
  width: 100px;
  height: 100px;
}
.donut-svg-wrap svg { transform: rotate(-90deg); }
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  pointer-events: none;
}
.donut-pct {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}
.donut-sub {
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: .03em;
}
.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donut-leg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--ink);
}
.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.small-note {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--muted);
}

.badge-green {
  display: inline-block;
  background: #e8f5e9;
  color: #1b7a45;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
}

.badge-blue {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════════ */
.ad-slot { text-align: center; overflow: hidden; }
.ad-slot--top    { padding: 16px 0 8px; min-height: 90px; }
.ad-slot--mid    { padding: 32px 16px; min-height: 280px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-slot--bottom { padding: 16px 0 8px; min-height: 90px; }
@media (max-width: 600px) {
  .ad-slot--top    { min-height: 50px; }
  .ad-slot--mid    { min-height: 280px; padding: 24px 8px; }
  .ad-slot--bottom { min-height: 60px; }
}

/* Desktop: 15% smaller calculator cards */
@media (min-width: 769px) {
  .layout { max-width: 85%; margin: 0 auto; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 980px) {
  .layout          { grid-template-columns: 1fr; max-width: 100%; }
  .field-grid      { grid-template-columns: 1fr; }
  .result-list     { grid-template-columns: 1fr; }
  .example-grid    { grid-template-columns: 1fr; }
  .related-grid    { grid-template-columns: 1fr; }
  .card            { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 12px;
    gap: 2px;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.08);
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 52px 0 40px; }
  /* footer responsive rules are inline in each HTML file */
}

@media (max-width: 600px) {
  .card { padding: 20px; }
  .trust-bar { gap: 12px; }
  .verified-inner { gap: 12px; }
  .content-section { padding: 20px 14px; }
  .content-section p, .content-section li { font-size: 0.9rem; }
  .content-section table { font-size: 0.82rem; }
}

/* ══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .site-nav, nav, .cookie-banner, .ad-slot, .verified-bar, footer { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}

/* ══════════════════════════════════════════
   UKTAXRATES EXTENSIONS
   Additional styles used by V2 pages
   that are not in the original calcHub.css
═══════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  font-size: .85rem;
}
.skip-link:focus { top: 0; }

/* Hero extras */
.hero-sub {
  color: #b0c4e8;
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #90caf9;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--pill);
}

.hero-rate-box {
  display: inline-flex;
  flex-direction: column;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 20px;
  margin-top: 20px;
  color: #fff;
}
.hero-rate-box .rate-label { font-size: .78rem; color: #90caf9; text-transform: uppercase; letter-spacing: .06em; }
.hero-rate-box .rate-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }

/* Period toggle */
.period-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: var(--pill);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}
.period-toggle button {
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.period-toggle button.active {
  background: var(--accent);
  color: #fff;
  border-radius: var(--pill);
}

/* Budget callout */
.budget-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: .95rem;
  color: #0d3c7a;
}
.budget-callout a { color: #1565c0; font-weight: 600; }

/* Info box */
.info-box {
  background: var(--accent-soft);
  border: 1px solid #bbdefb;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: .92rem;
  color: #0d3c7a;
}

/* Band table */
.band-table { width:100%; font-size:.85rem; border-collapse: collapse; }
.band-table td,.band-table th { padding:8px 12px; }
.band-table th { background:var(--bg-soft); font-weight:600; font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); border-bottom:2px solid var(--line); }
.band-table td { border-bottom:1px solid #ececef; }

/* Related card text helpers */
.related-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.related-desc { font-size: .88rem; color: var(--muted); margin: 0; }

/* Tools grid (index page) */
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 620px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-align: center;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(21,101,192,0.12);
  transform: translateY(-3px);
  text-decoration: none;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-card { min-width: 0; overflow: hidden; }
.tool-name {
  font-weight: 700; word-wrap: break-word; overflow-wrap: break-word;
  font-size: .95rem;
  color: var(--ink);
}

.tool-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Budget highlight */
.budget-highlight {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 100%);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  color: #fff;
}
.budget-inner { max-width: 700px; }
.budget-tag {
  display: inline-block;
  background: rgba(144,202,249,0.2);
  color: #90caf9;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--pill);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.budget-highlight h2 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.budget-highlight p { color: #b0c4e8; margin-bottom: 16px; }
.budget-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #90caf9;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--pill);
  margin-right: 8px;
  margin-bottom: 6px;
}

/* Key dates, summary, allowance grids */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.date-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}
.date-card strong { color: var(--accent); display: block; margin-bottom: 4px; }
.date-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  text-align: center;
}
.summary-card .value { font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.summary-card .label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.allowance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.allowance-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}
.allowance-card strong { color: var(--ink); display: block; margin-bottom: 4px; }
.allowance-card span { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.allowance-card p { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.resource-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(21,101,192,0.1);
  text-decoration: none;
}
.resource-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.resource-card p { font-size: .82rem; color: var(--muted); margin: 0; }

.scotland-note {
  background: #eff6ff;
  border: 1px solid #bbdefb;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: .9rem;
  color: #0d3c7a;
}

/* Responsive extensions */
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .dates-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

/* Hide mid & bottom ads on mobile - show only top ad */
@media (max-width: 768px) {
  .ad-slot--mid, .ad-slot--bottom { display: none !important; }
}

/* ══════════════════════════════════════════
   TABLES & RATES TABLE
═══════════════════════════════════════════ */
.rates-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
}

.rates-table thead {
  background-color: #0f172a !important;
}

.rates-table thead th {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 18px;
  border: none;
  white-space: nowrap;
}

.rates-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1e293b;
  vertical-align: middle;
}

.rates-table tbody tr:last-child td {
  border-bottom: none;
}

.rates-table tbody tr:hover {
  background-color: #f8fafc;
}

/* ══════════════════════════════════════════
   FOOTER (Dark Navy Authority Theme)
═══════════════════════════════════════════ */
footer {
  background: #0d1b3e !important;
  color: #c5d5ec !important;
  padding: 56px 0 32px !important;
  margin-top: 64px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.footer-brand .brand-name span {
  color: #60a5fa !important;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8 !important;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease;
  display: block;
}

.footer-links a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  transform: translateX(2px);
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8 !important;
  margin-bottom: 32px;
}

.footer-disclaimer strong {
  color: #e2e8f0 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b !important;
}
