@charset "UTF-8";
/* InfoLaw: the public site. Dark graphite theme, logical properties for RTL (Hebrew) and LTR (Russian, English),
   no inline style anywhere (CSP style-src 'self'). The cookie banner and the accessibility widget come from the
   kit (/_kit/consent, /_kit/a11y) and take their colours from the --dsk-consent-* and --dsk-a11y-* variables set
   here. The widget's contrast modes (data-dsk-contrast on <html>) are redefinitions of the same tokens. */

/* ---- Tokens ----------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #101214;
  --surface: #191d20;
  --card: #22282b;
  --card-hover: #283034;
  --line: #2e363a;
  --line-strong: #414b50;
  --fg: #f5f5f1;
  --fg-2: #bdc5c4;
  --fg-3: #97a3a1;            /* 6.3:1 on the base, 5:1 on a card */
  --light: #f6f5f0;           /* the reading surface */
  --on-light: #20282c;
  --on-light-2: #4b5a5f;      /* 6.1:1 on the reading surface */
  --on-light-line: #d6d3c8;
  --green: #1f4f46;
  --green-2: #2b6659;
  --accent: #83b8a7;
  --accent-strong: #9ed0c0;
  --accent-soft: rgba(131, 184, 167, .14);
  --on-accent: #101214;
  --gold: #b89b63;
  --gold-soft: rgba(184, 155, 99, .16);
  --gold-text: #d9c79f;
  --danger: #e59a9a;
  --danger-soft: rgba(229, 154, 154, .14);
  --error-on-light: #9e2f2b;
  --focus: #9ed0c0;
  --icon-bg: linear-gradient(145deg, var(--green-2), var(--green));
  --icon-fg: var(--accent-strong);
  --badge-border: transparent;
  --radius-card: 18px;
  --radius-img: 14px;
  --radius-btn: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
  --font-he: "Heebo", "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-latin: "Noto Sans", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font: var(--font-he);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  --gutter: 16px;
  --wrap: 1200px;

  /* Kit module: the cookie banner, its dialog and the table of the cookies page */
  --dsk-consent-bg: var(--surface);
  --dsk-consent-fg: var(--fg);
  --dsk-consent-muted: var(--fg-2);
  --dsk-consent-border: var(--line-strong);
  --dsk-consent-button-bg: var(--accent);
  --dsk-consent-button-fg: var(--on-accent);
  --dsk-consent-button-hover: var(--accent-strong);
  --dsk-consent-link: var(--accent-strong);
  --dsk-consent-focus: var(--focus);
  --dsk-consent-switch-on: var(--green-2);
  --dsk-consent-switch-off: #6f7b7f;
  --dsk-consent-switch-knob: #f5f5f1;
  --dsk-consent-radius: var(--radius-card);
  --dsk-consent-shadow: var(--shadow-2);
  --dsk-consent-font: var(--font);
  --dsk-consent-z: 9000;

  /* Kit module: the accessibility widget (button, panel, reading guide) */
  --dsk-a11y-accent: var(--accent);
  --dsk-a11y-accent-fg: var(--on-accent);
  --dsk-a11y-bg: var(--surface);
  --dsk-a11y-fg: var(--fg);
  --dsk-a11y-muted: var(--fg-2);
  --dsk-a11y-border: var(--line-strong);
  --dsk-a11y-focus: var(--focus);
  --dsk-a11y-radius: var(--radius-card);
  --dsk-a11y-radius-sm: 10px;
  --dsk-a11y-font: var(--font);
  --dsk-a11y-shadow: var(--shadow-2);
  --dsk-a11y-highlight: var(--gold);
  --dsk-a11y-guide: var(--accent);
  --dsk-a11y-bottom: 16px;
  --dsk-a11y-left: 16px;
  --dsk-a11y-right: auto;
  --dsk-a11y-panel-left: 0;
  --dsk-a11y-panel-right: auto;
  --dsk-a11y-z: 950;
}
:root[dir="rtl"] {
  --dsk-a11y-left: auto;
  --dsk-a11y-right: 16px;
  --dsk-a11y-panel-left: auto;
  --dsk-a11y-panel-right: 0;
}
:root[lang^="ru"], :root[lang^="en"] { --font: var(--font-latin); }
[lang^="he"] { font-family: var(--font-he); }
[lang^="ru"], [lang^="en"] { font-family: var(--font-latin); }

