/* Live Studio page — extends the D3 design system in styles.css. 12-column grid used in quarters;
   hairline cells; one signal colour (red = on air). */

.lv-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.lv-cell { padding: var(--pad); border-top: var(--border) solid var(--black-line); border-right: var(--border) solid var(--black-line); min-width: 0; }
.lv-cell--w { border-color: var(--white-line); }
.s3 { grid-column: span 3; } .s6 { grid-column: span 6; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.lv-stack { display: flex; flex-flow: column; gap: var(--pad); }
.lv-meta { align-self: flex-end; color: var(--dark-grey); }

/* ---------- Type ---------- */
.lv-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(5rem, 15vw, 14.75rem); line-height: .8; text-transform: uppercase; margin: 0; }
.lv-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 9vw, 8.25rem); line-height: .82; text-transform: uppercase; margin: 0; }
.lv-page h3 { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.05; text-transform: uppercase; margin: 0; }
.lv-page p { font-family: var(--font-body); font-size: .9375rem; line-height: 1.45; color: var(--dark-grey); }
.lv-lead { font-size: 1.0625rem !important; color: var(--black) !important; }
.lv-small { font-size: .875rem !important; }
.lv-mono { font-family: var(--font-mono); font-size: .85em; }
.lv-num { font-family: var(--font-display); font-size: 4rem; line-height: .8; display: block; color: var(--black); }
.lv-big { font-family: var(--font-display); font-size: clamp(5rem, 9vw, 6.5rem); line-height: .8; display: block; margin-bottom: .75rem; color: var(--black); }
.lv-statement { font-family: var(--font-body); font-size: 1.0625rem !important; color: var(--black) !important; }

/* Redaction: one word under a black bar that wipes away on hover or focus (the page's one wink). */
.lv-redact { position: relative; display: inline-block; outline: none; }
.lv-redact::after { content: ''; position: absolute; inset: -.03em -.04em -.05em; background: var(--black); transform-origin: right; transition: transform .7s var(--ease); }
.lv-redact:hover::after, .lv-redact:focus-visible::after, .lv-revealed .lv-redact::after { transform: scaleX(0); }

/* ---------- Hero ---------- */
.lv-hero-title { display: flex; flex-flow: column; justify-content: space-between; gap: 3rem; min-height: 26rem; }
.lv-hero-lede { display: flex; flex-flow: column; justify-content: space-between; gap: 2rem; }
.lv-hero-lede .button { width: 100%; }
.lv-stage-cell { padding: var(--pad); }
.lv-layouts { display: flex; flex-flow: column; gap: 1.25rem; }
.lv-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--border) solid var(--black-line); }
.lv-keys li { position: relative; isolation: isolate; display: flex; align-items: center; gap: 1rem; padding: .9rem .75rem; border-bottom: var(--border) solid var(--black-line);
  font-family: var(--font-heading); font-size: .9375rem; text-transform: uppercase; transition: color .45s var(--ease); }
.lv-keys li b { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; }
.lv-keys li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--black); clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease); }
.lv-keys li.on { color: var(--white); } .lv-keys li.on::before { clip-path: inset(0); }
.lv-layouts .lv-small { margin-top: auto; }

/* The miniature stage: 16:9, tiles placed in % so it scales with the cell. Skins swap the variables. */
.lv-stage { --bg: #0a0a0a; --tile: #1f1f1f; --ink: #fff; --line: rgba(255,255,255,.55); --r: 0px; --tag: rgba(0,0,0,.6);
  position: relative; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; container-type: inline-size; transition: background .6s var(--ease); }
