/* The colour themes. ivory is the site's default (the owner's pick, 24.10.2026): the server writes
   html[data-theme="ivory"] into every page (src/routes/pages.js). ?theme=porcelain | duo | dark shows another one for
   the visit (boot.js); dark is the page without the attribute, where nothing in this file applies (site.css's own
   tokens). Feature 11 (next.css, the ivory recipe) refines ivory's cards, lines and buttons.
   Each direction sets the tokens that site.css's .t-dark reads (the body, the footer, the menu and the cart drawer all
   carry .t-dark), plus the few treatments a light page needs that a token can't give: the hero's scrims over the split
   photos, the stamp, the header over the photos, the dialog scrim and the course cards.
   - ivory: ivory and gold, from Alona's own "About me" graphic (ivory ground, black serif, gold script, a black and
     gold LED box). Espresso type, sand bands, the photos dissolve into the ivory, the LED light becomes champagne.
   - porcelain: white and black, editorial. True black type and buttons, pale gold hairlines, more air between the
     sections, and a black footer to close the page like a magazine's back cover.
   - duo: the site's own ink and ivory swapped: a light page with ink type and LED-blue accents, while the hero and the
     LED section stay the deep ink of the dark site, with its LED glow (the "dark islands" below).
   The three directions for Alona to choose from (the owner approved the mock, 24.10.2026), at the end of the file.
   Each brings its own faces (fonts-<theme>.css, which boot.js links only for that theme) and photo shape:
   - blush (ורוד שמפניה): blush white, rose gold, Frank Ruhl Libre; the big photos stand in arches.
   - clinic (לבן קליני): white, cool grey, one LED blue, Heebo (no serif); the LED line over the titles, crisp photos.
   - sage (פנינה ומרווה): pearl, eucalyptus, Bona Nova; pebble photos in a sage ring, sage-mist bands.
   Contrast (WCAG): body text 4.5:1 or more on every ground it sits on, gold text included (see the values), button
   borders and input borders 3:1. */