/* ---- Base ------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.main { flex: 1 0 auto; padding-block: 8px 56px; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(131, 184, 167, .55); }
a:hover { color: var(--accent-strong); text-decoration-color: currentcolor; }
button { font: inherit; color: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.reading-surface :focus-visible { outline-color: var(--green); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--fg-3); }
.skip {
  position: absolute; inset-inline-start: 12px; top: -200px; z-index: 1000; padding: 12px 18px; border-radius: var(--radius-btn);
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; outline-offset: 0; }

/* Icons: <svg><use href="sprite#i-name"> (Lucide). The sprite's symbols carry stroke="currentColor". */
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--small { width: 1em; height: 1em; vertical-align: -.15em; }
.icon--large { width: 1.75em; height: 1.75em; }
.icon--start { margin-inline-end: .45em; }
.icon--end { margin-inline-start: .45em; }
:root[dir="ltr"] .icon--flip { transform: scaleX(-1); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 780px; }
.wrap--wide { --wrap: 1040px; }

/* ---- Buttons ---------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 20px;
  border-radius: var(--radius-btn); border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--secondary { background: var(--card); color: var(--fg); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--card-hover); color: var(--fg); border-color: var(--fg-3); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--accent-strong); border-color: var(--accent); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.linkbtn { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.reading-surface .btn--secondary { background: #fff; color: var(--green); border-color: var(--green); }
.reading-surface .btn--secondary:hover { background: var(--green); color: #fff; }

/* ---- Header ----------------------------------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(16, 18, 20, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block-end: 1px solid var(--line); }
.site--preview .header { position: static; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: auto; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand__mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--icon-bg); color: var(--icon-fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.brand__icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.brand__descriptor { font-size: .78rem; color: var(--fg-2); }

.nav { display: none; }
.nav__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-btn);
  color: var(--fg-2); font-weight: 500; text-decoration: none; cursor: pointer;
}
.nav__link:hover { color: var(--fg); background: var(--surface); }
.nav__link.is-active { color: var(--fg); background: var(--card); }
.topics-menu { position: relative; }
.topics-menu > summary .icon { transition: transform .2s; }
.topics-menu[open] > summary .icon { transform: rotate(180deg); }
.topics-menu__list { margin: 0; padding: 4px 0 4px 12px; list-style: none; display: grid; gap: 2px; }
.topics-menu__list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: .95rem; }
.topics-menu__list a:hover { background: var(--card); color: var(--fg); }
.topics-menu__list .icon { color: var(--accent); }
.search-form { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); overflow: hidden; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form__input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: .95rem; }
.search-form__input:focus { outline: none; }
.search-form__input::placeholder { color: var(--fg-3); opacity: 1; }
.search-form__button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; }
.search-form__button:hover { color: var(--accent-strong); }

/* The small-screen menu: a <details> whose content is empty; while it is open the header shows the nav. */
.menu { position: relative; }
.menu__button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-weight: 500;
}
.menu__button:hover { border-color: var(--fg-3); }
.menu__close, .menu__close-label { display: none; }
.menu[open] .menu__open, .menu[open] .menu__label { display: none; }
.menu[open] .menu__close { display: inline-block; }
.menu[open] .menu__close-label { display: inline; }
.header__inner:has(.menu[open]) .nav, .header.is-open .nav {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; order: 10; flex-basis: 100%;
  padding: 4px 0 16px; border-top: 1px solid var(--line); margin-top: 2px;
}
.header__inner:has(.menu[open]) .nav .nav__link, .header.is-open .nav .nav__link { width: 100%; }

/* Language switcher: flags inline on wide screens, a dropdown on small ones. */
.lang { display: flex; align-items: center; }
.lang__inline { display: none; gap: 6px; }
.lang__item { display: inline-flex; padding: 4px; border: 1px solid transparent; border-radius: 8px; line-height: 0; }
.lang__item img, .lang__row img, .lang__button img { width: 28px; height: 20px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.lang__item:hover { background: var(--surface); }
.lang__item.is-current { border-color: var(--accent); background: var(--accent-soft); }
.lang__item--off { opacity: .45; filter: grayscale(.8); }
.lang__compact { position: relative; }
.lang__button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
}
.lang__button:hover { border-color: var(--fg-3); }
.lang__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-2);
}
.lang__row a, .lang__row--off { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.lang__row a:hover { background: var(--card); color: var(--fg); }
.lang__row a[aria-current] { font-weight: 600; }
.lang__row .icon { margin-inline-start: auto; color: var(--accent); }
.lang__row--off { color: var(--fg-3); }
.lang__row--off img { opacity: .5; filter: grayscale(.8); }
.lang__row small { margin-inline-start: auto; font-size: .8rem; }
/* 1.0.10: a language without a published edition of the article: its flag opens a note instead of doing nothing. */
.lang__na { position: relative; }
.lang__na > summary { list-style: none; cursor: pointer; }
.lang__na > summary::-webkit-details-marker { display: none; }
.lang__na > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang__na[open] > summary { opacity: .8; border-color: var(--line-strong); }
.lang__note {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 12px 14px; line-height: 1.45;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-2); color: var(--fg); font-size: .9rem;
}
.lang__note p { margin: 0 0 8px; }
.lang__note-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lang__note-title img { width: 24px; height: 16px; border-radius: 3px; opacity: .6; filter: grayscale(.8); }
.lang__note a { color: var(--accent); }
.lang__row--off { flex-wrap: wrap; }
.lang__row-name { display: flex; align-items: center; gap: 10px; width: 100%; }
.lang__row-home { display: block; padding-inline-start: 38px; font-size: .85rem; color: var(--accent); }

