/* Keren Or magazine. Theme: emerald and white, gold as a light touch; Noto Serif Hebrew headings, Heebo text.
   Layout: logo masthead and topic bar; a dark "ray of light" lead story beside a check picker;
   figure-led article cards under gold lockup-style section heads; a light CTA band; licence strip; dark footer. */
:root {
  --paper: #FFFFFF;
  --sand: #EEF5F1;
  --card: #FFFFFF;
  --ink: #0F1F19;
  --ink-soft: #46554E;
  --line: #D6E4DD;
  --gold: #A67F2F;
  --gold-num: #896927;
  --gold-text: #0A5A42;
  --gold-rule: #B8944A;
  --tag: #684C15;
  --night: #0A2B21;
  --on-night: #F3F7F4;
  --on-night-soft: #BFD3C9;
  --glow-rgb: 214 186 120;
  --btn: #0A644A;
  --btn-hover: #08523C;
  --on-btn: #FFFFFF;
  --chat: #177E41;
  --shadow: 0 -6px 18px rgb(10 43 33 / .08);
  --shadow-card: 0 10px 30px rgb(10 43 33 / .08);
  --err: #B42318;

  --f-display: "Noto Serif Hebrew", "Frank Ruhl Libre", "Times New Roman", serif;
  --f-body: "Heebo", "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;

  --t-xs: .875rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem);
  --t-fig: clamp(2.3rem, 1.8rem + 1.6vw, 3.1rem);

  --r: 10px;
  --r-sm: 6px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1512;
    --sand: #11201B;
    --card: #12221D;
    --ink: #EAF2EE;
    --ink-soft: #A9BDB4;
    --line: #24392F;
    --gold: #D4B46A;
    --gold-num: #D4B46A;
    --gold-text: #6FD3AE;
    --gold-rule: #B8944A;
    --tag: #D4B46A;
    --night: #0E2620;
    --on-night: #F3F7F4;
    --on-night-soft: #BFD3C9;
    --glow-rgb: 214 186 120;
    --btn: #3DBE91;
    --btn-hover: #57CFA4;
    --on-btn: #06231A;
    --chat: #3CC774;
    --shadow: 0 -6px 18px rgb(0 0 0 / .45);
    --shadow-card: 0 10px 30px rgb(0 0 0 / .35);
    --err: #FF9C8F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1512;
  --sand: #11201B;
  --card: #12221D;
  --ink: #EAF2EE;
  --ink-soft: #A9BDB4;
  --line: #24392F;
  --gold: #D4B46A;
  --gold-num: #D4B46A;
  --gold-text: #6FD3AE;
  --gold-rule: #B8944A;
  --tag: #D4B46A;
  --night: #0E2620;
  --on-night: #F3F7F4;
  --on-night-soft: #BFD3C9;
  --glow-rgb: 214 186 120;
  --btn: #3DBE91;
  --btn-hover: #57CFA4;
  --on-btn: #06231A;
  --chat: #3CC774;
  --shadow: 0 -6px 18px rgb(0 0 0 / .45);
  --shadow-card: 0 10px 30px rgb(0 0 0 / .35);
  --err: #FF9C8F;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site { position: relative; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.22; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.lead :focus-visible, .footer :focus-visible { outline-color: var(--on-night); }
main:focus { outline: none; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--gold-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--btn);
  color: var(--on-btn);
  font: 700 var(--t-sm)/1.2 var(--f-body);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--gold-rule); }
.btn-ghost .i { color: var(--chat); }

/* a link that makes its whole card clickable */
.stretch { text-decoration: none; color: inherit; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- header ---------- */
.topbar { position: relative; z-index: 30; border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-soft); }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 7px;
}
.dateline { display: flex; flex-wrap: wrap; gap: 4px 10px; min-height: 1.6em; }
.dateline .heb { color: var(--gold-text); }
.dateline .heb:empty { display: none; }
.contact { display: flex; gap: 14px; }
.contact a { text-decoration: none; color: var(--ink-soft); }
.contact a:hover { color: var(--ink); }

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 56px; width: auto; }
.brand-name {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-text);
}
.brand-tag { display: block; margin-top: 7px; font-size: var(--t-xs); color: var(--ink-soft); letter-spacing: .02em; }

.nav { border-block: 1px solid var(--line); }
.nav ul {
  display: flex;
  gap: 0 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 759px) {
  /* fade the end of the topic row so it reads as scrollable */
  .nav ul {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px);
    mask-image: linear-gradient(to right, transparent, #000 36px);
    padding-inline-end: 28px;
  }
}
.nav a {
  display: block;
  padding-block: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
}
.nav a:hover { color: var(--gold-text); }

/* ---------- front: lead story + check picker ---------- */
.front .wrap { display: grid; gap: 20px; padding-block: 24px 40px; }
@media (min-width: 900px) {
  .front .wrap { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; padding-block: 32px 48px; }
}

.lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r);
  background: var(--night);
  color: var(--on-night);
}
/* the ray of light: a soft beam from the reading-start corner, echoing the brand name */
.lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 100% 0%, rgb(var(--glow-rgb) / .26), transparent 70%),
    conic-gradient(from 198deg at 100% 0%, transparent 0deg, rgb(var(--glow-rgb) / .30) 16deg, rgb(var(--glow-rgb) / .08) 27deg, transparent 38deg),
    conic-gradient(from 241deg at 100% 0%, transparent 0deg, rgb(var(--glow-rgb) / .14) 4deg, transparent 9deg);
  transform-origin: 100% 0;
  animation: ray 2.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ray {
  from { transform: rotate(-5deg); opacity: .55; }
  to { transform: rotate(0); opacity: 1; }
}
.lead .eyebrow { color: rgb(var(--glow-rgb)); }
.lead-title { margin-top: 12px; font-size: var(--t-2xl); font-weight: 900; max-width: 20ch; }
.lead p { margin-top: 14px; max-width: 56ch; color: var(--on-night-soft); }
.lead .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; }
.lead .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding-bottom: 3px;
  border-bottom: 1px solid rgb(var(--glow-rgb) / .6);
}
.lead .read { font-size: var(--t-xs); color: var(--on-night-soft); }
.lead:hover .more { border-bottom-color: rgb(var(--glow-rgb)); }

.picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.picker h2 { font-size: var(--t-xl); font-weight: 700; }
.picker .sub { font-size: var(--t-sm); color: var(--ink-soft); margin-top: -6px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  text-decoration: none;
  transition: border-color .2s ease;
}
.pick:hover { border-color: var(--gold-rule); }
.pick .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--gold-text);
}
.pick .txt { min-width: 0; }
.pick strong { display: block; font-size: var(--t-md); line-height: 1.3; }
.pick small { display: block; font-size: var(--t-xs); color: var(--ink-soft); }
.pick .go { margin-inline-start: auto; color: var(--gold-text); transition: transform .2s ease; }
.pick:hover .go { transform: translateX(-3px); }
.chat-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-soft); }
.chat-line .i { color: var(--chat); }
.chat-line a { font-weight: 700; color: var(--ink); }

