/* Bottom Line Metrics — site styles
   Layout concept: a left-aligned working page. Text columns sit on the left, the
   framed "ledger" panel (echoing the logo's orange frame) carries dates and figures. */
:root {
  --navy: #132650;
  --navy-deep: #0c1a3a;
  --orange: #ef7622;
  --orange-ink: #b04f0b;      /* orange for text on white: 5.3:1 */
  --bg: #ffffff;
  --surface: #f3f5f9;
  --surface-2: #e9edf4;
  --line: #d9dfe9;
  --fg: #132650;
  --muted: #4a5878;
  --llc: #000000;
  --band: #132650;
  --band-fg: #ffffff;
  --band-muted: #c6cfe0;
  --btn-fg-on-orange: #132650; /* navy on orange: 5.1:1 (white on orange fails at 2.9:1) */
  --focus: #b04f0b;
  --ok: #1d6b43;
  --err: #a5281b;
  --header-bg: rgba(255, 255, 255, 0.94);
  --chip-on: #132650;          /* pressed filter chip */
  --chip-on-fg: #ffffff;
  --jur-state-bg: #fde9da; --jur-state-fg: #7a3507;

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --fs-hero: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);

  --radius: 6px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1428; --surface: #101d37; --surface-2: #172747; --line: #253760;
    --fg: #e8ecf4; --muted: #a8b4cb; --llc: #e8ecf4; --orange-ink: #f6a466;
    --band: #142a57; --band-fg: #ffffff; --band-muted: #c6cfe0;
    --focus: #f6a466; --ok: #6fcf97; --err: #ff9a8b;
    --header-bg: rgba(10, 20, 40, 0.94);
    --chip-on: #ef7622; --chip-on-fg: #132650;
    --jur-state-bg: #3a2614; --jur-state-fg: #f6c39b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1428; --surface: #101d37; --surface-2: #172747; --line: #253760;
  --fg: #e8ecf4; --muted: #a8b4cb; --llc: #e8ecf4; --orange-ink: #f6a466;
  --band: #142a57; --band-fg: #ffffff; --band-muted: #c6cfe0;
  --focus: #f6a466; --ok: #6fcf97; --err: #ff9a8b;
  --header-bg: rgba(10, 20, 40, 0.94);
  --chip-on: #ef7622; --chip-on-fg: #132650;
  --jur-state-bg: #3a2614; --jur-state-fg: #f6c39b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  overflow-x: hidden; overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.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; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--surface { background: var(--surface); }