/* ---------- ivory ---------- */
:root[data-theme="ivory"] .t-dark {
  --bg: #f3eee7; --bg-2: #fbf8f4; --bg-3: #e6ddd1; --bg-alt: #ebe3d8; --bg-rgb: 243, 238, 231;
  --fg: #1f1a15; --fg-2: #5e544a;                      /* 14.9:1 and 6.4:1 on ivory, 5.8:1 on sand */
  --line: rgba(143, 115, 70, .26); --line-2: #a08452;
  --accent: #7a5b2b;                                   /* gold text: 5.4:1 ivory, 4.9:1 sand, 4.65:1 deep sand */
  --btn-bg: #1f1a15; --btn-fg: #f3eee7; --btn-line: #8f7346; --btn-hover: var(--fg);
  --focus: #4a4fd1;
  --glint: rgba(217, 177, 122, .5);
  --dot: #c29d5f; --dot-glow: rgba(217, 177, 122, .75);
  --orn: #b8975f;
  --glow-rgb: 214, 172, 110; --glow2-rgb: 201, 160, 95;
  --sweep-hi: #8f6d38; --sweep-core: #a8834a;          /* a deeper gold: the pass never fades the letters into the ivory */
  --ph-mark: rgba(122, 91, 43, .45); --ph-glow: rgba(217, 177, 122, .22);
  --card-rgb: 31, 26, 21;
  color-scheme: light;
}
:root[data-theme="ivory"] .ftr { --bg: #e2d8ca; --bg-rgb: 226, 216, 202; --fg-2: #584e45; --line: rgba(143, 115, 70, .32); }
:root[data-theme="ivory"] ::selection { background: rgba(217, 177, 122, .42); }
:root[data-theme="ivory"] .sheet__scrim { background: rgba(31, 26, 21, .38); }

/* ---------- porcelain ---------- */
:root[data-theme="porcelain"] .t-dark {
  --bg: #faf8f5; --bg-2: #ffffff; --bg-3: #ebe7e1; --bg-alt: #f1eee9; --bg-rgb: 250, 248, 245;
  --fg: #000; --fg-2: #4b4743;                         /* 19.8:1 and 8.7:1 */
  --line: rgba(184, 154, 104, .42); --line-2: #a08452;
  --accent: #7d5e2d;                                   /* 5.6:1 porcelain, 5.2:1 pearl */
  --btn-bg: #000; --btn-fg: #fff; --btn-line: #000; --btn-hover: var(--fg);
  --focus: #4a4fd1;
  --glint: rgba(214, 183, 127, .38);
  --dot: #000; --dot-glow: rgba(196, 164, 112, .65);
  --orn: #b89a68;
  --glow-rgb: 205, 174, 120; --glow2-rgb: 196, 164, 112;
  --sweep-hi: #8a6a36; --sweep-core: #c9a66b;
  --ph-mark: rgba(0, 0, 0, .3); --ph-glow: rgba(184, 154, 104, .14);
  --card-rgb: 0, 0, 0;
  color-scheme: light;
}
/* The black back cover. */
:root[data-theme="porcelain"] .ftr {
  --bg: #000; --bg-2: #161616; --bg-3: #222; --bg-rgb: 0, 0, 0;
  --fg: #faf8f5; --fg-2: #b5aea6;                      /* 19.6:1 and 9:1 */
  --line: rgba(214, 183, 127, .28); --line-2: rgba(214, 183, 127, .55);
  --accent: #d6b77f; --btn-bg: #faf8f5; --btn-fg: #000; --btn-line: rgba(214, 183, 127, .8); --btn-hover: var(--fg);
  --focus: #9aa6ff; --dot: #d6b77f; --dot-glow: rgba(214, 183, 127, .55);
  color-scheme: dark;
}
:root[data-theme="porcelain"] ::selection { background: rgba(184, 154, 104, .32); }
:root[data-theme="porcelain"] .sheet__scrim { background: rgba(0, 0, 0, .3); }
/* Editorial air: the sections breathe more than on the other directions. */
:root[data-theme="porcelain"] .sec { padding-block: clamp(96px, 4vw + 72px, 144px); }
:root[data-theme="porcelain"] .sec--tight { padding-block: clamp(64px, 3vw + 48px, 104px); }
:root[data-theme="porcelain"] .sec__head { margin-bottom: clamp(40px, 4.5vw, 68px); }
/* The words band under the hero is a black ticker with gold points, like a magazine's cover strip. */
:root[data-theme="porcelain"] .marquee:not(.marquee--alt) {
  background: #000; border-color: #000;
  --fg-2: #faf8f5; --dot: #d6b77f; --glow-rgb: 214, 183, 127;
}
/* Desktop: the hero ends a strip short of the screen, so the black ticker closes the first screen as it does on a
   phone (the cover and its strip). The ticker gets a fixed height for that; the stamp starts from the same middle. */
@media (min-width: 960px) {
  :root[data-theme="porcelain"] { --tick-h: 76px; }
  :root[data-theme="porcelain"] .marquee:not(.marquee--alt) { display: grid; align-content: center; height: var(--tick-h); padding-block: 0; }
  :root[data-theme="porcelain"][data-intro="split"] .hero.has-photo { min-height: min(calc(100svh - var(--tick-h)), 1000px); }
  :root[data-theme="porcelain"][data-intro="split"] .hero.has-photo .hero__me { --sy: calc(50svh - min(calc(100svh - var(--tick-h)), 1000px) * .38); }
}
@media (min-width: 960px) and (max-height: 820px) {
  :root[data-theme="porcelain"][data-intro="split"] .hero.has-photo .hero__me { --sy: calc(50svh - min(calc(100svh - var(--tick-h)), 1000px) * .32); }
}

/* ---------- duo ---------- */
:root[data-theme="duo"] .t-dark {
  --bg: #f5f3ef; --bg-2: #ffffff; --bg-3: #e4e1da; --bg-alt: #ebe8e2; --bg-rgb: 245, 243, 239;
  --fg: var(--ink); --fg-2: #4f5064;                   /* 16.4:1 and 7.1:1 */
  --line: rgba(19, 20, 37, .12); --line-2: rgba(19, 20, 37, .46);
  --accent: var(--brass);                              /* 5.6:1 */
  --btn-bg: var(--ink); --btn-fg: #f5f3ef; --btn-line: var(--ink); --btn-hover: var(--fg);
  --focus: var(--led-deep);
  --glint: rgba(201, 210, 255, .4);
  --dot: var(--led-deep); --dot-glow: rgba(74, 79, 209, .42);
  --orn: #b39a6b;
  --glow-rgb: 74, 79, 209; --glow2-rgb: 74, 79, 209;
  --sweep-hi: #6d72e6; --sweep-core: var(--led-deep);
  --ph-mark: rgba(19, 20, 37, .3); --ph-glow: rgba(74, 79, 209, .08);
  --card-rgb: 19, 20, 37;
  color-scheme: light;
}
:root[data-theme="duo"] .ftr { --bg: var(--bg-alt); --bg-rgb: 235, 232, 226; }
:root[data-theme="duo"] ::selection { background: rgba(74, 79, 209, .2); }
:root[data-theme="duo"] .sheet__scrim { background: rgba(19, 20, 37, .42); }

/* ---------- Dark islands ----------
   duo: the hero and the LED section keep the dark site's tokens and its LED glow, and so does the header while it's
   transparent over the hero (once it turns solid it's the light page's). The light directions do the same for the
   openings other than split (only split is designed for a light hero; the others just stay as they were). */
:root[data-theme="duo"] :is(.hero, .led, .hdr--over:not(.is-solid)),
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]):not([data-intro="split"]) :is(.hero, .hdr--over:not(.is-solid)) {
  --bg: var(--ink); --bg-2: var(--ink-2); --bg-3: var(--ink-3); --bg-alt: var(--ink-2); --bg-rgb: 19, 20, 37;
  --fg: var(--ivory); --fg-2: var(--mist);
  --line: rgba(239, 233, 223, .13); --line-2: rgba(239, 233, 223, .28);
  --accent: var(--gold);
  --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-line: rgba(216, 194, 157, .75); --btn-hover: var(--gold);
  --focus: #9aa6ff;
  --glint: rgba(214, 222, 255, .6);
  --dot: var(--led); --dot-glow: rgba(201, 210, 255, .6);
  --orn: var(--gold);
  --glow-rgb: 201, 210, 255; --glow2-rgb: 142, 155, 255;
  --sweep-hi: rgba(242, 244, 255, .95); --sweep-core: #b7c1ff;
  --ph-mark: rgba(216, 194, 157, .55); --ph-glow: rgba(142, 155, 255, .16);
  color-scheme: dark;
  color: var(--fg);
}
:root[data-theme="duo"] .hero,
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]):not([data-intro="split"]) .hero { background-color: var(--ink); }