/* ---------- sections and cards ---------- */
.sec { padding-block: 8px 40px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-head::before { content: ""; flex: none; width: 34px; height: 2px; background: var(--gold-rule); }
.sec-head::after { content: ""; order: 1; flex: 1; height: 2px; background: var(--gold-rule); opacity: .55; }
.sec-head h2 { font-size: var(--t-xl); font-weight: 700; }
.sec-head .all { order: 2; flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-sm); font-weight: 600; color: var(--gold-text); text-decoration: none; }
.sec-head .all:hover { text-decoration: underline; text-underline-offset: 4px; }

.cards { display: grid; gap: 26px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card h3 { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; }
.card:hover h3 a { text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 5px; }
.card p { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-soft); }
.card .eyebrow { margin-bottom: 6px; }
.read { display: block; margin-top: 10px; font-size: var(--t-xs); color: var(--ink-soft); }

/* figure panel: one real number from the article, with a small ray in the corner */
.fig {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: var(--sand);
}
.fig::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg at 100% 0%, transparent 0deg, rgb(var(--glow-rgb) / .28) 14deg, transparent 30deg);
  pointer-events: none;
}
.fig b {
  position: relative;
  flex: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--t-fig);
  line-height: 1;
  color: var(--gold-num);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: lining-nums;
}
.fig span { position: relative; font-size: var(--t-xs); line-height: 1.4; color: var(--ink-soft); max-width: 30ch; }
@media (min-width: 860px) {
  .card .fig { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; aspect-ratio: 2 / 1; }
}

/* press clip */
.clip { position: relative; display: grid; gap: 22px; }
.clip .fig { min-height: 120px; }
@media (min-width: 860px) {
  .clip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; align-items: center; }
  .clip .fig { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; min-height: 200px; }
}
.clip h3 { margin-top: 8px; font-size: var(--t-xl); font-weight: 700; }
.clip:hover h3 a { text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 5px; }
.clip .by { margin-top: 8px; font-size: var(--t-sm); font-weight: 600; }
.clip-body > p:not(.by) { margin-top: 10px; max-width: 60ch; color: var(--ink-soft); }
.clip .ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--t-sm); font-weight: 700; color: var(--gold-text); }

/* ---------- CTA band ---------- */
.cta { background: var(--sand); border-block: 1px solid var(--line); }
.cta .wrap { display: grid; gap: 22px; padding-block: 44px; }
@media (min-width: 860px) { .cta .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 48px; } }
.cta h2 { font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 900; }
.cta p { margin-top: 10px; max-width: 60ch; color: var(--ink-soft); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .actions .btn { flex: 1 1 200px; }
.cta small { display: block; margin-top: 12px; font-size: var(--t-xs); color: var(--ink-soft); }

/* ---------- about + licence ---------- */
.about .wrap { display: grid; gap: 26px; padding-block: 48px; }
@media (min-width: 860px) { .about .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.about h2 { font-size: var(--t-xl); font-weight: 700; }
.about p { margin-top: 12px; max-width: 62ch; color: var(--ink-soft); }
.about .about-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.about .about-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.license { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.license h3 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; color: var(--gold-text); }
.license dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; }
.license dt { font-size: var(--t-xs); color: var(--ink-soft); padding-top: 2px; }
.license dd { margin: 0; font-weight: 700; font-size: var(--t-sm); }
.license .num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.license a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: var(--t-sm); font-weight: 700; color: var(--gold-text); text-decoration: none; }
.license a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-night-soft); font-size: var(--t-sm); }
.footer .wrap { display: grid; gap: 28px; padding-block: 44px 28px; }
.f-top { display: grid; gap: 28px; }
@media (min-width: 700px) { .f-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .f-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.f-brand img { width: 210px; }
.f-brand p { margin-top: 12px; letter-spacing: .04em; color: var(--on-night-soft); }
.footer .f-h { margin-bottom: 10px; font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; color: var(--on-night); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-night-soft); text-decoration: none; }
.footer a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { padding-top: 20px; border-top: 1px solid rgb(var(--glow-rgb) / .2); font-size: var(--t-sm); line-height: 1.75; max-width: 120ch; }
.f-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-sm); }

/* ---------- phone action bar ---------- */
.mbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mbar .btn { flex: 1; }
@media (max-width: 759px) {
  /* keyboard focus is never hidden behind the fixed action bar (WCAG 2.2, 2.4.11) */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site { padding-bottom: 76px; }
  .hdr-cta { display: none; }
}
@media (min-width: 760px) { .mbar { display: none; } }

/* ---------- accessibility menu ---------- */
.a11y { position: relative; }
.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 700 var(--t-sm)/1 var(--f-body);
  cursor: pointer;
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--sand); }
.a11y-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 12px 32px rgb(0 0 0 / .18);
}
@media (max-width: 559px) {
  .a11y-panel {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
  }
}
.a11y-panel { max-height: calc(100vh - 24px); overflow-y: auto; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-head h2 { font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; }
.a11y-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.a11y-group p { font-weight: 600; margin-bottom: 6px; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.a11y-panel button[aria-pressed] {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 600 1rem/1.2 var(--f-body);
  text-align: start;
  cursor: pointer;
}
.a11y-sizes button[aria-pressed] { text-align: center; padding-inline: 4px; }
.a11y-sizes button[data-a11y-size="1"] { font-size: 1.12rem; }
.a11y-sizes button[data-a11y-size="2"] { font-size: 1.25rem; }
.a11y-panel button[aria-pressed]:hover { border-color: var(--ink); }
.a11y-panel button[data-paused="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-opt { display: flex; align-items: center; justify-content: space-between; }
.a11y-opt::after { content: "כבוי"; font-size: var(--t-xs); font-weight: 700; }
.a11y-opt[data-paused="true"]::after { content: "פועל"; }
.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.a11y-reset { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--ink); font: 700 1rem/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.a11y-foot a { font-weight: 700; color: var(--ink); }


/* ---------- landing pages: bigger text for an older audience ---------- */
.lp {
  --t-xs: .9375rem;
  --t-sm: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
}
.lp-hdr { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); }
.lp-hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand-sm { gap: 10px; }
.brand-sm img { height: 44px; }
.brand-sm .brand-name { font-size: 1.5rem; }
.brand-sm .brand-tag { margin-top: 5px; }
.lp-actions { display: flex; align-items: center; gap: 14px; }
.lp-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: var(--t-md); }
.lp-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 599px) {
  .lp-phone, .brand-sm .brand-tag { display: none; }
}

