/* Report page. Ported from mock/report-kstate.html; tokens, .tc, .eyebrow, .btn, .notice and the header come from base.css. */
.report { display: grid; gap: 3.5rem; padding-block: 1.5rem 4rem; }
.report > * { min-width: 0; }
.col { max-width: 40rem; }
.srcnote { font-size: .8rem; color: var(--dim); margin: 0; }
.mode { font: 600 .62rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.report .notice { max-width: 40rem; }

/* Header outline button (Layout headerStart) */
.menubtn { display: grid; place-content: center; gap: 4px; margin-right: .25rem; width: 44px; height: 44px; }
.menubtn span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--text); }

/* Masthead: the video's thumbnail under the Side Car gradient (always dark, so text colors are fixed) */
.mast { display: grid; gap: 1rem; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 14px; position: relative; overflow: hidden; color: #f7f2f1; isolation: isolate;
  background: linear-gradient(135deg, rgba(32,33,36,.94) 0%, rgba(45,26,58,.9) 50%, rgba(58,21,48,.86) 100%), var(--hero) center/cover no-repeat, #202124; }
.mast .eyebrow { color: #ff6234; }
.mast h1 { font-size: clamp(2rem, 5vw, 2.625rem); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: #babcc2; }
.meta a { color: #ff5f79; }
.dek { font-size: 1.15rem; line-height: 1.55; max-width: 40rem; margin: 0; color: #f7f2f1; }
.covers { display: flex; gap: .45rem; flex-wrap: wrap; }
.covers a { font: 600 .78rem/1 var(--body); color: #f7f2f1; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: .5em .75em; border-radius: 999px; }
.covers a b { color: #ff6234; font-variant-numeric: tabular-nums; margin-right: .3em; }
.covers a:hover { border-color: #ff6234; color: #f7f2f1; }

/* Owner bar and CTA */
.ownerbar { display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; max-width: 52rem; margin-top: -2rem; }
.ob-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ob-label { font: 600 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg button { font: 600 .82rem/1 var(--body); padding: .65em 1.1em; border: 0; background: transparent; color: var(--text); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--purple-strong); color: #fff; }
.seg button:focus-visible { outline-offset: -2px; }
.ownerbar .hint { margin: 0; }
.ownerbar [hidden] { display: none; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--tint-p), var(--tint-o)); border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent); border-radius: 12px; padding: 1rem 1.25rem; max-width: 52rem; }

/* Key moments */
.scrub { display: grid; gap: .7rem; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .5rem; }
.hl li { display: flex; gap: .6rem; align-items: baseline; background: var(--surface); border-radius: 8px; padding: .6rem .75rem; font-size: .92rem; line-height: 1.35; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .55rem 1.5rem; }
.moments li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; line-height: 1.4; }
.bar { display: flex; gap: 3px; height: 2.4rem; }
.bar .ch2 { min-width: 1.6rem; border: 0; border-radius: 6px; cursor: pointer; background: var(--surface2); color: var(--muted); display: flex; align-items: center; justify-content: center; font: 600 .72rem/1 var(--mono); padding: 0; }
.bar .ch2:nth-child(odd) { background: var(--tint-p); }
.bar .ch2:hover { outline: 2px solid var(--purple); }
.bar .ch2.on { background: var(--purple-strong); color: #fff; }
.chlist { display: grid; gap: .4rem; }
.chrow { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.chrow.open { border-color: var(--purple); }
.chhead { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .9rem; align-items: baseline; text-align: left; padding: .7rem .9rem; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; min-height: 44px; }
.chhead .rng { font: 600 .74rem/1 var(--mono); color: var(--orange-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chhead .ttl { font-weight: 600; min-width: 0; }
.chhead .cnt { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.chhead .cnt::after { content: " ▸"; color: var(--purple); }
.chrow.open .chhead .cnt::after { content: " ▾"; }
.chbody { padding: 0 .9rem .9rem; display: grid; gap: .8rem; }
.chbody[hidden] { display: none; }
.zoom { position: relative; height: 1.6rem; margin: .6rem 0 .9rem; border-radius: 6px; background: var(--surface2); }
.zoom .zp { position: absolute; top: .25rem; bottom: .25rem; width: 3px; margin-left: -1.5px; border-radius: 2px; }
.zoom .zp.moment { background: var(--orange); top: -.25rem; bottom: -.25rem; }
.zoom .zp.onscreen { background: var(--purple); }
.zoom .zl, .zoom .zr { position: absolute; top: 100%; font: .62rem/1.6 var(--mono); color: var(--dim); }
.zoom .zl { left: 0; } .zoom .zr { right: 0; }
.chbody .moments { grid-template-columns: 1fr; }
.mk { font: 600 .6rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mk.moment { color: var(--orange-ink); } .mk.onscreen { color: var(--purple-ink); }

/* How it's told */
.told { display: grid; gap: 1.4rem; }
.told h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.told .section-head p b { color: var(--text); }
.told-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem 2.5rem; }
.arc, .pp, .dev { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.arc li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; align-items: baseline; padding-top: .65rem; position: relative; font-size: .92rem; }
.arc li b { font-family: var(--head); }
.arc li > span:last-child { grid-column: 2; color: var(--muted); line-height: 1.45; }
.arc .beat { position: absolute; top: 0; height: 4px; left: 0; right: 0; border-radius: 2px; background: var(--surface2); }
.arc .beat::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--purple)); }
.pp li { display: grid; grid-template-columns: 1fr; gap: .2rem; background: var(--surface); border-radius: 8px; padding: .6rem .75rem; font-size: .9rem; line-height: 1.4; }
.pp li > div { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.pp .arrow { color: var(--dim); padding-left: .3rem; }
.dev { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .6rem; }
.dev li { display: grid; gap: .3rem; align-content: start; background: var(--surface); border-radius: 8px; padding: .7rem .8rem; font-size: .9rem; }
.dev li b { font-family: var(--head); }
.dev li > span { color: var(--muted); line-height: 1.4; }
.dev .hits { display: flex; gap: .35rem; flex-wrap: wrap; }

/* Section heads */
.section-head { display: grid; gap: .45rem; max-width: 40rem; }
.section-head h2 { font-size: 2rem; }
.section-head p { margin: 0; color: var(--muted); }
.onscreen, .references { display: grid; gap: 1.3rem; }

/* Article */
article { display: grid; gap: 1.1rem; }
article h2 { font-size: 1.5rem; margin-top: 1rem; }
article h2::before { content: ""; display: block; width: 2.2rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--purple)); margin-bottom: .7rem; }
article ul, article ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
article li::marker { color: var(--purple); }
.cite { color: inherit; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--purple) 55%, transparent); }
.cite:hover { color: inherit; border-bottom-color: var(--orange); }
.cite sup { font: 600 .64rem/1 var(--mono); color: var(--orange-ink); margin-left: .2em; }
@media (pointer: coarse) {
  .cite sup { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; vertical-align: super; }
}
figure.inline { margin: .4rem 0; display: grid; gap: .45rem; }
figure.inline a { text-decoration: none; color: inherit; display: block; border-radius: var(--radius); }
figure.inline figcaption { font-size: .82rem; color: var(--muted); }

/* Capture cards: a still from that part of the video, veiled 80 % black, with the extracted text on top */
.screen { aspect-ratio: 16 / 9; max-width: 100%; color: var(--screen-ink); border-radius: var(--radius); padding: 6% 7%;
  display: flex; flex-direction: column; justify-content: center; gap: .25em; overflow: hidden; position: relative;
  font: 700 clamp(.95rem, 2.3vw, 1.3rem)/1.18 var(--head);
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6);
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)), var(--still, none) center/cover no-repeat, var(--screen); }
.screen .l.hot { color: #ff6234; }
.screen.quote { font: 500 clamp(.9rem, 2.1vw, 1.15rem)/1.35 var(--body); font-style: italic; }
.screen.formula { font: 700 1rem/1.05 var(--head); }
.screen .tcode { position: absolute; left: .75rem; bottom: .6rem; font: 600 .68rem/1 var(--mono); color: #202124; background: #ff6234; padding: .3em .45em; border-radius: 4px; text-shadow: none; }
.screen .kind { position: absolute; right: .75rem; top: .6rem; font: 600 .6rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #c58bff; background: rgba(171,79,246,.22); padding: .35em .5em; border-radius: 4px; text-shadow: none; }
.screen .credit { position: absolute; left: .75rem; top: .6rem; font: 500 .6rem/1 var(--body); color: #babcc2; text-shadow: none; max-width: 60%; }
.screen .txt { display: flex; flex-direction: column; gap: .04em; width: max-content; max-width: 66%; line-height: .98; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: normal; word-break: keep-all; }
.screen.quote .txt { text-transform: none; line-height: 1.12; letter-spacing: 0; }
.screen.formula .txt { line-height: 1.05; }
.screen .l { display: block; }
.screen .l.rule { border-top: .09em solid currentColor; margin: .12em 0; width: 100%; }
.screen:not(.quote):not(.formula) .txt { font-weight: 700; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { font: 600 .74rem/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: .55em .9em; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; cursor: pointer; min-height: 36px; }
.filters button:hover { border-color: var(--purple); }
.filters button[aria-pressed="true"] { background: var(--purple-strong); border-color: var(--purple-strong); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.gallery a { text-decoration: none; color: inherit; display: block; border-radius: var(--radius); }
.gallery a[hidden] { display: none; }
.gallery a:hover .screen { box-shadow: 0 0 0 2px var(--orange); }
@media (prefers-reduced-motion: no-preference) { .gallery .screen { transition: transform .15s ease, box-shadow .15s ease; } .gallery a:hover .screen { transform: translateY(-2px); } }

/* Reference shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.shelf > div { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.25rem .4rem; min-width: 0; }
.shelf h3 { font-size: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.shelf h3 small { font: 600 .74rem/1 var(--body); color: var(--purple); background: var(--tint-p); padding: .3em .55em; border-radius: 999px; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs li { padding: .85rem 0; border-bottom: 1px solid var(--border); display: grid; gap: .3rem; }
.refs li:last-child { border-bottom: 0; }
.refs .name { font-weight: 600; overflow-wrap: anywhere; }
.refs .desc { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.refs .hits { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }

/* Find + prompt */
.find, .prompt { display: grid; gap: 1rem; max-width: 46rem; }
.find form { display: flex; gap: .5rem; flex-wrap: wrap; }
.find input[type="search"] { flex: 1 1 16rem; }
.find-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.find-chips button { font: 500 .85rem/1.3 var(--body); padding: .45rem .8rem; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; cursor: pointer; min-height: 36px; }
.find-chips button:hover { border-color: var(--coral); color: var(--coral); }
.findnote { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { display: grid; grid-template-columns: auto auto 1fr; gap: .3rem .75rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.results .rtype { font: 600 .62rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--purple); white-space: nowrap; }
.results .rtext { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.results mark { background: var(--tint-o); color: inherit; border-radius: 2px; padding: 0 .1em; }
@media (max-width: 30rem) { .results li { grid-template-columns: auto 1fr; } .results .rtext { grid-column: 1 / -1; } }
.promptopts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: .92rem; }
.promptopts label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; font-weight: 500; font-size: .92rem; }
.promptopts input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; }
.ptokens { margin-left: auto; font: .78rem/1 var(--mono); color: var(--muted); }
.prompt textarea { width: 100%; padding: .9rem 1rem; font: .8rem/1.55 var(--mono); resize: vertical; }
.copyrow { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.starters ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

/* Outline drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
.outline { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(20rem, 86vw); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem) max(1rem, env(safe-area-inset-left, 0px));
  background: var(--surface); border-right: 1px solid var(--border); box-shadow: 8px 0 32px rgba(0,0,0,.35); }
.outline[hidden], .scrim[hidden] { display: none; }
.outline-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.outline-head button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.outline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.outline ol ol { margin: 2px 0 4px .9rem; padding-left: .7rem; border-left: 1px solid var(--border); }
.outline a { display: flex; gap: .6rem; align-items: baseline; padding: .55rem .65rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.3; }
.outline ol ol a { font-weight: 400; font-size: .9rem; color: var(--muted); padding: .4rem .6rem; }
.outline a .ix { font: 600 .7rem/1 var(--mono); color: var(--dim); min-width: 1.4em; }
.outline a:hover { background: var(--surface2); }
.outline a[aria-current="true"] { background: var(--tint-o); color: var(--text); }
.outline a[aria-current="true"] .ix { color: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .outline:not([hidden]) { animation: slidein .2s ease-out; } @keyframes slidein { from { transform: translateX(-100%); } } }

@media (max-width: 30rem) {
  .report { gap: 2.75rem; }
  .section-head h2 { font-size: 1.65rem; }
  .chhead { grid-template-columns: 1fr auto; }
  .chhead .rng { grid-column: 1 / -1; }
}
