/* LedgerTouch site chrome for the static pages (calculators, about, policy,
   legal, pricing). Repeats only what those pages need from the blog's 219 KB
   stylesheet: its tokens, base type, masthead and footer.
   Keep in step with public/blog/styles.css (.ed-home tokens, .ed-masthead,
   .ed-colophon) and with buildEdMasthead / buildEdFooter in public/blog/app.js. */

:root {
  --ed-paper: #f7fafd;
  --ed-paper-2: #eef4fb;
  --ed-card: #ffffff;
  --ed-ink: #16243c;
  --ed-ink-2: #2e3c56;
  --ed-mute: #51617e;
  --ed-rule: rgba(18, 42, 96, .26);
  --ed-rule-soft: rgba(18, 42, 96, .09);
  --ed-terra: #365f9f;
  --ed-terra-deep: #132a60;
  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; /* labels now use the one site typeface */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ed-ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ed-terra); }
a:hover { color: var(--ed-terra-deep); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ed-ink); color: #fff; padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Masthead (same markup and look as the blog) ── */
.ed-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid var(--ed-rule);
  background: var(--ed-paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .01em;
  text-transform: none;
}
.ed-masthead .cell { padding: 14px 20px; border-right: 1px solid var(--ed-rule); display: flex; gap: 18px; align-items: center; }
.ed-masthead .cell:last-child { border-right: 0; }
.ed-masthead .cell.center { justify-content: center; padding: 0 20px; gap: 14px; flex-wrap: wrap; }
.ed-masthead .cell.right { justify-content: flex-end; }
.ed-masthead a { color: inherit; text-decoration: none; }
.ed-masthead .cell.center a:hover, .ed-masthead a.logo:hover { color: var(--ed-terra); }
.ed-masthead .cell.center a.is-active { color: var(--ed-terra); border-bottom: 2px solid var(--ed-terra); padding-bottom: 1px; }
.ed-masthead .logo {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--ed-ink);
}
.ed-masthead .logo::before { content: "\2726"; font-size: 12px; color: var(--ed-terra); margin-right: 6px; vertical-align: .2em; }
.ed-masthead .subscribe { background: var(--ed-ink); color: var(--ed-paper); padding: 6px 12px; white-space: nowrap; }
.ed-masthead .subscribe:hover { background: var(--ed-terra-deep); color: #fff; }

/* ── Footer (same columns as the blog) ── */
.ed-colophon-wrap { padding: 56px 40px 28px; background: var(--ed-paper); border-top: 1px solid var(--ed-rule); }
.ed-colophon {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ed-rule);
}
.ed-colophon h5 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ed-mute);
}
.ed-colophon .blurb { font-size: 17px; line-height: 1.45; color: var(--ed-ink-2); }
.ed-colophon ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ed-colophon a { color: var(--ed-ink); text-decoration: none; font-size: 14px; }
.ed-colophon a:hover { text-decoration: underline; }
.ed-foot-low {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ed-mute);
}
.ed-foot-low nav { display: flex; gap: 16px; }
.ed-foot-low a { color: inherit; text-decoration: none; }
.ed-foot-low a:hover { color: var(--ed-terra); }