.lp-hero .wrap { display: grid; gap: 22px; padding-block: 22px 44px; }
@media (min-width: 920px) {
  .lp-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: start; padding-block: 48px 72px; }
  .lp-intro { position: sticky; top: 24px; }
}
.lp-intro h1 { margin-top: 10px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-weight: 900; }
.lp-intro > p:not(.lp-trust) { margin-top: 12px; max-width: 46ch; color: var(--ink-soft); }
.lp-trust { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.lp-trust .i { margin-top: 3px; color: var(--gold-text); }
.lp-trust-bottom { display: none; }
@media (max-width: 919px) {
  .lp-trust-top { display: none; }
  .lp-trust-bottom { display: flex; margin-top: 18px; }
  .lp-hero .wrap { padding-block: 18px 40px; }
}

/* quiz card */
.quiz {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.quiz-count { flex: none; font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft); }
.quiz-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.quiz-bar span { display: block; width: 0; height: 100%; background: var(--gold-rule); transition: width .3s ease; }
.quiz-q { margin-bottom: 18px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); font-weight: 700; }
.quiz-q:focus { outline: none; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 700 var(--t-md)/1.3 var(--f-body);
  text-align: start;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.quiz-opt::after { content: ""; flex: none; width: 24px; height: 24px; border: 2px solid var(--ink-soft); border-radius: 50%; }
.quiz-opt:hover { border-color: var(--gold-rule); }
.quiz-opt[data-paused="true"] { border-color: var(--ink); background: var(--sand); }
.quiz-opt[data-paused="true"]::after { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--sand); }
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 14px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 var(--t-sm)/1.2 var(--f-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.quiz-hint { margin: -8px 0 16px; font-size: var(--t-sm); color: var(--ink-soft); }
.quiz-calc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--on-night);
}
.quiz-calc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: conic-gradient(from 198deg at 100% 0%, transparent 0deg, rgb(var(--glow-rgb) / .26) 16deg, transparent 34deg);
}
.calc-title { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 900; line-height: 1.25; }
.calc-text { margin-top: 6px; font-size: var(--t-lg); }
.calc-note { margin-top: 12px; font-size: var(--t-sm); color: var(--on-night-soft); }
:root.a11y-contrast .quiz-calc::before { display: none; }
.quiz-msgs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.quiz-msgs li { padding: 14px 16px; border-radius: var(--r-sm); background: var(--sand); }

/* lead form */
.lead-form { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-title { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700; line-height: 1.25; }
.form-intro { margin-top: -8px; color: var(--ink-soft); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { padding: 0; font-weight: 700; font-size: var(--t-md); }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 2px solid var(--ink-soft);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.3 var(--f-body);
}
.field input[type="tel"] { text-align: right; }
.field input[aria-invalid="true"] { border-color: var(--err); border-width: 3px; }
.help { font-size: var(--t-sm); color: var(--ink-soft); }
.err { font-size: var(--t-sm); font-weight: 700; color: var(--err); }
.err::before { content: "שימו לב: "; }
.time-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.pill input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pill:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.check input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--ink); }
.check label { font-size: var(--t-md); }
.check .err { grid-column: 2; }
.privacy-note { font-size: var(--t-sm); color: var(--ink-soft); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.privacy-note a { color: var(--ink); font-weight: 700; }
.btn-big { width: 100%; min-height: 60px; font-size: 1.25rem; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.quiz-thanks { display: grid; gap: 14px; justify-items: start; }
.quiz-thanks .quiz-q { margin-bottom: 0; }
.thanks-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--btn); color: var(--on-btn); }
.thanks-mark .i { width: 30px; height: 30px; stroke-width: 2.4; }

/* how it works + FAQ */
.lp-how { background: var(--sand); border-block: 1px solid var(--line); }
.lp-how .wrap { padding-block: 44px; }
.lp-how h2, .lp-faq h2 { margin-bottom: 20px; font-size: var(--t-xl); font-weight: 700; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: how; }
@media (min-width: 860px) { .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.how-list li { counter-increment: how; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.how-list li::before {
  content: counter(how);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--on-btn);
  font: 700 1.3rem/1 var(--f-body);
}
.how-list strong { font-size: var(--t-lg); line-height: 1.3; }
.how-list span { color: var(--ink-soft); }
.lp-faq .wrap { max-width: 880px; padding-block: 44px 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding-block: 12px;
  font-size: var(--t-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.7rem; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 65ch; }

.lp-foot .wrap { gap: 16px; padding-block: 32px 24px; }
.lp-license { color: var(--on-night); }
.lp-license a { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- partner companies strip ---------- */
.partners { padding-block: 26px 30px; border-block: 1px solid var(--line); background: var(--card); }
.partners-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.partners h2 { font-family: var(--f-body); font-size: var(--t-md); font-weight: 700; color: var(--ink-soft); }
.marquee-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.marquee-toggle svg.i { width: 18px; height: 18px; }
.marquee-toggle:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--sand); }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  padding-inline-end: 14px;
  list-style: none;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(100%); } }
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 66px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 700 1.2rem/1 var(--f-body);
  white-space: nowrap;
}
.partner img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
/* logos sit on white in both themes, so dark lettering stays readable */
.partner img.tall { height: 58px; }
.partner:has(img) { background: #FFFFFF; border-color: var(--line); padding: 0 18px; }
/* when motion is off, the companies show as a still, wrapped list */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .marquee-track { flex: 1; flex-wrap: wrap; justify-content: center; padding-inline-end: 0; animation: none; }
  .marquee-track[aria-hidden="true"], .marquee-toggle { display: none; }
}
:root.a11y-still .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
:root.a11y-still .marquee-track { flex: 1; flex-wrap: wrap; justify-content: center; padding-inline-end: 0; animation: none; }
:root.a11y-still .marquee-track[aria-hidden="true"], :root.a11y-still .marquee-toggle { display: none; }