/* ---------- Shared by the light directions ---------- */
/* The solid button empties on hover: its label takes the text colour (the dark site's gold only on dark grounds). */
@media (hover: hover) { :root[data-theme] .btn--solid:hover { color: var(--btn-hover); } }
:root[data-theme] .demo-banner { background: var(--bg-3); color: var(--fg); border-bottom-color: var(--line); }
/* Course cards keep their photo tiles: the title in ivory over a shade of the direction's darkest colour. */
:root[data-theme] .ccard__media::after {
  background: linear-gradient(180deg, rgba(var(--card-rgb), 0) 30%, rgba(var(--card-rgb), .55) 64%, rgba(var(--card-rgb), .92) 100%);
}
:root[data-theme] .ccard__over { color: #fbf8f4; }
:root[data-theme] .ccard__meta { color: rgba(251, 248, 244, .82); }
/* A card whose photo isn't in yet: no shade over the empty slot (on a light page it read as a grey block); the title
   in the page's own type. */
:root[data-theme] .ccard__media:not(:has(img))::after { content: none; }
:root[data-theme] .ccard__media:not(:has(img)) .ccard__over { color: var(--fg); }
:root[data-theme] .ccard__media:not(:has(img)) .ccard__meta { color: var(--fg-2); }
/* The soft-edged photos (site.css --soft): their edges are often dark (a studio backdrop), which on a light page faded
   into a grey halo. A vignette of the page colour on the still frame turns the edges light before the mask fades them,
   so the photo dissolves into the page as the hero's do. (Not under ?ph=1: that ::after is the slot's label.) */
:root[data-theme]:not([data-ph]) :is(.about__img, .led__img, .ip-photo, .course__media).has-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 clamp(44px, 8vw, 116px) clamp(8px, 1.8vw, 26px) rgba(var(--bg-rgb), .92);
}
:root[data-theme="duo"]:not([data-ph]) .led__img.has-photo::after { content: none; } /* on the dark island it melts as on the dark site */
/* Phones: the room the body keeps under the page for the phone bar is the footer's colour, not the page's (the footer
   differs from the page here, so it showed as a strip under the footer). */
