/*
 * Late Show: components
 * Needs tokens.css first. Every class starts with "ls-" so it can sit next to any other CSS.
 */

/* Base */
.ls { margin: 0; background: var(--ls-black); color: var(--ls-white); font-family: var(--ls-sans); font-size: var(--ls-text-body); font-weight: var(--ls-weight-regular); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }
.ls a { color: inherit; }
.ls ::selection { background: var(--ls-sodium); color: var(--ls-black); }
.ls-container { width: min(100% - 2 * var(--ls-gutter), var(--ls-container)); margin-inline: auto; }
.ls-narrow { width: min(100% - 2 * var(--ls-gutter), var(--ls-narrow)); margin-inline: auto; }
.ls-center { text-align: center; }
.ls-center .ls-lead { margin-inline: auto; }

/* Sections */
.ls-section { padding-block: var(--ls-section); }
.ls-section--screen { background: var(--ls-screen); }
.ls-section--rule { border-top: var(--ls-border); }
.ls-hr { height: 1px; margin: 0; border: 0; background: var(--ls-line); }

/* Type: one tight grotesque, big and plain. Mono only for credits */
.ls-marquee, .ls-hero-title, .ls-h2, .ls-h3 { margin: 0; font-family: var(--ls-sans); font-weight: var(--ls-weight-regular); color: inherit; }
.ls-marquee { font-size: var(--ls-text-marquee); letter-spacing: var(--ls-tracking-display); line-height: .82; white-space: nowrap; }
.ls-hero-title { font-size: var(--ls-text-hero); letter-spacing: var(--ls-tracking-display); line-height: .92; }
.ls-h2 { font-size: var(--ls-text-h2); letter-spacing: var(--ls-tracking-h2); line-height: 1; }
.ls-h3 { font-size: var(--ls-text-h3); font-weight: var(--ls-weight-medium); letter-spacing: -.01em; line-height: 1.2; }
.ls-lead { max-width: 580px; margin: 20px 0 0; color: var(--ls-dim); font-size: var(--ls-text-lead); line-height: 1.5; }
.ls-micro { font-family: var(--ls-mono); font-size: var(--ls-text-micro); letter-spacing: var(--ls-tracking-micro); text-transform: uppercase; color: var(--ls-dim); }
.ls-sodium { color: var(--ls-sodium); }
.ls-caps { text-transform: uppercase; letter-spacing: .02em; }

/* Nav: tiny caps links left, wordmark centred, account links right. Sits over the first frame */
.ls-nav { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 20px var(--ls-gutter); }
.ls-nav--over { position: absolute; inset: 0 0 auto 0; }
.ls-nav__links { display: flex; gap: 28px; font-size: var(--ls-text-small); font-weight: var(--ls-weight-medium); text-transform: uppercase; letter-spacing: .02em; }
.ls-nav__links a { text-decoration: none; }
.ls-nav__links a:hover { color: var(--ls-sodium); }
.ls-nav__links--end { justify-content: flex-end; }
.ls-wordmark { font-size: 26px; font-weight: var(--ls-weight-bold); letter-spacing: -.06em; line-height: 1; text-decoration: none; white-space: nowrap; }
.ls-wordmark sup { font-size: .45em; letter-spacing: 0; vertical-align: top; }
@media (max-width: 860px) { .ls-nav__links:not(.ls-nav__links--end) a:nth-child(n+3) { display: none; } }
@media (max-width: 600px) { .ls-nav { grid-template-columns: auto 1fr; } .ls-nav__links:not(.ls-nav__links--end) { display: none; } .ls-nav__links--end a:not(:last-child) { display: none; } }