/* ---------- articles ---------- */
.art-wrap { max-width: 780px; padding-block: 28px 40px; }
.art-head { display: grid; gap: 10px; }
.art-head .eyebrow { text-decoration: none; }
.art-head .eyebrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.art-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); font-weight: 900; }
.art-dek { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.5; }
.art-meta, .art-origin { font-size: var(--t-sm); color: var(--ink-soft); }
.art-origin a { color: var(--gold-text); font-weight: 700; }
.art-fig { margin-block: 22px 8px; min-height: 96px; }
.art-body { font-size: 1.125rem; line-height: 1.8; }
.art-body > * + * { margin-top: 16px; }
.art-body h2 { margin-top: 34px; font-size: var(--t-xl); font-weight: 700; line-height: 1.3; }
.art-body ul, .art-body ol { padding-inline-start: 24px; display: grid; gap: 8px; }
.art-note { padding: 14px 18px; border-radius: var(--r-sm); background: var(--sand); font-size: var(--t-md); }
.check-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  margin-block: 28px;
  padding: 18px 20px;
  border: 2px solid var(--gold-rule);
  border-radius: var(--r);
  background: var(--card);
}
.check-box .btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .check-box { grid-template-columns: auto minmax(0, 1fr) auto; } .check-box .btn { grid-column: auto; } }
.check-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sand); color: var(--gold-text); }
.check-title { font-weight: 700; font-size: var(--t-md); line-height: 1.35; }
.check-sub { margin-top: 2px; font-size: var(--t-sm); color: var(--ink-soft); }
.art-body .check-box p { margin: 0; }
.art-sources { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.art-sources h2 { font-size: var(--t-lg); font-weight: 700; margin-bottom: 8px; }
.art-sources ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: var(--t-sm); }
.art-sources a { color: var(--gold-text); }
.art-sources .src-date { margin: 10px 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
.art-disclaimer { margin-top: 20px; font-size: var(--t-sm); color: var(--ink-soft); }
.listing .wrap { padding-block: 32px 56px; }
.list-head { margin-bottom: 26px; }
.list-head h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.6rem); font-weight: 900; }

/* ---------- product guide ---------- */
.g-group + .g-group { margin-top: 36px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.g-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: border-color .2s ease;
}
.g-card:hover { border-color: var(--gold-rule); }
.g-card h3 { font-size: var(--t-lg); font-weight: 700; }
.g-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 5px; }
.g-card p { color: var(--ink-soft); font-size: var(--t-sm); }
.list-head { border-bottom: 0; padding-bottom: 0; }
.g-ico { font-size: 1.5rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sand); color: var(--gold-text); }
.g-ico .i { width: 28px; height: 28px; stroke-width: 1.6; }
.g-ico-lg { width: 64px; height: 64px; font-size: 1.8rem; }
.g-ico-lg .i { width: 34px; height: 34px; }
.g-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--t-sm); color: var(--gold-text); }
.crumbs { margin-bottom: 14px; font-size: var(--t-sm); color: var(--ink-soft); }
.crumbs a { color: var(--gold-text); font-weight: 700; }
.gp-back a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--ink); }

/* ---------- text pages (accessibility statement) ---------- */
.doc .wrap { max-width: 820px; padding-block: 32px 56px; }
.doc-head { padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid var(--gold-rule); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.6rem); font-weight: 900; }
.doc-meta { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-soft); }
.doc section { padding-block: 18px; }
.doc section + section { border-top: 1px solid var(--line); }
.doc h2 { font-size: var(--t-xl); font-weight: 700; margin-bottom: 10px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.doc a { color: var(--gold-text); font-weight: 700; }
.keys, .contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 12px 0 0; align-items: baseline; }
.keys dt, .contact-card dt { font-weight: 700; white-space: nowrap; }
.keys dd, .contact-card dd { margin: 0; }
.contact-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 14px; }
kbd { display: inline-block; min-width: 2em; padding: 1px 7px; border: 1px solid var(--ink-soft); border-bottom-width: 2px; border-radius: 5px; background: var(--card); font: 600 var(--t-sm)/1.5 var(--f-body); text-align: center; direction: ltr; }
.todo { display: block; padding: 10px 14px; border: 2px dashed var(--gold-rule); border-radius: var(--r-sm); background: var(--sand); color: var(--ink); }

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

/* ---------- accessibility modes, set from the accessibility menu (kept last so they win) ---------- */

/* ---------- theme ---------- */
h1, h2, .lead-title, .cta h2, .lp-intro h1, .calc-title, .art-head h1, .list-head h1, .doc h1 { font-weight: 700; letter-spacing: -.005em; }
.fig b, .brand-name { font-weight: 800; }
h3, .form-title { font-family: var(--f-body); font-weight: 600; }
.brand-tag { font-weight: 500; color: var(--gold-text); letter-spacing: .03em; }


/* ---------- stats and service sections ---------- */
svg.i .g { stroke: var(--gold-rule); }
.ico-lg svg.i { width: 56px; height: 56px; stroke-width: 1.3; }
.stats { padding-block: clamp(36px, 6vw, 64px); }
.stats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; list-style: none; margin: 0; padding: 0; text-align: center; }
.stats-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stats-list .ico-lg { color: var(--ink); }
.stat-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.9rem + 1.8vw, 3.2rem); line-height: 1; color: var(--ink); }
.stat-label { font-size: var(--t-lg); color: var(--ink); }
.stat-note { max-width: 30ch; font-size: var(--t-sm); color: var(--ink-soft); }

.service { padding-block: clamp(36px, 6vw, 64px); background: var(--sand); border-block: 1px solid var(--line); }
.service h2 { font-size: var(--t-xl); text-align: center; }
.service-sub { max-width: 52ch; margin: 10px auto 0; text-align: center; color: var(--ink-soft); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; }
.ways li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: center; font-weight: 600; }
.ways .ico-lg svg.i { width: 46px; height: 46px; }
.office { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: center; }
.office h3 { font-size: var(--t-lg); }
.office address { margin-top: 6px; font-style: normal; font-size: var(--t-lg); }
.office-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.map-box { margin-top: 16px; }
.map-box iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: var(--r-sm); }
.map-note { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-soft); }

/* ---------- home: lead box sits from the top, more stories fill its foot ---------- */
.lead { justify-content: flex-start; }
.lead-more { position: relative; z-index: 2; margin-top: auto; padding-top: 22px; }
.lead-more-h { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; color: var(--on-night-soft); }
.lead-more ul { display: grid; gap: 0; list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid rgb(var(--glow-rgb) / .35); }
.lead-more li { border-bottom: 1px solid rgb(255 255 255 / .1); }
.lead-more a { display: block; padding-block: 12px; color: var(--on-night); text-decoration: none; font-weight: 600; line-height: 1.4; }
.lead-more a:hover { text-decoration: underline; text-decoration-color: rgb(var(--glow-rgb)); text-underline-offset: 4px; }
.lead-more .eyebrow { display: block; margin-bottom: 2px; font-size: var(--t-xs); color: rgb(var(--glow-rgb)); }
@media (min-width: 900px) { .lead-more ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ---------- home: topic tabs over the lead box ---------- */
.lead-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lead-wrap .lead { flex: 1; }
.lead-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lead-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .lead-tabs { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); padding-inline-end: 24px; } }
.lead-tabs button { flex: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: 600 var(--t-sm)/1.2 var(--f-body); cursor: pointer; }
.lead-tabs button:hover { border-color: var(--gold-rule); }
.lead-tabs button[aria-selected="true"] { background: var(--night); border-color: var(--night); color: var(--on-night); box-shadow: inset 0 -2px 0 rgb(var(--glow-rgb)); }
.lead[role="tabpanel"]:not([hidden]) { animation: tabin .35s ease both; }
@keyframes tabin { from { opacity: .4; } to { opacity: 1; } }

