/*
 * Stewart's ornament on the website (web-heritage spec §4.6; the app's stewart-redesign_spec §2.2–2.6 and §9): the
 * GlowCard, the outline pill, the selected segment, the title bar, the light arc and the brand's tag rules. One shared
 * layer over the new look, in CSS only (gradients and shadows, no filters, no images but the light arc's inline SVG). The
 * values are archive-theme.css's tokens (--glow-*, --rim*, --title-bar, --g-*, --pill-*). #74 (§4.13, Karol 05.11: L1 "Lit
 * parchment"): Heritage light draws exactly what Heritage dark draws, the --g-* names carrying glowLight's values there, so
 * every Heritage rule below is written once, for both schemes, as
 *   :root[data-style="heritage"]:is([data-theme], :not([data-theme]))
 * (any scheme, at the specificity the dark-only rules had). Classic none. Print and forced colours draw none of it.
 */

/* ---------- 1. GlowCard ---------- */
/* The fill and edge, the rims as background layers above the fill (top 1 px, its 6 px band, bottom 1 px), the outer glow
   on heroes, single cards and Quick action tiles only; never on list rows (.glow-row) or file tiles. */
[data-style] :is(.glow, .glow-row, section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card, .tl-card, .tl-person, .ev-card, .card.obj) {
  background: var(--rim) top / 100% 1px no-repeat, var(--rim-band) 0 -2px / 100% 6px no-repeat, var(--rim-bottom) bottom / 100% 1px no-repeat, var(--glow-fill);
  border-color: var(--glow-edge);
}
[data-style] :is(.glow, section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card) { box-shadow: var(--glow-outer); }
[data-style] :is(.glow-row, .tl-card, .tl-person, .ev-card, .card.obj) { box-shadow: none; }
/* Hover: a soft overlay over the same layers; press: a slight scale (none under reduced motion); focus as today. */
[data-style] :is(.glow, .glow-row, .hl-qt, .card.hl-strip, .home-card, .help-card, .tl-person):hover {
  background: linear-gradient(var(--glow-hover), var(--glow-hover)), var(--rim) top / 100% 1px no-repeat, var(--rim-band) 0 -2px / 100% 6px no-repeat, var(--rim-bottom) bottom / 100% 1px no-repeat, var(--glow-fill);
}
[data-style] :is(.glow, .hl-qt, .card.hl-strip, .home-card, .help-card, .tl-person, .hl-hero, .door) { transition: transform .12s ease-out; }
[data-style] :is(.glow, .hl-qt, .card.hl-strip, .home-card, .help-card, .tl-person, .hl-hero, .door):active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { [data-style] :is(.glow, .hl-qt, .card.hl-strip, .home-card, .help-card, .tl-person, .hl-hero, .door):active { transform: none; } }
/* .glow-hero: a photo fills the card (the Library hero, Photo of the day Wide, the doors); the rims drawn over it. */
[data-style] :is(.glow-hero, .hl-hero, .door) { border-color: var(--glow-edge); }
[data-style] :is(.glow-hero, .hl-hero) { box-shadow: var(--glow-outer); }
[data-style] :is(.glow-hero, .hl-hero, .door)::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: var(--rim) top / 100% 1px no-repeat, var(--rim-band) 0 -2px / 100% 6px no-repeat, var(--rim-bottom) bottom / 100% 1px no-repeat; }
/* .glow-gold and .glow-dashed. */
[data-style] .glow-gold { background: linear-gradient(90deg, transparent, #FFF4DC 50%, transparent) top / 100% 1px no-repeat, var(--primary-fill); box-shadow: 0 0 28px -4px rgba(214,169,100,.35); }
[data-style] .glow-dashed { background: none; border: 1.5px dashed var(--line-strong); box-shadow: none; }

/* ---------- 2. The outline pill (.ctl), Heritage ---------- */
:root[data-style="heritage"] .ctl:not(.hl-hero-play):not(.ghost):not(.quiet) { border: 1.25px solid var(--pill-edge); }
:root[data-style="heritage"] .ctl:not(.hl-hero-play):not(.ghost):not(.quiet) .i { color: var(--primary); }
:root[data-style="heritage"] :is(.card, section.hl-item, .tl-card) .ctl:not(.hl-hero-play):not(.ghost):not(.quiet) { color: var(--pill-word); }

/* ---------- 3. The selected segment, Heritage ---------- */
:root[data-style="heritage"] .seg :is(a[aria-current="true"], button[aria-pressed="true"], button[aria-checked="true"]) { border: 1.5px solid var(--primary); font-weight: 600; color: var(--ink); }

/* ---------- 4. The title bar ---------- */
/* Under the h1 of the top-level pages (Home's greeting, Timeline, Library, Assets & Collections): 26 × 2.5 in
   --title-bar, 8 px under the title's last line. Not on sub-pages with a Back row. */
[data-style] :is(.home-head > .hero-t, .tl-title-row > h1, .tl-head .titles > .over + h1, .lib-title > h1, h1.has-title-bar)::after {
  content: ""; display: block; width: 26px; height: 2.5px; margin-top: 8px; border-radius: 2px; background: var(--title-bar); }
[data-style] .title-bar { display: block; width: 26px; height: 2.5px; margin: 8px 0 16px; border-radius: 2px; background: var(--title-bar); }

/* ---------- 5. #62 The header's light arc (§4.8; it replaced §4.6's streak drawing) ---------- */
/* archive-look.js puts one inline aria-hidden SVG in the head of Home's greeting, Timeline's title row and a life's title,
   only where nothing sits beside the title, the h1 fits one line and 120 px are left after it (+ 24 px): under the text,
   120 px above and below the head and cut at the scroll area's right edge (no filters, every colour a --g-arc-* token). Heritage dark draws the .arc-d group (haze, bands, core,
   flare) in both schemes (#74: light from glowLight), Classic nothing. */
[data-arc-in] { position: relative; z-index: 0; }
svg.look-arc { position: absolute; left: 0; top: -120px; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
:root[data-style="heritage"] svg.look-arc { display: block; }

/* ---------- 6. The brand's tag rules (Heritage) ---------- */
/* Two 36 px hairlines beside the tag on the sign-in card (centred), one on the right in the column; none without a tag. */
:root[data-style="heritage"] .rail-brand .tag { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
:root[data-style="heritage"] .rail-brand .tag[data-no-rule]::after { content: none; }
:root[data-style="heritage"] .rail-brand .tag::after { content: ""; flex: 0 1 36px; min-width: 24px; height: 1px; background: linear-gradient(to right, color-mix(in srgb, var(--primary) 90%, transparent), transparent); }
:root[data-style="heritage"] .auth-card .auth-tag { display: inline-flex; align-items: center; gap: 8px; }
:root[data-style="heritage"] .auth-card .auth-tag::before, :root[data-style="heritage"] .auth-card .auth-tag::after { content: ""; width: 36px; height: 1px; }
:root[data-style="heritage"] .auth-card .auth-tag::before { background: linear-gradient(to left, color-mix(in srgb, var(--primary) 90%, transparent), transparent); }
:root[data-style="heritage"] .auth-card .auth-tag::after { background: linear-gradient(to right, color-mix(in srgb, var(--primary) 90%, transparent), transparent); }

/* ---------- #61 Stewart's glow, Heritage dark and (#74) light (web-heritage spec §4.7, §4.13) ---------- */
/* The board's glow.css (docs/design/stewart-glow-61, sha256 88cec7c4…a0ec5) drawn on §4.6's surfaces: tiles (.g-card.g-tile:
   Home's cards, the Quick action tiles, the strip, Help and the person page's cards), rows (.g-row: People, Timeline and
   event cards, A&C objects), heroes (.g-hero: the Library and Photo of the day heroes, the doors), the pill (.g-pill),
   the selected segment and its track (.g-sel, .g-track), the title bar. Values only from the --g-* tokens (archive-theme.css,
   both Heritage schemes); Classic keeps §4.6. Hot spots: tiles 45 %, rows 30/70 %, heroes 34 %. */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card, .tl-person, .tl-card, .ev-card, .card.obj, .gn-grow) { --hs: var(--g-hot-len); --iw: var(--g-inner-w); --h1: 45%; --h2: -50%; position: relative; isolation: isolate;
  border: var(--g-edge-w) solid var(--g-edge); border-radius: var(--g-r);
  background:
    linear-gradient(90deg, transparent calc(var(--h1) - var(--hs)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--hs))) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h2) - var(--hs)), var(--g-hot) var(--h2), transparent calc(var(--h2) + var(--hs))) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h1) - var(--hs)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--hs))) bottom / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h2) - var(--hs)), var(--g-hot) var(--h2), transparent calc(var(--h2) + var(--hs))) bottom / 100% 1.5px no-repeat,
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h1) 0, color-mix(in srgb, var(--g-hot) 38%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h2) 0, color-mix(in srgb, var(--g-hot) 30%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h1) 100%, color-mix(in srgb, var(--g-hot) 30%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h2) 100%, color-mix(in srgb, var(--g-hot) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--g-inner), transparent var(--iw)),
    linear-gradient(0deg, var(--g-inner), transparent var(--iw)),
    radial-gradient(var(--g-fill-size) at var(--g-fill-pos), var(--g-fill-c), var(--g-fill-e)); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card) { --br: var(--g-bloom-tile); --hs: 25%; box-shadow: 0 0 var(--br) calc(var(--br) / -3) var(--g-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.tl-person, .tl-card, .ev-card, .card.obj, .gn-grow) { --br: var(--g-bloom-row); --h1: 30%; --h2: 70%; box-shadow: none; }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(li:last-child > .tl-person, li:last-child > .tl-card, .ev-card:last-child, .card.obj:last-child, .gn-grow:last-child) { box-shadow: 0 0 var(--br) calc(var(--br) / -3) var(--g-bloom); } /* the last row keeps its bloom (the mock's ~10 pt under People) */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card, .tl-person, .tl-card, .ev-card, .card.obj, .gn-grow):hover { background: linear-gradient(var(--g-hover), var(--g-hover)),
    linear-gradient(90deg, transparent calc(var(--h1) - var(--hs)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--hs))) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h2) - var(--hs)), var(--g-hot) var(--h2), transparent calc(var(--h2) + var(--hs))) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h1) - var(--hs)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--hs))) bottom / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h2) - var(--hs)), var(--g-hot) var(--h2), transparent calc(var(--h2) + var(--hs))) bottom / 100% 1.5px no-repeat,
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h1) 0, color-mix(in srgb, var(--g-hot) 38%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h2) 0, color-mix(in srgb, var(--g-hot) 30%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h1) 100%, color-mix(in srgb, var(--g-hot) 30%, transparent), transparent 70%),
    radial-gradient(ellipse calc(var(--hs) * 2.2) calc(var(--iw) * 2.2) at var(--h2) 100%, color-mix(in srgb, var(--g-hot) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--g-inner), transparent var(--iw)),
    linear-gradient(0deg, var(--g-inner), transparent var(--iw)),
    radial-gradient(var(--g-fill-size) at var(--g-fill-pos), var(--g-fill-c), var(--g-fill-e)); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(section.hl-item:not(.hl-quick), .hl-qt, .card.hl-strip)::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: calc(var(--br) * -1) 0;
  background: radial-gradient(ellipse calc(var(--hs) * 2.4) var(--br) at var(--h1) var(--br), var(--g-bloom), transparent 72%),
    radial-gradient(ellipse calc(var(--hs) * 2.4) var(--br) at var(--h2) calc(100% - var(--br)), var(--g-bloom), transparent 72%); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.hl-hero, .door) { --h1: 34%; --hs: 20%; --iw: var(--g-inner-hero-w); border-color: var(--g-edge); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .hl-hero { border-radius: var(--g-r-hero); box-shadow: 0 0 var(--g-bloom-hero) calc(var(--g-bloom-hero) / -3) var(--g-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.hl-hero, .door)::after { border: var(--g-edge-w) solid var(--g-edge); inset: -1px;
  background: linear-gradient(90deg, transparent calc(var(--h1) - var(--g-hot-len)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--g-hot-len))) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent calc(var(--h1) - var(--g-hot-len)), var(--g-hot) var(--h1), transparent calc(var(--h1) + var(--g-hot-len))) bottom / 100% 1.5px no-repeat,
    radial-gradient(ellipse calc(var(--hs) * 2) var(--iw) at var(--h1) 0, var(--g-inner-hero), transparent 75%); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .ctl:not(.hl-hero-play):not(.ghost):not(.quiet) { border: 1.25px solid var(--g-pill-edge);
  background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--g-hot) 55%, transparent) 50%, transparent 80%) top / 100% 1px no-repeat, var(--g-pill-fill); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .seg { background: var(--g-seg-track); border: 1px solid var(--g-seg-edge); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .seg :is(a[aria-current="true"], button[aria-pressed="true"], button[aria-checked="true"]) { border: 1.5px solid color-mix(in srgb, var(--g-seg-hot) 70%, var(--g-accent));
  background: linear-gradient(90deg, transparent 10%, var(--g-seg-hot) 45%, transparent 85%) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent 15%, var(--g-seg-hot) 55%, transparent 90%) bottom / 100% 1.5px no-repeat,
    linear-gradient(180deg, var(--g-seg-inner), transparent 45%), linear-gradient(0deg, color-mix(in srgb, var(--g-seg-inner) 80%, transparent), transparent 40%), var(--g-fill-e);
  box-shadow: 0 0 12px -2px var(--g-seg-bloom); color: var(--g-ink); font-weight: 600; }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.home-head > .hero-t, .tl-title-row > h1, .tl-head .titles > .over + h1, .lib-title > h1, h1.has-title-bar)::after { background: var(--g-accent); }


