/* Site design v3: design tokens (2.37.0). Every v3 component uses these and nothing else.
   Values from the mockups (task/SiteUpdate/segodnya-html, measured) and TZ §2, §9.
   Dark palette: DERIVED, NOT DESIGNED (the mockups draw only the dark header in HeaderStates);
   contrast of text on background is at least 4.5:1. */
:root{
  /* colour, light */
  --v3-text:#111111;
  --v3-text-2:#333333;
  --v3-text-3:#555555;
  --v3-text-4:#666666;
  --v3-line:#e3e3e3;
  --v3-line-strong:#111111;
  --v3-line-field:#d6d6d6;
  --v3-plate:#f2f2f2;
  --v3-bg:#ffffff;
  --v3-on-dark:#ffffff;
  --v3-on-dark-2:#c4c4c4;
  --v3-dark:#111111;
  --v3-dark-line:#4a4a4a;
  --v3-red:#b3261e;
  --v3-red-hover:#8a1c17;
  --v3-pulse:#b3261e;
  --v3-gold:#8a6a1f;
  --v3-highlight:#fbe9a8;
  --v3-skeleton:#ececec;
  --v3-img:#d9d9d9;
  --v3-shadow-card:0 6px 20px rgba(0,0,0,.14);
  --v3-shadow-pill:0 1px 3px rgba(0,0,0,.12);

  /* type families (TZ §9): Noto Serif 500/600 headings, PT Sans 400/700 text,
     PT Serif 700 navigation, PT Mono 400 time and prices. Fallbacks keep metrics close. */
  --v3-serif:'Noto Serif','V3 Serif Fallback',Georgia,serif;
  --v3-sans:'PT Sans','V3 Sans Fallback',Arial,sans-serif;
  --v3-nav:'PT Serif','V3 Serif Fallback',Georgia,serif;
  --v3-mono:'PT Mono','V3 Mono Fallback','Courier New',monospace;

  /* type scale (TZ §9) */
  --v3-fs-10:10px; --v3-fs-12:12px; --v3-fs-13:13px; --v3-fs-15:15px; --v3-fs-17:17px;
  --v3-fs-19:19px; --v3-fs-20:20px; --v3-fs-22:22px; --v3-fs-26:26px; --v3-fs-30:30px;
  --v3-fs-34:34px; --v3-fs-46:46px;
  --v3-body:19px; --v3-body-lh:1.6;           /* article text, phone */

  /* spacing and grid */
  --v3-gutter:16px;
  --v3-container:1340px;
  --v3-rail:300px;
  --v3-col-gap:32px;
  --v3-block-gap:32px;                         /* phone; desktop 48 */
  --v3-tap:44px;
  --v3-radius-pill:999px;
  --v3-radius-card:14px;
  --v3-header-h:56px;
  --v3-safe-bottom:max(8px, env(safe-area-inset-bottom));
}
@media (min-width:1180px){
  :root{ --v3-body:20px; --v3-body-lh:1.65; --v3-block-gap:48px; }
}

/* Dark: the visitor's own choice (same localStorage key as the classic site), else the OS. */
html[data-user-color-scheme="dark"]{
  --v3-text:#f2f2f2; --v3-text-2:#dddddd; --v3-text-3:#c4c4c4; --v3-text-4:#ababab;
  --v3-line:#3a3a3a; --v3-line-strong:#f2f2f2; --v3-line-field:#4a4a4a;
  --v3-plate:#1d1d1d; --v3-bg:#111111; --v3-dark:#000000; --v3-dark-line:#3a3a3a;
  --v3-red:#ff6f61; --v3-red-hover:#ff9a8f; --v3-pulse:#ff5a4d; --v3-gold:#c99a2e;
  --v3-highlight:#5a4a12; --v3-skeleton:#262626; --v3-img:#3a3a3a;
  --v3-shadow-card:0 6px 20px rgba(0,0,0,.6);
}
@media (prefers-color-scheme:dark){
  html:not([data-user-color-scheme="light"]){
    --v3-text:#f2f2f2; --v3-text-2:#dddddd; --v3-text-3:#c4c4c4; --v3-text-4:#ababab;
    --v3-line:#3a3a3a; --v3-line-strong:#f2f2f2; --v3-line-field:#4a4a4a;
    --v3-plate:#1d1d1d; --v3-bg:#111111; --v3-dark:#000000; --v3-dark-line:#3a3a3a;
    --v3-red:#ff6f61; --v3-red-hover:#ff9a8f; --v3-pulse:#ff5a4d; --v3-gold:#c99a2e;
    --v3-highlight:#5a4a12; --v3-skeleton:#262626; --v3-img:#3a3a3a;
    --v3-shadow-card:0 6px 20px rgba(0,0,0,.6);
  }
}
