/* The welcome page's design (first drawn in the Builder's TodayNews.vue). The Builder shows this
   page inside its welcome screen (?embed=1); opened on its own, it is playstoryteller.com. */
* { box-sizing: border-box; }
html, body { margin: 0; }
img, video { max-width: 100%; }
body { overflow-wrap: anywhere; background: radial-gradient(ellipse at 80% 0%, #dbe8fc 0%, transparent 40%), #edf2f8; color: #17273f; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.embedded { background: #edf2f8; }
/* Inside the Builder the frame is sized to the page (site.js): the page itself never scrolls. A
   scrollbar of its own would narrow it, re-wrap it taller, and keep itself there. */
html.embedded, body.embedded { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; transition: background-color 160ms, border-color 160ms; }
button { font: inherit; }
video { cursor: pointer; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 2px solid #3264bc; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: #17273f; line-height: 1.15; }
p { line-height: 1.65; }

.tn-container { container-type: inline-size; width: 100%; }
.tn-content { max-width: 1480px; margin: auto; padding: clamp(24px, 3cqi, 40px) clamp(16px, 3.5cqi, 56px); }
body.embedded .tn-content { padding: 0 clamp(16px, 2.5cqi, 32px); }
.tn-status { padding: 46px 0; color: #536880; }

.tn-site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #ced8e5; }
.tn-site-header h1 { font-size: clamp(20px, 2cqi, 28px); font-weight: 700; margin-top: 5px; }
body.embedded .tn-site-header, body.embedded .tn-footer { display: none; }

.tn-eyebrow { color: #536880; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.7px; }
.tn-action-btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 12px 16px; border-radius: 8px; border: 1px solid #c8d5e4; background: #ffffff; color: #17273f; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; }
.tn-action-btn:hover { background: #e5edf9; border-color: #3264bc; }
.tn-primary { background: #497bfa; border-color: #497bfa; color: #fff; }
.tn-primary:hover { background: #365fe1; }

.tn-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 3cqi, 40px); padding: 36px 0; }
body.embedded .tn-hero { padding-top: 34px; }
.tn-hero-copy .tn-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.tn-dot { flex-shrink: 0; width: 6px; height: 6px; background: #328256; border-radius: 50%; }
.tn-hero h2 { margin: 20px 0; font-size: clamp(32px, 4cqi, 56px); letter-spacing: -1.5px; font-weight: 750; }
.tn-hero h2 span { color: #3164d4; }
.tn-intro { color: #50647d; font-size: 14px; max-width: 48ch; margin-bottom: 24px !important; }
.tn-hero-footnote { color: #5b708b; font-size: 12px; margin-top: 20px; }
.tn-cinema { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr); align-items: center; gap: 14px; min-width: 0; }
.tn-cinema.tn-single { grid-template-columns: 1fr; }
.tn-clip { min-width: 0; }
.tn-clip video { display: block; width: 100%; background: #080c13; border: 1px solid #4a5260; border-radius: 12px; box-shadow: 0 20px 50px #0005; object-fit: contain; }
.tn-clip-wide video { aspect-ratio: 4 / 3; }
.tn-clip-portrait video { aspect-ratio: 800 / 1168; }
.tn-clip figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-top: 10px; color: #526882; font-size: 11px; }
.tn-clip figcaption span + span { color: #5d7390; }

.tn-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin: 12px 0 20px; }
.tn-section-heading h2 { font-size: clamp(23px, 2.2cqi, 30px); margin-top: 8px; letter-spacing: -0.6px; }
.tn-section-heading > p { color: #556b85; font-size: 13px; max-width: 250px; }
.tn-features { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.tn-feature { background: #ffffff; border: 1px solid #d3deea; border-radius: 14px; overflow: hidden; min-width: 0; }
.tn-character { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr); }
.tn-character-stage { background: radial-gradient(ellipse at center, #2c4466, #0d1726 75%); position: relative; min-width: 0; display: flex; align-items: center; }
.tn-character-stage video { display: block; width: 100%; aspect-ratio: 768 / 1168; object-fit: contain; }
.tn-character-name { position: absolute; top: 15px; left: 15px; padding: 5px 9px; border: 1px solid #547091; border-radius: 5px; background: #152238e6; font-size: 9px; color: #d2e1f4; pointer-events: none; }
.tn-feature-copy { padding: 26px; align-self: center; }
.tn-feature-copy h2 { font-size: 24px; letter-spacing: -0.5px; margin: 12px 0; }
.tn-feature-copy > p:not(.tn-eyebrow) { font-size: 14px; color: #50647d; margin-bottom: 20px; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; list-style: none; }
.tn-chips li { border: 1px solid #cbd8e7; border-radius: 4px; padding: 5px 7px; font-size: 11px; color: #405975; }
.tn-art img { display: block; width: 100%; height: 180px; object-fit: cover; }
.tn-art .tn-feature-copy { padding-top: 22px; }
.tn-text-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; min-height: 44px; padding: 8px 0; color: #245bc7; font-size: 14px; font-weight: 650; cursor: pointer; text-align: left; text-decoration: none; }
.tn-text-btn:hover { color: #194499; text-decoration: underline; }

.tn-ai-watch { padding: 34px 0; margin-top: 24px; border-top: 1px solid #ced8e5; border-bottom: 1px solid #ced8e5; }
.tn-ai-watch .tn-section-heading { margin-top: 0; }
.tn-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tn-news-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid #cbd8e7; border-radius: 12px; text-decoration: none; background: #ffffff; color: inherit; }
.tn-news-card:hover { background: #f0f5fe; border-color: #3264bc; }
.tn-news-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #576f8e; font-size: 12px; }
.tn-news-meta > span { color: #856020; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.tn-news-card h3 { font-size: 20px; margin: 18px 0 12px; letter-spacing: -0.3px; }
.tn-news-card p { color: #50647d; font-size: 14px; margin-bottom: 22px; }
.tn-news-source { margin-top: auto; color: #245bc7; font-size: 13px; }
.tn-editorial-note { color: #5b708b; font-size: 12px; margin-top: 14px !important; }

.tn-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 20px; color: #5b708b; font-size: 12px; letter-spacing: 0.5px; }
.tn-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Use the page's available width, including when it sits in a narrower Builder panel. */
.tn-hero-copy, .tn-feature-copy, .tn-section-heading > div { min-width: 0; }
@container (max-width: 1100px) {
    .tn-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .tn-hero h2 { font-size: clamp(32px, 4.7cqi, 48px); }
    .tn-intro { max-width: 65ch; }
    .tn-cinema { width: 100%; max-width: 900px; justify-self: center; }
    .tn-features { grid-template-columns: minmax(0, 1fr); }
    .tn-character { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
    .tn-character-stage { height: 360px; justify-content: center; }
    .tn-character-stage video { width: 100%; height: 100%; }
    .tn-art { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .tn-art img { height: 100%; min-height: 260px; }
    .tn-feature-copy { padding: 24px; }
}
@container (max-width: 760px) {
    .tn-site-header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .tn-hero { padding: 28px 0; }
    .tn-hero h2 { font-size: clamp(30px, 5.6cqi, 42px); letter-spacing: -1px; }
    .tn-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .tn-section-heading > p { max-width: none; }
    .tn-news-grid { grid-template-columns: minmax(0, 1fr); }
    .tn-character { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .tn-character-stage { height: 320px; }
    .tn-art { display: block; }
    .tn-art img { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
    .tn-feature-copy { padding: 20px; }
}
@container (max-width: 540px) {
    .tn-cinema { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .tn-clip-portrait { width: min(100%, 260px); justify-self: center; }
    .tn-character { grid-template-columns: minmax(0, 1fr); }
    .tn-character-stage { height: 300px; }
    .tn-character-stage video { width: auto; height: 100%; }
    .tn-news-card { padding: 20px; }
    .tn-news-meta { gap: 8px; }
    .tn-ai-watch { padding: 28px 0; }
}
