/* every-reach.css — v35 — EVERY REACH styles.
   The Reach settings cluster (assets/every-reach.js): captions bar,
   large-print calm mode, sound-first browsing, light mode tap-to-load,
   the portal/stage describe buttons, the Reach page (sound-first rows,
   For Those Who Served rail) and the floating Reach panel.
   Modes are html classes set by every-reach.js from on-device settings:
   html.ew-captions-on / html.ew-largeprint / html.ew-soundfirst / html.ew-light */

/* ---------- describe buttons + spoken-description text ---------- */
.ewr-describe{margin-top:8px}
.ewr-describe-text{font-size:13px;line-height:1.55;color:var(--muted,var(--mut,#5b5470));margin:6px 0 2px;max-width:860px}
#ewr-stage-describe{margin-top:10px}
#ewr-stage-describe:empty{display:none}

/* sound-first: descriptions lead — bigger targets, describe first */
html.ew-soundfirst .ewr-describe{font-size:17px;min-height:56px;padding:14px 20px;width:100%;justify-content:center}
html.ew-soundfirst .mc-tile .ewr-describe,
html.ew-soundfirst .cam-card .ewr-describe{width:auto}
html.ew-soundfirst .ewr-describe-text{font-size:15px}

/* ---------- captions bar ---------- */
#ewCaptionBar{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:120;
  max-width:min(860px,92vw);background:rgba(10,10,24,.92);color:#fff;border:1px solid rgba(255,255,255,.25);
  border-radius:12px;padding:10px 16px;font-size:17px;line-height:1.5;text-align:center;
  box-shadow:0 8px 30px rgba(0,0,0,.45)}
#ewCaptionBar[hidden]{display:none}
#ewCaptionBar .ewr-cap-who{color:var(--accent-warm,#ffb703);font-weight:700}

/* ---------- large-print calm mode ---------- */
/* zoom enlarges the px-based layout honestly (type, targets, spacing all
   grow together); line-height opens up on long text. */
html.ew-largeprint body{zoom:1.16}
html.ew-largeprint p,html.ew-largeprint .muted,html.ew-largeprint .dn-sub,
html.ew-largeprint .ewr-describe-text{line-height:1.7}
html.ew-largeprint .card{padding:20px}
@media (max-width:640px){html.ew-largeprint body{zoom:1.1}}

/* ---------- light mode ---------- */
.ewr-light-load{display:inline-flex;align-items:center;gap:8px;margin:8px 0;padding:12px 16px;
  border:1px dashed var(--border,var(--line,#d8d0e8));border-radius:10px;background:rgba(127,127,180,.07);
  color:inherit;font-weight:700;cursor:pointer;min-height:48px;font-size:14px;text-align:left}
iframe.ewr-light-off{background:#0a0a18}
#ewLightNote{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:110;
  background:rgba(10,10,24,.92);color:#fff;border-radius:999px;padding:6px 14px;font-size:12.5px;
  border:1px solid rgba(255,255,255,.25)}
#ewLightNote[hidden]{display:none}

/* ---------- floating Reach button + panel ---------- */
#ewReachBtn{position:fixed;right:12px;bottom:12px;z-index:95;border-radius:999px;
  padding:11px 16px;font-weight:800;font-size:14px;cursor:pointer;min-height:48px;
  background:var(--accent,#00a8e8);color:#fff;border:0;box-shadow:0 6px 22px rgba(0,0,0,.35)}
#ewReachPanel{position:fixed;right:12px;bottom:70px;z-index:96;width:min(360px,94vw);
  background:var(--panel,var(--card,#171733));color:var(--text,#f2f0ff);
  border:1px solid var(--border,var(--line,#3a3670));border-radius:14px;padding:16px;
  box-shadow:0 14px 44px rgba(0,0,0,.5)}
#ewReachPanel[hidden]{display:none}
#ewReachPanel h3{margin:0 0 4px;font-size:17px}
#ewReachPanel .ewr-note{font-size:12.5px;color:var(--muted,var(--mut,#a49ec4));line-height:1.5;margin:4px 0 10px}
.ewr-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-top:1px solid var(--border,var(--line,#3a3670))}
.ewr-row:first-of-type{border-top:0}
.ewr-row .ewr-row-t{flex:1}
.ewr-row .ewr-row-t b{display:block;font-size:14.5px}
.ewr-row .ewr-row-t span{font-size:12.5px;color:var(--muted,var(--mut,#a49ec4));line-height:1.45;display:block}
.ewr-toggle{flex:0 0 auto;min-width:64px;min-height:40px;border-radius:999px;border:1px solid var(--border,var(--line,#3a3670));
  background:transparent;color:inherit;font-weight:700;cursor:pointer;padding:6px 12px}
.ewr-toggle[aria-pressed="true"]{background:var(--accent-warm,#ffb703);color:#22202e;border-color:transparent}
#ewReachPanel select{width:100%;padding:9px;border-radius:8px;margin:4px 0 2px;min-height:42px}
#ewReachPanel a.ewr-morelink{font-weight:700}

/* ---------- Reach page ---------- */
.ewr-wrap{width:100%;max-width:1180px;margin:0 auto;padding:10px 12px 40px}
.ewr-panel{background:var(--panel,var(--card,#ffffff));border:1px solid var(--border,var(--line,#e8e0ff));border-radius:12px;padding:18px;margin:0 0 18px}
.ewr-panel h2{margin:0 0 6px}
.ewr-search{width:100%;padding:11px 12px;border:1px solid var(--border,var(--line,#d8d0e8));border-radius:8px;background:transparent;color:inherit;font-size:15px;min-height:46px;margin:6px 0 10px}
.ewr-camrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--border,var(--line,#e8e0ff));
  border-radius:12px;padding:12px 14px;margin:8px 0;background:rgba(127,127,180,.04)}
.ewr-camrow .ewr-camrow-t{flex:1;min-width:200px}
.ewr-camrow .ewr-camrow-t b{font-size:16px;display:block}
.ewr-camrow .ewr-camrow-t span{font-size:13px;color:var(--muted,var(--mut,#5b5470))}
.ewr-camrow .btn{min-height:52px;font-size:15px}
.ewr-stage{margin:10px 0}
.ewr-stage iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#000;display:block}
.ewr-served-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:10px}
.ewr-served-card{border:1px solid var(--border,var(--line,#e8e0ff));border-radius:12px;padding:14px;background:rgba(127,127,180,.04)}
.ewr-served-card h3{margin:0 0 4px;font-size:16.5px}
.ewr-served-card .ewr-served-meta{font-size:12.5px;color:var(--muted,var(--mut,#5b5470));margin:0 0 8px;line-height:1.5}
.ewr-served-card iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#000;display:block}
.ewr-stationrow{display:flex;gap:10px;align-items:center;border:1px solid var(--border,var(--line,#e8e0ff));
  border-radius:10px;padding:9px 12px;margin:6px 0}
.ewr-stationrow .ewr-stationrow-t{flex:1}
.ewr-stationrow .ewr-stationrow-t b{display:block;font-size:14.5px}
.ewr-stationrow .ewr-stationrow-t span{font-size:12.5px;color:var(--muted,var(--mut,#5b5470))}