@media (min-width: 1024px) {
  .menu { display: none; }
  .nav { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; margin-inline-start: 8px; }
  .nav__list { flex-direction: row; align-items: center; }
  .nav__link { display: inline-flex; }
  .topics-menu__list {
    position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 60; width: 340px; padding: 8px;
    grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-2);
  }
  .search-form { margin-inline-start: auto; }
  .search-form__input { width: 200px; }
  .lang__inline { display: flex; }
  .lang__compact { display: none; }
}
@media (max-width: 479px) {
  .brand__descriptor { display: none; }
  .menu__label, .menu__close-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu__button { padding: 8px 10px; }
}

/* ---- Preview bar (admin previews of drafts) --------------------------------------------------------------------- */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--gold); color: #1a1508; font-size: .9rem; }
.preview-bar p { margin: 0; }
.preview-bar .btn { background: #1a1508; color: #f5f5f1; border-color: #1a1508; }

/* ---- Hero ------------------------------------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 150%; pointer-events: none;
  background: radial-gradient(ellipse at 18% 0%, rgba(31, 79, 70, .6), transparent 55%), radial-gradient(ellipse at 85% 35%, rgba(184, 155, 99, .12), transparent 45%);
}
:root[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero__inner { position: relative; display: grid; gap: 32px; align-items: center; }
.kicker { margin: 0 0 12px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
:root[dir="rtl"] .kicker { letter-spacing: 0; }
.hero__title { margin: 0 0 16px; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
:root[dir="rtl"] .hero__title { letter-spacing: 0; }
.hero__lead { max-width: 36em; margin: 0 0 28px; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__panel { padding: 28px; background: linear-gradient(180deg, var(--card), var(--surface)); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-1); }
.hero__panel-title { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; color: var(--fg-2); }
.hero__promises { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.hero__promises li { display: flex; gap: 12px; align-items: flex-start; }
.hero__promises .icon { margin-top: .15em; color: var(--accent); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero__stats dt { margin: 0; font-size: .82rem; color: var(--fg-2); }
.hero__stats dd { margin: 0; font-size: 1.75rem; font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
@media (max-width: 479px) { .hero__panel { padding: 20px; } .hero__stats dd { font-size: 1.4rem; } }

/* ---- Sections --------------------------------------------------------------------------------------------------- */
.section { padding-block: clamp(32px, 5vw, 56px); }
.section--topics { background: var(--surface); border-block: 1px solid var(--line); }
.section--notice { padding-block: 0 40px; }
.section__head { margin-bottom: 28px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.section__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
:root[dir="rtl"] .section__title { letter-spacing: 0; }
.section__lead { margin: 8px 0 0; color: var(--fg-2); }
.section__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.section__more:hover { text-decoration: underline; }
.empty { padding: 32px; text-align: center; color: var(--fg-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); }

/* Topics: four cards in a row, two on a tablet, one on a phone. */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.topic__link {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name arrow" "icon count arrow";
  column-gap: 14px; row-gap: 2px; align-items: center; min-height: 96px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--fg); text-decoration: none;
  transition: transform .2s, border-color .2s, background-color .2s;
}
.topic__link:hover { transform: translateY(-3px); background: var(--card-hover); border-color: var(--accent); color: var(--fg); }
.topic__icon { grid-area: icon; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--icon-bg); color: var(--icon-fg); }
.topic__name { grid-area: name; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.topic__count { grid-area: count; font-size: .88rem; color: var(--fg-2); }
.topic__arrow { grid-area: arrow; color: var(--fg-3); transition: transform .2s, color .2s; }
.topic__link:hover .topic__arrow { color: var(--accent); transform: translateX(-4px); }
:root[dir="ltr"] .topic__link:hover .topic__arrow { transform: translateX(4px); }
@media (max-width: 1023px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .topics { grid-template-columns: 1fr; } }

/* ---- Cards ------------------------------------------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cards--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--home .card--featured { grid-column: span 2; }
.cards--home .card--featured:has(.card__media) { grid-row: span 2; }
.cards--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.card:focus-within { border-color: var(--accent); }
.card--sponsored { border-color: rgba(184, 155, 99, .4); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--featured .card__media { aspect-ratio: 2 / 1; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.card--featured .card__body { padding: 28px; }
.card--compact .card__body { padding: 16px; }
.card__meta, .card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: .85rem; color: var(--fg-2); }
.card__foot { margin-top: auto; padding-top: 6px; }
.card__category { position: relative; z-index: 1; color: var(--fg-2); font-weight: 500; text-decoration: none; }
.card__category:hover { color: var(--accent-strong); text-decoration: underline; }
.card__title { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.card--featured .card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.card--compact .card__title { font-size: 1.05rem; }
.card__title a { color: var(--fg); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--accent-strong); }
.card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--fg-2); font-size: .97rem; }
.card--featured .card__excerpt { -webkit-line-clamp: 4; font-size: 1.05rem; }
.card--compact .card__excerpt { display: none; }
@media (max-width: 1023px) { .cards--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--home .card--featured { grid-column: span 2; grid-row: auto; } }
@media (max-width: 639px) { .cards--home { grid-template-columns: 1fr; } .cards--home .card--featured { grid-column: auto; } }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid var(--badge-border); border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.badge--guide { background: var(--accent-soft); color: var(--accent-strong); }
.badge--analysis { background: rgba(189, 197, 196, .14); color: #dde3e2; }
.badge--article { background: rgba(189, 197, 196, .14); color: #dde3e2; } /* an article published from WP Desk */
.badge--sponsored { background: var(--gold-soft); color: var(--gold-text); }
.badge--demo { background: transparent; border: 1px dashed var(--fg-3); color: var(--fg-2); }

/* ---- Page heads, breadcrumbs, lists ----------------------------------------------------------------------------- */
.crumbs { margin: 16px 0 8px; font-size: .85rem; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--fg-3); }
.crumbs__item + .crumbs__item::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-strong); text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg-2); }
.page-head { display: flex; gap: 20px; align-items: flex-start; margin: 16px 0 32px; }
.page-head > div { min-width: 0; flex: 1; }
.page-head__icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--icon-bg); color: var(--icon-fg); }
.page-head__icon--inline { width: 56px; height: 56px; margin: 8px 0 16px; }
.page-head__title { margin: 0 0 8px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; }
.page-head__lead { max-width: 44em; margin: 0; font-size: 1.1rem; color: var(--fg-2); }
.page-head__count { margin: 10px 0 0; font-size: .9rem; color: var(--fg-3); }
@media (max-width: 479px) { .page-head { gap: 14px; } .page-head__icon { width: 52px; height: 52px; border-radius: 14px; } }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 0; }
.pagination__status { color: var(--fg-2); font-variant-numeric: tabular-nums; }
:root[dir="ltr"] .pagination .icon { transform: scaleX(-1); }