/* Buttons: square, thin white outline, uppercase, with an arrow */
.ls-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: var(--ls-outline); border-radius: var(--ls-radius); background: transparent; color: var(--ls-white); font-family: var(--ls-sans); font-size: 16px; font-weight: var(--ls-weight-medium); letter-spacing: -.005em; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--ls-fast) var(--ls-ease), color var(--ls-fast) var(--ls-ease), border-color var(--ls-fast) var(--ls-ease); }
.ls-btn::after { content: ""; width: 18px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--ls-fast) var(--ls-ease); }
.ls-btn:hover { background: var(--ls-white); color: var(--ls-black); }
.ls-btn:hover::after { transform: translateX(3px); }
.ls-btn--solid { background: var(--ls-white); color: var(--ls-black); }
.ls-btn--solid:hover { border-color: var(--ls-sodium); background: var(--ls-sodium); }
.ls-btn--sodium { border-color: var(--ls-sodium); background: var(--ls-sodium); color: var(--ls-black); }
.ls-btn--sodium:hover { border-color: var(--ls-sodium-dark); background: var(--ls-sodium-dark); color: var(--ls-black); }
.ls-btn--plain::after { display: none; }
.ls-btn--block { width: 100%; }
.ls-link { display: inline-flex; gap: 8px; align-items: center; font-weight: var(--ls-weight-medium); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ls-link:hover { color: var(--ls-sodium); }
.ls-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ls-center .ls-actions { justify-content: center; }

/* Frame: an edge-to-edge picture drawn in CSS, with grain and vignette. The signature surface */
.ls-frame { position: relative; overflow: hidden; isolation: isolate; background: var(--ls-scene-dusk); }
.ls-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--ls-grain), var(--ls-vignette); pointer-events: none; }
.ls-frame--night { background: var(--ls-scene-night); }
.ls-frame--dawn { background: var(--ls-scene-dawn); }
.ls-frame--lamp { background: var(--ls-scene-lamp); }
.ls-frame__art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.ls-frame__scrim { position: absolute; inset: 0; z-index: 2; background: var(--ls-scrim); }
.ls-frame__content { position: relative; z-index: 3; }
.ls-frame__tag { position: absolute; z-index: 3; top: 16px; left: 16px; }

/* Hero: a tall frame with the title laid over its bottom edge, bleeding off the right */
.ls-hero { min-height: min(92vh, 860px); margin: var(--ls-frame-gap); display: flex; flex-direction: column; justify-content: flex-end; }
.ls-hero .ls-frame__content { display: flex; flex-direction: column; gap: 20px; padding: 0 0 0 clamp(8px, 1.2vw, 18px); }
.ls-hero__aside { position: absolute; z-index: 3; right: clamp(16px, 2vw, 28px); bottom: 34%; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.ls-hero .ls-marquee { margin-bottom: -.07em; }
@media (max-width: 700px) { .ls-hero__aside { top: 84px; bottom: auto; left: 16px; right: auto; align-items: flex-start; text-align: left; } .ls-hero { min-height: 640px; } }

/* Strip: a row of film frames under the hero, like a contact sheet */
.ls-strip { display: grid; grid-template-columns: repeat(var(--ls-strip-count, 4), minmax(0, 1fr)); gap: var(--ls-frame-gap); margin: 0 var(--ls-frame-gap); }
.ls-strip .ls-frame { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .ls-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tiles: a frame with a caption under it */
.ls-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--ls-frame-gap); }
.ls-tile .ls-frame { aspect-ratio: 4 / 5; }
.ls-tile h3 { margin: 14px 0 4px; }
.ls-tile p { margin: 0; color: var(--ls-dim); font-size: var(--ls-text-small); }
.ls-tile a { text-decoration: none; }
.ls-tile a:hover h3 { color: var(--ls-sodium); }
@media (max-width: 900px) { .ls-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ls-tiles { grid-template-columns: 1fr; } }

/* Credits: a list of label and value pairs in mono, like an end-credit roll */
.ls-credits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--ls-border); }
.ls-credit { padding: 22px 20px 0 0; }
.ls-credit b { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: var(--ls-weight-regular); letter-spacing: var(--ls-tracking-display); line-height: 1; }
.ls-credit span { display: block; margin-top: 10px; }
@media (max-width: 760px) { .ls-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* Split: heading left, text right */
.ls-split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .ls-split { grid-template-columns: 1fr; gap: 20px; } }

