/* Sitel — the site's stylesheet. White, ink black, cherry red and a light grey.
   Every colour pair used for text is checked for WCAG 2.2 AA in the light, dark and high-contrast modes. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Sitel Sans";
  src: url("../fonts/opensans-he-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* A metric-matched local fallback, so the swap to the web font does not move the layout. */
@font-face {
  font-family: "Sitel Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 94.9%;
  ascent-override: 112.6%;
  descent-override: 30.9%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */
/* The palette: white, ink black, cherry red for the few accents (the fold of the S, section names, prominent links) and
   a light grey for dividers. Every other value below is a step of these four, chosen for WCAG 2.2 AA in each mode. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F4F5F7;
  --paper-3: #ECEEF1;
  --card: #FFFFFF;
  --ink: #17191D;
  --ink-2: #50565F;
  --line: #DADDE1;
  --line-strong: #767C86;
  --accent: #BF1743;
  --accent-ink: #FFFFFF;
  --accent-text: #BF1743;
  --accent-soft: #FBEAEE;
  --band: #17191D;
  --band-ink: #FFFFFF;
  --band-ink-2: #C5CAD1;
  --band-accent: #F06C8D;
  --band-line: rgba(255, 255, 255, .16);
  --link: var(--ink);
  --link-line: var(--accent);
  --focus: #17191D;
  --shade: 23, 25, 29;
  --logo-ink: #17191D;
  --logo-fold: #BF1743;
  --logo-fold-2: #8C1131;
  --radius-xl: 2.25rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: .625rem;
  --shadow-1: 0 1px 2px rgba(23, 25, 29, .06), 0 6px 18px -8px rgba(23, 25, 29, .18);
  --shadow-2: 0 2px 4px rgba(23, 25, 29, .06), 0 22px 44px -18px rgba(23, 25, 29, .32);
  --wrap: 76rem;
  --gutter: clamp(1rem, 3.2vw, 2rem);
  --font: "Sitel Sans", "Sitel Fallback", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --consent-h: 0px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #17191D;
  --paper-2: #202328;
  --paper-3: #2A2E34;
  --card: #1C1F23;
  --ink: #F2F3F5;
  --ink-2: #B9BEC6;
  --line: #33373E;
  --line-strong: #868C96;
  --accent-text: #F06C8D;
  --accent-soft: #2B1C22;
  --band: #22252A;
  --band-ink: #F2F3F5;
  --link-line: #F06C8D;
  --focus: #F2F3F5;
  --shade: 0, 0, 0;
  --logo-ink: #F2F3F5;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17191D;
    --paper-2: #202328;
    --paper-3: #2A2E34;
    --card: #1C1F23;
    --ink: #F2F3F5;
    --ink-2: #B9BEC6;
    --line: #33373E;
    --line-strong: #868C96;
    --accent-text: #F06C8D;
    --accent-soft: #2B1C22;
    --band: #22252A;
    --band-ink: #F2F3F5;
    --link-line: #F06C8D;
    --focus: #F2F3F5;
    --shade: 0, 0, 0;
    --logo-ink: #F2F3F5;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
/* High contrast (accessibility panel). */
:root.a11y-contrast {
  --paper: #FFFFFF; --paper-2: #FFFFFF; --paper-3: #FFFFFF; --card: #FFFFFF;
  --ink: #000000; --ink-2: #000000; --line: #000000; --line-strong: #000000;
  --accent: #A0103A; --accent-ink: #FFFFFF; --accent-text: #A0103A; --accent-soft: #FFFFFF;
  --band: #000000; --band-ink: #FFFFFF; --band-ink-2: #FFFFFF; --band-accent: #FF9DB3; --band-line: #FFFFFF;
  --link-line: #000000; --focus: #000000; --logo-ink: #000000; --logo-fold: #A0103A; --logo-fold-2: #A0103A;
}
:root.a11y-contrast[data-theme="dark"] {
  --paper: #000000; --paper-2: #000000; --paper-3: #000000; --card: #000000;
  --ink: #FFFFFF; --ink-2: #FFFFFF; --line: #FFFFFF; --line-strong: #FFFFFF;
  --accent: #FF9DB3; --accent-ink: #000000; --accent-text: #FF9DB3; --accent-soft: #000000;
  --band: #000000; --band-ink: #FFFFFF; --band-ink-2: #FFFFFF; --band-accent: #FF9DB3; --band-line: #FFFFFF;
  --link-line: #FFFFFF; --focus: #FFFFFF; --logo-ink: #FFFFFF; --logo-fold: #FF9DB3; --logo-fold-2: #FF9DB3;
}
:root[data-text="1"] { font-size: 112.5%; }
:root[data-text="2"] { font-size: 125%; }
:root[data-text="3"] { font-size: 150%; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html:not(.a11y-motion) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 780; line-height: 1.2; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1rem; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; background: var(--paper-2); padding: .05em .35em; border-radius: .35em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .35rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ------------------------------------------------------------------ layout */
.page-shell, .home, .article-shell { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 1.5rem 4rem; }
.home { padding-top: 1.25rem; }

/* ------------------------------------------------------------------ masthead */
.masthead { position: sticky; top: .5rem; z-index: 60; width: min(100% - 1.25rem, calc(var(--wrap) + 2rem)); margin: .5rem auto 0; }
.masthead__bar {
  display: flex; align-items: center; gap: .75rem; min-height: 3.75rem; padding: .375rem .5rem .375rem .375rem; padding-inline-start: 1.25rem;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow-1);
}
.masthead__logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); border-radius: 999px; padding: .25rem; }
.masthead__logo-svg { height: 1.9rem; width: auto; }
.masthead__nav { flex: 1; min-width: 0; }
.masthead__list { display: flex; justify-content: center; gap: .125rem; list-style: none; margin: 0; padding: 0; }
.masthead__link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .85rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9375rem; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.masthead__link:hover { background: var(--paper-2); }
.masthead__link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-short { display: none; }
.masthead__actions { display: flex; align-items: center; gap: .25rem; flex: none; margin-inline-start: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  text-decoration: none; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn:active { transform: scale(.94); }
.icon--sun { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }
.masthead__menu-btn { display: none; }
.masthead__chips { display: none; }
.masthead__chips ul { display: flex; gap: .5rem; overflow-x: auto; list-style: none; margin: .5rem 0 0; padding: .25rem .25rem .5rem; scrollbar-width: thin; }
.masthead__chips a { display: inline-block; white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
.masthead__chips a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 1199px) and (min-width: 900px) {
  .nav-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-short { display: inline; }
}
@media (max-width: 899px) {
  .masthead__nav { display: none; }
  .masthead__menu-btn { display: inline-grid; }
  .no-js .masthead__chips { display: block; }
  .masthead__bar { padding-inline-start: .875rem; min-height: 3.5rem; }
  .masthead__logo-svg { height: 1.7rem; }
}

/* ------------------------------------------------------------------ sheets (dialogs) */
dialog.sheet {
  border: 0; padding: 1.25rem; color: var(--ink); background: var(--paper);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2); width: min(100% - 2rem, 36rem); max-height: min(100dvh - 2rem, 48rem);
}
dialog.sheet::backdrop { background: rgba(var(--shade), .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet__title { font-size: 1.25rem; font-weight: 780; margin: 0; }
.sheet__hint { color: var(--ink-2); font-size: .9375rem; margin: 1rem 0 0; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
dialog.sheet--menu { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(100%, 26rem); border-radius: 0; border-start-start-radius: var(--radius-lg); border-end-start-radius: var(--radius-lg); overflow-y: auto; }
.sheet__sections { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .25rem; }
.sheet__sections a { display: grid; gap: .1rem; padding: .85rem 1rem; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.sheet__sections a span { font-size: 1.15rem; font-weight: 750; }
.sheet__sections a small { color: var(--ink-2); font-size: .875rem; line-height: 1.45; }
.sheet__sections a:hover, .sheet__sections a[aria-current="page"] { background: var(--paper-2); }
.sheet__more { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.sheet__more a { color: var(--ink); font-weight: 650; }
dialog.sheet--search { margin-top: 6rem; }
dialog.sheet--a11y { width: min(100% - 2rem, 24rem); margin: auto 1rem 1rem auto; margin-inline-start: 1rem; }
[dir="rtl"] dialog.sheet--a11y { margin: auto auto 1rem 1rem; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-motion) dialog.sheet[open] { animation: sheet-in .35s var(--ease); }
  html:not(.a11y-motion) dialog.sheet--menu[open] { animation: sheet-side .38s var(--ease); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-side { from { transform: translateX(100%); } to { transform: none; } }

/* ------------------------------------------------------------------ forms */
.search-form { display: flex; align-items: center; gap: .5rem; padding: .375rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line-strong); }
.search-form:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .9rem; font-size: 1.0625rem; }
.search-form__input:focus { outline: none; }
.search-form__btn { display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 700; }
.search-form__btn--text { padding-inline: 1.1rem; }
.search-form--large .search-form__input { font-size: 1.25rem; padding-block: .8rem; }
.search-form--page { max-width: 40rem; margin-top: 1.25rem; }
.form { display: grid; gap: 1.1rem; max-width: 44rem; }
.form--narrow { max-width: 24rem; }
.field { display: grid; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.field__label { font-weight: 720; font-size: .975rem; }
.field__hint { color: var(--ink-2); font-size: .875rem; margin: 0; }
.field__input { width: 100%; padding: .7rem .9rem; border-radius: .75rem; border: 1.5px solid var(--line-strong); background: var(--card); min-height: 2.9rem; }
.field__input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.field__input--area { min-height: 9rem; resize: vertical; }
.field__input--compact { margin-bottom: .4rem; }
.field__input[aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.field__error { color: #9F1D16; font-weight: 650; margin: 0; font-size: .9375rem; }
[data-theme="dark"] .field__error { color: #FFB4AB; }
.field--check { display: flex; align-items: center; gap: .6rem; }
.field--check input { width: 1.3rem; height: 1.3rem; accent-color: var(--ink); }
.form__trap { position: absolute; inset-inline-start: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form__note { color: var(--ink-2); font-size: .9375rem; }

/* ------------------------------------------------------------------ buttons, pills, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .65rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 720; text-decoration: none; line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px rgba(191, 23, 67, .7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--outline { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn--link { background: transparent; color: var(--link); text-decoration: underline; padding-inline: .5rem; }
.pill { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .15rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 720; line-height: 1.3; text-decoration: none; }
.pill--section { background: var(--paper-2); color: var(--accent-text); position: relative; z-index: 2; }
a.pill--section:hover { background: var(--accent); color: var(--accent-ink); }
/* The content type: partner content is labelled solid ink wherever it appears; "כתבת מערכת" is a quiet outline (article page only). */
.pill--partner { background: var(--ink); color: var(--paper); position: relative; z-index: 2; }
.pill--editorial { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill--demo { background: transparent; color: var(--ink-2); border: 1px dashed var(--line-strong); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 650; }
.chip:hover { border-color: var(--ink); }
.round-arrow {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #FFFFFF; color: #17191D; flex: none;
  box-shadow: 0 0 0 1px rgba(23, 25, 29, .08), 0 6px 16px -8px rgba(23, 25, 29, .55); transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.round-arrow .icon { width: 1.3rem; height: 1.3rem; }
.round-arrow--lg { width: 3.4rem; height: 3.4rem; }

/* ------------------------------------------------------------------ cards */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; isolation: isolate; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-3); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__body { display: grid; gap: .45rem; padding-top: .9rem; }
.card__kicker { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; min-height: 1.75rem; }
.card__kicker:empty { display: none; }
.card__title { font-size: 1.25rem; line-height: 1.3; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; }
.card__dek { color: var(--ink-2); margin: 0; font-size: .975rem; line-height: 1.6; }
.card__meta { color: var(--ink-2); font-size: .8125rem; margin: 0; }
.card__arrow {
  position: absolute; z-index: 3; pointer-events: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: #FFFFFF; color: #17191D; box-shadow: 0 0 0 1px rgba(23, 25, 29, .08), 0 6px 16px -8px rgba(23, 25, 29, .6); transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.card__arrow .icon { width: 1.25rem; height: 1.25rem; }
.card:hover .card__img, .card:focus-within .card__img { transform: scale(1.05); }
.card:hover .card__arrow, .card:focus-within .card__arrow, .cover__lead:hover .round-arrow, .cover__lead:focus-within .round-arrow,
.guide__inner:hover .round-arrow, .guide__inner:focus-within .round-arrow { transform: rotate(-45deg); background: var(--accent); color: var(--accent-ink); }
.card:hover .card__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

.card--stack .card__media { aspect-ratio: 3 / 2; }
.card--stack .card__arrow { top: .9rem; inset-inline-end: .9rem; }
.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__title { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem); }
.card--lead .card__arrow { top: 1.1rem; inset-inline-end: 1.1rem; width: 3.2rem; height: 3.2rem; }

.card--overlay, .card--overlay-lead { border-radius: var(--radius-lg); overflow: hidden; background: #17191D; min-height: 18rem; justify-content: flex-end; }
.card--overlay .card__media, .card--overlay-lead .card__media { position: absolute; inset: 0; border-radius: 0; }
.card__shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(15, 16, 19, .93) 0%, rgba(15, 16, 19, .66) 38%, rgba(15, 16, 19, .12) 72%, rgba(15, 16, 19, 0) 100%); }
.card--overlay .card__body, .card--overlay-lead .card__body { position: relative; z-index: 2; padding: 1.25rem; padding-inline-end: 4.5rem; pointer-events: none; }
.card--overlay .card__kicker, .card--overlay-lead .card__kicker { pointer-events: auto; }
.card--overlay .card__title, .card--overlay-lead .card__title { color: #FFFFFF; font-size: 1.3rem; }
.card--overlay .card__link, .card--overlay-lead .card__link { color: #FFFFFF; pointer-events: auto; }
.card--overlay .card__meta, .card--overlay-lead .card__meta, .card--overlay .card__dek, .card--overlay-lead .card__dek { color: #E6E8EB; }
.card--overlay .pill--section, .card--overlay-lead .pill--section { background: rgba(255, 255, 255, .95); color: #BF1743; }
.card--overlay a.pill--section:hover, .card--overlay-lead a.pill--section:hover { background: #BF1743; color: #FFFFFF; }
.card--overlay .pill--partner, .card--overlay-lead .pill--partner { background: #FFFFFF; color: #17191D; }
:root.a11y-contrast .card--overlay .pill--section, :root.a11y-contrast .card--overlay-lead .pill--section { background: #FFFFFF; color: #A0103A; }
.card--overlay .card__arrow, .card--overlay-lead .card__arrow { bottom: 1.1rem; inset-inline-end: 1.1rem; }
.card--overlay.card--noimage, .card--overlay-lead.card--noimage { background: var(--band); }
.card--overlay-lead { min-height: 26rem; }
.card--overlay-lead .card__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }

.card--row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.card--row .card__media { aspect-ratio: 1; border-radius: var(--radius-md); }
.card--row .card__body { padding: 0; }
.card--row .card__title { font-size: 1.125rem; }
.card--row .card__link::after { border-radius: var(--radius-md); }
.card--row.card--noimage { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card--row { grid-template-columns: 13.75rem 1fr; gap: 1.5rem; } .card--row .card__media { aspect-ratio: 3 / 2; } .card--row .card__title { font-size: 1.3rem; } }

.card--number { display: grid; grid-template-columns: 2.6rem 1fr; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.card--number .card__body { display: contents; }
.card__number { grid-row: span 4; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent-text); }
.card--number .card__kicker, .card--number .card__title, .card--number .card__meta { grid-column: 2; }
.card--number .card__title { font-size: 1.125rem; }

/* ------------------------------------------------------------------ section heads and the colour line */
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .25rem 1.5rem; margin-bottom: 1.5rem; }
.section-title { position: relative; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem); padding-inline-start: 1rem; }
.section-title::before { content: ""; position: absolute; inset-inline-start: 0; top: .15em; bottom: .15em; width: .3rem; border-radius: 999px; background: var(--accent-text); transform-origin: top; }
.section-head__desc { grid-column: 1; color: var(--ink-2); margin: 0; }
.section-head__more { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--accent-text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.section-head__more:hover { border-color: var(--accent-text); }
@media (max-width: 639px) { .section-head { grid-template-columns: 1fr; } .section-head__more { grid-column: 1; grid-row: auto; justify-self: start; } }

/* ------------------------------------------------------------------ home: cover */
.cover { display: grid; gap: 1.25rem; margin-bottom: 4rem; }
.cover__lead {
  position: relative; display: grid; gap: 1.5rem; padding: clamp(.75rem, 2vw, 1.5rem); border-radius: var(--radius-xl); background: var(--paper-2);
  grid-template-columns: 1fr;
}
.cover__text { position: relative; display: grid; align-content: center; gap: .85rem; padding: 1rem clamp(.5rem, 2vw, 1.75rem) 1.5rem; }
.cover__label { margin: 0; font-size: .875rem; font-weight: 800; color: var(--accent-text); letter-spacing: .02em; }
.cover__title { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.14; font-weight: 800; }
.cover__link { color: var(--ink); text-decoration: none; }
.cover__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-xl); }
.cover__lead:has(.cover__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.cover__link:focus-visible { outline: none; }
.cover__dek { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); margin: 0; line-height: 1.65; }
.cover__meta { color: var(--ink-2); font-size: .875rem; margin: 0; }
.cover__text .round-arrow { position: relative; margin-top: .5rem; }
.cover__media { overflow: hidden; border-radius: calc(var(--radius-xl) - .5rem); aspect-ratio: 16 / 10; background: var(--paper-3); order: -1; }
.cover__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cover__lead:hover .cover__img { transform: scale(1.035); }
.cover__secondary { display: grid; gap: 1.25rem; }
.cover__secondary .card--overlay { min-height: 17rem; }
@media (min-width: 768px) { .cover__secondary--2 { grid-template-columns: 1fr 1fr; } .cover__secondary .card--overlay { min-height: 20rem; } }
@media (min-width: 1024px) {
  .cover__lead { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .cover__media { order: 0; aspect-ratio: auto; min-height: 30rem; }
}

/* ------------------------------------------------------------------ home: picks, guide, shelves, latest */
.picks, .shelf, .latest, .related { margin-bottom: 4.5rem; }
.picks__grid { display: grid; gap: 1.5rem; }
.picks__cards { display: grid; gap: 1.5rem; }
.picks__rows { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .picks__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .picks__grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; } .picks__grid--cards { grid-template-columns: 1fr; } }

.guide { --focus: var(--band-ink); width: 100vw; margin-inline: calc(50% - 50vw); margin-bottom: 4.5rem; background: var(--band); color: var(--band-ink); padding-block: clamp(2.5rem, 6vw, 5rem); }
.guide__inner { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: grid; gap: 2rem; align-items: center; }
.guide__media { overflow: hidden; border-radius: var(--radius-xl); aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .08); }
.guide__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.guide__inner:hover .guide__img { transform: scale(1.035); }
.guide__text { display: grid; gap: 1rem; }
.guide__label { justify-self: start; margin: 0; padding: .3rem .9rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .875rem; }
.guide__kicker { margin: 0; }
.guide__kicker .pill--partner { background: var(--band-ink); color: var(--band); }
.guide__title { color: var(--band-ink); font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3rem); line-height: 1.16; }
.guide__link { color: var(--band-ink); text-decoration: none; }
.guide__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-xl); }
.guide__link:focus-visible { outline: none; }
.guide__inner:has(.guide__link:focus-visible) { outline: 3px solid var(--band-ink); outline-offset: 6px; border-radius: var(--radius-xl); }
.guide__dek { margin: 0; font-size: 1.125rem; line-height: 1.7; color: var(--band-ink-2); }
.guide__cta { display: inline-flex; align-items: center; gap: .75rem; margin: .5rem 0 0; font-weight: 750; }
@media (min-width: 1024px) { .guide__inner { grid-template-columns: 6fr 5fr; gap: 3.5rem; } }

.shelf__feature { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .shelf__feature { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  /* three: the lead over two rows, two articles beside it; four: the lead, two small ones and one wide one under them */
  .shelf__feature--3 { grid-template-columns: 3fr 2fr; }
  .shelf__feature--3 > :first-child, .shelf__feature--4 > :first-child { grid-row: span 2; }
  .shelf__feature--3 > :not(:first-child) .card__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .shelf__feature--4 { grid-template-columns: 2fr 1fr 1fr; }
  .shelf__feature--4 > :nth-child(4) { grid-column: 2 / span 2; }
  .shelf__feature--4 > :nth-child(4) .card__media { aspect-ratio: 21 / 9; }
}
.shelf__list { display: grid; column-gap: 2.5rem; }
@media (min-width: 1024px) { .shelf__list { grid-template-columns: 1fr 1fr; } .shelf__list--search { grid-template-columns: 1fr; max-width: 52rem; } }
.shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 78%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin-inline: -.25rem; scrollbar-width: thin; }
.shelf__row > * { scroll-snap-align: start; }
.shelf__row .card--overlay { min-height: 22rem; }
@media (min-width: 1024px) {
  .shelf__row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .shelf__row--3 { grid-template-columns: repeat(3, 1fr); } .shelf__row--2 { grid-template-columns: repeat(2, 1fr); }
  .shelf__list--1 { grid-template-columns: 1fr; max-width: 52rem; }
}

.latest__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest__item { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .25rem 1.25rem; align-items: baseline; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.latest__time { color: var(--ink-2); font-size: .875rem; }
.latest__link { color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.latest__link:hover { text-decoration: underline; }
.latest__tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.latest__section { color: var(--accent-text); font-size: .8125rem; font-weight: 650; }
.latest__tags .pill { min-height: 1.6rem; padding: .1rem .65rem; }
@media (max-width: 639px) { .latest__item { grid-template-columns: 1fr; } }
.home__archive { text-align: center; margin: 0 0 1rem; }
.empty-issue { padding: clamp(2rem, 6vw, 4rem); border-radius: var(--radius-xl); background: var(--paper-2); text-align: center; margin-bottom: 4rem; }
.empty-issue__label { color: var(--accent-text); font-weight: 800; }
.empty-issue__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 1rem; }
.empty-issue__sections { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.empty-issue__sections a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; }

/* ------------------------------------------------------------------ home: the weather and the calendar
   One strip under the editor's picks, on the picks' grid: two thirds for the weather, one third for the calendar, a
   hairline between them. Ink and paper; cherry only for the light in the drawing and today's date. */
.strip { --wx-paper: var(--paper); position: relative; display: grid; gap: 1.5rem; margin-bottom: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.strip__label { display: flex; align-items: center; min-height: 3rem; margin: 0; font-size: .875rem; font-weight: 800; letter-spacing: .02em; line-height: 1.4; color: var(--ink-2); }

.wx { display: grid; grid-template-rows: auto 1fr; gap: 1rem; min-width: 0; }
.wx__panels { display: grid; }
.wx__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.wx__regions { display: inline-flex; gap: .2rem; margin: 0; padding: .2rem; border: 0; border-radius: 999px; background: var(--paper-2); }
/* each region: a native radio button over its chip, the size of the chip (the click target and the keyboard stop) */
.wx__region { position: relative; display: inline-flex; }
.wx__radio { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wx__chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .2rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: var(--ink-2); cursor: pointer; user-select: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.wx__region:hover .wx__chip { color: var(--ink); }
.wx__radio:checked + .wx__chip, .wx__region:hover .wx__radio:checked + .wx__chip { background: var(--ink); color: var(--paper); }
.wx__radio:focus-visible + .wx__chip { outline: 3px solid var(--focus); outline-offset: 2px; }
:root.a11y-contrast .wx__regions { outline: 1px solid var(--line); }

/* The panel of the chosen region: by script (.is-active), or by CSS alone where :has() is supported. */
.wx__panel { display: none; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; grid-template-areas: "now art" "days days" "meta meta"; gap: 1.25rem 2rem; align-items: start; }
.wx__panel.is-active,
.wx:not(.is-ready):has(.wx__region:nth-of-type(1) .wx__radio:checked) .wx__panel:nth-child(1),
.wx:not(.is-ready):has(.wx__region:nth-of-type(2) .wx__radio:checked) .wx__panel:nth-child(2),
.wx:not(.is-ready):has(.wx__region:nth-of-type(3) .wx__radio:checked) .wx__panel:nth-child(3),
.wx:not(.is-ready):has(.wx__region:nth-of-type(4) .wx__radio:checked) .wx__panel:nth-child(4) { display: grid; }
@supports not selector(:has(a)) { .no-js .wx__panel { display: grid; margin-bottom: 1.5rem; } }
.wx__now { grid-area: now; display: grid; gap: .3rem; align-content: start; min-width: 0; padding-top: .35rem; }
.wx__city { margin: 0; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); font-weight: 780; line-height: 1.2; }
.wx__reading { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem 1rem; }
.wx__temp { font-size: clamp(3.75rem, 2.4rem + 4vw, 5.75rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.wx__unit { font-size: .28em; font-weight: 700; letter-spacing: 0; vertical-align: 1.55em; margin-inline-start: .08em; }
.wx__desc { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.wx__when { margin: 0; color: var(--ink-2); font-size: .875rem; }
.wx__note { margin: .35rem 0 0; color: var(--ink-2); }
.wx__art { grid-area: art; width: clamp(10.5rem, 1.5rem + 28vw, 27rem); color: var(--ink); }
.wx-art { display: block; width: 100%; height: auto; overflow: visible; }
.wx__days { grid-area: days; list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.wx__day { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .25rem .75rem; min-width: 0; }
.wx__dayname { font-weight: 750; white-space: nowrap; }
.wx__dayicon { display: block; width: 2.25rem; height: 2.25rem; color: var(--ink); }
.wx-icon { display: block; width: 100%; height: 100%; }
.wx__range { display: inline-flex; gap: .65rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx__hi { font-weight: 750; }
.wx__lo { color: var(--ink-2); }
.wx__meta { grid-area: meta; margin: 0; color: var(--ink-2); font-size: .8125rem; line-height: 1.6; }
.wx__meta a { color: inherit; }
.wx__meta > span { white-space: nowrap; }
.wx-accent-fill { fill: var(--accent-text); }
.wx-accent-stroke { stroke: var(--accent-text); }
.wx-cloud, .wx-cloud-fill, .wx-land { fill: var(--wx-paper); }
.wx-cut { stroke: var(--wx-paper); }

.cal { position: relative; display: grid; align-content: start; gap: 1rem; min-width: 0; }
.cal__head { position: relative; display: grid; gap: .3rem; }
.cal__date { margin: 0; }
.cal__date time { display: flex; align-items: center; gap: .85rem; }
.cal__num { font-size: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cal__words { display: grid; line-height: 1.3; }
.cal__weekday { font-size: 1.25rem; font-weight: 780; }
.cal__civil { color: var(--ink-2); }
.cal__hebrew { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.cal__toggle { display: none; }
.cal__month { display: grid; gap: .5rem; }
.cal__nav { display: flex; align-items: center; gap: .25rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.cal__title { margin: 0; min-width: 8.75rem; display: grid; text-align: center; line-height: 1.3; }
.cal__title-civil { font-weight: 780; }
.cal__title-hebrew { color: var(--ink-2); font-size: .8125rem; }
.cal__step { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 999px; border: 1.5px solid var(--line); background: none; color: var(--ink); }
.cal__step:hover { border-color: var(--ink); }
.cal__back { margin-inline-start: auto; min-height: 2.5rem; padding: .2rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: none; font-weight: 700; font-size: .9375rem; }
.cal__back:hover { border-color: var(--ink); }
.cal__back[aria-disabled="true"] { border-color: transparent; color: var(--ink-2); cursor: default; }
.cal__sheet { min-height: 17rem; }
.cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal__grid th { padding: .2rem 0 .45rem; color: var(--ink-2); font-size: .8125rem; font-weight: 700; text-align: center; }
.cal__grid td { padding: .1rem 0; height: 2.45rem; text-align: center; }
.cal__d { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; font-size: .9375rem; }
.cal__grid .is-today .cal__d { background: var(--accent); color: var(--accent-ink); font-weight: 800; }

@media (min-width: 700px) {
  /* the reading of the hour and the next two days in one column, the drawing beside them */
  .wx__panel { grid-template-columns: minmax(15rem, 1fr) auto; grid-template-areas: "now art" "days art" "meta meta"; }
  .wx__art { align-self: end; width: clamp(16rem, 2rem + 31vw, 29rem); }
  .wx__days { grid-template-columns: 1fr; gap: 0; align-self: end; padding-top: 0; }
  .wx__day { grid-template-columns: 6.5rem 2.25rem 1fr; padding-block: .6rem; border-bottom: 1px solid var(--line); }
  .wx__day:last-child { border-bottom: 0; }
}
@media (min-width: 1024px) {
  /* the grid of the picks above: two thirds and one third, the same gap */
  .strip { grid-template-columns: 2fr 1fr; gap: 2.5rem; padding-top: 2rem; }
  .cal::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -1.25rem; border-inline-start: 1px solid var(--line); }
  /* Beside the calendar the forecast has height to spare: two thirds of it between the reading of the hour and the next
     two days, the last third under the source line (not all of it above the two days). */
  .wx__panel:has(> .wx__days) { grid-template-rows: auto minmax(1.25rem, 2fr) auto auto minmax(0, 1fr); grid-template-areas: "now art" ". art" "days art" "meta meta" ". ."; row-gap: 0; }
  .wx__panel:has(> .wx__days) > .wx__meta { margin-top: 1.25rem; }
}
@media (max-width: 1023px) {
  /* the forecast first; under it a row with today's date that opens the month in place */
  .cal { gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .cal__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cal__head { grid-template-columns: auto 1fr auto; align-items: center; column-gap: .85rem; row-gap: 0; }
  .cal__date, .cal__date time { display: contents; }
  .cal__num { grid-row: 1 / span 2; font-size: 2.75rem; }
  .cal__words { display: flex; flex-wrap: wrap; column-gap: .4rem; align-self: end; }
  .cal__weekday { font-size: 1.0625rem; }
  .cal__weekday::after { content: ","; }
  .cal__civil { color: var(--ink); font-weight: 650; }
  .cal__hebrew { grid-column: 2; align-self: start; font-size: .9375rem; color: var(--ink-2); font-weight: 650; }
  .js .cal__toggle { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: .25rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: none; font-weight: 700; font-size: .9375rem; white-space: nowrap; }
  .js .cal__toggle::after { content: ""; position: absolute; inset: -.5rem 0; }
  .js .cal__toggle .icon { width: 1.1rem; height: 1.1rem; transition: transform .25s var(--ease); }
  .js .cal__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .js .cal__toggle:hover { border-color: var(--ink); }
  .js .cal:not(.is-open) .cal__month { display: none; }
  .wx__days { gap: .75rem 1.25rem; }
}
@media (max-width: 559px) {
  .wx__panel { column-gap: 1rem; }
  .wx__day { grid-template-columns: auto 1fr; grid-template-areas: "name name" "icon range"; row-gap: .1rem; }
  .wx__dayname { grid-area: name; }
  .wx__dayicon { grid-area: icon; width: 2rem; height: 2rem; }
  .wx__range { grid-area: range; }
  .js .cal__toggle { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: .6rem; }
  .cal__head { grid-template-columns: auto 1fr; }
}

/* ------------------------------------------------------------------ lists, sections, pagination, breadcrumbs */
.list-head { margin: 1rem 0 2rem; }
.list-head__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.list-head__page { font-size: .5em; color: var(--ink-2); font-weight: 650; }
.list-head__intro { color: var(--ink-2); font-size: 1.125rem; margin: .75rem 0 0; max-width: 44rem; }
.section-hero { margin: 1rem 0 2.5rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-xl); background: var(--paper-2); position: relative; overflow: hidden; }
.section-hero::after { content: ""; position: absolute; inset-inline-end: -3rem; top: -3rem; width: 12rem; height: 12rem; border-radius: 2.5rem; background: var(--accent); opacity: .08; transform: rotate(18deg); }
.section-hero__label { margin: 0 0 .5rem; font-weight: 800; color: var(--accent-text); font-size: .9rem; }
.section-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.section-hero__intro { margin: 1rem 0 0; font-size: 1.125rem; max-width: 46rem; color: var(--ink); }
.section-hero__count { margin: .75rem 0 0; color: var(--ink-2); font-size: .9rem; }
.grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid--lead > :first-child { grid-column: span 2; grid-row: span 2; } }
.grid--three { margin-top: 1.5rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 3rem; }
.pager__pages { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.pager__num, .pager__link { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: .25rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager__num[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__link { display: inline-flex; gap: .4rem; }
.pager__gap { align-self: center; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .875rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-inline: .5rem; color: var(--line-strong); } /* the separator is not read aloud */
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 650; }
.search-count { font-weight: 700; color: var(--ink-2); }
.empty { padding: 2rem; border-radius: var(--radius-lg); background: var(--paper-2); }
.author-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin: 1rem 0 2.5rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-xl); background: var(--paper-2); }
.author-hero__mark { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 1.5rem; background: var(--card); }
.author-hero__symbol { width: 3.25rem; height: auto; }

/* ------------------------------------------------------------------ article */
.preview-ribbon { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink); border: 1.5px solid var(--accent-text); font-weight: 750; text-align: center; }
.article__head { max-width: 50rem; margin: 1rem auto 2rem; }
.article .crumbs { max-width: 50rem; margin-inline: auto; }
.article__kicker { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.article__title { font-size: clamp(1.85rem, 1.15rem + 2.7vw, 3.15rem); line-height: 1.15; font-weight: 800; }
.article__dek { margin: 1.1rem 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.6; color: var(--ink-2); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; margin-top: 1.5rem; padding-block: 1rem; border-block: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.article__byline a { color: var(--ink); font-weight: 750; }
.article__updated { color: var(--ink); font-weight: 650; }
.article__time { display: inline-flex; align-items: center; gap: .35rem; }
.article__time .icon { width: 1rem; height: 1rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .875rem; }
.share__btn:hover { border-color: var(--ink); }
.share__btn .icon { width: 1.15rem; height: 1.15rem; }
.article__cover { max-width: 75rem; margin: 0 auto 2.5rem; }
.article__cover-img { width: 100%; height: auto; border-radius: var(--radius-xl); background: var(--paper-3); }
.article__caption { max-width: 50rem; margin: .75rem auto 0; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.credit { color: var(--ink-2); font-weight: 650; }
.article__layout { max-width: 44rem; margin-inline: auto; }
.disclosure { margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--accent-soft); border-inline-start: .35rem solid var(--accent-text); color: var(--ink); }
.disclosure a { color: var(--ink); text-decoration-color: var(--accent-text); font-weight: 650; }
.disclosure p { margin: 0; }
.toc { margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--paper-2); }
.toc__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-weight: 800; }
.toc__list { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: .3rem; }
.toc__sub { list-style: none; margin: .3rem 0 .1rem; padding-inline-start: .9rem; display: grid; gap: .25rem; font-size: .95rem; border-inline-start: 2px solid var(--line); }
.toc__list a { color: var(--ink); }

.article-body { font-size: 1.125rem; line-height: 1.85; }
.article-body > :first-child { margin-top: 0; }
.article-body h1, .article-body h2 { position: relative; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.7rem); margin: 2.75rem 0 1rem; padding-inline-start: 1rem; scroll-margin-top: 6.5rem; }
.article-body h1::before, .article-body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; bottom: .2em; width: .28rem; border-radius: 999px; background: var(--line-strong); }
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; scroll-margin-top: 6.5rem; }
.article-body h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.article-body p { margin: 0 0 1.35rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding-inline-start: 1.5rem; }
.article-body li { margin-bottom: .55rem; padding-inline-start: .25rem; }
.article-body ul > li::marker { color: var(--ink-2); font-size: 1.15em; }
.article-body ol > li::marker { color: var(--ink); font-weight: 800; }
.article-body strong { font-weight: 750; }
.article-body blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-inline-start: .3rem solid var(--ink); border-radius: var(--radius-md); background: var(--paper-2); font-size: 1.2rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.article-body img { border-radius: var(--radius-md); height: auto; }
.article-body figcaption { margin-top: .6rem; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.article-body a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: .09em; }
.article-body a:hover { color: var(--accent-text); text-decoration-thickness: 2px; }
.table-scroll { margin: 1.75rem 0; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card); }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-body table, .prose-page table { width: 100%; border-collapse: collapse; font-size: .975rem; line-height: 1.55; min-width: 32rem; }
.article-body caption { caption-side: top; padding: .9rem 1rem .25rem; text-align: start; font-weight: 750; }
.article-body th, .article-body td, .prose-page th, .prose-page td { padding: .7rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body thead th, .prose-page thead th { background: var(--paper-2); font-weight: 780; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.review { margin: 3rem 0 0; padding: 1.5rem; border-radius: var(--radius-lg); border: 1.5px solid var(--line); }
.review__title { font-size: 1.15rem; margin-bottom: .75rem; }
.review__sources { margin: .5rem 0 0; padding-inline-start: 1.25rem; font-size: .95rem; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin: 3rem 0 0; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--paper-2); }
.author-box__mark { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 1rem; background: var(--card); }
.author-box__symbol { width: 2.2rem; height: auto; }
.author-box__name { margin: 0; font-weight: 780; }
.author-box__name a { color: var(--ink); }
.author-box__bio { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; }
.related { margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ the site's own pages, notices, editor */
.prose-page { max-width: 46rem; margin: 0 auto; }
.prose-page__head { margin: 1rem 0 2rem; }
.prose-page__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.prose-page__lead { margin: 1rem 0 0; font-size: 1.2rem; color: var(--ink-2); }
.prose-page__updated, .prose-page__aside { color: var(--ink-2); font-size: .9rem; margin-top: 2rem; }
.todo { display: inline-block; padding: 0 .5rem; border-radius: .4rem; background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--paper-2); border-inline-start: .35rem solid var(--line-strong); }
.notice p:last-child { margin-bottom: 0; }
.notice--ok { border-color: var(--ink); }
.notice--error { border-color: #B3261E; }
.notice--demo { margin-top: 2rem; font-size: .95rem; color: var(--ink-2); border-color: var(--line-strong); }
.editor__panel { margin-bottom: 3rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.editor__facts { display: grid; gap: .35rem; padding-inline-start: 1.25rem; }
.editor__inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0; }
.editor__inline p { margin: 0; }
.editor__items { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.editor__items li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.editor__muted { color: var(--ink-2); font-size: .875rem; }
.editor__logout { margin-top: 1rem; }
.focus-picker { position: relative; max-width: 45rem; cursor: crosshair; border-radius: var(--radius-md); overflow: hidden; }
.focus-picker__img { width: 100%; height: auto; }
.focus-picker__dot { position: absolute; left: 50%; top: 50%; width: 1.6rem; height: 1.6rem; margin: -.8rem; border-radius: 999px; border: 3px solid #fff; background: var(--accent); box-shadow: 0 0 0 2px #17191D; pointer-events: none; }

/* ------------------------------------------------------------------ footer */
.footer { --logo-ink: var(--band-ink); --focus: var(--band-ink); background: var(--band); color: var(--band-ink); margin-top: 2rem; border-start-start-radius: var(--radius-xl); border-start-end-radius: var(--radius-xl); }
:root.a11y-contrast .footer { background: #000; }
.footer a, .footer__linkbtn { color: var(--band-ink); text-decoration-color: var(--band-accent); }
.footer__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 3.5rem 2rem; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer__logo-svg { height: 2.2rem; width: auto; }
.footer__tagline { margin: 1rem 0 .25rem; font-weight: 750; font-size: 1.15rem; }
.footer__about { color: var(--band-ink-2); margin: 0; max-width: 26rem; }
.footer__heading { color: var(--band-ink); font-size: 1rem; margin-bottom: .75rem; }
.footer__col ul, .footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__col a, .footer__linkbtn { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; border: 0; background: none; padding: 0; font-size: 1rem; }
.footer__col a:hover, .footer__linkbtn:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: var(--band-ink); }
.footer__base { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 1.25rem 2rem; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; color: var(--band-ink-2); font-size: .9rem; }
.footer__base p { margin: 0; }
.footer__env { color: var(--band-accent); font-weight: 700; }

/* ------------------------------------------------------------------ cookie banner and accessibility button */
.consent { position: fixed; z-index: 90; inset-inline: .75rem; bottom: .75rem; display: flex; justify-content: center; pointer-events: none; }
.consent__inner {
  pointer-events: auto; width: min(100%, 62rem); display: grid; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem;
  --focus: var(--band-ink);
  border-radius: var(--radius-lg); background: var(--band); color: var(--band-ink); box-shadow: var(--shadow-2); outline: 1px solid var(--band-line);
}
:root.a11y-contrast .consent__inner { background: #000; outline: 2px solid #fff; }
.consent__title { display: flex; align-items: center; gap: .5rem; color: var(--band-ink); font-size: 1.05rem; margin-bottom: .35rem; }
.consent__text p { margin: 0; color: var(--band-ink-2); font-size: .95rem; line-height: 1.6; }
.consent__text a { color: var(--band-ink); text-decoration-color: var(--band-accent); }
.consent .btn--primary { background: var(--band-ink); color: var(--band); }
.consent .btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent .btn--ghost { color: var(--band-ink); border-color: rgba(255, 255, 255, .6); }
.consent .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.consent .btn--link { color: var(--band-ink); text-decoration-color: var(--band-accent); }
.consent :focus-visible { outline-color: var(--band-ink); }
@media (min-width: 900px) { .consent__inner { grid-template-columns: 1fr auto; } }
@media (max-width: 479px) { .consent__inner { padding: 1rem; } .consent__actions .btn { flex: 1 1 auto; padding-inline: .9rem; } }
.consent-cat { padding: 1rem 0; border-top: 1px solid var(--line); }
.consent-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.consent-cat__title { font-size: 1.05rem; }
.consent-cat__state { font-size: .875rem; font-weight: 700; color: var(--accent-text); }
.consent-cat p { margin: .5rem 0; color: var(--ink-2); font-size: .95rem; }
.consent-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.consent-table th, .consent-table td { padding: .4rem .5rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.consent-table code { white-space: nowrap; font-size: .78rem; direction: ltr; unicode-bidi: isolate; }

.a11y-fab {
  position: fixed; z-index: 80; inset-inline-end: 1rem; bottom: calc(1rem + var(--consent-h));
  display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; min-width: 3rem; justify-content: center; padding: .5rem .85rem;
  border-radius: 999px; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); font-weight: 750; box-shadow: var(--shadow-2);
  transition: bottom .3s var(--ease), transform .2s var(--ease);
}
.a11y-fab:hover { background: var(--accent); color: var(--accent-ink); }
.a11y-fab:hover { transform: translateY(-2px); }
.a11y-fab .icon { width: 1.4rem; height: 1.4rem; }
@media (max-width: 479px) { .a11y-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .a11y-fab { padding: .5rem; } }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 1rem; }
.a11y-row__label { font-weight: 720; }
.a11y-size { display: inline-flex; align-items: center; gap: .5rem; }
.a11y-size__btn { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); font-size: 1.3rem; font-weight: 800; }
.a11y-size__value { min-width: 3.5rem; text-align: center; font-weight: 750; }
.a11y-switches { display: grid; gap: .25rem; }
.a11y-switch { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 3rem; padding: .5rem .75rem; border: 0; border-radius: var(--radius-md); background: transparent; text-align: start; font-weight: 650; }
.a11y-switch:hover { background: var(--paper-2); }
.a11y-switch__track { position: relative; flex: none; width: 2.9rem; height: 1.7rem; border-radius: 999px; background: var(--line-strong); transition: background-color .2s var(--ease); }
.a11y-switch__track::after { content: ""; position: absolute; top: .2rem; inset-inline-start: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 999px; background: #fff; transition: transform .2s var(--ease); }
.a11y-switch[aria-checked="true"] .a11y-switch__track { background: var(--accent); }
.a11y-switch[aria-checked="true"] .a11y-switch__track::after { transform: translateX(-1.2rem); }
[dir="ltr"] .a11y-switch[aria-checked="true"] .a11y-switch__track::after { transform: translateX(1.2rem); }

/* Accessibility panel modes */
:root.a11y-links a:not(.btn):not(.pill):not(.card__link):not(.cover__link):not(.guide__link):not(.masthead__logo):not(.footer__logo) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
:root.a11y-links a { outline: 2px dashed currentColor; outline-offset: 2px; }
:root.a11y-links .card__link, :root.a11y-links .cover__link, :root.a11y-links .guide__link { text-decoration: underline; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ motion: reveal on entering the screen */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.a11y-motion) .reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  html.js:not(.a11y-motion) .reveal.is-in { opacity: 1; transform: none; }
  html.js:not(.a11y-motion) .reveal .reveal-line::before { transform: scaleY(0); transition: transform .9s var(--ease) .15s; }
  html.js:not(.a11y-motion) .reveal.is-in .reveal-line::before { transform: scaleY(1); }
  html.js:not(.a11y-motion) .reveal .card { opacity: 0; transform: translateY(.9rem); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  html.js:not(.a11y-motion) .reveal.is-in .card { opacity: 1; transform: none; }
  html.js:not(.a11y-motion) .reveal.is-in .card:nth-child(2), html.js:not(.a11y-motion) .reveal.is-in li:nth-child(2) .card { transition-delay: .08s; }
  html.js:not(.a11y-motion) .reveal.is-in .card:nth-child(3), html.js:not(.a11y-motion) .reveal.is-in li:nth-child(3) .card { transition-delay: .16s; }
  html.js:not(.a11y-motion) .reveal.is-in .card:nth-child(4), html.js:not(.a11y-motion) .reveal.is-in li:nth-child(4) .card { transition-delay: .24s; }
  html.js:not(.a11y-motion) .reveal.is-in .card:nth-child(n+5) { transition-delay: .3s; }
}
/* The weather drawing moves gently, and only when no reduced motion is asked for (system or the accessibility panel). */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-motion) .wx-rays { transform-box: view-box; transform-origin: 172px 42px; animation: wx-turn 120s linear infinite; }
  html:not(.a11y-motion) .wx-drift { animation: wx-drift 9s ease-in-out infinite alternate; }
  html:not(.a11y-motion) .wx-drift--slow { animation-duration: 13s; animation-direction: alternate-reverse; }
  html:not(.a11y-motion) .wx-fall { animation: wx-fall 1.8s linear infinite; }
  html:not(.a11y-motion) .wx-fall--2 { animation-delay: -.45s; }
  html:not(.a11y-motion) .wx-fall--3 { animation-delay: -.9s; }
  html:not(.a11y-motion) .wx-fall--4 { animation-delay: -1.35s; }
  html:not(.a11y-motion) .wx-twinkle { animation: wx-twinkle 3.4s ease-in-out infinite alternate; }
  html:not(.a11y-motion) .wx-twinkle--2 { animation-delay: -1.2s; }
  html:not(.a11y-motion) .wx-twinkle--3 { animation-delay: -2.3s; }
  html:not(.a11y-motion) .wx-bolt { animation: wx-glow 3.2s ease-in-out infinite; }
  html:not(.a11y-motion) .wx-mist { animation: wx-drift 11s ease-in-out infinite alternate; }
  html:not(.a11y-motion) .wx-sea { animation: wx-sea 6s ease-in-out infinite alternate; }
  html:not(.a11y-motion) .wx-icon .wx-fall { animation: none; }
}
@keyframes wx-turn { to { transform: rotate(360deg); } }
@keyframes wx-drift { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes wx-fall { 0% { transform: translateY(-3px); opacity: 0; } 20%, 70% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes wx-twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes wx-glow { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes wx-sea { from { transform: translateX(0); } to { transform: translateX(-4px); } }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .masthead, .footer, .share, .consent, .a11y-fab, .related, dialog, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