/* ---------- stats: compact band ---------- */
.stats { padding-block: clamp(18px, 3vw, 30px); }
.stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats-list li { gap: 4px; }
.ico-lg svg.i { width: 44px; height: 44px; }
.stat-num { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin-top: 4px; }
.stat-label { font-size: var(--t-md); line-height: 1.35; }
.stat-note { font-size: var(--t-xs); }
@media (max-width: 599px) {
  .stats-list { gap: 10px; }
  .ico-lg svg.i { width: 36px; height: 36px; }
  .stat-label { font-size: var(--t-sm); }
}

/* ---------- home: check picker on a soft mint ground ---------- */
.picker { background: var(--sand); border-top: 3px solid var(--gold-rule); }
.pick { background: var(--card); box-shadow: 0 1px 3px rgb(10 43 33 / .06); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.pick:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(10 43 33 / .10); }
.pick .ico { background: var(--btn); color: var(--on-btn); }
.pick .go { color: var(--tag); }
@media (prefers-reduced-motion: reduce) { .pick:hover { transform: none; } }

/* ---------- small-screen polish ---------- */
.office-actions .btn { flex: 1 1 140px; max-width: 220px; }
@media (max-width: 599px) {
  .brand-sm .brand-tag { display: none; }
  .office-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .office-actions .btn { max-width: none; }
  .office-actions [data-map-load] { grid-column: 1 / -1; }
}
.noscript-note { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sand); }

/* ---------- floating accessibility button: always in the corner, opens the same menu ---------- */
.a11y-fab {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--btn);
  color: var(--on-btn);
  box-shadow: 0 6px 18px rgb(0 0 0 / .22);
  cursor: pointer;
}
.a11y-fab svg.i { width: 28px; height: 28px; }
.a11y-fab:hover { background: var(--btn-hover); }
.a11y-panel.is-floating {
  position: fixed;
  top: auto;
  right: auto;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
}
@media (max-width: 759px) {
  .a11y-fab { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
  .a11y-panel.is-floating { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 170px); }
}
@media print { .a11y-fab { display: none; } }

/* ---------- header: centred classic masthead ---------- */
.masthead { background: var(--sand); }
.masthead .wrap { justify-content: center; gap: clamp(14px, 3vw, 28px); padding-block: 20px 16px; }
.mast-rule { flex: 1; max-width: 170px; height: 1px; background: linear-gradient(to left, var(--gold-rule), transparent); }
.mast-rule:last-child { background: linear-gradient(to right, var(--gold-rule), transparent); }
.masthead .brand { flex-direction: column; gap: 8px; text-align: center; }
.masthead .brand img { height: 70px; }
.masthead .brand-name { color: var(--gold-text); }
.brand-tag { color: var(--tag); }
.nav { background: var(--paper); }
@media (min-width: 900px) { .nav ul { justify-content: center; } }
@media (max-width: 599px) {
  .masthead .wrap { padding-block: 14px 12px; }
  .masthead .brand img { height: 52px; }
  .masthead .brand-name { font-size: 1.55rem; }
  .mast-rule { max-width: 44px; }
}

:root.a11y-contrast {
  --tag: #4A3508;
  --paper: #FFFFFF;
  --sand: #FFFFFF;
  --card: #FFFFFF;
  --ink: #000000;
  --ink-soft: #1A1A1A;
  --line: #000000;
  --gold: #4A3508;
  --gold-text: #4A3508;
  --gold-rule: #000000;
  --night: #000000;
  --on-night: #FFFFFF;
  --on-night-soft: #FFFFFF;
  --btn: #000000;
  --btn-hover: #333333;
  --on-btn: #FFFFFF;
  --chat: #0B6B33;
  --err: #A3110A;
  color-scheme: light;
}
:root.a11y-contrast .lead::before, :root.a11y-contrast .fig::before { display: none; }
:root.a11y-contrast .lead .eyebrow { color: #FFFFFF; }
:root.a11y-font { --f-display: Arial, "Heebo", sans-serif; --f-body: Arial, "Heebo", sans-serif; }
:root.a11y-font body { letter-spacing: .01em; word-spacing: .06em; }
:root.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  background: #FFF1A8 !important;
  color: #000000 !important;
}
:root.a11y-links a * { color: #000000 !important; }
:root.a11y-still *, :root.a11y-still *::before, :root.a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* travel insurance: slim strip on the home page, and its own page */
.travel-strip { padding-block: 4px 28px; }
.travel-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.travel-link:hover { border-color: var(--gold-rule); }
.travel-link > span:nth-child(2) { flex: 1; }
.travel-link .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint, rgb(11 107 79 / .08)); color: var(--chat); flex: none; }
.travel-buy { display: grid; gap: 12px; list-style: none; margin: 8px 0 28px; padding: 0; }
.travel-buy .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) { .travel-buy { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc .travel-buy .btn, .doc .travel-buy .btn:hover { color: var(--on-btn); text-decoration: none; }
.doc .travel-buy { padding: 0; margin-inline: 0; }
.travel-wish { margin-top: 18px; font-family: var(--f-display); font-size: var(--t-lg, 1.25rem); font-weight: 700; color: var(--chat); }

/* ---------- phones: easier for older visitors ---------- */
.nav-toggle { display: none; }
.lt-short { display: none; }
@media (max-width: 759px) {
  body { font-size: 1.125rem; }
  /* topic menu: one clear button, then a vertical list with big rows */
  .nav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--ink); font: 700 1.125rem/1 var(--f-body); cursor: pointer; }
  .nav-toggle .i { width: 26px; height: 26px; }
  .nav ul { display: none; -webkit-mask-image: none; mask-image: none; padding: 0 0 8px; white-space: normal; overflow: visible; }
  .nav ul.is-open { display: block; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding-block: 14px; font-size: 1.125rem; }
  /* topic tabs: all six visible, three per row */
  .lead-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-inline-end: 0; }
  .lead-tabs button { min-height: 48px; padding: 10px 6px; font-size: 1rem; }
  .lt-full { display: none; }
  .lt-short { display: inline; }
  /* accessibility button sits inside the bottom bar, so it never covers the text */
  .a11y-fab { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; box-shadow: none; z-index: 25; }
  .mbar { padding-left: calc(max(16px, env(safe-area-inset-left, 0px)) + 58px); }
  .mbar .btn { min-width: 0; }
  .a11y-panel.is-floating { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 110px); }
}