/* Ticker: a clipped band of large words, separated by a sodium dot */
.ls-ticker { overflow-x: clip; border-block: var(--ls-border); padding-block: 18px; }
.ls-ticker__track { display: flex; gap: 32px; width: max-content; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; white-space: nowrap; animation: ls-roll 40s linear infinite; }
.ls-ticker__track span::after { content: ""; display: inline-block; width: .22em; height: .22em; margin-left: 32px; border-radius: 50%; background: var(--ls-sodium); vertical-align: middle; }
@keyframes ls-roll { to { transform: translateX(-50%); } }

/* Badge: small outlined caps tag */
.ls-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid currentColor; font-family: var(--ls-mono); font-size: 11px; letter-spacing: var(--ls-tracking-micro); line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.ls-badge--sodium { border-color: var(--ls-sodium); background: var(--ls-sodium); color: var(--ls-black); }
.ls-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ls-sodium); }

/* Quote: a pull quote set huge, with a credit line */
.ls-quote { margin: 0; }
.ls-quote p { margin: 0; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.035em; line-height: 1.04; }
.ls-quote footer { margin-top: 24px; }

/* Plans: shared-border columns. The featured one is a frame with sodium edge */
.ls-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--ls-border); }
.ls-plan { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-right: var(--ls-border); }
.ls-plan:last-child { border-right: 0; }
.ls-plan--featured { background: var(--ls-screen); box-shadow: inset 0 3px 0 var(--ls-sodium); }
.ls-plan__price { font-size: clamp(52px, 5.4vw, 76px); letter-spacing: var(--ls-tracking-display); line-height: .9; }
.ls-plan__price small { margin-left: 6px; color: var(--ls-dim); font-family: var(--ls-mono); font-size: var(--ls-text-micro); letter-spacing: var(--ls-tracking-micro); text-transform: uppercase; }
.ls-plan ul { flex: 1; margin: 0; padding: 0; list-style: none; border-top: var(--ls-border); }
.ls-plan li { padding: 10px 0; border-bottom: var(--ls-border); font-size: var(--ls-text-small); }
.ls-plan li::before { content: "+ "; color: var(--ls-sodium); font-family: var(--ls-mono); }
@media (max-width: 860px) { .ls-plans { grid-template-columns: 1fr; } .ls-plan { border-right: 0; border-bottom: var(--ls-border); } .ls-plan:last-child { border-bottom: 0; } }

/* Toggle: two square segments */
.ls-toggle { display: inline-flex; border: var(--ls-outline); }
.ls-toggle button { padding: 9px 16px; border: 0; background: transparent; color: var(--ls-white); font: var(--ls-weight-medium) var(--ls-text-small) var(--ls-sans); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ls-toggle button[aria-pressed="true"] { background: var(--ls-white); color: var(--ls-black); }

/* Table */
.ls-table-wrap { overflow-x: auto; }
.ls-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--ls-text-small); }
.ls-table th, .ls-table td { padding: 14px 12px 14px 0; border-bottom: var(--ls-border); text-align: left; }
.ls-table th { font-family: var(--ls-mono); font-size: var(--ls-text-micro); font-weight: 400; letter-spacing: var(--ls-tracking-micro); text-transform: uppercase; color: var(--ls-dim); }
.ls-table td:not(:first-child) { color: var(--ls-dim); }

/* FAQ */
.ls-faq { border-top: var(--ls-border); }
.ls-faq details { border-bottom: var(--ls-border); }
.ls-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 20px; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq summary::after { content: "+"; font-family: var(--ls-mono); color: var(--ls-sodium); }
.ls-faq details[open] summary::after { content: "\2212"; }
.ls-faq p { max-width: 640px; margin: 0 0 22px; color: var(--ls-dim); }