@media (max-width: 959.98px) {
  :root[data-theme] body.has-mbar > .ftr {
    margin-bottom: calc(-1 * (var(--mbar-h) + env(safe-area-inset-bottom)));
    padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom));
  }
}
/* The 404 drawing in the direction's gold. */
:root[data-theme] .nf__art stop { stop-color: var(--orn); }
:root[data-theme] .nf__art path:last-child { stroke: var(--orn); }

/* ---------- The split opening on a light hero (every light direction but duo) ----------
   The photos dissolve into the page at the top (under the header) and the bottom, and the light between the panels is
   champagne. The headline is the page's dark type on the veil of the page's colour (intro.css). */
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .hero__media {
  background:
    radial-gradient(60% 45% at 50% var(--cy), rgba(var(--glow-rgb), .5), rgba(var(--glow2-rgb), .2) 45%, rgba(var(--bg-rgb), 0) 80%),
    rgb(var(--bg-rgb));
}
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .hero__media::after {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .8), rgba(var(--bg-rgb), .35) calc(var(--hdr-h) + 24px), rgba(var(--bg-rgb), 0) calc(var(--hdr-h) + 72px)),
    linear-gradient(0deg, rgb(var(--bg-rgb)) 0, rgba(var(--bg-rgb), .5) 6%, rgba(var(--bg-rgb), 0) 16%);
}
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .hero__face { background: rgba(var(--bg-rgb), .5); }
/* The ring's letters in the page's type colour, with a halo of the page colour (legible over the photos). */
:root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .stamp text { fill: var(--fg); stroke: rgba(var(--bg-rgb), .78); }
@media (min-width: 960px) {
  :root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .hero__media::after {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), .84), rgba(var(--bg-rgb), .32) calc(var(--hdr-h) + 50px), rgba(var(--bg-rgb), 0) calc(var(--hdr-h) + 112px)),
      linear-gradient(0deg, rgb(var(--bg-rgb)) 0, rgba(var(--bg-rgb), .5) 6%, rgba(var(--bg-rgb), 0) 16%);
  }
  :root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hero.has-photo .hero__title { --tshadow: 0 0 26px rgba(var(--bg-rgb), .9); }
  :root:is([data-theme="ivory"], [data-theme="porcelain"], [data-theme="blush"], [data-theme="clinic"], [data-theme="sage"])[data-intro="split"] .hdr--over:not(.is-solid) :is(.nav a, .lang-sw) {
    text-shadow: 0 0 14px rgba(var(--bg-rgb), .95), 0 0 3px rgba(var(--bg-rgb), .7);
  }
}