/* no grey/blue flash when tapping on phones; keyboard focus keeps its own outline */
a, button, summary, label, [role="tab"] { -webkit-tap-highlight-color: transparent; }

/* the article's big figure fills the space in the lead card on wide screens */
.lead-fig { display: none; }
@media (min-width: 760px) {
  .lead-fig { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin: auto 0; padding-block: 18px; }
  .lead-fig b { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 800; line-height: 1; color: rgb(var(--glow-rgb)); }
  .lead-fig span { max-width: 34ch; font-size: var(--t-sm); line-height: 1.45; color: var(--on-night-soft); }
  .lead-fig + .lead-more { margin-top: 0; }
}
/* round base */
:root, :root[data-theme] { --r: 32px; --r-sm: 22px; }
.btn { border-radius: 999px; }
.picker { border: 0; border-radius: 32px; background: var(--sand); }
.pick { border: 0; border-radius: 999px; padding: 12px 12px 12px 22px; background: var(--card); }
.pick .ico { width: 46px; height: 46px; }
.lead { border-radius: 36px; }
.partner { border-radius: 999px; }
.fig, .card .fig, .clip .fig { border-radius: 28px; }
.travel-link { border-radius: 999px; border: 0; background: var(--sand); }
.lead-tabs button { padding-inline: 20px; }