/* Article */
.ls-article { font-size: 18px; line-height: 1.7; }
.ls-article h2 { margin: 56px 0 12px; font-size: 32px; font-weight: var(--ls-weight-regular); letter-spacing: -.03em; line-height: 1.1; }
.ls-article p { margin: 0 0 22px; color: #D9D5CE; }
.ls-article a { color: var(--ls-sodium); }
.ls-article blockquote { margin: 44px 0; padding: 0; }
.ls-article blockquote p { margin: 0; color: var(--ls-white); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.08; }
.ls-article blockquote p::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 18px; background: var(--ls-sodium); }
.ls-figure { margin: 44px 0; }
.ls-figure .ls-frame { aspect-ratio: 16 / 9; }
.ls-figure figcaption { margin-top: 10px; }
.ls-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 16px; border-block: var(--ls-border); }

/* Forms: square fields with a bottom line, mono labels */
.ls-form { display: grid; gap: 22px; }
.ls-field { display: grid; gap: 8px; }
.ls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .ls-row { grid-template-columns: 1fr; } }
.ls-label { font-family: var(--ls-mono); font-size: var(--ls-text-micro); letter-spacing: var(--ls-tracking-micro); text-transform: uppercase; color: var(--ls-dim); }
.ls-input, .ls-select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ls-line-bright); border-radius: 0; background: transparent; color: var(--ls-white); font: 20px/1.3 var(--ls-sans); letter-spacing: -.01em; outline: none; transition: border-color var(--ls-fast) var(--ls-ease); }
.ls-select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ls-dim) 50%) right 6px top 52% / 7px 7px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ls-dim) 50%) right 0 top 52% / 7px 7px no-repeat; }
.ls-select option { background: var(--ls-screen); }
.ls-input::placeholder { color: var(--ls-faint); }
.ls-input:focus, .ls-select:focus { border-bottom-color: var(--ls-sodium); }
.ls-check { display: flex; gap: 12px; align-items: flex-start; color: var(--ls-dim); font-size: var(--ls-text-small); }
.ls-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ls-sodium); }
.ls-hint { color: var(--ls-faint); font-size: 13px; }
.ls-seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: var(--ls-border); }
.ls-seats label { display: grid; gap: 4px; padding: 14px; border-right: var(--ls-border); cursor: pointer; }
.ls-seats label:last-child { border-right: 0; }
.ls-seats input { position: absolute; opacity: 0; pointer-events: none; }
.ls-seats label:has(input:checked) { background: var(--ls-white); color: var(--ls-black); }
.ls-seats label:has(input:checked) .ls-micro { color: var(--ls-black); }
.ls-seats b { font-weight: var(--ls-weight-medium); }

/* Footer: one giant wordmark bleeding off the bottom, link columns above */
.ls-footer { padding-top: 72px; border-top: var(--ls-border); overflow: hidden; }
.ls-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.ls-footer__cols ul { margin: 12px 0 0; padding: 0; list-style: none; }
.ls-footer__cols li { margin: 6px 0; font-size: var(--ls-text-small); }
.ls-footer__cols a { text-decoration: none; color: var(--ls-dim); }
.ls-footer__cols a:hover { color: var(--ls-white); }
.ls-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; }
.ls-footer__mark { margin: 24px 0 -.16em; font-size: clamp(80px, 22vw, 340px); font-weight: var(--ls-weight-bold); letter-spacing: -.07em; line-height: .8; white-space: nowrap; }
@media (max-width: 760px) { .ls-footer__cols { grid-template-columns: 1fr 1fr; } }

/* Motion: a slow fade up, like a picture coming up from black */
.ls-fade { animation: ls-fade var(--ls-slow) var(--ls-ease) both; }
@keyframes ls-fade { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .ls-fade, .ls-ticker__track { animation: none; } }

/* Fills for drawn scenes (inline SVG inside .ls-frame__art) */
.ls-f-black { fill: var(--ls-black); }
.ls-f-screen { fill: var(--ls-screen); }
.ls-f-dusk { fill: var(--ls-dusk); }
.ls-f-haze { fill: var(--ls-haze); }
.ls-f-ember { fill: var(--ls-ember); }
.ls-f-sodium { fill: var(--ls-sodium); }
.ls-f-white { fill: var(--ls-white); }
.ls-f-glow { fill: var(--ls-sodium); filter: blur(6px); opacity: .7; }
.ls-s-line { fill: none; stroke: var(--ls-black); stroke-width: 2; }
