/* BeamEdge — OnPagePilot brand presentation.
   Reference: D:/MCPFiles/Design/WebDesignColorTemplate.html.
   Updated 2026-10-11 by Sporhest - Team Stallion. Authenticated menu underlight fades downward over 48px; page-only heading/Contents alignment and uncropped reveal image. */

.beamedge {
  color-scheme: light;
  --primary: #6a73fa;
  --primary-hover: #3945f8;
  --primary-main: #303A49;
  --secondary-main: #F39C12;
  --page: #f5f5f5;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --grid: #E2E8F0;
  --ink: #0F172A;
  --heading-ink: #312a2a;
  --ink-2: #303A49;
  --ink-3: #64748B;
  --link: #3945F8;
  --header-bg: #FFFFFF;
  --green-bg: #DCFCE7;
  --orange-bg: #FEF3C7;
  --red-bg: #FEE2E2;
  --blue-bg: #DBEAFE;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);

  /* Preserve the variable contract used by app.js and its generated SVGs. */
  --s1: #5660F9;   /* primary AA fill — generated / in-beam, under white labels */
  --s2: #F39C12;   /* brand orange — classical pipeline */
  --s3: #4DAF82;   /* brand green — decision diagrams */
  --s4: #8B5CF6;   /* semantic purple — ads / auction */
  --good: #166534;
  --warn: #92400E;
  --serious: #B91C1C;
  --critical: #B91C1C;

  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: Poppins, "Segoe UI", sans-serif;
  --heading: Montserrat, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1184px;
  --header-offset: 88px;
}
html[data-theme-version="dark"] .beamedge {
  color-scheme: dark;
  --page: #17171E;
  --surface: #121212;
  --surface-2: #2a2e33;
  --surface-3: #3b3f5c;
  --border: #3b3f5c;
  --border-dark: #3b3f5c;
  --grid: #3b3f5c;
  --ink: #E9E9F0;
  --heading-ink: #FFFFFF;
  --ink-2: #CBD5E1;
  --ink-3: #CBD5E1;
  --link: #9BA1FC;
  --header-bg: #212130;
  --green-bg: rgba(34, 197, 94, .18);
  --orange-bg: rgba(245, 158, 11, .18);
  --red-bg: rgba(239, 68, 68, .18);
  --blue-bg: rgba(37, 99, 235, .24);
  --good: #4ADE80;
  --warn: #FBBF24;
  --serious: #F87171;
  --critical: #F87171;
}
.beamedge * { box-sizing: border-box; }
.beamedge [hidden] { display: none !important; }
.beamedge { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
.beamedge {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.beamedge a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
.beamedge a:hover { text-decoration: underline; }
.beamedge h1, .beamedge h2, .beamedge h3 { font-family: var(--heading); font-weight: 600; color: var(--heading-ink); margin: 0 0 .75rem; overflow-wrap: break-word; }
.beamedge h1 { font-size: clamp(1.875rem, 4vw, 2.375rem); line-height: 1.263; }
.beamedge h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.beamedge h3 { font-size: 1.25rem; line-height: 1.4; }
.beamedge p { margin: 0 0 1rem; color: var(--ink-2); }
.beamedge small, .beamedge .muted { color: var(--ink-3); }
.beamedge code, .beamedge .mono { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }
.beamedge button { font: inherit; cursor: pointer; }
.beamedge input, .beamedge textarea, .beamedge select { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; max-width: 100%; }
.beamedge input::placeholder, .beamedge textarea::placeholder { color: var(--ink-3); opacity: 1; }
.beamedge textarea { width: 100%; min-height: 140px; resize: vertical; line-height: 1.5; }
.beamedge input[type="text"] { width: 100%; }
.beamedge a:focus-visible, .beamedge input:focus-visible, .beamedge textarea:focus-visible, .beamedge select:focus-visible, .beamedge button:focus-visible, .beamedge summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.beamedge input:focus, .beamedge textarea:focus, .beamedge select:focus { border-color: var(--primary); }
.beamedge select { padding-right: 1.6rem; width: 100%; max-width: 100%; text-overflow: ellipsis; }
.beamedge .grid > *, .beamedge .card, .beamedge .ctl { min-width: 0; }
.beamedge label { font-size: .875rem; font-weight: 500; color: var(--ink-2); display: block; margin-bottom: .5rem; }
.beamedge .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* ---------- header ---------- */
.beamedge .top {
  position: sticky; top: 0; z-index: 20; background: var(--header-bg); box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.beamedge .top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.beamedge .brand { display: flex; align-items: center; gap: .625rem; font-family: var(--heading); font-weight: 600; color: var(--heading-ink); flex-shrink: 0; }
.beamedge .brand .logo { width: 28px; height: 28px; }
.beamedge .brand .logo circle { fill: var(--primary-main); }
.beamedge .brand .logo path { stroke: var(--secondary-main); }
.beamedge .nav { display: flex; gap: .125rem; margin-left: auto; min-width: 0; overflow-x: auto; }
.beamedge .nav a { color: var(--ink-2); font-size: .85rem; padding: .625rem .5rem; border-radius: var(--radius); white-space: nowrap; }
.beamedge .nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.beamedge .pills { display: flex; gap: .375rem; flex-shrink: 0; }
.beamedge .pill {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--ink-2); background: var(--surface); white-space: nowrap;
}
.beamedge .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.beamedge .pill.on .dot { background: #15803D; }
.beamedge .pill.off .dot { background: var(--secondary-main); }
/* ---------- hero ---------- */
.beamedge .hero { padding: 40px 0; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.beamedge .hero .kicker { font-size: .6875rem; font-weight: 600; color: var(--link); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 1rem; }
.beamedge .hero p.lede { font-size: 1.125rem; line-height: 1.7; max-width: 78ch; }
.beamedge .hero .source { font-size: .8125rem; line-height: 1.65; color: var(--ink-2); max-width: 90ch; margin-bottom: 0; }
.beamedge .mode-banner {
  margin-top: 1.25rem; padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); font-size: .9rem; color: var(--ink-2); display: flex; gap: .7rem; align-items: flex-start;
}
.beamedge .mode-banner strong { color: var(--ink); }
/* ---------- sections ---------- */
.beamedge section.block { padding: 48px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.beamedge .sec-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.beamedge .sec-num { font-family: var(--mono); color: var(--link); font-size: .875rem; }
.beamedge .lede { max-width: 78ch; line-height: 1.7; }
.beamedge .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.beamedge .grid { display: grid; gap: 24px; }
.beamedge .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beamedge .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) {.beamedge .grid.two, .beamedge .grid.three { grid-template-columns: 1fr; }}
.beamedge .controls { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: flex-end; margin: .5rem 0 1rem; }
.beamedge .controls .ctl { min-width: 0; flex: 1 1 160px; }
.beamedge .controls .ctl.grow { flex: 3 1 260px; }
.beamedge .range-row { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.beamedge .range-row input[type="range"] { flex: 1; min-width: 0; padding: 0; accent-color: var(--s1); }
.beamedge .range-row output { font-family: var(--mono); min-width: 2.6ch; text-align: right; }
.beamedge .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .625rem 1.25rem; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem; transition: background .15s, transform .05s;
}
.beamedge .btn:hover { background: var(--surface-2); border-color: var(--primary); }
.beamedge .btn:active { transform: translateY(1px); }
.beamedge .btn.primary { background: var(--s1); border-color: transparent; color: #fff; }
.beamedge .btn.primary:hover { background: var(--primary-hover); }
.beamedge .btn.ghost { background: transparent; }
.beamedge .btn[disabled] { opacity: .5; cursor: not-allowed; }
.beamedge .btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: beamedge-spin .8s linear infinite; display: none; }
.beamedge .btn.busy .spin { display: inline-block; }
@keyframes beamedge-spin { to { transform: rotate(360deg); } }
.beamedge .seg { display: inline-flex; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.beamedge .seg button { background: var(--surface); color: var(--ink-2); border: 0; min-height: 44px; padding: .5rem .875rem; font-size: .875rem; }
.beamedge .seg button + button { border-left: 1px solid var(--border); }
.beamedge .seg button.active { background: var(--s1); color: #fff; font-weight: 600; }
.beamedge .seg button:focus-visible { outline-offset: -3px; outline-color: var(--ink); }
/* stat tiles */
.beamedge .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.beamedge .tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.beamedge .tile .k { font-size: .6875rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px; }
.beamedge .tile .v { font-size: 1.75rem; font-weight: 700; line-height: 1.3; margin-top: .5rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.beamedge .tile .v small { font-size: .8rem; font-weight: 500; color: var(--ink-2); margin-left: .25rem; }
.beamedge .tile.accent .v { color: var(--link); }
.beamedge .tile.gone .v { color: var(--ink-3); text-decoration: line-through; }
/* ---------- timeline ---------- */
.beamedge .timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; position: relative; }
.beamedge .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--grid); }
.beamedge .tl { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; background: transparent; border: 0; text-align: left; color: var(--ink-2); padding: 0; position: relative; border-radius: var(--radius); }
.beamedge .tl .node { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--ink-3); display: grid; place-items: center; position: relative; z-index: 1; transition: .15s; }
.beamedge .tl .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.beamedge .tl.active .node { border-color: var(--s1); background: var(--s1); }
.beamedge .tl .yr { font-family: var(--mono); font-size: .8rem; margin-top: .5rem; color: var(--ink-3); }
.beamedge .tl .t { font-size: .85rem; line-height: 1.3; margin-top: .15rem; color: var(--ink-2); }
.beamedge .tl.active .t, .beamedge .tl.active .yr { color: var(--link); font-weight: 600; }
.beamedge .tl-detail { margin-top: 1rem; min-height: 96px; }
.beamedge .tl-detail .tag { font-family: var(--mono); font-size: .75rem; color: var(--link); }
@media (max-width: 820px) {.beamedge .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
.beamedge .timeline::before { display: none; }}
/* ---------- pipeline viz ---------- */
.beamedge .viz { width: 100%; height: auto; display: block; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border); }
.beamedge .viz text { font-family: var(--sans); fill: var(--ink-2); font-size: 12px; }
.beamedge .viz .lbl { fill: var(--ink-2); font-size: 11px; }
.beamedge .viz .ttl { fill: var(--ink); font-weight: 600; font-size: 12.5px; }
.beamedge .page2 { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .85rem; padding: .35rem .7rem; border-radius: 6px; border: 1px dashed var(--border); color: var(--ink-2); }
.beamedge .page2.dead { color: var(--ink-3); text-decoration: line-through; }
.beamedge .legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--ink-2); margin-top: .6rem; }
.beamedge .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
/* ---------- beam tree ---------- */
.beamedge .beam-note { font-size: .9rem; margin-top: .6rem; }
.beamedge .beam-note b { color: var(--warn); }
/* ---------- live ranker ---------- */
.beamedge .doclist { display: grid; gap: .4rem; max-height: 360px; overflow: auto; padding-right: .2rem; }
.beamedge .doc { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .6rem; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; transition: background .2s, opacity .3s; }
.beamedge .doc .code { font-family: var(--mono); font-size: .95rem; text-align: center; padding: .25rem 0; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); letter-spacing: .08em; }
.beamedge .doc .code.pending { color: var(--ink-2); }
.beamedge .doc .code.collide { background: var(--orange-bg); color: var(--warn); }
.beamedge .doc .title { font-size: .875rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.beamedge .doc .snip { font-size: .8125rem; color: var(--ink-2); display: block; margin-top: .25rem; }
.beamedge .doc .rm { background: transparent; border: 0; color: var(--ink-3); font-size: 1rem; padding: .2rem .4rem; }
.beamedge .doc .rm:hover { color: var(--critical); }
.beamedge .doc.in-beam { border-color: var(--primary); background: var(--blue-bg); }
.beamedge .doc.never { opacity: .45; }
.beamedge .doc .rank { font-family: var(--mono); font-size: .8rem; color: var(--link); }
.beamedge .add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; margin-top: .6rem; }
@media (max-width: 640px) {.beamedge .add-row { grid-template-columns: 1fr; }}
.beamedge .term {
  font-family: var(--mono); font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 1rem;
  min-height: 180px; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); position: relative;
}
.beamedge .term .cursor { display: inline-block; width: 8px; height: 1em; background: var(--s1); vertical-align: -2px; animation: beamedge-blink 1s steps(1) infinite; }
.beamedge .term.idle .cursor { display: none; }
@keyframes beamedge-blink { 50% { opacity: 0; } }
.beamedge .term .hdr { color: var(--ink-2); font-size: .75rem; margin-bottom: .4rem; }
.beamedge .beam-out { margin-top: .8rem; display: grid; gap: .35rem; }
.beamedge .brow { display: grid; grid-template-columns: 2.2ch 56px 1fr 52px; gap: .6rem; align-items: center; font-size: .88rem; }
.beamedge .brow .code { font-family: var(--mono); letter-spacing: .08em; }
.beamedge .brow .bar { height: 10px; background: var(--surface-3); border-radius: 4px; overflow: hidden; position: relative; }
.beamedge .brow .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); border-radius: 4px; width: 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.beamedge .brow .p { font-family: var(--mono); text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.beamedge .brow.ghost { color: var(--ink-3); }
.beamedge .brow.ghost .bar { border: 1px dashed var(--border); background: transparent; }
.beamedge .never-head { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 1rem; }
/* ---------- jev results ---------- */
.beamedge .gauge { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.beamedge .meter { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.beamedge .meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--s3); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.beamedge .meter.blue i { background: var(--s1); }
.beamedge .meter.orange i { background: var(--s2); }
.beamedge .pct { font-family: var(--mono); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
.beamedge .levels { display: grid; gap: .35rem; margin-top: .5rem; }
.beamedge .lvl { display: grid; grid-template-columns: 1fr 120px 48px; gap: .6rem; align-items: center; font-size: .85rem; color: var(--ink-2); }
.beamedge .lvl.pick { color: var(--ink); font-weight: 600; }
.beamedge .lvl .bar { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.beamedge .lvl .bar i { display: block; height: 100%; width: 0; background: var(--s3); border-radius: 4px; transition: width .5s; }
.beamedge .lvl.pick .bar i { background: var(--s3); }
.beamedge .chip { display: inline-block; font-family: var(--mono); font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-2); }
.beamedge .chip.sim { color: var(--warn); background: var(--orange-bg); border-color: var(--warn); }
.beamedge .chip.live { color: var(--good); background: var(--green-bg); border-color: var(--good); }
.beamedge .result-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.beamedge .err { color: var(--serious); background: var(--red-bg); border: 1px solid var(--serious); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.beamedge .err code { display: block; margin-top: .3rem; color: var(--ink-3); font-size: .78rem; white-space: pre-wrap; }
.beamedge .hint { font-size: .85rem; color: var(--ink-3); }
.beamedge .sources { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.beamedge .sources li { font-size: .85rem; padding: .45rem .6rem; background: var(--surface-2); border-radius: 6px; border: 1px solid var(--border); }
.beamedge .sources li small { display: block; color: var(--ink-3); }
.beamedge .decision { font-size: 1.6rem; font-weight: 700; text-transform: capitalize; }
.beamedge .decision.yes { color: var(--good); }
.beamedge .decision.no { color: var(--critical); }
.beamedge .decision.unknown { color: var(--ink-3); }
.beamedge details.raw summary { cursor: pointer; color: var(--ink-3); font-size: .85rem; margin-top: .6rem; }
.beamedge details.raw pre { font-size: .75rem; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); color: var(--ink-2); padding: .875rem; border-radius: var(--radius); }
/* ---------- metrics ---------- */
.beamedge .recall { display: grid; grid-template-columns: 70px 1fr 60px; gap: .6rem; align-items: center; margin: .35rem 0; font-size: .9rem; }
.beamedge .recall .bar { height: 14px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.beamedge .recall .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--s1); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.beamedge .recall .v { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.beamedge .hero-num { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 700; line-height: 1.3; margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.beamedge .hero-num small { font-size: 1rem; color: var(--good); font-weight: 600; margin-left: .4rem; }
/* ---------- ask ---------- */
.beamedge .chat { display: grid; gap: .6rem; }
.beamedge .q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.beamedge .answer { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1rem; min-height: 80px; white-space: pre-wrap; font-size: .95rem; color: var(--ink); }
.beamedge .answer:empty::before { content: "Ask something about the argument, the beam, docIDs, the ad implications…"; color: var(--ink-2); }
.beamedge .sugg { display: flex; flex-wrap: wrap; gap: .4rem; }
.beamedge .sugg button { background: var(--surface); border: 1px solid var(--border-dark); border-radius: 999px; color: var(--ink-2); padding: .5rem .875rem; font-size: .8125rem; min-height: 40px; text-align: left; }
.beamedge .sugg button:hover { color: var(--ink); background: var(--surface-3); }
/* ---------- moves ---------- */
.beamedge .moves { display: grid; gap: .6rem; }
.beamedge .move { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.beamedge .move input { width: 20px; height: 20px; margin: .125rem 0 0; padding: 0; accent-color: #15803D; }
.beamedge .move.done { opacity: .6; }
.beamedge .move.done .t { text-decoration: line-through; }
.beamedge .move .t { font-weight: 600; color: var(--ink); }
.beamedge .move .d { font-size: .88rem; color: var(--ink-2); }
.beamedge footer { padding: 32px 0 40px; color: var(--ink-2); font-size: .8125rem; }
.beamedge footer p { color: var(--ink-2); }
.beamedge .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {.beamedge { scroll-behavior: auto; }
.beamedge *, .beamedge *::before, .beamedge *::after { animation: none !important; transition: none !important; }}
@media (max-width: 1000px) {.beamedge { --header-offset: 132px; }
.beamedge .top .wrap { flex-wrap: wrap; gap: .5rem 1rem; padding-top: 12px; padding-bottom: 8px; }
.beamedge .pills { margin-left: auto; }
.beamedge .nav { order: 3; flex-basis: 100%; margin-left: 0; padding-bottom: 4px; }
.beamedge .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beamedge .card:has(> .viz) { overflow-x: auto; }
.beamedge .viz { min-width: 960px; }}
@media (max-width: 820px) {.beamedge .grid.two, .beamedge .grid.three { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 640px) {.beamedge .wrap { padding-left: 16px; padding-right: 16px; }
.beamedge .hero, .beamedge section.block { padding-top: 32px; padding-bottom: 32px; }
.beamedge .hero p.lede { font-size: 1rem; }
.beamedge .card { padding: 20px; }
.beamedge .grid { gap: 20px; }
.beamedge .q-row { grid-template-columns: minmax(0, 1fr); }
.beamedge .pills { gap: .25rem; }
.beamedge .pill { font-size: .6875rem; padding: .25rem .5rem; }
.beamedge .brand { font-size: .9375rem; gap: .5rem; }
.beamedge .brand .logo { width: 24px; height: 24px; }
.beamedge .lvl { grid-template-columns: minmax(0, 1fr) 80px 40px; }
.beamedge .brow { grid-template-columns: 2.2ch 48px minmax(0, 1fr) 44px; gap: .5rem; }}
.beamedge { width:100%; min-width:0; --maxw:100%; background:transparent; }
.beamedge .wrap { padding:0; }
.beamedge .block { padding:32px 0; scroll-margin-top:var(--opp-contents-offset); }
.beamedge h1[id], .beamedge h2[id] { scroll-margin-top:var(--opp-contents-offset); }
.beamedge .hero { padding:24px 0 32px; }
.beamedge .live-status { padding:16px; background:var(--surface-2); border:1px solid var(--border); border-radius:8px; margin:16px 0; }
.beamedge.beamedge-page-hero {
  background:var(--surface-2);
  padding:56px 0 40px;
  text-align:center;
}
.beamedge-page-hero h1 { font-size:var(--text-h1, clamp(2rem, 4vw, 3rem)); font-weight:700; }
.beamedge-page-hero .lede { margin:0 auto; max-width:850px; font-size:var(--text-lead, 1.125rem); }
.beamedge-page-hero .source { max-width:900px; margin:24px auto 16px; }
.beamedge-page-hero .pills { justify-content:center; margin-left:0; }
.beamedge-page-hero .live-status { max-width:850px; margin:16px auto 0; background:var(--surface); }
.beamedge-hero-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:24px; }
.beamedge-hero-actions a:hover { text-decoration:none; }
@media (max-width:640px) {
  .beamedge.beamedge-page-hero { padding:32px 0; }
  .beamedge-hero-actions { align-items:stretch; }
  .beamedge-hero-actions a { width:100%; }
}
.beamedge .live-disabled { opacity:.65; }
.beamedge .grid { container-type:inline-size; }
@media (max-width:1100px) { .beamedge .grid.two,.beamedge .grid.three { grid-template-columns:1fr; } }

/* Exact BeamEdge asset only: shared scrollspy reads this variable from the document root. */
html:has(.beamedge[data-beamedge]) { --opp-contents-offset:92px; }
.interactive-page:has(.beamedge[data-beamedge]) { padding:1.5rem 0; }
/* Keep the whole top edge at every viewport; adapt the reveal to the image instead of cropping to a fixed box. */
html:has(.beamedge[data-beamedge]) .opp-page-reveal-image { height:auto; }
html:has(.beamedge[data-beamedge]) .opp-page-reveal-image > img {
  height:auto;
  max-height:calc(100svh - var(--opp-contents-offset));
  object-fit:contain;
  object-position:center top;
}
/* BeamEdge artwork: the wordmark's centre is x=365 on the 1920px image. */
html:has(.beamedge[data-beamedge]) .opp-page-reveal { background:#05060c; }
.beamedge-reveal-artwork {
  width:100%;
  max-width:calc((100svh - var(--opp-contents-offset)) * 1920 / 815);
  margin-inline:auto;
}
.beamedge-reveal-links {
  background:transparent;
  position:absolute;
  left:19.01%;
  top:50%;
  transform:translate(-50%, -50%);
  width:18.02%;
  display:grid;
  gap:12px;
}
.beamedge-reveal-links a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:45px;
  padding:8px 12px;
  border-radius:6.5% / 50%;
  background:transparent url('/img/beamedge/BeamButton.png') center / 100% 100% no-repeat;
  color:#f3f3ff;
  font:500 clamp(12px, .73vw, 14px)/1.35 'Poppins', sans-serif;
  text-align:center;
  text-decoration:none;
}
.beamedge-reveal-links a:hover { color:#fff; box-shadow:0 0 18px #7885ff55; }
.beamedge-reveal-links a:focus-visible { outline:3px solid #b7bfff; outline-offset:4px; }
/* Preserve the whole illustration and readable, touch-sized links on smaller/shorter screens. */
@media (max-width:1199px), (max-height:650px) {
  .beamedge-reveal-links {
    position:static;
    transform:none;
    width:min(346px, calc(100% - 32px));
    margin:20px auto 96px;
  }
  .beamedge-reveal-links a { font-size:13px; }
}