/* ---- Article ---------------------------------------------------------------------------------------------------- */
.article__head { padding-block: 8px 24px; }
.article__meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 14px; font-size: .9rem; }
.article__category { color: var(--fg-2); font-weight: 500; text-decoration: none; }
.article__category:hover { color: var(--accent-strong); text-decoration: underline; }
.article__title { margin: 0 0 14px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
:root[dir="rtl"] .article__title { letter-spacing: 0; }
.article__lead { margin: 0 0 20px; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.5; color: var(--fg-2); }
.article__byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .9rem; color: var(--fg-2); }
.article__author { color: var(--fg); font-weight: 500; }
.article__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; font-size: .9rem; color: var(--fg-2); }
.article__langs a { font-weight: 500; }
.article__figure { margin: 8px auto 32px; }
.article__figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-img); }
.article__figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--fg-3); }
.article__layout { display: grid; gap: 32px; align-items: start; }
.article__main { display: grid; gap: 28px; min-width: 0; }
.article__main > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
@media (min-width: 1024px) { .article__layout { grid-template-columns: 260px minmax(0, 780px); justify-content: center; } .article__main:first-child { grid-column: 1 / -1; width: 100%; max-width: 780px; justify-self: center; } }

.toc { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.toc__title { margin: 0 0 10px; font-size: .9rem; font-weight: 600; color: var(--fg-2); }
.toc__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.toc__item a { display: block; padding: 6px 10px; border-inline-start: 2px solid transparent; border-radius: 8px; color: var(--fg-2); text-decoration: none; }
.toc__item a:hover { color: var(--fg); background: var(--card); border-inline-start-color: var(--accent); }
.toc__item--l3 a { padding-inline-start: 24px; font-size: .88rem; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; } }