.lv-stage[data-skin='rounded'] { --bg: #080808; --tile: #222; --r: 1.6cqw; --tag: rgba(8,8,8,.72); }
.lv-stage[data-skin='paper'] { --bg: #eaeaea; --tile: #fff; --ink: #000; --line: rgba(0,0,0,.5); --tag: #000; }
.lv-stage__top { position: absolute; left: 3.75%; right: 3.75%; top: 4.5%; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.lv-stage__show { font-family: var(--font-heading); font-size: 1.6cqw; text-transform: uppercase; color: var(--ink); transition: color .6s; }
.lv-stage[data-skin='rounded'] .lv-stage__show { font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: 1.9cqw; }
.lv-live { display: inline-flex; align-items: center; gap: .7cqw; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: 1.35cqw; text-transform: uppercase; padding: .5cqw .9cqw; }
.lv-stage[data-skin='rounded'] .lv-live { border-radius: .5cqw; }
.lv-live i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #fff; animation: lv-blink 1.6s ease-in-out infinite; }
.lv-live b { font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes lv-blink { 50% { opacity: .2; } }
.lv-tiles { position: absolute; inset: 0; }
.lv-tile { position: absolute; left: 0; top: 0; background: var(--tile); border-radius: var(--r); overflow: hidden; transition: background .6s, border-radius .6s; will-change: transform; }
.lv-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lv-tile .who { fill: none; stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke .6s; }
.lv-tile .tag { position: absolute; left: 4%; bottom: 6%; background: var(--tag); color: #fff; font-family: var(--font-mono); font-size: 1.15cqw; padding: .35cqw .7cqw; text-transform: uppercase; white-space: nowrap; border-radius: calc(var(--r) * .4); transition: background .6s; }
.lv-stage[data-skin='paper'] .lv-tile { outline: .5px solid rgba(0,0,0,.4); outline-offset: -.5px; }
.lv-tile.screen .who { stroke-dasharray: none; }
/* A viewer comment wipes up bottom-left now and then. */
.lv-comment { position: absolute; left: 3.75%; bottom: 6%; z-index: 4; display: flex; align-items: center; gap: .9cqw; background: #fff; color: #000; padding: 1cqw 1.4cqw; font-family: var(--font-body); font-size: 1.45cqw; clip-path: inset(100% 0 0 0); border-radius: calc(var(--r) * .6); box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.lv-comment b { font-weight: 600; }
.lv-comment__src svg { width: 1.6cqw; height: 1.6cqw; display: block; }

/* ---------- Sections ---------- */
.lv-head > .lv-cell:first-child { padding-block: 1.5rem; }
.lv-head__lede { display: flex; flex-flow: column; justify-content: space-between; gap: 1rem; }
.lv-step, .lv-feat { display: flex; flex-flow: column; gap: 1rem; min-height: 15rem; }
.lv-step .lv-num { margin-bottom: auto; padding-bottom: 2rem; }
.lv-dark { background: var(--black); color: var(--light-grey); }
.lv-dark .lv-meta { color: #a3a3a3; }
.lv-dark p { color: #bdbdbd; }
.lv-dark h3 { color: var(--white); }
.lv-feat { min-height: 13rem; }
.lv-pad--w { border-top-color: var(--white-line); }
.lv-gap { height: 1.25rem; }
.lv-skins { display: flex; flex-flow: column; gap: 1rem; }
.lv-skinlist { display: grid; border-top: var(--border) solid var(--black-line); }
.lv-skin { position: relative; isolation: isolate; display: flex; align-items: center; gap: .75rem; padding: .9rem .75rem; border: 0; border-bottom: var(--border) solid var(--black-line); background: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: .9375rem; text-transform: uppercase; color: var(--black); transition: color .45s var(--ease); }
.lv-skin i { width: .9rem; height: .9rem; outline: .5px solid rgba(0,0,0,.4); }
.lv-skin::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--black); clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease); }
.lv-skin.on { color: var(--white); } .lv-skin.on::before { clip-path: inset(0); } .lv-skin.on i { outline-color: rgba(255,255,255,.6); }
@media (hover: hover) { .lv-skin:hover, .lv-keys li:hover { box-shadow: inset 0 0 0 1.5px var(--black); } }
.lv-brandcopy { display: flex; flex-flow: column; gap: 1.5rem; }
.lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.lv-list li { display: flex; gap: .75rem; font-family: var(--font-body); font-size: 1.0625rem; color: var(--black); }
.lv-list li::before { content: ''; flex: none; width: .5rem; height: .5rem; background: var(--black); margin-top: .5rem; }
.lv-nums .lv-cell { display: flex; flex-flow: column; justify-content: flex-end; min-height: 12rem; }
.lv-faq details { border-bottom: var(--border) solid var(--black-line); }
.lv-faq details:last-child { border-bottom: 0; }
.lv-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-heading); font-size: 1.25rem; text-transform: uppercase; }
.lv-faq summary::-webkit-details-marker { display: none; }
.lv-faq summary i { flex: none; width: 1rem; height: 1rem; position: relative; }
.lv-faq summary i::before, .lv-faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--black); transition: transform .45s var(--ease); }
.lv-faq summary i::after { transform: rotate(90deg); }
.lv-faq details[open] summary i::after { transform: rotate(0); }
.lv-faq details p { padding: 0 0 1.25rem; font-size: 1.0625rem; color: var(--black); }
.lv-cta { display: flex; flex-flow: column; gap: 2rem; }
.lv-cta .lv-meta { align-self: flex-start; }
.lv-h1--cta { font-size: clamp(5rem, 13vw, 13rem); }
.lv-cta-side { display: flex; flex-flow: column; justify-content: space-between; gap: 2rem; }
.lv-cta-side .button { width: 100%; }
.lv-link { font-family: var(--font-mono); font-size: .9rem; text-transform: uppercase; color: var(--black); text-decoration: none; }
.lv-link:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .s3 { grid-column: span 6; } .s9, .s6 { grid-column: span 12; }
  .lv-hero-title { min-height: 0; }
}
@media (max-width: 600px) { .s3 { grid-column: span 12; } .lv-step, .lv-feat { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-live i { animation: none; } .lv-keys li, .lv-keys li::before, .lv-skin, .lv-skin::before, .lv-redact::after { transition: none; } }
