/* Chemistry PlayKit (P2-139, elements.html + js/elements*.js): the House of 118 rooms, the episodes, the Powers book and
   Hold Hands. RaiseSteady house style (direction B, the sticker characters): white cards, 2px navy edge, radius 22px,
   offset navy shadow; Orbitron headings, Geist text. Episodes use the reading room of css/story.css (st-*).
   Sizes in rem, so the browser's font size (the owner reads at 20 px) scales the text; boxes grow, never clip.
   Motion: screens and the game's atoms fade (opacity, 300 / 600 ms); atoms also slide, but with Reduce Motion they fade
   out and in over the same time instead. Every class here starts with el-. */

.el-app {
  --navy: #282858; --ink: #1a1a1a; --muted: #4a4a68; --paper: #f5f5f0; --tint: #fffbea;
  --yellow: #fedb71; --mint: #bfffe6; --mint2: #75c5a8; --coral: #fb7d7e; --lav: #e9d9ff;
  --edge: 2px solid var(--navy); --lift: 4px 4px 0 var(--navy);
  --display: 'Orbitron Variablefont Wght', Orbitron, Geist, sans-serif;
  background: var(--paper); color: var(--ink);
  font: 1rem/1.55 Geist, Inter, system-ui, sans-serif;
  min-width: 0; overflow-x: clip;
  /* P2-166: a screen tall while it loads, so the footer starts below and does not jump down when the week appears
     (Lighthouse: layout shift 0.61, 0.58 of it the footer) */
  min-height: 100vh; min-height: 100dvh;
}
.el-app *, .el-app *::before, .el-app *::after { box-sizing: border-box; }
.el-app [hidden] { display: none !important; }
.el-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; min-width: 0; }
.el-app :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.el-app a { color: var(--navy); }
.el-app .st-page a { color: var(--st-link); }
.el-app .st-page a.st-btn { color: var(--st-ink); }
.el-app .st-page a.st-btn-main { color: var(--st-main-ink); }

