/* The opening finding uses the same shelf and source fields as the film. */
.ml-hero-grid { display: grid; gap: 24px; }
.ml-hero .lead { margin: 0; }
.ml-example { margin: 0; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--bg-2); }
.ml-example figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ml-example .eyebrow { margin: 0; }
.ml-comparison { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ml-comparison img { display: block; width: 100%; height: auto; }
.ml-comparison dl { margin: 0; padding: 12px clamp(10px, 2vw, 24px); }
.ml-comparison dt { color: var(--muted); font: .78rem var(--mono); }
.ml-comparison dd { width: fit-content; margin: 4px 0 0; border-bottom: 2px solid var(--accent); font-size: clamp(1rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -.025em; }
.ml-comparison dd + dt { margin-top: clamp(12px, 2vw, 24px); }
.ml-finding { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .94rem; }
.ml-finding strong { display: block; color: var(--accent); }
@media (min-width: 860px) {
  .ml-hero { padding: 56px 0; }
  .ml-hero-grid { grid-template-columns: 1.12fr 1fr; gap: 20px 5%; }
  .ml-intro { align-self: end; }
  .ml-example { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ml-pitch { grid-column: 1; }
}
@media (width < 860px) {
  .ml-example { width: 100%; max-width: 32rem; }
}
@media (width < 360px) {
  .ml-topbar { gap: 8px; }
  .ml-topbar .btn { padding-inline: 8px; }
}
.ml-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* A graphite work surface keeps the moving sheet and its orange evidence marks legible in both themes. */
.ml-how { scroll-margin-top: 36px; }
.ml-demo { display: grid; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-3); }
.ml-film {
  --film-signal: #ff8a4e;
  display: grid; align-content: center; position: relative; min-width: 0; margin: 0;
  background-color: #1c2022;
  background-image: radial-gradient(circle at 45% 38%, transparent 15%, #111517b8 95%),
    radial-gradient(#93999c38 .8px, transparent .9px), radial-gradient(ellipse at 42% 42%, #484b4c, #22272a 75%);
  background-size: auto, 14px 14px, auto;
}
.ml-stage { display: block; width: 100%; height: auto; overflow: hidden; font-family: var(--font); }
.ml-paper { fill: #fbfaf6; }
.ml-paper-line { fill: none; stroke: #c6c7c2; stroke-width: 1.4; }
.ml-paper-label, .ml-inverse-label { fill: #585b5a; font: 500 12px var(--mono); letter-spacing: .035em; }
.ml-doc-title { fill: #181d1f; font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.ml-size, .ml-body-type, .ml-big-size { fill: #252b2d; font-size: 17px; }
.ml-size, .ml-big-size { font-weight: 650; letter-spacing: -.02em; }
.ml-big-size { font-size: 24px; }
.ml-bold { font-weight: 650; }
.ml-cart { fill: #fbfaf6; font-size: 15px; }
.ml-mark { fill: #ff803220; stroke: #bd470b; stroke-width: 1.8; }
.ml-trace, .ml-sign { fill: none; stroke: var(--film-signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ml-signal { fill: var(--film-signal); }
.ml-trace [data-route] { stroke-dasharray: 1; }
.ml-sign { stroke: #272522; stroke-width: 2.6; }
.ml-review-panel { fill: #282e30; stroke: #6b716e; }
.ml-inverse-label { fill: #c6c8c4; }
.ml-verdict { fill: #fbfaf6; font-size: 22px; font-weight: 620; }
.ml-transport:not([hidden]) { display: flex; gap: 15px; align-items: center; padding: 0 20px; min-height: 48px;
  background: #171b1e; color: #e3e6e5; border-top: 1px solid #505659; font: 500 .78rem var(--mono); }
.ml-transport button { min-width: 72px; min-height: 44px; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; font: inherit; text-align: start; }
.ml-transport button::before { content: '▶'; margin-right: 7px; color: var(--film-signal); }
.ml-transport button[data-playing]::before { content: 'Ⅱ'; }
.ml-track { height: 3px; flex: 1; background: #565b5e; }
.ml-track span { display: block; height: 100%; background: var(--film-signal); transform-origin: left; transform: scaleX(var(--played, 0)); }

.ml-chapters { list-style: none; display: grid; align-content: center; }
.ml-chapters li { position: relative; padding: 8px 22px 10px; border-bottom: 1px solid var(--line); }
.ml-chapters li:last-child { border-bottom: 0; }
.ml-chapters button { display: block; padding: 0; background: none; border: 0; font: 650 1.08rem var(--font);
  color: var(--ink); cursor: pointer; text-align: left; }
.ml-chapters button::after { content: ''; position: absolute; inset: 0; }
.ml-chapters button:disabled { cursor: default; }
.ml-chapters li:has(button[aria-pressed="true"]) { box-shadow: inset 3px 0 var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg-2)); }
.ml-chapters button[aria-pressed="true"] { color: var(--accent); }
.ml-chapters p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.ml-chapters li:has(button:focus-visible), .ml-transport button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (min-width: 860px) {
  .ml-demo { grid-template-columns: 1.95fr 1fr; }
  .ml-film { grid-template-rows: 1fr auto; align-items: center; }
}
@media (max-width: 859px) {
  .ml-demo[data-ready] .ml-chapters { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .ml-demo[data-ready] .ml-chapters li { display: contents; }
  .ml-demo[data-ready] .ml-chapters button { position: relative; grid-row: 1; text-align: center; min-height: 46px; font-size: .9rem; }
  .ml-demo[data-ready] .ml-chapters button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--accent); }
  .ml-demo[data-ready] .ml-chapters p { display: none; }
  .ml-demo[data-ready] .ml-chapters button[aria-pressed="true"] + p { display: block; grid-row: 2; grid-column: 1 / -1; margin: 0; min-height: 5.7em; padding: 12px 16px; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-transport { display: none !important; }
}

/* What it finds, the runs, the lists */
.ml-finds { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .ml-finds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ml-finds { grid-template-columns: repeat(3, 1fr); } }
.ml-band .card { background: var(--bg); }
.ml-finds h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ml-finds p { margin: 0; color: var(--muted); }
.ml-finds .ml-eg { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.ml-runs { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .ml-runs { grid-template-columns: repeat(3, 1fr); } }
.ml-runs p { margin: 0; color: var(--muted); }
.ml-runs .ml-big { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin-bottom: 8px; }
.ml-list { list-style: none; display: grid; gap: 12px; margin-top: 16px; color: var(--muted); }
.ml-list li { padding-left: 18px; position: relative; }
.ml-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--accent); }
.ml-list strong { color: var(--ink); }

.ml-cost { background: var(--bg-2); }
.ml-cost .figure strong { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.ml-calc { display: grid; gap: 12px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ml-calc h2 { margin: 0; font-size: 1.1rem; }
.ml-calc p { margin: 0; max-width: 72ch; }
.ml-calc .ml-sources { margin-top: 8px; font-size: .9rem; color: var(--muted); }
@media (min-width: 860px) { .ml-calc { grid-template-columns: 1fr 3fr; } }
