/* Dinos.info - the colour and life pass, medium (Claude Design board, overnight 2026-10-14: Phase 1 canvas v55,
   boards Life-System, Life-Home, Life-TRex, Life-Index, Life-Map, hand-off n-life; design/phase-1/source/life.css).
   Shipped as the board drew it, loaded on every page after the site and species styles (includes/site-blocks.php),
   with two changes by Claude Code (overnight, for Ben; DECISIONS 2026-10-15):
     - the Time Machine is left out (Ben, 22:16: "great as it is right now"): no neon on its strip (.tm2-band); the
       livelier cards key on [data-period], which only the cards the plugin prints carry (every one of them: a period,
       or "none" for orange), never the Time Machine's own cards (era-slider.js), so they cost it nothing; the button
       glow is guarded with :not(.dn-tm2-page *);
     - the board-only state classes (.is-hover, .is-focus, .lf-rm) are dropped.
   The rule for new pages: docs/SHORTCODES.md section 1b. Cheap selectors only: no :has(), filters on a handful of
   icons only. */
/* ==========================================================================================================
   Colour and life pass, medium (Claude Design, overnight 2026-10-14; Ben: "it's ok to have fun - we don't have
   to go overboard"). Loads after the plugin's own stylesheets. Five pieces, one rule each:
     1. Period neon accents   ICS period hues, saturated for dark grounds; edges, glows and small labels only.
                              The ICS fills themselves (bands, swatches, epoch badges) stay the official colours.
     2. Glow                  primary orange button, active tab, active toggle, chips: soft glow at rest, stronger
                              on hover and keyboard focus (the focus ring stays on top).
     3. Rendered bands        section bands carry an approved bg-* artwork under a dark overlay (AA checked).
     4. Icon strip            a row of bronze icons with two-line labels under a page's header band.
     5. Livelier cards        bigger art, a period-coloured top edge, a lift and period glow on hover.
   Reduced motion: no lifts, no glow transitions, glows drop to the flat rest state.
   Contrast on Prehistoric Slate #121417: Triassic 6.9:1, Jurassic 9.4:1, Cretaceous 11.4:1, orange 7.5:1;
   on Band #24262A: 5.6, 7.7, 9.4, 6.2. All neon text is 12 px bold or larger.
   ========================================================================================================== */
:root {
  --neon-triassic: #C77DFF;  --neon-triassic-rgb: 199, 125, 255;
  --neon-jurassic: #3CC8F0;  --neon-jurassic-rgb: 60, 200, 240;
  --neon-cretaceous: #8EE05C; --neon-cretaceous-rgb: 142, 224, 92;
  --action-rgb: 245, 138, 31;
  --glow-rest: 0 0 0 1px rgba(var(--action-rgb), .45), 0 6px 20px -8px rgba(var(--action-rgb), .65);
  --glow-hot: 0 0 0 1px rgba(var(--action-rgb), .9), 0 10px 30px -6px rgba(var(--action-rgb), .8), 0 0 42px -10px rgba(var(--action-rgb), .55);
  --band-overlay: linear-gradient(180deg, rgba(18, 20, 23, .90) 0%, rgba(18, 20, 23, .84) 45%, rgba(18, 20, 23, .93) 100%);
  --life-ease: cubic-bezier(.2, .7, .2, 1);
  --period: var(--action); --period-rgb: var(--action-rgb);
}
/* the period hook: on any element (cards, chips, bands, timeline rows) */
[data-period="triassic"]   { --period: var(--neon-triassic);   --period-rgb: var(--neon-triassic-rgb); }
[data-period="jurassic"]   { --period: var(--neon-jurassic);   --period-rgb: var(--neon-jurassic-rgb); }
[data-period="cretaceous"] { --period: var(--neon-cretaceous); --period-rgb: var(--neon-cretaceous-rgb); }
:is(.sp-badge, .dn-feat-chip, .dn-tag)[class*="-triassic"]   { --period: var(--neon-triassic);   --period-rgb: var(--neon-triassic-rgb); }
:is(.sp-badge, .dn-feat-chip, .dn-tag)[class*="-jurassic"]   { --period: var(--neon-jurassic);   --period-rgb: var(--neon-jurassic-rgb); }
:is(.sp-badge, .dn-feat-chip, .dn-tag)[class*="-cretaceous"] { --period: var(--neon-cretaceous); --period-rgb: var(--neon-cretaceous-rgb); }

/* ---------- 2. Glow: the primary button ---------- */
.dn-btn-primary:not(.dn-tm2-page *) { box-shadow: var(--glow-rest); transition: box-shadow .25s var(--life-ease), transform .25s var(--life-ease), background-color .2s; }
.dn-btn-primary:not(.dn-tm2-page *):hover { box-shadow: var(--glow-hot); transform: translateY(-1px); }
.dn-btn-primary:not(.dn-tm2-page *):focus-visible { box-shadow: var(--focus-ring-dark), var(--glow-hot); }