@media (max-width: 960px) {
  .ed-masthead { grid-template-columns: 1fr auto; grid-template-areas: "logo right" "nav nav"; }
  .ed-masthead .cell:first-child { grid-area: logo; border-right: 0; }
  .ed-masthead .cell.right { grid-area: right; }
  .ed-masthead .cell.center {
    grid-area: nav; border-right: 0; border-top: 1px solid var(--ed-rule-soft);
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    padding: 10px 16px; gap: 18px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .ed-masthead .cell.center::-webkit-scrollbar { display: none; }
  .ed-masthead .cell.center a { white-space: nowrap; }
  .ed-colophon { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ed-masthead .cell { padding: 10px 16px; gap: 12px; }
  .ed-masthead .logo { font-size: 22px; }
  .ed-colophon-wrap { padding: 40px 16px 20px; }
  .ed-colophon { grid-template-columns: 1fr; gap: 24px; }
  .ed-foot-low { flex-direction: column; gap: 10px; }
}
.ed-colophon li { margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   Design refresh, 2026-11-14 — shared chrome. Identical block at the end of
   public/site.css and public/blog/styles.css; change both together.
   One typeface (Bricolage) for UI and text, the serif only in the logo;
   labels in sentence-weight sans instead of tracked monospace; one header
   on every surface, sticky on desktop, aligned to the page gutter.
   `:is(.ed-home, body)` matches the older .ed-home rules' specificity and wins by order.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --gutter: 40px;
  --focus: 0 0 0 3px rgba(54, 95, 159, .35);
}
@media (max-width: 720px) { :root { --gutter: 20px; } }

:is(.ed-home, body) .ed-masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ed-rule-soft);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
:is(.ed-home, body) .ed-masthead::before { display: none; }
:is(.ed-home, body) .ed-masthead .cell { padding: 0; border: 0; gap: 0; }
:is(.ed-home, body) .ed-masthead .cell.center {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0 0 0 36px;
  border: 0;
}
:is(.ed-home, body) .ed-masthead .cell.center a {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ed-ink-2);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
:is(.ed-home, body) .ed-masthead .cell.center a:hover { background: var(--ed-paper-2); color: var(--ed-ink); }
:is(.ed-home, body) .ed-masthead .cell.center a.is-active {
  padding-bottom: 8px;
  border: 0;
  background: var(--ed-paper-2);
  color: var(--ed-ink);
  font-weight: 600;
}
:is(.ed-home, body) .ed-masthead .logo { font-size: 26px; line-height: 1; }
:is(.ed-home, body) .ed-masthead .subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ed-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .15s ease;
}
:is(.ed-home, body) .ed-masthead .subscribe:hover { background: var(--ed-terra-deep); color: #fff; }
:is(.ed-home, body) .ed-masthead a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

@media (max-width: 1000px) {
  :is(.ed-home, body) .ed-masthead {
    position: relative;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo right" "nav nav";
    min-height: 0;
    padding: 0;
  }
  :is(.ed-home, body) .ed-masthead .cell:first-child { grid-area: logo; padding: 12px var(--gutter); }
  :is(.ed-home, body) .ed-masthead .cell.right { grid-area: right; padding: 12px var(--gutter); }
  :is(.ed-home, body) .ed-masthead .cell.center {
    grid-area: nav;
    padding: 0 calc(var(--gutter) - 12px) 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  :is(.ed-home, body) .ed-masthead .cell.center::-webkit-scrollbar { display: none; }
  :is(.ed-home, body) .ed-masthead .cell.center a { padding: 10px 12px; font-size: 14.5px; }
  :is(.ed-home, body) .ed-masthead .logo { font-size: 23px; }
}

/* Focus that is visible on every interactive element, not only the masthead. */
html body a:focus-visible,
html body button:focus-visible,
html body summary:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible { outline: 2px solid var(--ed-terra); outline-offset: 2px; }

/* Body copy on every static page uses the site sans; the serif stays in the logo only. */
main { --serif: var(--sans); }
/* Breadcrumbs and small tags in sentence case, like the rest of the type. */
.crumbs, .crumbs a { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.cr-tags li, .cr-chip, .cr-meta, .calc-chips li { letter-spacing: .01em; text-transform: none; }

/* One cut of the typeface everywhere, 2026-11-14. Bricolage changes letter
   shapes with size (opsz) and width (wdth); mixed values made headings, cards
   and labels look like different fonts. Fixed at one optical size and width. */
html body, html body *:not(.logo) { font-variation-settings: "opsz" 32, "wdth" 100 !important; font-optical-sizing: none; }
/* One 1200px column for the header, as on the blog. */
:root { --page: 1136px; --page-pad: max(var(--gutter), calc((100% - var(--page)) / 2)); }
:is(.ed-home, body) .ed-masthead { padding-left: var(--page-pad); padding-right: var(--page-pad); }
@media (max-width: 1000px) { :is(.ed-home, body) .ed-masthead { padding-left: 0; padding-right: 0; } }
.ed-colophon-wrap { padding-left: var(--page-pad); padding-right: var(--page-pad); }

/* Page width, 2026-11-18: BBC's GEL grid. A 1280px container with 16px
   inside it gives 1248px of content; 24px side margins below that, 16px on
   phones. Everything that lines up with the masthead reads --page/--gutter. */
:root { --page: 1248px; --gutter: 24px; }
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ═══ BBC modules shared by calculators, salary and careers, 2026-11-18 ═══
   Same look as the bb-* block at the end of public/blog/styles.css. */
:root { --bb-ink: #16243c; --bb-mute: #586477; --bb-line: #d6dbe3; --bb-ground: #f2f3f5; --bb-accent: #2f5aa0; --bb-gap: 16px; }
.bb-band { background: var(--bb-ink); color: #fff; }
.bb-band__inner { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.bb-band__name { display: inline-block; padding: 16px 0 12px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff !important; text-decoration: none; }
.bb-band__nav { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255, 255, 255, .2); }
.bb-band__nav::-webkit-scrollbar { display: none; }
.bb-band__nav a { position: relative; flex: none; padding: 11px 11px 12px; font-size: 15px; line-height: 1.2; color: #fff !important; white-space: nowrap; text-decoration: none; }
.bb-band__nav a:first-child { padding-left: 0; }
.bb-band__nav a + a::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: rgba(255, 255, 255, .4); }
.bb-band__nav a[aria-current="page"]::after, .bb-band__nav a:hover::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 4px; background: #fff; }
.bb-band__nav a:first-child[aria-current="page"]::after, .bb-band__nav a:first-child:hover::after { left: 0; }
.bb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.bb-head__title { margin: 0 !important; font-size: 22px !important; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--bb-ink); }
.bb-head__title a { color: var(--bb-ink); text-decoration: none; }
.bb-head__title a::after { content: "\203A"; display: inline-block; margin-left: 8px; font-weight: 600; transition: transform .15s ease; }
.bb-head__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bb-head__title a:hover::after { transform: translateX(3px); }
.bb-head__more { font-size: 14px; font-weight: 600; color: var(--bb-ink); white-space: nowrap; text-decoration: none; }
.bb-head__more:hover { text-decoration: underline; }
.bb-promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; margin: 40px 0 0; padding: 28px 32px; background: var(--bb-ink); color: #fff; }
.bb-promo h2 { margin: 0 !important; font-size: 26px !important; line-height: 1.15; font-weight: 700; color: #fff !important; }
.bb-promo p { margin: 8px 0 18px !important; max-width: none !important; font-family: var(--sans) !important; font-size: 15px !important; line-height: 1.5 !important; color: rgba(255, 255, 255, .85) !important; }
.bb-promo__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: #fff; color: var(--bb-ink) !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.bb-promo__btn:hover { background: #e6ebf3; }
.bb-promo__links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; max-width: none !important; }
.bb-promo__links li { margin: 0 !important; }
.bb-promo__links a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .3); font-size: 14.5px; font-weight: 600; color: #fff !important; text-decoration: none; }
.bb-promo__links a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
@media (max-width: 760px) {
  .bb-band__name { font-size: 24px; padding: 12px 0 10px; }
  .bb-promo { grid-template-columns: 1fr; padding: 24px 20px; }
}

/* ── Wordmark and search, 2026-11-18 ──
   Our own mark: a navy "LT" block beside the name in heavy type. BBC-like in
   its plainness, but not BBC's three-box logo, its typeface or its colours. */
.ed-masthead .logo, :is(.ed-home, body) .ed-masthead .logo, .lt-site-chrome .logo {
  display: inline-flex !important; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif !important; font-style: normal !important;
  font-size: 23px !important; font-weight: 800 !important; letter-spacing: -.03em !important; line-height: 1 !important;
  color: #16243c !important; text-decoration: none; text-transform: none !important;
}
.ed-masthead .logo::before, :is(.ed-home, body) .ed-masthead .logo::before, .lt-site-chrome .logo::before {
  content: "LT" !important; display: grid !important; place-items: center; flex: none;
  width: 34px; height: 34px; margin: 0 !important; background: #16243c; color: #fff !important;
  font-size: 15px !important; font-weight: 800; letter-spacing: -.02em; vertical-align: middle;
}
.ed-masthead .logo:hover, :is(.ed-home, body) .ed-masthead .logo:hover { color: #16243c !important; }
.ed-masthead .cell.right { gap: 12px; }
.ed-search { display: flex; align-items: stretch; margin: 0; }
.ed-search input { width: 180px; min-height: 38px; padding: 0 10px; border: 1px solid #c9d0db; border-right: 0; border-radius: 0; background: #f2f3f5; color: #16243c; -webkit-text-fill-color: #16243c; font: inherit; font-size: 14.5px; }
.ed-search input::placeholder { color: #586477; -webkit-text-fill-color: #586477; }
.ed-search input:focus { outline: 2px solid #16243c; outline-offset: -2px; background: #fff; }
.ed-search button { display: grid; place-items: center; width: 40px; min-height: 38px; border: 0; border-radius: 0; background: #16243c; color: #fff; cursor: pointer; }
.ed-search button:hover { background: #24375a; }
@media (max-width: 900px) { .ed-search input { width: 120px; } }
@media (max-width: 560px) { .ed-search input { width: 96px; font-size: 16px; } .ed-masthead .logo, :is(.ed-home, body) .ed-masthead .logo { font-size: 20px !important; } }
@media (max-width: 420px) { .ed-masthead .logo, :is(.ed-home, body) .ed-masthead .logo, .lt-site-chrome .logo { font-size: 0 !important; gap: 0 !important; } .ed-search input { width: 104px; } }
@media (max-width: 560px) {
  .ed-colophon a, .ed-foot-low a { display: inline-block; padding: 10px 0; }
  .ed-foot-low nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .bb-head__more, .calc-trust__more { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Footer: Follow us (WhatsApp, Facebook, LinkedIn), all footers. */
.ed-follow{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:14.5px}.ed-follow span{font-weight:700;color:var(--ed-ink,#16243c)}.ed-follow a{display:inline-flex;align-items:center;min-height:32px;color:var(--ed-ink,#16243c);font-weight:600;text-decoration:underline;text-underline-offset:3px}