.eyebrow {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--orange-ink);
}
.lede { font-size: var(--fs-md); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: var(--btn-fg-on-orange); border-color: var(--orange); }
.btn--primary:hover { background: #f58a3f; border-color: #f58a3f; }
.btn--secondary { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--secondary:hover { background: var(--surface-2); }
.btn--light { background: transparent; color: var(--band-fg); border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: rgba(255,255,255,.1); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; max-width: 1360px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand img { width: 54px; height: 40px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.brand__llc { color: var(--llc); font-weight: 600; font-size: 0.8em; margin-left: 2px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 10px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 0.9625rem; color: var(--fg); white-space: nowrap;
}
.nav__list a:hover { background: var(--surface-2); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__cta { margin-left: 6px; white-space: nowrap; }
/* Six links + the CTA + the language button. 1100-1439px: tighter links and a CTA without its icon;
   1100-1279px: the logo mark (it reads "BLM") stands in for the name, which stays in the link's aria-label. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-header .wrap { gap: 12px; }
  .nav__list a { padding: 10px 7px; font-size: 0.9375rem; }
  .nav__cta { padding: 8px 12px; gap: 8px; margin-left: 4px; }
  .nav__cta svg { display: none; }
  .lang { margin-left: 4px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Language switcher: compact menu button on desktop, a 2x2 choice grid inside the mobile menu */
.lang { position: relative; margin-left: 6px; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: 600 0.875rem var(--font-display); letter-spacing: .04em; cursor: pointer;
}
.lang__btn:hover { border-color: var(--fg); }
.lang__globe { width: 18px; height: 18px; }
.lang__chev { width: 14px; height: 14px; transition: transform .15s ease; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.lang__menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(12, 26, 58, .16);
}
.lang.is-open .lang__menu { display: grid; gap: 2px; }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 4px;
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
}
.lang__menu a:hover { background: var(--surface-2); }
.lang__menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: 600 0.9375rem var(--font-display); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
/* The menu collapses below 1100px: six links incl. "Pay your invoice" + the CTA need ~1000px on one line. */
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(12, 26, 58, .12);
    padding: 8px var(--gutter-r) 20px var(--gutter);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav__cta { margin: 16px 0 0; }
  .lang { margin: 18px 0 0; }
  .lang__btn { display: none; }
  .lang__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 8px; }
  .lang__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .lang__menu a { justify-content: center; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); white-space: normal; text-align: center; }
  .lang__menu a[aria-current="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
  .lang__menu a[aria-current="true"]::after { display: none; }
}
@media (max-width: 480px) {
  .menu-btn { width: 44px; padding: 0; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 400px) { .brand { gap: 9px; } .brand__name { font-size: 0.95rem; } .brand img { width: 46px; height: 34px; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero__points { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__points li { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.hero__points svg { width: 18px; height: 18px; color: var(--orange-ink); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ledger panel (framed like the logo) */
.ledger { border: 3px solid var(--orange); background: var(--bg); padding: 24px 24px 18px; min-width: 0; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.ledger__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.ledger__src { font-size: var(--fs-sm); color: var(--muted); }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger time { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange-ink); white-space: nowrap; }
.ledger li span { color: var(--fg); line-height: 1.45; }
.ledger__foot { margin-top: 6px; font-size: var(--fs-sm); }


/* Services */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.service { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); color: var(--fg); flex: none; }
.service__icon svg { width: 24px; height: 24px; }
.form-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--orange-ink); text-align: right; text-transform: uppercase; padding-top: 4px; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.service .note { font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

.obbba { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-items: center; }
.section--surface .obbba { background: var(--bg); }
.obbba__copy { display: grid; gap: 10px; }
.obbba dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.obbba dl div { border-left: 3px solid var(--orange); padding-left: 12px; min-width: 0; }
.obbba dt { font-size: var(--fs-sm); color: var(--muted); }
.obbba dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.obbba dd small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 960px) { .obbba { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .obbba dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--orange-ink); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px; }
.step__num::after { content: ""; height: 2px; flex: 1; background: var(--line); }
.step:last-child .step__num::after { background: transparent; }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .step__num::after { display: none; }
}

/* Promo band */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band .eyebrow { color: #f6a466; }
.band h2 { color: var(--band-fg); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.band p { color: var(--band-muted); max-width: 56ch; }
.band__copy { display: grid; gap: 16px; }
.band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.band__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--band-fg); }
.band__list svg { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Newsletter teaser + forms */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.issue { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); border-top: 5px solid var(--orange); min-width: 0; }
.issue__meta { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.issue h3 { font-size: var(--fs-lg); }
.issue p { color: var(--muted); }
.issue ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.subscribe { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.section--surface .subscribe { background: var(--bg); }
.subscribe h3 { font-size: var(--fs-lg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--muted); background: var(--bg); color: var(--fg); font: inherit;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; font-size: 0.9375rem; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.fineprint { font-size: 0.8125rem; color: var(--muted); }

/* Affiliate cards */
.tool { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.tool h3 { font-size: 1.125rem; }
.tool p { color: var(--muted); }
.tool a.tool__link { font-weight: 700; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tool a.tool__link svg { width: 16px; height: 16px; }
.disclosure { font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--orange); padding: 4px 0 4px 12px; max-width: 70ch; }

/* About */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__copy { max-width: 72ch; }
.about__tile { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; display: grid; place-items: center; background: #ffffff; border-radius: var(--radius); border: 1px solid var(--line); }
.about__tile img { width: 72%; }
.about__copy { display: grid; gap: 16px; max-width: 66ch; }
.about__copy p { color: var(--muted); }
.offer-list { list-style: none; margin: 2px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.offer-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 600; line-height: 1.45; }
.offer-list svg { width: 20px; height: 20px; color: var(--orange-ink); margin-top: 1px; }
@media (max-width: 560px) { .offer-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about__tile { max-width: 140px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__rows { display: grid; gap: 14px; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.contact-row__label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.contact-row__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .9rem + .6vw, 1.25rem); user-select: all; overflow-wrap: break-word; }
.contact-row__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } .contact-row__actions { justify-content: flex-start; } }
.copy-btn { min-height: 40px; padding: 8px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: 600 0.9rem var(--font-display); cursor: pointer; }
.copy-btn:hover { border-color: var(--fg); }

/* Page header (inner pages) */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); max-width: 22ch; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Book page */
.book { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }
.cal-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; position: relative; }
#cal-inline { width: 100%; overflow: auto; }
.cal-box.is-loaded #cal-inline { min-height: 640px; }
.cal-fallback { display: grid; gap: 14px; padding: 28px; }
.cal-box.is-loaded .cal-fallback { display: none; }
.checklist { display: grid; gap: 22px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.checklist h2 { font-size: var(--fs-lg); }
.checklist h3 { font-size: 1rem; font-family: var(--font-display); margin-bottom: 8px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); }
.side-links { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Newsletter issue page */
.issue-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #eef1f5; display: block; min-height: 900px; }
.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.archive li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.archive time { font-family: var(--font-display); font-weight: 600; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .archive li { grid-template-columns: 1fr; gap: 4px; } }

/* Prose (privacy) */
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-lg); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--fg); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #dfe5f0; padding-block: 56px 32px; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; max-width: 100%; padding: 10px 16px 10px 12px; background: #ffffff; border-radius: 10px; }
.footer-logo img { width: 60px; height: auto; flex: none; }
.footer-logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; color: #132650; white-space: nowrap; }
.footer-logo .llc { color: #000000; font-weight: 600; font-size: 0.8em; margin-left: 2px; }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.09em; text-transform: uppercase; color: #f6a466; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #f6a466; }
.social, .site-footer ul.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.social a:hover { background: rgba(255,255,255,.1); }
.social svg { width: 18px; height: 18px; }
.social--contact a { border-color: var(--line); color: var(--fg); background: var(--bg); }
.social--contact a:hover { border-color: var(--orange, #EF7622); background: var(--bg); color: var(--fg); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: #c6cfe0; }
.footer-base p { max-width: 70ch; }

.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Pay an invoice */
.pay { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } }
.pay .ledger { display: grid; gap: 16px; padding: 24px; }
.pay form { display: grid; gap: 16px; }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.pay-done { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.pay-done svg { width: 24px; height: 24px; color: var(--ok); }
.pay-done p { font-weight: 600; }
.pay-aside { display: grid; gap: 18px; min-width: 0; }
.pay-aside .issue h2 { font-size: var(--fs-md); }
.pay-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.pay-preview { padding: 12px 14px; border: 1.5px dashed var(--orange); border-radius: var(--radius); font-size: 0.9375rem; }
.pay [hidden] { display: none !important; }   /* .issue / .pay-done set display:grid; keep the hidden attribute authoritative */
.pay .form-status:empty { display: none; }
.linkish { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { text-decoration-thickness: 2px; }
.pay-sent { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; }
.pay-note { padding: 12px 14px; border-radius: var(--radius); border-left: 4px solid var(--err); background: var(--surface); font-weight: 600; }
#pay-result { display: grid; gap: 14px; }
.pay-opening { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.pay-opening::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: pay-spin .8s linear infinite; flex: none; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-opening::before { animation: none; } }
@media (max-width: 440px) { .pay .ledger { padding: 18px 16px; } }

/* i18n: hide the page for a moment while a saved non-English language loads (assets/i18n.js) */
html.i18n-pending body { visibility: hidden; }

/* Small phones: keep long translated button labels (e.g. "Appel ou SMS au 917-282-5975") on one line */
@media (max-width: 400px) { .btn-row .btn { padding-inline: 14px; gap: 8px; font-size: 0.9375rem; } }

/* "The Metrics (aka bookkeeping)": brand name first, the plain word after it, smaller and muted.
   inline-block keeps "(aka …)" together: it moves to the next line as a unit instead of splitting. */
:lang(de) main { hyphens: manual; }   /* long German compounds carry soft hyphens in de.json */
.aka {
  display: inline-block; max-width: 100%; font-family: var(--font-body); font-size: max(0.62em, 0.75rem); font-weight: 400;
  line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--muted); vertical-align: baseline;
}
.band .aka { color: var(--band-muted); }
.nowrap { white-space: nowrap; }   /* keeps the brand name "The Metrics" on one line */

/* Latest tax news (page + home teaser) */
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.news-meta__week { color: var(--fg); }
.news-meta span:empty { display: none; }
.news-langnote { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.news-langnote svg { width: 16px; height: 16px; flex: none; }
.news-langnote[hidden], .news-empty[hidden], .news-error[hidden], .news-tools[hidden], [data-news-teaser-list][hidden] { display: none; }
.news-tools { display: grid; grid-template-columns: auto minmax(180px, 250px) minmax(0, 1fr); gap: 16px 20px; align-items: end;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news-tools .field input, .news-tools .field select { background: var(--bg); }
.news-tools__label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.news-levels { min-width: 0; }
.news-levels__row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-level { min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--muted); background: var(--bg); color: var(--fg);
  font: 600 0.9375rem var(--font-display); cursor: pointer; }
.news-level:hover { border-color: var(--fg); }
.news-level[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-fg); }
@media (max-width: 960px) { .news-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .news-levels { grid-column: 1 / -1; } }
@media (max-width: 560px) { .news-tools { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.news-count { margin: 22px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.news-group { margin-top: 28px; }
.news-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: var(--fs-lg); padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--fg); }
.news-group__level { font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange-ink); }
.news-group__n { font: 600 var(--fs-sm) var(--font-body); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 10px; letter-spacing: 0; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .news-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
.news-card { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: var(--radius); background: var(--bg); }
.news-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.jur { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 600 0.75rem var(--font-display); letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--surface-2); color: var(--fg); }
.jur--federal { background: var(--chip-on); color: var(--chip-on-fg); }
.jur--state { background: var(--jur-state-bg); color: var(--jur-state-fg); }
.jur--city { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.news-card time { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-card__title { font-size: 1.125rem; line-height: 1.3; overflow-wrap: break-word; }
.news-card__summary { color: var(--muted); overflow-wrap: break-word; }
.news-card__who { font-size: 0.9375rem; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); overflow-wrap: break-word; }
.news-card__who strong { font-weight: 700; }
.news-card__src { font-size: var(--fs-sm); margin-top: 2px; }
.news-card__src a { display: inline; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.news-card__src svg { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
.news-empty { display: grid; justify-items: center; gap: 12px; margin-top: 20px; padding: 28px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.news-error { margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--err); background: var(--surface); }
.news-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.news-cta__copy { display: grid; gap: 10px; max-width: 62ch; }
.news-footnote { color: var(--muted); }
@media (max-width: 860px) { .news-cta { grid-template-columns: minmax(0, 1fr); } }
.news-teaser__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 28px; }
.news-teaser__head .section-head { margin-bottom: 0; }
.news-teaser .news-langnote { margin-bottom: 16px; }
.news-teaser .news-card__summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