/* The reading surface: a light sheet for long text, inside the dark page. */
.reading-surface { padding: clamp(20px, 2vw + 12px, 40px); background: var(--light); color: var(--on-light); border-radius: 20px; box-shadow: var(--shadow-1); }
.reading-surface a { color: var(--green); text-decoration-color: rgba(31, 79, 70, .45); }
.reading-surface a:hover { color: #163b34; text-decoration-color: currentcolor; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose pre, .prose dl { margin: 0 0 1.25em; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .6em; line-height: 1.25; font-weight: 700; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { padding: 4px 20px; border-inline-start: 4px solid var(--accent); background: rgba(31, 79, 70, .06); border-radius: 0 12px 12px 0; color: var(--on-light-2); }
:root[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
.prose img { margin-inline: auto; border-radius: var(--radius-img); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--on-light-2); }
.prose code { padding: .1em .35em; background: rgba(32, 40, 44, .08); border-radius: 6px; font-family: var(--mono); font-size: .9em; }
.prose pre { padding: 16px 20px; overflow-x: auto; background: #20282c; color: #f5f5f1; border-radius: 12px; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose hr { display: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td, .reading-surface .dsk-consent-table th, .reading-surface .dsk-consent-table td { padding: 10px 12px; border: 1px solid var(--on-light-line); text-align: start; vertical-align: top; }
.prose th, .reading-surface .dsk-consent-table th { background: rgba(32, 40, 44, .06); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose .note { padding: 12px 16px; background: rgba(184, 155, 99, .16); border-inline-start: 4px solid var(--gold); border-radius: 10px; }
.reading-surface :is(.dsk-consent-table, .dsk-consent-change) {
  --dsk-consent-bg: #ffffff; --dsk-consent-fg: var(--on-light); --dsk-consent-muted: var(--on-light-2); --dsk-consent-border: var(--on-light-line);
  --dsk-consent-button-bg: var(--green); --dsk-consent-button-fg: #ffffff; --dsk-consent-button-hover: var(--green-2); --dsk-consent-link: var(--green); --dsk-consent-focus: var(--green);
}
.reading-surface .dsk-consent-table { font-size: .92rem; border-radius: 10px; }
.reading-surface .dsk-a11y-open { border: 1px solid var(--green); border-radius: var(--radius-btn); color: var(--green); min-height: 46px; padding: 10px 20px; }
.reading-surface .dsk-a11y-open:hover { background: var(--green); color: #fff; }

/* Sources and further reading: separate from the body, after it. */
.sources { padding: clamp(20px, 2vw + 10px, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.sources__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.3rem; }
.sources__title .icon { color: var(--accent); }
.sources__intro { margin: 0 0 18px; font-size: .95rem; color: var(--fg-2); }
.sources__empty { margin: 0; color: var(--fg-2); }
.sources__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: src; }
.sources__item { position: relative; counter-increment: src; padding: 14px 16px; padding-inline-start: 54px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.sources__item::before {
  content: counter(src); position: absolute; inset-inline-start: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sources__link { color: var(--fg); font-weight: 600; text-decoration-color: rgba(245, 245, 241, .35); }
.sources__link:hover { color: var(--accent-strong); text-decoration-color: currentcolor; }
.sources__ext { margin-inline-start: .35em; color: var(--fg-3); }
.sources__meta { margin: 6px 0 0; font-size: .88rem; color: var(--fg-2); }
.sources__url { margin: 4px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--fg-3); overflow-wrap: anywhere; }
:root[dir="rtl"] .sources__url { text-align: right; }

/* 1.0.8: short notes that came after the sources list in a WP Desk body (an image credit), shown after the module. */
.article__after { font-size: .92rem; color: var(--fg-2); }
.article__after > :first-child { margin-top: 0; }
.article__after > :last-child { margin-bottom: 0; }

.transparency { padding: 18px 22px; background: var(--accent-soft); border: 1px solid rgba(131, 184, 167, .35); border-radius: var(--radius-card); }
.transparency__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.transparency__title .icon { color: var(--accent); }
.transparency p { margin: 4px 0; color: var(--fg-2); }
.sponsored { padding: 16px 20px; background: var(--gold-soft); border: 1px solid rgba(184, 155, 99, .5); border-inline-start-width: 4px; border-radius: var(--radius-card); }
.sponsored p { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.sponsored .icon { flex: none; margin-top: .15em; color: var(--gold); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .92rem; color: var(--fg-2); }
.notice .icon { flex: none; margin-top: .15em; color: var(--gold); }

/* Collections (home) */
.collection { display: grid; gap: 28px; }
.collection__intro .btn { margin-top: 16px; }
.collection__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.collection__list a { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--fg); font-weight: 500; text-decoration: none; }
.collection__list a:hover { background: var(--card-hover); border-color: var(--accent); color: var(--fg); }
@media (min-width: 900px) { .collection { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* ---- Forms ------------------------------------------------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .95rem; font-weight: 600; }
.field__req { color: var(--danger); }
.reading-surface .field__req { color: var(--error-on-light); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); font: inherit; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--fg-3); opacity: 1; }
textarea.input { min-height: 160px; resize: vertical; }
.reading-surface .input { background: #fff; color: var(--on-light); border-color: #b9c1bf; }
.reading-surface .input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 79, 70, .18); }
.input[aria-invalid="true"] { border-color: #b3433f; }
.field__error { margin: 0; font-size: .9rem; font-weight: 500; color: var(--danger); }
.reading-surface .field__error { color: var(--error-on-light); }
.field--trap { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin: 0; font-size: .9rem; color: var(--on-light-2); }
.flash { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 16px 20px; border-radius: 14px; }
.flash p { margin: 0; }
.flash .icon { flex: none; margin-top: .15em; }
.flash--ok { background: var(--accent-soft); border: 1px solid rgba(131, 184, 167, .5); }
.flash--ok .icon { color: var(--accent-strong); }
.flash--error { background: var(--danger-soft); border: 1px solid rgba(229, 154, 154, .5); }
.search-page { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.search-page .input { flex: 1 1 240px; }

/* ---- Footer ----------------------------------------------------------------------------------------------------- */
.footer { margin-top: auto; padding-block: 48px 24px; background: var(--surface); border-top: 1px solid var(--line); color: var(--fg-2); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer__about { max-width: 34em; }
.footer__about p { margin: 0 0 10px; }
.footer__brand { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; color: var(--fg); }
.footer__brand .icon { color: var(--accent); }
.footer__independent { font-size: .88rem; color: var(--fg-3); }
.footer__heading { margin: 0 0 12px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
:root[dir="rtl"] .footer__heading { letter-spacing: 0; }
.footer__col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer a, .footer .linkbtn { color: var(--fg-2); text-decoration: none; }
.footer a:hover, .footer .linkbtn:hover { color: var(--accent-strong); text-decoration: underline; }
.footer__col a, .footer__col .linkbtn { display: inline-block; padding: 5px 0; }
.footer__operator { margin: 0 0 16px; }
.footer__meta { margin-top: 16px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-3); }
.footer__legal p { margin: 0; }
.footer__langs a[aria-current] { color: var(--fg); font-weight: 600; }

/* ---- Status pages ----------------------------------------------------------------------------------------------- */
.status-page { display: grid; gap: 16px; justify-items: center; padding-block: 48px; text-align: center; }
.status-page__code { margin: 0; font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; line-height: 1; color: var(--accent); }
.status-page .search-page { justify-content: center; width: 100%; max-width: 520px; }
.status-page__detail { max-width: 100%; overflow: auto; padding: 16px; background: var(--surface); border-radius: 12px; font-size: .85rem; text-align: start; }

/* ---- The dock: cookie settings beside the kit's accessibility button; hidden while the banner itself shows ------- */
.dock { position: fixed; z-index: 950; bottom: calc(var(--dsk-a11y-bottom) + env(safe-area-inset-bottom, 0px)); inset-inline-start: 76px; }
.dock__button {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--surface), 0 4px 24px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .2s;
}
.dock__button:hover { transform: scale(1.05); background: var(--accent-strong); }
.dock__icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-dsk-consent-visible] .dock { display: none; }
aside.dsk-a11y[data-dsk-a11y-widget] { color-scheme: dark; }

/* ---- Contrast modes of the accessibility widget (Config a11y.contrast = tokens): the same tokens, other values --- */
:root[data-dsk-contrast="high"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --card: #ffffff; --card-hover: #f2f2f2; --line: #000000; --line-strong: #000000;
  --fg: #000000; --fg-2: #000000; --fg-3: #333333; --light: #ffffff; --on-light: #000000; --on-light-2: #000000; --on-light-line: #000000;
  --green: #00007a; --green-2: #00007a; --accent: #00007a; --accent-strong: #00007a; --accent-soft: #ffffff; --on-accent: #ffffff;
  --gold: #000000; --gold-soft: #ffffff; --gold-text: #000000; --danger: #b00020; --danger-soft: #ffffff; --error-on-light: #b00020; --focus: #000000;
  --icon-bg: #00007a; --icon-fg: #ffffff; --badge-border: currentcolor; --shadow-1: none; --shadow-2: none;
  --dsk-consent-switch-off: #4a4a4a; --dsk-consent-switch-knob: #ffffff;
}
:root[data-dsk-contrast="dark"] {
  --bg: #000000; --surface: #000000; --card: #000000; --card-hover: #141414; --line: #8a8a8a; --line-strong: #bdbdbd;
  --fg: #ffffff; --fg-2: #f3f3f3; --fg-3: #d4d4d4; --light: #000000; --on-light: #ffffff; --on-light-2: #f3f3f3; --on-light-line: #8a8a8a;
  --green: #a8e6d2; --green-2: #a8e6d2; --accent: #a8e6d2; --accent-strong: #c9f2e5; --accent-soft: #000000; --on-accent: #000000;
  --gold: #ffd27a; --gold-soft: #000000; --gold-text: #ffd27a; --danger: #ffb4b8; --danger-soft: #000000; --error-on-light: #ffb4b8; --focus: #ffffff;
  --icon-bg: #000000; --icon-fg: #a8e6d2; --badge-border: currentcolor; --shadow-1: none; --shadow-2: none;
  --dsk-consent-switch-on: #a8e6d2; --dsk-consent-switch-off: #9a9a9a; --dsk-consent-switch-knob: #000000;
}
:root[data-dsk-contrast="yellow"] {
  --bg: #000000; --surface: #000000; --card: #000000; --card-hover: #141400; --line: #a89800; --line-strong: #ffe600;
  --fg: #ffe600; --fg-2: #ffe600; --fg-3: #e6cf00; --light: #000000; --on-light: #ffe600; --on-light-2: #ffe600; --on-light-line: #a89800;
  --green: #ffe600; --green-2: #ffe600; --accent: #ffe600; --accent-strong: #fff17a; --accent-soft: #000000; --on-accent: #000000;
  --gold: #ffe600; --gold-soft: #000000; --gold-text: #ffe600; --danger: #ffe600; --danger-soft: #000000; --error-on-light: #ffe600; --focus: #ffffff;
  --icon-bg: #000000; --icon-fg: #ffe600; --badge-border: currentcolor; --shadow-1: none; --shadow-2: none;
  --dsk-consent-switch-on: #ffe600; --dsk-consent-switch-off: #a89800; --dsk-consent-switch-knob: #000000;
}
:root[data-dsk-contrast="high"] .hero::before, :root[data-dsk-contrast="dark"] .hero::before, :root[data-dsk-contrast="yellow"] .hero::before { display: none; }
:root[data-dsk-contrast="high"] .header, :root[data-dsk-contrast="dark"] .header, :root[data-dsk-contrast="yellow"] .header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-dsk-contrast="high"] :is(.brand__mark, .topic__icon, .page-head__icon, .hero__panel, .reading-surface, .lang__item img, .lang__row img, .lang__button img) { border: 1px solid var(--line); }
:root[data-dsk-contrast="high"] a, :root[data-dsk-contrast="dark"] a, :root[data-dsk-contrast="yellow"] a { text-decoration-color: currentcolor; }
:root[data-dsk-contrast="dark"] :is(.card, .topic__link, .sources, .sources__item, .toc, .reading-surface, .hero__panel, .transparency, .sponsored, .notice, .collection__list a, .empty, .flash, .input, .brand__mark, .topic__icon, .page-head__icon, .lang__list, .topics-menu__list) { background: #000000; border-color: var(--line-strong); }
:root[data-dsk-contrast="yellow"] :is(.card, .topic__link, .sources, .sources__item, .toc, .reading-surface, .hero__panel, .transparency, .sponsored, .notice, .collection__list a, .empty, .flash, .input, .brand__mark, .topic__icon, .page-head__icon, .lang__list, .topics-menu__list) { background: #000000; border-color: var(--line-strong); }
:root[data-dsk-contrast="dark"] .reading-surface .input, :root[data-dsk-contrast="yellow"] .reading-surface .input { background: #000000; color: var(--fg); border-color: var(--line-strong); }
:root[data-dsk-contrast="dark"] .prose pre, :root[data-dsk-contrast="yellow"] .prose pre { border: 1px solid var(--line-strong); }
:root[data-dsk-contrast="high"] .prose pre { background: #000000; color: #ffffff; }
:root[data-dsk-contrast="dark"] .prose code, :root[data-dsk-contrast="yellow"] .prose code, :root[data-dsk-contrast="dark"] .prose th, :root[data-dsk-contrast="yellow"] .prose th, :root[data-dsk-contrast="dark"] .prose blockquote, :root[data-dsk-contrast="yellow"] .prose blockquote, :root[data-dsk-contrast="dark"] .prose .note, :root[data-dsk-contrast="yellow"] .prose .note { background: #000000; }
:root[data-dsk-contrast="high"] .prose code, :root[data-dsk-contrast="high"] .prose th, :root[data-dsk-contrast="high"] .prose blockquote, :root[data-dsk-contrast="high"] .prose .note { background: #ffffff; border: 1px solid #000000; }
:root[data-dsk-contrast="dark"] .reading-surface :is(.dsk-consent-table, .dsk-consent-change), :root[data-dsk-contrast="yellow"] .reading-surface :is(.dsk-consent-table, .dsk-consent-change), :root[data-dsk-contrast="high"] .reading-surface :is(.dsk-consent-table, .dsk-consent-change) { --dsk-consent-bg: var(--light); --dsk-consent-fg: var(--on-light); --dsk-consent-muted: var(--on-light-2); --dsk-consent-border: var(--on-light-line); --dsk-consent-button-bg: var(--accent); --dsk-consent-button-fg: var(--on-accent); --dsk-consent-button-hover: var(--accent-strong); --dsk-consent-link: var(--green); --dsk-consent-focus: var(--focus); }
:root[data-dsk-contrast="dark"] .reading-surface .dsk-a11y-open, :root[data-dsk-contrast="yellow"] .reading-surface .dsk-a11y-open { color: var(--fg); border-color: var(--fg); }
:root[data-dsk-contrast="high"] .reading-surface .dsk-a11y-open:hover, :root[data-dsk-contrast="dark"] .reading-surface .dsk-a11y-open:hover, :root[data-dsk-contrast="yellow"] .reading-surface .dsk-a11y-open:hover { background: var(--accent); color: var(--on-accent); }
:root[data-dsk-contrast="dark"] .badge--analysis, :root[data-dsk-contrast="yellow"] .badge--analysis, :root[data-dsk-contrast="high"] .badge--analysis { background: transparent; color: var(--fg); }
:root[data-dsk-contrast="dark"] .badge--article, :root[data-dsk-contrast="yellow"] .badge--article, :root[data-dsk-contrast="high"] .badge--article { background: transparent; color: var(--fg); }
:root[data-dsk-contrast="dark"] .preview-bar, :root[data-dsk-contrast="yellow"] .preview-bar, :root[data-dsk-contrast="high"] .preview-bar { background: var(--bg); color: var(--fg); border-bottom: 2px solid var(--fg); }
:root[data-dsk-contrast="high"] .lang__item--off, :root[data-dsk-contrast="dark"] .lang__item--off, :root[data-dsk-contrast="yellow"] .lang__item--off { opacity: .55; }
:root[data-dsk-contrast="dark"] .dock__button, :root[data-dsk-contrast="yellow"] .dock__button, :root[data-dsk-contrast="high"] .dock__button { box-shadow: 0 0 0 2px var(--fg); }

/* ---- Motion, print ---------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .card:hover, .topic__link:hover, .dock__button:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .menu__button, .lang__button, .dock__button, .input, .card, .topic__link, .sources__item { border: 1px solid ButtonText; }
  .badge { border-color: CanvasText; }
}
@media print {
  .header, .footer, .dock, .skip, .preview-bar, .section--related, .toc, .notice, .search-form, .article__langs, .pagination { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .main { padding: 0; }
  .reading-surface, .sources, .sources__item, .transparency, .sponsored { background: none; color: #000; box-shadow: none; border-color: #999; }
  .reading-surface { padding: 0; }
  a { color: #000; }
  .sources__link::after { content: " (" attr(href) ")"; font-size: .85em; font-weight: 400; }
  .article__layout { display: block; }
}