/* ---------- The three new directions (blush, clinic, sage) ----------
   Each: its faces and sizes on :root (fonts-<theme>.css, linked by boot.js), the page tokens, the footer, the small
   gold details of the ivory recipe in the direction's own accent, and its signature photo shape. The brand's wordmark
   (Old Standard italic) stays the same in all of them. No letter-spacing on Hebrew. Contrast (WCAG) per direction. */
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]):lang(he) :is(h1, h2, h3, .btn, .hero__title, .sec__title) { letter-spacing: 0; }
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) :is(.nx-pk__eyebrow, .nx-eyebrow, .nx-ep__n, .ccard__price, .pcard__price, .prod__price, .buy__price, .opt__price, .nx-xp--big, .nx-ep__price, .nx-from, .mbar__price strong, .nx-rec__yr, .step__n, .lesson__n, .score__n, .stars) { color: var(--accent); }
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) :is(.drawer__panel, .nx-cert__doc) { box-shadow: none; }
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) .drawer__panel { border-inline-start: 1px solid var(--line); }
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) .nx-cert__doc { border: 1px solid var(--line-2); }
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) .nx-pkg { border-color: var(--line-2); }
/* Their big photos lose the soft fade (each direction frames them instead), and so the page-colour vignette too. */
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) :is(.about__img, .led__img, .ip-photo, .course__media) {
  -webkit-mask-image: none; mask-image: none;
}
/* The small About photo stays above the big one's frame layer (blush's inner rule would cross it). */
:root:is([data-theme="blush"], [data-theme="clinic"], [data-theme="sage"]) .about__img2 { z-index: 2; }