/* E: a colour per topic */
.pick-health .ico { background: #FCE3DF; color: #B42318; }
.pick-life .ico { background: #FDE2EC; color: #A3154A; }
.pick-pension .ico { background: #FFF0C7; color: #8A5A00; }
.pick-mortgage .ico { background: #DCEBFD; color: #1652A8; }
.pick-kids .ico { background: #EDE3FD; color: #5B2DB0; }
.pick-finance .ico { background: #D6F3E4; color: #08704C; }
.picker { background: linear-gradient(160deg, #E9F5EF, #F8FBF9); }
.masthead { background: linear-gradient(180deg, #E6F4EC, #F5FAF7); }
.travel-link { background: linear-gradient(90deg, #DCEBFD, #EEF5FE); }
.travel-link .ico { background: #fff; color: #1652A8; }
@media (max-width: 759px) { .lead-tabs button { padding-inline: 6px; } }

/* colour per topic: dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pick-health .ico { background: rgb(240 120 100 / .2); color: #F6A493; }
  :root:not([data-theme="light"]) .pick-life .ico { background: rgb(235 100 150 / .2); color: #F4A1C1; }
  :root:not([data-theme="light"]) .pick-pension .ico { background: rgb(240 190 60 / .2); color: #F2CF6B; }
  :root:not([data-theme="light"]) .pick-mortgage .ico { background: rgb(90 150 240 / .2); color: #9DC2F7; }
  :root:not([data-theme="light"]) .pick-kids .ico { background: rgb(160 120 240 / .2); color: #C7B0F6; }
  :root:not([data-theme="light"]) .pick-finance .ico { background: rgb(60 200 130 / .2); color: #86E0B1; }
  :root:not([data-theme="light"]) .picker, :root:not([data-theme="light"]) .masthead { background: var(--sand); }
  :root:not([data-theme="light"]) .travel-link { background: var(--card); }
  :root:not([data-theme="light"]) .travel-link .ico { background: rgb(90 150 240 / .2); color: #9DC2F7; }
}
:root[data-theme="dark"] .pick-health .ico { background: rgb(240 120 100 / .2); color: #F6A493; }
  :root[data-theme="dark"] .pick-life .ico { background: rgb(235 100 150 / .2); color: #F4A1C1; }
  :root[data-theme="dark"] .pick-pension .ico { background: rgb(240 190 60 / .2); color: #F2CF6B; }
  :root[data-theme="dark"] .pick-mortgage .ico { background: rgb(90 150 240 / .2); color: #9DC2F7; }
  :root[data-theme="dark"] .pick-kids .ico { background: rgb(160 120 240 / .2); color: #C7B0F6; }
  :root[data-theme="dark"] .pick-finance .ico { background: rgb(60 200 130 / .2); color: #86E0B1; }
  :root[data-theme="dark"] .picker, :root[data-theme="dark"] .masthead { background: var(--sand); }
  :root[data-theme="dark"] .travel-link { background: var(--card); }
  :root[data-theme="dark"] .travel-link .ico { background: rgb(90 150 240 / .2); color: #9DC2F7; }
/* high-contrast mode: plain black on white */
:root.a11y-contrast .pick .ico, :root.a11y-contrast .travel-link .ico { background: #fff; color: #000; border: 1px solid #000; }
:root.a11y-contrast .picker, :root.a11y-contrast .masthead, :root.a11y-contrast .travel-link { background: #fff; }

/* no top bar: the accessibility button sits in the masthead corner */
.masthead .wrap { position: relative; }
.mast-a11y { position: absolute; top: 12px; left: max(16px, env(safe-area-inset-left, 0px)); z-index: 30; }
.mast-a11y .a11y-panel:not(.is-floating) { left: 0; right: auto; }
@media (max-width: 759px) { .mast-a11y { top: 10px; } .masthead .wrap { padding-top: 52px; } }

/* ---------- language switch: a link to the same page in the other language ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 700 var(--t-sm)/1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink); background: var(--sand); }
.mast-lang { position: absolute; top: 12px; right: max(16px, env(safe-area-inset-right, 0px)); z-index: 30; }

/* ---------- Russian pages: left to right, and fonts that have Cyrillic letters ---------- */
:root:lang(ru):not(.a11y-font) { --f-display: "Rubik", "Roboto", "Segoe UI", Arial, sans-serif; --f-body: "Roboto", "Segoe UI", Arial, sans-serif; }
[dir="ltr"] .field input[type="tel"] { text-align: left; }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ru-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .ru-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lang-note { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--sand); font-size: var(--t-sm); }
[dir="ltr"] .pick { padding: 12px 22px 12px 12px; }
[dir="ltr"] .pick:hover .go { transform: translateX(3px); }
[dir="ltr"] .brand-name { white-space: nowrap; }
/* Russian labels are longer: on phones the accessibility button in the header shows its icon only (the name stays for screen readers) */
@media (max-width: 559px) {
  [dir="ltr"] .lp-hdr .a11y-btn { padding-inline: 9px; }
  [dir="ltr"] .lp-hdr .a11y-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 559px) {
  [dir="ltr"] .mbar .btn { min-width: 0; padding-inline: 10px; gap: 6px; }
  [dir="ltr"] .contact-card { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  [dir="ltr"] .contact-card dd { margin-bottom: 10px; }
  [dir="ltr"] .contact-card dd:last-child { margin-bottom: 0; }
}
@media (max-width: 359px) { [dir="ltr"] .mbar .btn svg { display: none; } }
/* long Russian words in the narrow stat columns: hyphenate instead of pushing the page sideways */
[dir="ltr"] .stats-list li { min-width: 0; }
[dir="ltr"] .stat-label, [dir="ltr"] .stat-note { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
/* language switch in the landing-page header: short on phones (the full name stays for screen readers) */
.ls-short { display: none; }
@media (max-width: 599px) {
  .lp-hdr .lang-switch { padding-inline: 10px; }
  .lp-hdr .ls-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .lp-hdr .ls-short { display: inline; }
  .lp-hdr .lp-actions { gap: 8px; }
}
/* the smallest phones: the landing-page header keeps the brand and the accessibility button; the language link is in the footer */
@media (max-width: 359px) { .lp-hdr .lang-switch { display: none; } }
@media (max-width: 919px) { [dir="ltr"] .lp-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
[dir="ltr"] .pick strong, [dir="ltr"] .quiz-opt { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
[dir="ltr"] .pick-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 559px) {
  [dir="ltr"] .keys { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  [dir="ltr"] .keys dd { margin-bottom: 10px; }
}
/* words the stylesheet adds itself, in Russian */
:lang(ru) .a11y-opt::after { content: "выкл."; }
:lang(ru) .a11y-opt[data-paused="true"]::after { content: "вкл."; }
:lang(ru) .err::before { content: "Внимание: "; }

/* ---------- home: slimmer, quieter check picker ---------- */
.front .picker { padding: 18px 18px 16px; gap: 10px; border-radius: 24px; border-top: 0; }
.front .picker h2 { font-size: var(--t-lg, 1.25rem); }
.front .picker .sub { font-size: var(--t-xs); }
.front .pick-list { gap: 6px; }
.front .pick { padding: 6px 8px 6px 14px; gap: 10px; box-shadow: none; border: 1px solid var(--line); }
.front .pick:hover { box-shadow: none; transform: none; border-color: var(--gold-rule); }
.front .pick .ico { width: 34px; height: 34px; }
.front .pick .ico svg { width: 18px; height: 18px; }
.front .pick strong { font-size: var(--t-sm); font-weight: 600; }
.front .pick .go svg { width: 16px; height: 16px; }
.front .chat-line { font-size: var(--t-xs); }

.front-side { display: flex; flex-direction: column; min-width: 0; }
.front-side .picker { flex: 1; }
.front .picker .pick-list { flex: 1; align-content: space-evenly; }

/* ---------- home: talks for employees ---------- */
.talks-grid { display: grid; gap: 24px; }
.talks-band h3 { font-size: var(--t-xl); font-weight: 700; line-height: 1.25; margin-top: 8px; }
.talks-copy > p { margin-top: 12px; font-size: var(--t-md); color: var(--ink-soft); }
.talks-list { margin: 16px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: var(--t-md); }
.talks-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.talks-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.talks-photos figure { margin: 0; }
.talks-photos .tp-room { grid-column: 1 / -1; }
.talks-photos img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.talks-photos figcaption { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 6px; }
@media (min-width: 860px) {
  .talks-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
}

/* ---------- home: wide rotating lead, checks below ---------- */
.front .wrap { grid-template-columns: minmax(0, 1fr) !important; }
.lead-wrap { position: relative; }
@media (min-width: 900px) {
  .front .lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 56px; align-content: center; min-height: 380px; }
  .front .lead > * { grid-column: 1; }
  .front .lead .lead-fig { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: start; }
  .front .lead .lead-more { grid-column: 2; grid-row: 4 / span 2; margin-top: 0; align-self: end; }
}
.front-side .picker { flex: none; }
.front .picker .pick-list { align-content: start; }
@media (min-width: 640px) { .front .pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .front .picker { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .front .picker h2, .front .picker .sub, .front .picker .chat-line { grid-column: 1; }
  .front .picker .pick-list { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .front .lead-wrap > .lead-tabs { grid-column: 1; }
  .front .lead-wrap >   .front .lead-wrap > .lead { grid-column: 1 / -1; min-height: 340px; }
}
@media (min-width: 900px) {
  .front .lead-wrap > .lead { min-height: 0; align-content: center; row-gap: 0; padding-block: 40px; }
  .front .lead .lead-fig { grid-row: 1 / span 3; align-self: end; padding-block: 0 18px; border-bottom: 1px solid rgb(var(--glow-rgb) / .35); }
  .front .lead .lead-fig b { font-size: clamp(3.5rem, 6vw, 5rem); }
  .front .lead .lead-more { grid-row: 4 / span 3; align-self: start; padding-top: 14px; }
  .front .lead .lead-more ul { border-top: 0; margin-top: 6px; }
}

/* the left side of the wide lead is one block, centred; every topic has the same height */
@media (min-width: 900px) {
  .front .lead .lead-side { grid-column: 2; grid-row: 1 / span 6; align-self: center; display: flex; flex-direction: column; }
  .front .lead .lead-side .lead-fig { grid-row: auto; align-self: auto; }
  .front .lead .lead-side .lead-more { grid-row: auto; align-self: auto; }
  .front .lead .lead-title { font-size: clamp(2rem, 3.2vw, 2.75rem); }
}
@media (min-width: 900px) {
  .front .wrap { padding-block: 18px 32px; gap: 16px; }
  .front .lead-wrap > .lead { padding-block: 26px; }
  .front .lead .lead-title { font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
  .front .lead .lead-fig b { font-size: clamp(3rem, 5vw, 4.2rem); }
  .front .lead .lead-more a { padding-block: 8px; }
}

/* ---------- phones: lead, then the talks and the TheMarker piece, then the compact checks ---------- */
@media (min-width: 900px) { .front:not(.front-checks) .wrap { padding-bottom: 0; } .front-checks .wrap { padding-top: 16px; } }
@media (max-width: 899px) {
  main#content { display: flex; flex-direction: column; }
  main#content > * { order: 6; }
  main#content > .front:not(.front-checks) { order: 1; }
  main#content > .talks-band { order: 2; }
  main#content > [aria-labelledby="s-press"] { order: 3; }
  main#content > .front-checks { order: 4; }
  .front:not(.front-checks) .wrap { padding-bottom: 8px; }
  .front-checks .wrap { padding-block: 8px 28px; }
  .front-checks .picker { padding: 16px 14px 14px; gap: 8px; }
  .front-checks .picker .sub { display: none; }
  .front-checks .pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .front-checks .pick { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; min-height: 92px; justify-content: center; }
  .front-checks .pick .go { display: none; }
  .front-checks .pick strong { font-size: .98rem; line-height: 1.25; }
  .front-checks .pick .ico { width: 36px; height: 36px; }
  .front-checks .chat-line { justify-content: center; }
}

#checks { scroll-margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#picker-h:focus { outline: none; }

/* touch targets: footer links and the skip link get a 44px tall tap area without changing their look */
.f-bottom { row-gap: 0; }
.f-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.lp-foot .f-bottom a { min-height: 44px; }
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.art-head a.eyebrow { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.chat-line a { display: inline-flex; align-items: center; min-height: 44px; }
.f-bottom { align-items: center; }

/* very narrow phones: the two bar buttons shrink instead of sliding under the accessibility button */
@media (max-width: 359px) {
  .mbar { gap: 8px; }
  .mbar .btn { padding-inline: 10px; gap: 6px; }
}


/* v2 polish: same structure and content, refined surfaces, depth and type (Rubik headings, as in the ads) */
:root { --f-display: "Rubik", "Heebo", "Arial Hebrew", Arial, sans-serif; --r: 22px; --r-sm: 14px;
  --sh1: 0 1px 2px rgb(10 43 33 / .05), 0 10px 28px rgb(10 43 33 / .07); --sh2: 0 2px 6px rgb(10 43 33 / .06), 0 24px 56px rgb(10 43 33 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sh1: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px rgb(0 0 0 / .3); --sh2: 0 24px 56px rgb(0 0 0 / .45); } }
h1, h2, h3, .lead-title, .brand-name { font-family: var(--f-display); letter-spacing: -.01em; }
h2 { font-weight: 800; } h3 { font-weight: 700; }

/* masthead: warm light, finer rules, bigger mark */
.masthead { background: radial-gradient(70% 140% at 50% 0%, rgb(232 200 115 / .22), transparent 70%), linear-gradient(180deg, var(--sand), var(--paper)); }
.masthead .brand img { height: 66px; width: auto; filter: drop-shadow(0 6px 14px rgb(166 127 47 / .25)); }
.brand-name { font-weight: 800; font-size: 1.9rem; }
.mast-rule { background: linear-gradient(90deg, transparent, var(--gold-rule), transparent); height: 1px; }
.nav { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgb(184 148 74 / .2); }
.nav a { border-radius: 999px; padding: .45em .95em; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sand); color: var(--btn); }

/* topic tabs as a segmented control */
.lead-tabs { background: var(--sand); padding: 6px; border-radius: 999px; box-shadow: inset 0 1px 2px rgb(10 43 33 / .06); gap: 4px; }
.lead-tabs button { border: 0 !important; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.lead-tabs button[aria-selected="true"] { background: var(--card); color: var(--btn); box-shadow: var(--sh1); }

/* the lead story: deeper emerald, gold light from the corner, glass side panel */
.lead { border-radius: 32px; overflow: hidden; box-shadow: var(--sh2); background-color: var(--night);
  background-image: radial-gradient(90% 120% at 0% 0%, rgb(214 186 120 / .26), transparent 55%), radial-gradient(80% 100% at 100% 100%, #0F5A43, transparent 60%), linear-gradient(160deg, #0C3A2C, #071F17); }
:root.a11y-contrast .lead, :root.a11y-contrast .license { background-image: none; }
.lead-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.lead-fig b { color: #EBC977; text-shadow: 0 2px 18px rgb(214 186 120 / .35); font-family: var(--f-display); font-weight: 800; }
:root.a11y-contrast .lead-fig b { color: #fff; text-shadow: none; }
.lead-side { background: rgb(255 255 255 / .05); border-radius: 22px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); padding: 22px; }
.lead .more { border-bottom: 2px solid rgb(232 200 115 / .7); }

/* the check picker: cards with icon squircles that lift */
.picker { border-radius: 28px; background: linear-gradient(180deg, var(--card), var(--sand)); box-shadow: var(--sh1); }
.pick { border-radius: 18px !important; background: var(--card); box-shadow: 0 1px 2px rgb(10 43 33 / .05), 0 6px 16px rgb(10 43 33 / .06); border: 0 !important; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.pick .ico { border-radius: 14px !important; background: linear-gradient(145deg, #0C6B4F, #0A4B37) !important; color: #F3D27A !important; box-shadow: 0 6px 14px rgb(10 90 66 / .25), inset 0 1px 0 rgb(255 255 255 / .15); }
.pick .go { transition: transform .25s; } .pick:hover .go { transform: translateX(-4px); }

/* partners strip: floating white tiles */
.partner { border-radius: 18px; box-shadow: var(--sh1); border: 0 !important; }

/* travel bar and section heads */
.travel-link { border-radius: 999px; box-shadow: var(--sh1); }
.sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }

/* lectures: rounded photos with depth */
.talks-photos figure img { border-radius: 22px; box-shadow: var(--sh2); }
.talks-list li::marker { color: var(--gold); }
.btn { border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:not(.btn-ghost) { box-shadow: 0 10px 22px rgb(10 90 66 / .25); }
.btn:hover { transform: translateY(-2px); }

/* press clip and cards */
.clip, .card { border-radius: 26px; box-shadow: var(--sh1); border: 0 !important; transition: transform .25s, box-shadow .25s; }
.clip:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.clip .fig b, .fig b { font-family: var(--f-display); font-weight: 800; }

/* about + licence: licence becomes a dark emerald card */
.license { border-radius: 26px; background-color: var(--night); background-image: linear-gradient(160deg, #0F4B39, #082219); color: var(--on-night); box-shadow: var(--sh2); border: 0; }
.license h3 { color: #F3D27A; } .license dt { color: var(--on-night-soft); } .license dd { color: var(--on-night); } .license a { color: var(--on-night); }
:root.a11y-contrast .license h3 { color: #fff; }
.footer { border-radius: 40px 40px 0 0; }
@media (prefers-reduced-motion: reduce) { .pick, .clip, .card, .btn { transition: none; } .pick:hover, .clip:hover, .card:hover, .btn:hover { transform: none; } }

/* keep title links at a 24px+ target with the new face (WCAG 2.5.8) */
h2 a, h3 a, .lead-more li a, .card a.stretch, .clip a.stretch { padding-block: .14em; }
@media (max-width: 500px) { .card h3 a.stretch, .g-card h3 a { display: inline-block; min-height: 44px; } }