/* the bar: the name and four sections */
.el-top { background: var(--yellow); border-bottom: var(--edge); padding: 16px 0 14px; }
.el-brand { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.el-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.el-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35em 1em; border: var(--edge); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: 2px 2px 0 var(--navy); }
.el-app a.el-tab { text-decoration: none; }
.el-tab[aria-current="page"] { background: var(--navy); color: #fff; }
.el-app a.el-tab[aria-current="page"] { color: #fff; }
.el-status { max-width: 1160px; margin: 24px auto; padding: 0 16px; color: var(--muted); }

.el-screen { padding: 24px 0 64px; opacity: 1; transition: opacity 300ms ease; }
.el-screen.is-fading { opacity: 0; }
.el-h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.el-h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.el-sub { margin: 0 0 16px; color: var(--muted); max-width: 44em; }
.el-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 8px; font-weight: 700; }

/* buttons */
.el-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0.5em 1.2em; border: var(--edge); border-radius: 999px; background: #fff; color: var(--navy); font: 700 1rem/1.3 Geist, Inter, sans-serif; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--navy); max-width: 100%; overflow-wrap: anywhere; }
.el-app a.el-btn { text-decoration: none; }
.el-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.el-btn-main { background: var(--navy); color: var(--yellow); }
.el-app a.el-btn-main { color: var(--yellow); }
.el-btn[disabled] { opacity: 0.55; cursor: default; }
.el-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- 1. This week ---------- */
.el-today { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; margin: 0 0 26px; padding: 18px 20px; background: #fff; border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--navy); }
.el-today svg { width: 104px; height: 104px; }
.el-today-k { margin: 0; font-weight: 700; color: var(--muted); }
.el-today-t { margin: 2px 0 12px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.el-strip { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5em), 1fr)); }
.el-day { display: grid; gap: 4px; align-content: start; min-height: 100%; padding: 12px 12px 14px; border: var(--edge); border-radius: 18px; background: #fff; box-shadow: var(--lift); color: var(--navy); min-width: 0; }
.el-day-n { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); }
.el-day-t { font-weight: 800; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.el-day-s { font-size: 0.9rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.el-day a.el-day-go { font-weight: 800; }
.el-day.is-show { background: var(--lav); }
.el-day.is-today { background: var(--yellow); }
.el-day.is-done { background: var(--mint); }
.el-day.is-later { background: var(--tint); border-style: dashed; box-shadow: none; }
.el-day.is-soon { background: #f1f1f5; border-style: dashed; box-shadow: none; }
.el-day.is-show.is-later, .el-day.is-show.is-soon { background: var(--lav); }   /* day 7 stays the Show while it waits */
.el-day .el-link { min-height: 44px; font-size: 0.9rem; text-align: left; }
.el-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.el-who-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px 16px; border: var(--edge); border-radius: 22px; background: var(--c, #fff); box-shadow: var(--lift); color: var(--navy); text-decoration: none; }
.el-app a.el-who-card { text-decoration: none; }
.el-who-card svg { width: 96px; height: 96px; }
.el-who-card strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.el-who-card span { display: block; font-size: 0.92rem; line-height: 1.4; color: var(--ink); }

/* ---------- 2. Episode (inside .st-page) ---------- */
.el-ep { padding: 24px 16px 64px; }
.el-ep .st-top { margin-bottom: 18px; }
.el-ep-portrait { display: block; width: 180px; height: 180px; margin: 0 auto 8px; }
.el-ep-duo { display: flex; justify-content: center; gap: 4px; }
.el-ep-duo .el-ep-portrait { margin: 0 0 8px; width: min(180px, 42vw); height: min(180px, 42vw); }
.el-ep-k { margin: 0 0 4px; text-align: center; font-family: var(--st-sans); color: var(--st-quiet); }
.el-ep .st-title { text-align: center; }
.el-ep .st-tools { justify-content: center; }
.el-power { margin: 0 0 1.4em; padding: 1rem 1.1rem 1.1rem; border: 2px solid var(--st-line); border-radius: 16px; background: var(--st-panel); font-family: var(--st-sans); font-size: 1rem; line-height: 1.5; }
.el-power-k { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-quiet); }
.el-power-t { margin: 0.1em 0 0.3em; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: 0.04em; color: var(--st-link); overflow-wrap: anywhere; }
.el-power p { margin: 0 0 0.5em; overflow-wrap: break-word; }
.el-power .el-truth { margin: 0; color: var(--st-quiet); }
.el-end { margin: 2rem 0 0; padding: 1.25rem 1.2rem; border: 2px solid var(--st-link); border-radius: 18px; text-align: center; font-family: var(--st-sans); }
.el-end-k { margin: 0; font-size: 0.95rem; color: var(--st-quiet); }
.el-end-t { margin: 0.2em 0 0.6em; font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.2; letter-spacing: 0.04em; color: var(--st-link); overflow-wrap: anywhere; }
.el-end-hook { margin: 0 0 1rem; font-family: var(--st-serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--st-ink); }
.el-end .st-actions { justify-content: center; margin-top: 0; }
.el-grown { margin-top: 2.5rem; }
.el-grown > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style-position: inside; font-family: var(--st-serif); font-size: 1.4rem; font-weight: 700; color: var(--st-ink); }
.el-grown .st-parent { margin-top: 0.75rem; }
.el-grown ul { margin: 0.2em 0 0; padding-left: 1.2em; }
.el-grown li { margin: 0 0 0.45em; overflow-wrap: break-word; }
.el-wait { margin: 0 0 1.5rem; padding: 1.5rem 1.25rem; background: var(--st-panel); border: 2px solid var(--st-line); border-radius: 16px; font-family: var(--st-sans); line-height: 1.6; }
.el-wait h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.el-wait p { margin: 0 0 0.6rem; }

/* ---------- 3. The Table: the House ---------- */
.el-key { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.el-key li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; font-weight: 600; }
.el-mark { display: inline-grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border: var(--edge); border-radius: 6px; background: var(--c); color: var(--navy); font-size: 0.85rem; line-height: 1; }
.el-skip { position: absolute; left: -9999px; }
.el-skip:focus { position: static; display: inline-block; margin: 0 0 10px; padding: 8px 14px; background: #fff; border: var(--edge); border-radius: 999px; font-weight: 700; }
.el-house { position: relative; }
.el-gable { display: block; width: 100%; height: 26px; }
.el-frame { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; background: #fff; border: var(--edge); border-radius: 0 0 22px 22px; }
.el-fade { position: absolute; top: 26px; right: 2px; bottom: 2px; width: 44px; border-radius: 0 0 20px 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.el-house.is-scrolly .el-fade { opacity: 1; }
.el-house.is-scrolly.is-end .el-fade { opacity: 0; }
.el-hint { margin: 8px 0 0; font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.el-grid { display: grid; grid-template-columns: 4.4em repeat(18, minmax(52px, 1fr)); grid-template-rows: auto repeat(7, auto) 14px repeat(2, auto); gap: 3px; padding: 10px 8px 14px 6px; }
.el-gnum { display: grid; place-items: end center; font-size: 0.75rem; font-weight: 800; color: var(--navy); }
.el-gnum small { display: block; font-size: 0.65rem; font-weight: 600; color: var(--muted); }
.el-plabel { display: grid; align-content: center; font-size: 0.72rem; font-weight: 800; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.el-plabel span { font-weight: 600; color: var(--muted); }
.el-corr { display: grid; align-content: center; grid-column: 1 / span 3; padding-right: 6px; font-size: 0.72rem; font-weight: 800; line-height: 1.25; color: var(--navy); }
.el-corr span { font-weight: 600; color: var(--muted); }
.el-cell { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 62px; min-width: 0; padding: 3px 4px 3px; border: var(--edge); border-radius: 10px; background: var(--c); box-shadow: 2px 2px 0 var(--navy); color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.el-cell:hover { box-shadow: 3px 3px 0 var(--navy); }
.el-cell:active { box-shadow: 0 0 0 var(--navy); }
.el-cell-z { font-size: 0.62rem; font-weight: 700; line-height: 1; }
/* symbols in Geist, never Orbitron: Orbitron's l and i read as capitals (Cl, Si), and a symbol's case is its meaning */
.el-cell-s { align-self: center; justify-self: center; font-family: Geist, Inter, sans-serif; font-weight: 800; font-size: 1.1rem; line-height: 1.05; }
.el-cell-m { justify-self: end; font-size: 0.7rem; line-height: 1; }
.el-cell.is-met { background: #fff; border-width: 3px; }
.el-cell.is-met svg { width: 42px; height: 42px; max-width: 100%; justify-self: center; align-self: center; }
.el-gapcell { display: grid; place-items: center; padding: 3px; border: 2px dashed var(--navy); border-radius: 10px; background: var(--c); font-size: 0.58rem; font-weight: 700; line-height: 1.2; text-align: center; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.el-app a.el-gapcell { text-decoration: none; }

/* ---------- 4. Element card ---------- */
.el-card { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--navy); overflow: hidden; }
@media (min-width: 860px) { .el-card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.el-card-who { display: grid; gap: 12px; align-content: start; padding: 22px; background: var(--c); border-bottom: var(--edge); }
@media (min-width: 860px) { .el-card-who { border-bottom: 0; border-right: var(--edge); } }
.el-card-who svg { display: block; width: 100%; max-width: 300px; aspect-ratio: 1; height: auto; margin: 0 auto; }
.el-card-name { margin: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.el-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.el-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: var(--edge); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 0.95rem; box-shadow: 2px 2px 0 var(--navy); max-width: 100%; overflow-wrap: anywhere; }
.el-chip .el-mark { width: 1.4em; height: 1.4em; border-width: 1.5px; font-size: 0.75rem; }
.el-card-side { display: grid; gap: 22px; align-content: start; padding: 22px; min-width: 0; }
.el-meet, .el-pmeet { margin: 0; padding: 12px 14px; border: 2px dashed var(--navy); border-radius: 14px; background: var(--tint); font-weight: 700; color: var(--navy); }
.el-traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.el-traits li { padding: 2px 0 2px 14px; border-left: 4px solid var(--yellow); }
.el-traits strong { display: block; font-size: 1.1rem; line-height: 1.3; color: var(--navy); }
.el-traits span { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--muted); }
.el-traits span b { color: var(--navy); }
.el-facts { padding: 16px 18px; background: var(--tint); border: var(--edge); border-radius: 16px; }
.el-facts dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 7px 14px; }
.el-facts dt { font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; }
.el-facts dd { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.el-facts dd ul { margin: 0; padding-left: 1.1em; font-weight: 600; }
.el-facts dd li { margin: 0 0 0.25em; }
.el-note { margin: 12px 0 0; font-size: 0.88rem; font-style: italic; color: var(--muted); }
.el-eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-eps a, .el-eps span.el-ep-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 8px 12px; border: var(--edge); border-radius: 14px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; }
.el-eps small { font-weight: 600; color: var(--muted); font-size: 0.88rem; }
.el-pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.el-pchip { display: inline-flex; align-items: center; min-height: 36px; padding: 3px 12px; border: var(--edge); border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 700; text-decoration: none; }
.el-app a.el-pchip { text-decoration: none; }

/* ---------- 5. Powers book ---------- */
.el-pgrid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.el-pcard { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px; border: var(--edge); border-radius: 20px; background: #fff; box-shadow: var(--lift); min-width: 0; }
.el-pcard-t { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: var(--navy); overflow-wrap: anywhere; }
.el-pcard-say { margin: 0; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.el-pcard p { margin: 0; overflow-wrap: break-word; }
.el-pcard .el-truth { font-size: 0.92rem; color: var(--muted); }
.el-pcard-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 0.92rem; }
.el-pcard-by svg { width: 40px; height: 40px; }
.el-pout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11em), 1fr)); }
.el-pout { padding: 10px 12px; border: 2px dashed #8a8aa8; border-radius: 14px; background: transparent; color: var(--muted); min-width: 0; }
.el-pout b { display: block; color: #3d3d5c; font-size: 0.98rem; overflow-wrap: anywhere; }
.el-pout small { font-size: 0.85rem; }

/* ---------- 6. Hold Hands ---------- */
.el-levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.el-level { min-height: 44px; padding: 0.35em 1em; border: var(--edge); border-radius: 999px; background: #fff; color: var(--navy); font: 700 1rem/1.3 Geist, Inter, sans-serif; cursor: pointer; }
.el-level[aria-current="step"] { background: var(--navy); color: #fff; }
.el-level.is-won::after { content: " ✓"; }
.el-goal { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
#el-game-box { max-width: 760px; }
.el-board-wrap { position: relative; background: #fff; border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--navy); overflow: hidden; }
.el-board { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.el-atom { cursor: pointer; outline: none; }
.el-atom .el-atom-move { transition: transform 600ms ease, opacity 600ms ease; }
.el-atom .el-focus { opacity: 0; transition: opacity 150ms ease; }
.el-atom:focus-visible .el-focus, .el-atom.is-picked .el-focus { opacity: 1; }
.el-atom.is-picked .el-focus { stroke: #fb7d7e; }
.el-bond { transition: opacity 300ms ease; }
.el-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff 0, #fff7c2 35%, rgba(254, 219, 113, 0.6) 60%, rgba(254, 219, 113, 0) 80%); }
.el-flash.is-on { animation: el-bang 900ms ease-out both; }
@keyframes el-bang { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes el-bang-fade { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.el-live { min-height: 3em; margin: 14px 0 10px; padding: 10px 14px; border: var(--edge); border-radius: 14px; background: var(--tint); font-weight: 700; color: var(--navy); }
.el-live.is-win { background: var(--mint); }
.el-gbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.el-help { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); max-width: 44em; }

@media (max-width: 479px) {
  .el-brand { font-size: 1.3rem; }
  .el-h2 { font-size: 1.3rem; }
  .el-today { grid-template-columns: minmax(0, 1fr); box-shadow: 4px 4px 0 var(--navy); }
  .el-today svg { width: 88px; height: 88px; }
  .el-card { box-shadow: 4px 4px 0 var(--navy); }
  .el-card-who, .el-card-side { padding: 16px; }
  .el-facts { padding: 14px; }
  .el-board-wrap { box-shadow: 4px 4px 0 var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  /* the same fades with the same timing; nothing slides, grows or presses in */
  .el-app .el-btn:active, .el-app .el-cell:active { transform: none; }
  .el-flash.is-on { animation-name: el-bang-fade; }
}
@media print {
  .el-top, .el-tabs, .el-gbtns, .el-btn { display: none !important; }
}

/* review S8 (P2-139): numbers legible at the owner's font settings */
.el-cell-z { font-size: 0.75rem; }
.el-gapcell { font-size: 0.75rem; }

/* ---------- 3b. Who plays with whom: the web of light (P2-139) ----------
   An SVG layer inside the grid, above the rooms, never taking a tap. The chosen room glows; its partners wear a ring
   in their line's colour and pattern; the other rooms dim. Lines draw out in 400 ms (a mask that grows along the
   curve); with Reduce Motion they fade in over the same 400 ms. Nothing pulses. */
.el-grid { position: relative; }
.el-web { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.el-cell { transition: opacity 300ms ease, box-shadow 300ms ease; }
.el-has-web .el-cell:not(.el-is-chosen):not(.el-is-partner) { opacity: 0.42; }
.el-has-web .el-gapcell { opacity: 0.6; }
.el-cell.el-is-chosen { z-index: 1; outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px #fff, 0 0 18px 9px rgba(254, 219, 113, 0.95); }
.el-rel-mask { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.el-web.is-anim .el-rel-mask { animation: el-draw 400ms ease-out both; }
.el-web.is-anim .el-ring { animation: el-fadein 160ms ease-out 240ms both; }
@keyframes el-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes el-fadein { from { opacity: 0; } to { opacity: 1; } }

/* the key to the lines, under the Table: colour, pattern and words */
.el-legend { margin: 14px 0 0; }
.el-legend-k { margin: 0 0 6px; font-weight: 800; color: var(--navy); }
.el-legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.el-legend-list li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
.el-swatch { flex: none; width: 50px; height: 16px; overflow: visible; }

/* the panel: under the Table, never over it */
.el-panel { display: grid; gap: 18px; margin: 18px 0 0; padding: 18px 20px 20px; background: #fff; border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--navy); min-width: 0; }
.el-panel.is-empty { background: var(--tint); border-style: dashed; box-shadow: none; }
.el-panel-empty { margin: 0; font-weight: 700; color: var(--navy); }
.el-panel-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: center; padding: 12px 14px; border: var(--edge); border-radius: 18px; background: var(--c); }
.el-panel-who svg { width: 96px; height: 96px; }
.el-panel-who .el-chips { justify-content: flex-start; }
.el-panel-name { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.el-panel-sec { display: grid; gap: 10px; min-width: 0; }
.el-h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.el-pals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-pals li { min-width: 0; }
.el-pal { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: var(--edge); border-radius: 14px; background: #fff; color: var(--navy); font: 600 1rem/1.4 Geist, Inter, sans-serif; text-align: left; cursor: pointer; box-shadow: 2px 2px 0 var(--navy); }
.el-pal:hover { background: var(--tint); }
.el-pal > span { min-width: 0; overflow-wrap: anywhere; }
.el-pal b { font-weight: 800; text-decoration: underline; text-underline-offset: 0.18em; }
.el-pal-note { margin: 4px 0 0 14px; padding-left: 12px; border-left: 4px solid var(--coral); font-size: 0.92rem; color: var(--ink); overflow-wrap: break-word; }
.el-panel .el-note { margin: 0; }
.el-panel-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.el-method { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); max-width: 52em; }
.el-method p { margin: 0 0 4px; overflow-wrap: break-word; }
.el-method b { color: var(--navy); }
.el-method summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--navy); }
.el-method ul { margin: 0; padding-left: 1.2em; }
.el-method li { margin: 0 0 0.3em; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .el-panel { padding: 14px; box-shadow: 4px 4px 0 var(--navy); }
  .el-panel-who svg { width: 72px; height: 72px; }
  .el-panel-name { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  /* the same 400 ms, as a fade: the whole line is there from the start and comes up from nothing */
  .el-web.is-anim .el-rel-mask { animation: none; }
  .el-web.is-anim .el-rel { animation: el-fadein 400ms ease-out both; }
  .el-web.is-anim .el-ring { animation: none; }
}