/* active tabs and toggles: a lit underline / fill */
.sp-tabs a.on { text-shadow: 0 0 16px rgba(var(--action-rgb), .55); box-shadow: 0 10px 16px -14px rgba(var(--action-rgb), 1); }
.sp-tabs a.on .sp-tab-ic { filter: drop-shadow(0 0 6px rgba(var(--action-rgb), .7)); }
.sp-tabs a:hover { color: var(--accent-on-dark); }
:is(.dn-sort-btn.is-active, .sp-units button[aria-pressed="true"], .dm-seg button[aria-pressed="true"], .lf-seg [aria-pressed="true"], .lf-seg [aria-selected="true"]) { box-shadow: var(--glow-rest); }
:is(.dn-sort-btn, .sp-units button, .lf-seg button):hover { box-shadow: var(--glow-rest); }

/* chips: a period edge and a glow on hover and focus */
:is(.sp-badge, .dn-feat-chip)[class*="dn-ics-epoch-"] { box-shadow: 0 0 0 1px rgba(var(--period-rgb), .9), 0 0 18px -4px rgba(var(--period-rgb), .7); }
.lf-chip { transition: box-shadow .2s var(--life-ease), border-color .2s; }
.lf-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--period-rgb), .55); background: rgba(var(--period-rgb), .10); color: var(--text-on-dark); font: 700 12px/1 var(--font-heading); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.lf-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--period); box-shadow: 0 0 8px rgba(var(--period-rgb), .9); }
a.lf-chip:hover, a.lf-chip:focus-visible, .lf-chip.is-on { border-color: var(--period); box-shadow: 0 0 0 1px var(--period), 0 0 20px -2px rgba(var(--period-rgb), .7); outline: none; }
a.lf-chip:focus-visible { box-shadow: var(--focus-ring-dark), 0 0 20px -2px rgba(var(--period-rgb), .7); }

/* ---------- 1. Period neon on timeline bands (the ICS fill stays; a lit edge and glow are added) ---------- */
:is(.sp-tl-row, .dn-home-era, .lf-band-row) .dn-ics-period-triassic   { box-shadow: inset 0 -2px 0 var(--neon-triassic),   0 0 22px -6px rgba(var(--neon-triassic-rgb), .8); }
:is(.sp-tl-row, .dn-home-era, .lf-band-row) .dn-ics-period-jurassic   { box-shadow: inset 0 -2px 0 var(--neon-jurassic),   0 0 22px -6px rgba(var(--neon-jurassic-rgb), .8); }
:is(.sp-tl-row, .dn-home-era, .lf-band-row) .dn-ics-period-cretaceous { box-shadow: inset 0 -2px 0 var(--neon-cretaceous), 0 0 22px -6px rgba(var(--neon-cretaceous-rgb), .8); }
.lf-neon-t { color: var(--neon-triassic); } .lf-neon-j { color: var(--neon-jurassic); } .lf-neon-c { color: var(--neon-cretaceous); }

/* ---------- 3. Rendered section bands ---------- */
.lf-band { position: relative; isolation: isolate; }
.lf-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-overlay), var(--band-art, none) center 40% / cover no-repeat; pointer-events: none; }
.lf-band.is-bleed::after { left: calc(50% - 50vw + var(--dn-scrollbar, 0px) / 2); right: calc(50% - 50vw + var(--dn-scrollbar, 0px) / 2); }   /* core 0.20.8: a classic scrollbar out of 100vw (no sideways scroll at 1366) */
.sp2 .sp2-b.is-band.lf-band::before { background: var(--band-overlay), var(--band-art) center 40% / cover no-repeat; }
.sp2 .sp2-b.is-band.lf-band::after { display: none; }
.lf-band .dn-section-title.dn-section-title, .lf-band.lf-band h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

