/* Salary UK Calculator — Trust Navy theme. One small file, no external fonts. */
:root {
  --navy: #0F2A44; --blue: #1D70B8; --action: #155E96; --green: #0E7C61;
  --page: #FFFFFF; --pale: #F4F8FB; --text: #0B0C0C; --muted: #505A5F;
  --border: #D9E2EC; --amber: #B45309; --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--page); }
h1 { font-size: 30px; line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.3; color: var(--navy); margin: 32px 0 10px; }
h3 { font-size: 19px; color: var(--navy); margin: 24px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 1060px; }
.lede { font-size: 19px; color: var(--muted); }
.small, .muted { color: var(--muted); font-size: 15px; }
.updated { color: var(--muted); font-size: 15px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 28px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { max-width: 1060px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; line-height: 1.2; flex-shrink: 0; }
.logo svg { flex-shrink: 0; }
.logo span b { color: #7FB8E0; font-weight: 700; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: var(--radius); font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.year-badge { background: var(--green); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: var(--radius); padding: 6px 12px; font-size: 16px; cursor: pointer; margin-left: auto; }

/* Breadcrumb */
.breadcrumb { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.breadcrumb a { color: var(--blue); }

/* Calculator */
.calc { background: var(--pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.calc label { display: block; font-weight: 700; margin: 14px 0 5px; }
.calc label:first-child { margin-top: 0; }
.calc input[type="number"], .calc input[type="text"], .calc select { width: 100%; padding: 11px 12px; font-size: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); }
.calc input:focus, .calc select:focus { outline: 3px solid #FFDD00; outline-offset: 0; border-color: var(--blue); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 16px 0 4px; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.more-options { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 4px 14px 14px; }
.more-options summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 10px 0 4px; }
.btn { display: inline-block; background: var(--action); color: #fff; border: none; border-radius: var(--radius); padding: 12px 26px; font-size: 18px; font-weight: 700; cursor: pointer; margin-top: 18px; }
.btn:hover { background: var(--navy); color: #fff; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }

.result { border: 2px solid var(--green); border-radius: var(--radius); padding: 20px; margin: 20px 0; background: #fff; }
.result .big { font-size: 40px; line-height: 1.1; color: var(--green); font-weight: 800; margin: 2px 0 4px; }
.result .big-label { font-weight: 700; color: var(--navy); }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.result-cell { background: var(--pale); border-radius: var(--radius); padding: 10px 12px; }
.result-cell .lbl { font-size: 14px; color: var(--muted); }
.result-cell .val { font-size: 19px; font-weight: 700; color: var(--navy); }
.breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.breakdown .cell { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.breakdown .lbl { font-size: 14px; color: var(--muted); }
.breakdown .val { font-size: 18px; font-weight: 700; }
.extras { margin-top: 14px; font-size: 16px; }
.extras p { margin: 0 0 6px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 16px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--pale); color: var(--navy); }
tr.total td { font-weight: 700; background: var(--pale); }
.table-wrap { overflow-x: auto; }
.split-bar { display: flex; height: 26px; border-radius: var(--radius); overflow: hidden; margin: 10px 0 4px; font-size: 14px; color: #fff; }
.split-bar span { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.split-take { background: var(--green); }
.split-tax { background: var(--blue); }
.split-ni { background: var(--navy); }

/* Cards, chips, steps */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a { display: inline-block; border: 1px solid var(--blue); color: var(--blue); border-radius: 20px; padding: 6px 14px; text-decoration: none; font-weight: 700; }
.chips a:hover { background: var(--blue); color: #fff; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 10px 0 10px 44px; position: relative; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.try { background: var(--pale); border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; }
.try ul { margin: 6px 0 0; }
.warning { background: #FFF7ED; border: 1px solid #FDBA74; border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.warning strong { color: var(--amber); }
.note { background: var(--pale); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq p { margin: 8px 0 4px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; margin-top: 40px; }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 32px 16px 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h3 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0 0 6px; }
.footer-cols a { color: #CFE3F2; text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); margin-top: 24px; padding-top: 16px; font-size: 14px; color: #CFE3F2; }
.footer-bottom p { margin: 0 0 6px; }

/* Forms (contact) */
.contact-form label { display: block; font-weight: 700; margin: 14px 0 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; font-size: 17px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; }
.contact-form textarea { min-height: 140px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  main { padding: 18px 14px 40px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; }
  .year-badge { display: none; }
  .calc-row, .calc-row-3 { grid-template-columns: 1fr; }
  .result-grid, .breakdown { grid-template-columns: 1fr 1fr; }
  .result .big { font-size: 34px; }
  .cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  table { font-size: 15px; }
}
@media (max-width: 420px) {
  .result-grid, .breakdown { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