/* #72: the Timeline title row's pill (Filters, Choose categories) in Heritage: a solid fill, its edge and rim kept, so the
   arc runs behind it. */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tl-title-row > .ctl:not(.hl-hero-play):not(.ghost):not(.quiet) { background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--g-hot) 55%, transparent) 50%, transparent 80%) top / 100% 1px no-repeat, var(--g-fill-e); }

/* ---------- 7. #66 The left column in #61's language (§4.9) ---------- */
/* Every look: the tooltip drawn in the look (archive-look.js moves the column's titles to data-tip, one role="tooltip" box). */
[data-style] .look-tip { position: fixed; z-index: 60; max-width: 320px; padding: 6px 11px 7px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font: 500 calc(14px * var(--kt))/1.2 var(--text); white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
[data-style] .look-tip.on { opacity: 1; transform: none; }
[data-style] .look-tip[hidden] { display: none; }
[data-style] .look-tip::before { content: ""; position: absolute; top: -5px; left: 18px; width: 8px; height: 8px; background: inherit; border-left: inherit; border-top: inherit; transform: rotate(45deg); }
[data-style] .look-tip.side::before { top: calc(50% - 4px); left: -5px; border-top: 0; border-bottom: inherit; }
[data-style] .look-tip.up::before { top: auto; bottom: -5px; border-left: 0; border-top: 0; border-right: inherit; border-bottom: inherit; }
@media (prefers-reduced-motion: reduce) { [data-style] .look-tip { transition: none; transform: none; } }
@media print { [data-style] .look-tip { display: none !important; } }
/* Heritage: the column's ground with a warm top-left; ink-2 words, gold icons with a faint glow; the current place #61's
   selected pill (rim, hot spots, inner glow) across the whole row; an open parent the rim only; hairlines, MANAGE's rule, the
   lit badge; Add #61's gold card (but WS28's quiet pill where the page has its own gold); the edge a rim with a hot spot at
   30 % and a warm bloom, under §4.5's handle. Heritage light the same (#74), from glowLight and archive-theme.css's light
   --g-hover/--g-line/--g-hair/--g-handle values. */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail { background: radial-gradient(140% 40% at 0% 0%, var(--g-bg-top), transparent 70%), var(--g-bg); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail :is(.nav > li > a, .nav > li > button.navlink) { color: var(--g-ink2); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav .i:not(.lib-chev) { color: var(--g-accent); stroke-width: 1.7; filter: drop-shadow(0 0 4px var(--g-icon-glow)); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav :is(a, button.navlink):not([aria-current]):hover, :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tree-wrap .trow:not(.current):hover { background: var(--g-hover); box-shadow: inset 0 0 0 1px var(--g-hover-edge); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav :is(a[aria-current="page"], .nav-sub a[aria-current="page"]), :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tree-wrap .trow.current { color: var(--g-ink); font-weight: 700;
  background: linear-gradient(90deg, transparent 10%, var(--g-seg-hot) 45%, transparent 85%) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent 15%, var(--g-seg-hot) 55%, transparent 90%) bottom / 100% 1.5px no-repeat,
    linear-gradient(180deg, var(--g-seg-inner), transparent 45%), linear-gradient(0deg, color-mix(in srgb, var(--g-seg-inner) 80%, transparent), transparent 40%), var(--g-fill-e);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g-seg-hot) 70%, var(--g-accent)), 0 0 12px -2px var(--g-seg-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav :is(a[aria-current="page"], .nav-sub a[aria-current="page"]) .count, :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tree-wrap .trow.current .count { color: var(--g-ink2); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav :is(a, button.navlink).open:not([aria-current]) { color: var(--g-ink); font-weight: 700; box-shadow: none; background: none; } /* #75: no pill, the word in 700 */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .side-sep { height: 1px; background: linear-gradient(90deg, var(--g-hair), transparent); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .navlabel { display: flex; align-items: center; gap: 10px; color: var(--g-accent); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .navlabel::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--g-hair), transparent); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .badge { background: linear-gradient(180deg, #FDE59B, #DBA55F); color: #1E150E; box-shadow: 0 0 10px -2px rgba(201,140,82,.7); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .newbtn { color: #1E150E; border: 1px solid var(--g-gold-edge);
  background: linear-gradient(90deg, transparent 15%, var(--g-gold-edge) 50%, transparent 85%) top / 100% 2px no-repeat,
    linear-gradient(0deg, color-mix(in srgb, #FBC26B 80%, transparent), transparent 18px), linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2) 45%, var(--g-gold-3));
  box-shadow: 0 0 18px -2px var(--g-gold-bloom), 0 -2px 10px -4px var(--g-gold-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .app:has(.main .btn.primary:not(:is(.pn-acts, .selbar, dialog, template, [hidden]) .btn, [hidden])) .rail .newbtn { background: var(--ctl-fill); color: var(--ink); border: 1px solid var(--ctl-edge); box-shadow: none; } /* WS28 stays */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .col-handle:not(:hover):not(:focus-visible):not(.dragging)::after { width: 1px; background: var(--g-handle); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .col-handle::before { content: ""; position: absolute; top: 14%; right: 0; width: 10px; height: 32%; pointer-events: none; background: radial-gradient(ellipse 100% 50% at 100% 50%, var(--g-handle-glow), transparent 70%); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.look-tip, .col-tip) { background: var(--g-fill-e); color: var(--g-ink); border-color: var(--g-line-strong); box-shadow: 0 10px 24px -10px var(--g-drop); }

/* ---------- 8. #68 The #61 glow around round portraits (§4.10) ---------- */
/* The tree's mounts (.gn-mt: Family, Whole tree, the side card), People rows (.tl-pface) and a person's head (.pn-mount). In
   Heritage (dark and light): a bloom under the mount, B = clamp(4, .16 × size, 12) px (alpha × --q: 1 focused, portraitQuiet .5 quiet, and
   none for a quiet mount under 56 px; People rows at most 3 px); the ring (portraitRing, 1.5 px, 1 px under 40) with its hot
   arcs ringW + 1.5 px wide over it, the main centred at 330deg over 70° (the app's −120° from 3 o'clock), a second
   at 150deg over 40° at .6 for focused mounts of 56 px and more; a 6 px bloomHot halo at .6 under the main arc. Focused: Family's
   middle person, Whole tree's focus, the chosen person, the side card's portrait, a person's head; the rest quiet (spots ×.75, bloom ×.5).
   The chosen person's outer ring stays, the bloom joins it; in Heritage the focused person has no second mount (mobile-design §18.8). Heritage light
   the same from glowLight (#74). Classic unchanged; print and forced colours the plain ring. No animation. "To check" and ghost mounts keep their dashed edge. */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :where(.gn-mt:not(:is(.gn-p.check, .gn-p.ghost) .gn-mt), .pn-mount, .tl-pface) { --pring: var(--g-portrait-ring); --q: var(--g-portrait-quiet); --spot: var(--g-portrait-quiet-spot); --spot2: 0; --pmax: var(--g-portrait-bloom-max); --pin: -1.5px;
  --pbf: clamp(var(--g-portrait-bloom-min), calc(var(--ps, 64px) * var(--g-portrait-bloom-k)), var(--pmax));
  --pb: min(clamp(0px, calc((var(--ps, 64px) - 55.5px) * 100), var(--pmax)), var(--pbf)); /* quiet: no bloom under 56 px */
  position: relative; border-color: transparent;
  box-shadow: var(--pt-rings, 0 0 transparent), 0 0 var(--pb) calc(var(--pb) / -3) color-mix(in srgb, var(--g-bloom) calc(var(--q) * 100%), transparent) !important; } /* over the tree's own ring rules: every state goes through --pt-rings */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .gn-mt { --ps: var(--mt); --pr: clamp(1px, calc(var(--mt) - 38.5px), var(--g-portrait-ring-w)); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .pn-mount { --ps: calc(144px * var(--k)); --pr: var(--g-portrait-ring-w); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tl-pface { --ps: calc(52px * var(--k)); --pr: var(--g-portrait-ring-w); --pin: calc(-1 * var(--pr)); --pmax: 3px; overflow: visible; }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .tl-pface > * { clip-path: circle(50%); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.gn-p.v.mid .gn-mt, .gn-p.v[aria-current="true"] .gn-mt, .gn-pane-mt .gn-mt, .gn-focus .gn-mt, .gn-sc-head .gn-mt, .pn-mount) { --q: 1; --spot: 1; --spot2: var(--g-portrait-second); --pb: var(--pbf); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.gn-p.gn-box.f .gn-mt, .gn-p.gn-box[aria-current="true"] .gn-mt) { --q: 1; --spot: 1; --spot2: var(--g-portrait-second); --pb: var(--pbf); } /* #95: 56 px, so both spots (as the app's PortraitRing) */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .gn-mt.two { --pt-rings: 0 0 transparent; }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .gn-p[aria-current="true"] .gn-mt { --pt-rings: 0 0 0 3px var(--tree-ground), 0 0 0 6px var(--tree-ring); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :is(.gn-p.mid[aria-current="true"], .gn-p.f[aria-current="true"]) .gn-mt { --pt-rings: 0 0 transparent; } /* the focused person: one ring only */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .gn-p.gn-box[aria-current="true"] .gn-mt { --pt-rings: 0 0 transparent; }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .gn-p.gn-box.f .gn-mt { --pt-rings: 0 0 transparent; } /* #95: the lit ring only, inside the 56 mount */
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :where(.gn-mt:not(:is(.gn-p.check, .gn-p.ghost) .gn-mt), .pn-mount, .tl-pface)::before { content: ""; position: absolute; z-index: 1; inset: calc(var(--pin) - var(--g-portrait-hot-w) / 2); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 330deg, color-mix(in srgb, var(--g-hot) calc(var(--spot) * 100%), transparent) 0deg, transparent 35deg 160deg,
      color-mix(in srgb, var(--g-hot) calc(var(--spot2) * 100%), transparent) 180deg, transparent 200deg 325deg, color-mix(in srgb, var(--g-hot) calc(var(--spot) * 100%), transparent) 360deg),
    radial-gradient(closest-side, transparent calc(100% - var(--g-portrait-hot-w) / 2 - var(--pr) - .4px), var(--pring) calc(100% - var(--g-portrait-hot-w) / 2 - var(--pr)), var(--pring) calc(100% - var(--g-portrait-hot-w) / 2), transparent calc(100% - var(--g-portrait-hot-w) / 2 + .4px));
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--pr) - var(--g-portrait-hot-w) - .4px), #000 calc(100% - var(--pr) - var(--g-portrait-hot-w)));
  mask: radial-gradient(closest-side, transparent calc(100% - var(--pr) - var(--g-portrait-hot-w) - .4px), #000 calc(100% - var(--pr) - var(--g-portrait-hot-w))); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) :where(.gn-mt:not(:is(.gn-p.check, .gn-p.ghost) .gn-mt), .pn-mount, .tl-pface)::after { content: ""; position: absolute; z-index: 0; inset: calc(var(--pin) - var(--g-portrait-hot-under-w)); border-radius: 50%; pointer-events: none; filter: blur(3px);
  background: conic-gradient(from 330deg, color-mix(in srgb, var(--g-bloom-hot) calc(var(--g-portrait-hot-under-a) * var(--spot) * 100%), transparent) 0deg, transparent 35deg 325deg, color-mix(in srgb, var(--g-bloom-hot) calc(var(--g-portrait-hot-under-a) * var(--spot) * 100%), transparent) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--g-portrait-hot-under-w) - 2px - var(--pr)), #000 calc(100% - var(--g-portrait-hot-under-w) - var(--pr)));
  mask: radial-gradient(closest-side, transparent calc(100% - var(--g-portrait-hot-under-w) - 2px - var(--pr)), #000 calc(100% - var(--g-portrait-hot-under-w) - var(--pr))); }

/* ---------- 9. #75 The column as Medallions (§4.14, Karol 05.11: B) ---------- */
/* Each place's icon in a ring: 30 × k (Manage 26 × k), the icon 16 × k (14 × k) inside; the svg itself is the ring (padding,
   border, background), so the markup stays. Heritage: a 1.25 px --g-edge ring on the card radial with a small bloom, the
   current place's ring --g-seg-hot with a stronger bloom (the row stays §4.9's pill). Classic: plain 1 px --line rings.
   Children (Library's views and categories) hang off a 1.5 px guide under the parent's medallion, --g-edge, glowing --g-hot
   where the current child is (archive-look.js sets --at, its centre in the box): fully hot ±22 × k around it, back to --g-edge by
   ±64 × k, so it reads outside a current pill that covers the guide (web-design's #75 review); Classic keeps §4.9's dotted rule. */
[data-style] .rail .nav > li > :is(a, button.navlink) > .i:not(.lib-chev) { --md: calc(30px * var(--k)); --mi: calc(16px * var(--k)); box-sizing: border-box; flex: none;
  width: var(--md); height: var(--md); padding: calc((var(--md) - var(--mi)) / 2 - 1.25px); border-radius: 50%; border: 1px solid var(--line); overflow: visible; }
[data-style] .rail .nav[aria-labelledby="manage-label"] > li > :is(a, button.navlink) > .i:not(.lib-chev) { --md: calc(26px * var(--k)); --mi: calc(14px * var(--k)); margin-inline: calc(2px * var(--k)); } /* in a 30 × k slot: every label on one x */
[data-style] .rail .nav > li > :is(a, button.navlink) { gap: max(8px, calc(20px - 8px * var(--k))); } /* 12 / 10 / 8 px: at Larger the 45 px ring and Library's count column still fit, the count 12 px inside (#52) */
[data-style] .rail .nav a.look .quiet-word { color: var(--muted); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav > li > :is(a, button.navlink) > .i:not(.lib-chev) { border: 1.25px solid var(--g-edge); color: var(--g-accent); filter: none;
  background: radial-gradient(circle at 40% 30%, var(--g-fill-c), var(--g-fill-e)); box-shadow: 0 0 8px -3px var(--g-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav > li > a[aria-current="page"] > .i:not(.lib-chev) { border-color: var(--g-seg-hot); box-shadow: 0 0 10px -2px var(--g-bloom); }
:root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav .nav-sub a { min-height: calc(38px * var(--k)); display: flex; align-items: center; }
@media (min-width: 861px) {
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail :is(.nav-sub, .nav-sub-tree) { --gx: calc(15px * var(--k) - 16.75px); --g-hot-80: color-mix(in srgb, var(--g-hot) 80%, transparent); border-left: 0; position: relative; }
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail :is(.nav-sub, .nav-sub-tree)::before { content: ""; position: absolute; z-index: 0; left: var(--gx); top: 0; bottom: 0; width: 1.5px; pointer-events: none;
    background: linear-gradient(180deg, var(--g-edge) 0, var(--g-edge) calc(var(--at, -400px) - 64px * var(--k)), var(--g-hot-80) calc(var(--at, -400px) - 22px * var(--k)), var(--g-hot-80) calc(var(--at, -400px) + 22px * var(--k)), var(--g-edge) calc(var(--at, -400px) + 64px * var(--k)), var(--g-edge) 100%); }
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav-sub-tree::before {
    background: linear-gradient(180deg, var(--g-edge) 0, var(--g-edge) calc(var(--at, -400px) - 64px * var(--k)), var(--g-hot-80) calc(var(--at, -400px) - 22px * var(--k)), var(--g-hot-80) calc(var(--at, -400px) + 22px * var(--k)), var(--g-edge) calc(var(--at, -400px) + 64px * var(--k)), color-mix(in srgb, var(--g-edge) 60%, transparent) 70%, transparent); }
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail :is(.nav-sub, .nav-sub-tree) > :not(.sr-only) { position: relative; z-index: 1; }
  /* The L0 chevrons sit on the guide (§5.3c): each breaks it with a narrow patch of the column's ground, 6 × k wide on the guide
     and the glyph's height plus 2 × k above and below (13 × k), so the line stays continuous with short breaks (web-design, DEMO
     check of v0.149.0). --tog-gx is the guide's x from the chevron's left edge. Not on the current or a hovered row. */
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav-sub-tree #tree > li > .trow:not(.current):not(:hover) > .tog:not(.leaf) { position: relative; --tog-gx: calc(26px * var(--k) - 15.75px); }
  :root[data-style="heritage"]:is([data-theme], :not([data-theme])) .rail .nav-sub-tree #tree > li > .trow:not(.current):not(:hover) > .tog:not(.leaf)::after { content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: calc(var(--tog-gx) + .75px - 3px * var(--k)); top: 50%; width: calc(6px * var(--k)); height: calc(13px * var(--k)); transform: translateY(-50%); background: var(--g-bg); }
}

/* ---------- Print and forced colours: none of it ---------- */
@media print, (forced-colors: active) {
  [data-style] :is(.glow, .glow-row, section.hl-item, .hl-qt, .card.hl-strip, .home-card, .help-card, .gn-card.gn-pane, .pn-story .gn-card, .pn-rest .gn-card, .tl-card, .tl-person, .ev-card, .card.obj, .glow-gold, .seg *, .ctl) { background: none !important; box-shadow: none !important; }
  [data-style] :is(section.hl-item, .hl-qt, .card.hl-strip)::before { content: none !important; }
  [data-style] :is(.glow-hero, .hl-hero, .door)::after { content: none !important; }
  svg.look-arc { display: none !important; }
  [data-style] :is(.gn-mt, .pn-mount, .tl-pface)::before, [data-style] :is(.gn-mt, .pn-mount, .tl-pface)::after { content: none !important; }
  :root[data-style="heritage"] :is(.gn-mt:not(:is(.gn-p.check, .gn-p.ghost) .gn-mt), .pn-mount) { border-color: CanvasText !important; }
  :root[data-style="heritage"] .tl-pface { outline: 1.5px solid CanvasText; }
  [data-style] :is(.rail-brand .tag, .auth-card .auth-tag)::before, [data-style] :is(.rail-brand .tag, .auth-card .auth-tag)::after { content: none !important; }
}