/* ---------- 4. Icon feature strip (under a page's header band) ---------- */
.lf-strip { position: relative; background: linear-gradient(180deg, #17191c 0%, #121417 100%); border-top: 1px solid rgba(var(--action-rgb), .35); border-bottom: 1px solid var(--line-dark); box-shadow: 0 -1px 0 rgba(var(--action-rgb), .12), 0 18px 30px -24px rgba(var(--action-rgb), .5) inset; }
.lf-strip ul { list-style: none; margin: 0 auto; padding: 0 var(--space-5, 24px); max-width: calc(var(--site-width, 1700px) - 64px); box-sizing: content-box; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
.lf-strip li { position: relative; }
.lf-strip li + li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line-dark); }
.lf-strip a { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 16px; color: var(--text-on-dark); text-decoration: none; border-radius: var(--radius-md, 6px); transition: background-color .2s, box-shadow .2s var(--life-ease); }
.lf-strip a:hover { background: rgba(var(--action-rgb), .08); box-shadow: inset 0 -2px 0 var(--action); }
.lf-strip a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.lf-strip img, .lf-strip svg.lf-ic { flex: none; width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); transition: filter .25s; }
.lf-strip a:hover :is(img, svg.lf-ic) { filter: drop-shadow(0 0 10px rgba(var(--action-rgb), .6)); }
.lf-strip b { display: block; font: 700 14px/18px var(--font-heading); letter-spacing: .01em; }
.lf-strip small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
@media (max-width: 1100px) { .lf-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lf-strip li:nth-child(3n + 1)::before { display: none; } }
@media (max-width: 760px) {
  .lf-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 10px; }
  .lf-strip li::before { display: none; }
  .lf-strip a { min-height: 60px; padding: 8px 8px; gap: 10px; }
  .lf-strip img, .lf-strip svg.lf-ic { width: 32px; height: 32px; }
  .lf-strip b { font-size: 13px; line-height: 17px; }
  .lf-strip small { display: none; }
}

/* ---------- 5. Livelier cards ---------- */
.dn-species-card[data-period], .lf-card { position: relative; border-top: 3px solid var(--period) !important; transition: transform .25s var(--life-ease), box-shadow .25s var(--life-ease), border-color .2s; }
.dn-species-card[data-period]::before, .lf-card::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; box-shadow: 0 0 14px 1px rgba(var(--period-rgb), .7); pointer-events: none; opacity: .75; }
.dn-species-card[data-period]:hover, .dn-species-card[data-period]:focus-within, .lf-card:hover, .lf-card:focus-within { transform: translateY(-4px); border-color: rgba(var(--period-rgb), .9); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--period-rgb), .55), 0 0 30px -8px rgba(var(--period-rgb), .55); }
.dn-species-card[data-period] .dn-species-card-fig { aspect-ratio: 16 / 10; }
.dn-species-card[data-period] .dn-species-card-fig.is-cut { padding: 6px 6px 0; background: radial-gradient(ellipse at 50% 88%, rgba(var(--period-rgb), .16) 0%, #1d1f22 48%, #17181a 100%); }
.dn-species-card[data-period] .dn-species-card-fig.is-cut img.dn-card-cut { transform: scale(1.06); transform-origin: 50% 100%; transition: transform .35s var(--life-ease); }
.dn-species-card[data-period]:hover .dn-species-card-fig.is-cut img.dn-card-cut { transform: scale(1.11); }
.dn-species-card[data-period] .dn-species-card-fig.is-sil { background: radial-gradient(ellipse at 50% 88%, rgba(var(--period-rgb), .10) 0%, #1d1f22 50%, #17181a 100%); }

/* ---------- Reduced motion: no lifts, no glow transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  .dn-btn-primary:not(.dn-tm2-page *), .dn-btn-primary:not(.dn-tm2-page *):hover, .dn-species-card[data-period], .lf-card, .lf-strip a, .lf-chip { transition: none !important; transform: none !important; }
  .dn-btn-primary:not(.dn-tm2-page *):hover { box-shadow: var(--glow-rest); }
  .dn-species-card[data-period]:hover, .dn-species-card[data-period]:focus-within, .lf-card:hover, .lf-card:focus-within { transform: none; box-shadow: 0 0 0 1px rgba(var(--period-rgb), .55); }
  .dn-species-card[data-period]:hover .dn-species-card-fig.is-cut img.dn-card-cut { transform: scale(1.06); }
  .lf-strip a:hover :is(img, svg.lf-ic) { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
}
/* Lived alongside chips and previous / next: a period edge on the left, a period glow on hover */
.sp-chip[data-period] { border-left: 3px solid var(--period) !important; transition: transform .25s var(--life-ease), box-shadow .25s var(--life-ease); }
.sp-chip[data-period]:hover, .sp-chip[data-period]:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--period-rgb), .6), 0 0 24px -8px rgba(var(--period-rgb), .7); }
.sp2-pn-card[data-period] { border-top: 3px solid var(--period); }
.sp2-pn-card[data-period]:hover { box-shadow: 0 0 0 1px rgba(var(--period-rgb), .6), 0 0 30px -8px rgba(var(--period-rgb), .6); }
@media (prefers-reduced-motion: reduce) { .sp-chip[data-period] { transition: none; } .sp-chip[data-period]:hover { transform: none; } }