/* ---------- blush: ורוד שמפניה ---------- */
:root[data-theme="blush"] {
  --f-disp: 'Frank Ruhl Libre', 'Cormorant Garamond', Georgia, serif;
  --f-num: 'Frank Ruhl Libre', Georgia, serif;
  --ds: 1; --disp-w: 300; --track: 0; --radius: 6px;
}
:root[data-theme="blush"]:lang(ru), :root[data-theme="blush"]:lang(en) { --f-disp: 'Cormorant Garamond', Georgia, serif; --f-num: 'Cormorant Garamond', Georgia, serif; --ds: 1.04; --disp-w: 500; --track: .04em; }
:root[data-theme="blush"] .t-dark {
  --bg: #fbf4f1; --bg-2: #ffffff; --bg-3: #f0ddd6; --bg-alt: #f6e8e3; --bg-rgb: 251, 244, 241;
  --fg: #2b1c20; --fg-2: #6a4c52;                      /* 12.4-16.3:1 and 5.8-7.6:1 on every ground */
  --line: rgba(168, 112, 95, .24); --line-2: #a8705f;
  --accent: #94503f;                                   /* rose gold text: 4.6:1 deep blush, 5.6:1 blush */
  --btn-bg: #7e4436; --btn-fg: #fbf4f1; --btn-line: #a8705f; --btn-hover: var(--fg); /* 7:1; borders 3.1:1 */
  --focus: #7e4436;
  --glint: rgba(255, 226, 214, .55);
  --dot: #c48e7c; --dot-glow: rgba(214, 160, 140, .7);
  --orn: #c48e7c;
  --glow-rgb: 236, 190, 176; --glow2-rgb: 220, 165, 150;
  --sweep-hi: #6a3529; --sweep-core: #b06c5a;
  --ph-mark: rgba(148, 80, 63, .4); --ph-glow: rgba(228, 178, 163, .25);
  --card-rgb: 43, 28, 32;
  color-scheme: light;
}
:root[data-theme="blush"] .ftr { --bg: #f2e2dc; --bg-rgb: 242, 226, 220; --line: rgba(168, 112, 95, .3); }
:root[data-theme="blush"] ::selection { background: rgba(228, 178, 163, .5); }
:root[data-theme="blush"] .sheet__scrim { background: rgba(43, 28, 32, .38); }
/* Signature: arches (round top, flat foot) with a fine light rule inside; the small photo a circle; a rose-gold
   lozenge over the section titles. */
:root[data-theme="blush"] :is(.about__img, .led__img, .ip-photo, .ccard__media) { border-radius: 999px 999px 4px 4px; }
:root[data-theme="blush"] .course__media { border-radius: 260px 260px 4px 4px; }
:root[data-theme="blush"] .about__img2 { border-radius: 999px; }
:root[data-theme="blush"]:not([data-ph]) :is(.about__img, .led__img, .ip-photo, .course__media).has-photo::after {
  inset: 10px; border: 1px solid rgba(255, 240, 232, .85); border-radius: 999px 999px 2px 2px; box-shadow: none;
}
:root[data-theme="blush"] .sec__title::before {
  content: ''; display: block; width: 9px; height: 9px; margin: 0 0 18px;
  background: linear-gradient(135deg, #e3b2a3, #a8705f); transform: rotate(45deg);
}

/* ---------- clinic: לבן קליני ---------- */
:root[data-theme="clinic"] {
  --f-body: 'Heebo', 'Manrope', system-ui, sans-serif;
  --f-disp: 'Heebo', 'Manrope', system-ui, sans-serif;
  --f-num: 'Heebo', 'Manrope', system-ui, sans-serif;
  --ds: .94; --disp-w: 300; --track: 0; --radius: 14px;
}
:root[data-theme="clinic"]:lang(ru), :root[data-theme="clinic"]:lang(en) {
  --f-body: 'Manrope', system-ui, sans-serif; --f-disp: 'Manrope', system-ui, sans-serif; --f-num: 'Manrope', system-ui, sans-serif;
  --ds: .88; --track: .02em;
}
:root[data-theme="clinic"] .t-dark {
  --bg: #ffffff; --bg-2: #f6f8fb; --bg-3: #e5eaf0; --bg-alt: #f0f3f7; --bg-rgb: 255, 255, 255;
  --fg: #0f141c; --fg-2: #485263;                      /* 15.3-18.5:1 and 6.5-7.9:1 */
  --line: rgba(15, 20, 28, .1); --line-2: #6f7c90;
  --accent: #1452c8;                                   /* LED blue text: 5.7:1 on the deepest grey, 6.8:1 white */
  --btn-bg: #1452c8; --btn-fg: #ffffff; --btn-line: #6f7c90; --btn-hover: var(--accent); /* 6.8:1; borders 3.5:1 */
  --focus: #1452c8;
  --glint: rgba(190, 215, 255, .6);
  --dot: #2f6bff; --dot-glow: rgba(70, 140, 255, .55);
  --orn: #7fa6ff;
  --glow-rgb: 120, 170, 255; --glow2-rgb: 70, 130, 255;
  --sweep-hi: #0d3fa0; --sweep-core: #3f7cf0;
  --ph-mark: rgba(20, 82, 200, .35); --ph-glow: rgba(70, 140, 255, .1);
  --card-rgb: 15, 20, 28;
  color-scheme: light;
}
:root[data-theme="clinic"] .ftr { --bg: #eef2f6; --bg-rgb: 238, 242, 246; --line: rgba(15, 20, 28, .12); }
:root[data-theme="clinic"] ::selection { background: rgba(70, 140, 255, .22); }
:root[data-theme="clinic"] .sheet__scrim { background: rgba(15, 20, 28, .36); }
/* Crisp photos: 14px corners instead of the fade, and no vignette (its layer drew the frame's edge over the small
   overlapping photo). */
:root[data-theme="clinic"] :is(.about__img, .led__img, .ip-photo, .course__media, .ccard__media, .about__img2) { border-radius: 14px; }
:root[data-theme="clinic"]:not([data-ph]) :is(.about__img, .led__img, .ip-photo, .course__media).has-photo::after { content: none; }
/* Signature: the LED line, a short glowing blue bar over every section title (the curing lamp). */
:root[data-theme="clinic"] .sec__title::before {
  content: ''; display: block; width: 44px; height: 3px; margin: 0 0 22px; border-radius: 3px;
  background: linear-gradient(90deg, #1452c8, #6fa3ff);
  box-shadow: 0 0 12px 2px rgba(70, 140, 255, .45), 0 0 2px rgba(70, 140, 255, .9);
}
:root[data-theme="clinic"] .ccard { background: var(--bg-2); border-radius: 18px; padding: 8px 8px 16px; }

/* ---------- sage: פנינה ומרווה ---------- */
:root[data-theme="sage"] {
  --f-body: 'Assistant', 'Open Sans', 'Open Sans Fallback', system-ui, sans-serif;
  --f-disp: 'Bona Nova', Georgia, serif;
  --f-num: 'Bona Nova', Georgia, serif;
  --ds: .92; --disp-w: 400; --track: 0; --radius: 22px;
}
:root[data-theme="sage"]:lang(ru), :root[data-theme="sage"]:lang(en) { --f-body: 'Open Sans', 'Open Sans Fallback', system-ui, sans-serif; --f-disp: 'Bona Nova', Georgia, serif; --ds: .94; --track: .04em; }
:root[data-theme="sage"] .t-dark {
  --bg: #f6f5ef; --bg-2: #fdfcf8; --bg-3: #dfe4d6; --bg-alt: #eaede3; --bg-rgb: 246, 245, 239;
  --fg: #1c2420; --fg-2: #4c5850;                      /* 12.3-15.5:1 and 5.8-7.3:1 */
  --line: rgba(70, 98, 79, .2); --line-2: #6a7f70;
  --accent: #46624f;                                   /* eucalyptus text: 5.2:1 on the deepest mist, 6.2:1 pearl */
  --btn-bg: #3b5244; --btn-fg: #f6f5ef; --btn-line: #6a7f70; --btn-hover: var(--fg); /* 7.8:1; borders 3:1 */
  --focus: #3b5244;
  --glint: rgba(225, 236, 222, .6);
  --dot: #8ea893; --dot-glow: rgba(157, 182, 160, .7);
  --orn: #8ea893;
  --glow-rgb: 196, 212, 190; --glow2-rgb: 168, 190, 165;
  --sweep-hi: #2c3f33; --sweep-core: #5f7d68;
  --ph-mark: rgba(70, 98, 79, .4); --ph-glow: rgba(157, 182, 160, .2);
  --card-rgb: 28, 36, 32;
  color-scheme: light;
}
:root[data-theme="sage"] .ftr { --bg: #e4e8dc; --bg-rgb: 228, 232, 220; --line: rgba(70, 98, 79, .26); }
:root[data-theme="sage"] ::selection { background: rgba(157, 182, 160, .45); }
:root[data-theme="sage"] .sheet__scrim { background: rgba(28, 36, 32, .36); }
/* Signature: pebble photos (soft round corners) inside a floating sage ring, a leaf over the titles, and every other
   section on the sage mist. */
:root[data-theme="sage"] :is(.about__img, .led__img, .ip-photo, .course__media) {
  border-radius: 32px; outline: 1.5px solid #8ea893; outline-offset: 9px;
}
:root[data-theme="sage"]:not([data-ph]) :is(.about__img, .led__img, .ip-photo, .course__media).has-photo::after { content: none; }
:root[data-theme="sage"] :is(.ccard__media, .about__img2) { border-radius: 28px; }
:root[data-theme="sage"] :is(.sec.how, .sec.inperson, .sec.shop-teaser) { background: var(--bg-alt); }
:root[data-theme="sage"] .sec__title::before {
  content: '\2766'; display: block; margin: 0 0 8px; font-size: .62em; line-height: 1; color: #8ea893;
}
