/* Light theme refinements, shared by every page (loaded after the page styles and glow.css).
   --accent stays the fill colour (squares, icons, glow); --accent-ink is the readable text green. */
:root { --accent-ink: var(--accent); }
[data-theme="light"] { --accent-ink: #2a6e19; } /* 4.6:1 on the green chip fill, 5.9:1 on white; #4ea832 is only 3:1 */

/* small green text: metrics, phase numbers, counters */
[data-theme="light"] :is(.case-metric b, .cc-metric b, .cc-status, .cc-view, .chip.accent, .mz-chip.accent, .mz-tip b, .eyebrow .n,
  .side-nav a.active .n, .side-count, .wh-count, .mchip, .ph-label .n, .pr-step.on .pr-num, .ss-step.on .ss-num,
  .accent-block .ph-label em, .impact-note b, .itile.qual b, .loop-node.accent b, .loop-return span,
  .xref:hover, .xref:focus-visible, .xref-tip .xt-metric b, .skill code, .po-chip.acc,
  .mbar-idx, .mbar-list a.active .n, .mbar-list a.mbar-sub.active .n, .mnav-list a[aria-current] .n,
  .ds-lane-label i, .ds-mdv-b td.y, .ds-n .sub em, .ds-ret, .light.green .verb, .lb-chap.on .lb-chap-label b, .lb-title .n,
  .ws-src, .ch-tag, .ds-cat .ft,
  .tile:hover .ti-case::after, .tile:focus-visible .ti-case::after, .ib-col.after .ib-tag, .ib-col.after .ib-total b, .ib-th .ib-cnt b) { color: var(--accent-ink); }
[data-theme="light"] :is(.mchip, .chip.accent, .mz-chip.accent, .cc-status) { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }

/* the nav's big dark shadow fell on the white panels below it as a grey smudge: keep it short in light */
[data-theme="light"] { --shadow: 0 8px 20px -14px rgba(20,24,16,.18); } /* no 1px offset layer: under the nav it read as a second, darker line */

/* dark product shots sit in a thin dark frame, like a screen, instead of a raw black block */
[data-theme="light"] { --shot-frame: #101310; }
[data-theme="light"] [data-lightbox].has-img { padding: 6px; background: var(--shot-frame); border-color: var(--shot-frame);
  box-shadow: 0 18px 40px -22px rgba(20,24,16,.45); }
[data-theme="light"] [data-lightbox].has-img :is(img, video) { border-radius: 6px; }

/* glow in light: a short, crisp green line (the long green-to-grey fade along the border read as dirt) */
/* variant B: the inner haze comes back, but blended normally over a white card (multiply over the grey hover fill read as dirt),
   so near the cursor the edge picks up a light mint tint */
[data-theme="light"] .gl { --haze: .85; }
[data-theme="light"] .gl::after { mix-blend-mode: normal; box-shadow: inset 0 0 26px -6px rgba(78,168,50,.55); }
[data-theme="light"] .gl { --gl-l: 180px; }
[data-theme="light"] .gl:is(.card, .phase, .nav, .sidebar) { --gl-l: 240px; }
[data-theme="light"] .gl::before { background: radial-gradient(var(--gl-l) circle at var(--mx, -999px) var(--my, -999px), var(--g), transparent 62%),
  linear-gradient(var(--gl-base, var(--border)), var(--gl-base, var(--border))); }
[data-theme="light"] :is(.case-card, .tool-card, .role-card, .cc, .tile, .pager a).gl:hover { background-color: var(--card-h, var(--panel)); }
