/* Homepage-only visual consolidation. Keep data hooks, generated blocks and
   form contracts in index.html intact. The festival and Tonight keep their
   own palettes and layouts; only their outer alignment joins the page grid. */
body.tvi-home {
  --home-width:1180px;
  --home-gutter:clamp(20px,4vw,48px);
  --ivory-muted:rgba(245,240,232,.70);
  --text-faint:rgba(245,240,232,.56);
}
body.tvi-home :is(a,button,input,summary):focus-visible {
  outline:2px solid var(--copper-light);
  outline-offset:4px;
}
body.tvi-home section[id] {scroll-margin-top:84px}

/* A calm, legible masthead, with the compact menu before links start wrapping. */
body.tvi-home .site-nav {padding:14px var(--home-gutter);gap:22px}
body.tvi-home .nav-left {gap:30px;min-width:0}
body.tvi-home .nav-logo {flex-shrink:0;white-space:nowrap}
body.tvi-home .nav-name {font-size:17px}
body.tvi-home .nav-links {gap:20px;align-items:center}
body.tvi-home .nav-links>a {white-space:nowrap;color:#b9b4ab}
body.tvi-home .nav-links>a:hover,
body.tvi-home .nav-links>a.active {color:var(--copper-light)}
body.tvi-home .nav-cta {white-space:nowrap}

/* Headline, search, then supporting trust. No new promises or product logic. */
body.tvi-home .hero {min-height:0;padding:46px var(--home-gutter) 34px}
body.tvi-home .hero-content {max-width:850px}
body.tvi-home .hero-tag {margin-bottom:21px;line-height:1.7;max-width:600px;margin-inline:auto}
body.tvi-home .hero h1 {font-size:clamp(44px,6.1vw,78px);letter-spacing:-.025em;margin-bottom:23px;line-height:1.03}
body.tvi-home .hero-sub {font-size:17px;line-height:1.7;color:#c1bcb3;max-width:650px;margin-bottom:26px;font-weight:400}
body.tvi-home .hero-overlay {background:radial-gradient(ellipse 72% 90% at 50% 42%,rgba(20,20,20,.97),rgba(20,20,20,.84) 53%,rgba(20,20,20,.48))}
body.tvi-home .poster-row img {opacity:.30}
body.tvi-home .hero-search {max-width:580px;animation-delay:.35s}
body.tvi-home .search-input {min-height:60px;padding:18px 22px;border-color:#77654e;background:rgba(32,31,28,.96);border-radius:10px;font-size:16px;box-shadow:0 8px 35px rgba(0,0,0,.22)}
body.tvi-home .search-input::placeholder {color:#bbb5aa}
body.tvi-home .search-input:focus {border-color:var(--copper-light);background:#24211d}
body.tvi-home .search-dd {background:#22211f;border-color:#65523b}
body.tvi-home .hero-search-help {font-size:12px;line-height:1.5;color:var(--ivory-muted);margin:9px 0 0}
body.tvi-home .hero-chips {margin-top:17px;gap:9px}
body.tvi-home .hero-chips a {padding:10px 18px;color:#d8d2c8;background:rgba(20,20,20,.58);border-color:rgba(245,240,232,.25)}
body.tvi-home .hero-chips a:hover {color:var(--ivory);background:rgba(193,127,62,.15);border-color:var(--copper)}
body.tvi-home .hero-proof {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px 24px;font-size:11px;line-height:1.6;color:#b5b0a7;margin:26px auto 0}
body.tvi-home .hero-proof strong {color:#d8d2c8;font-weight:500}
body.tvi-home .hero-trust {display:flex;justify-content:center;flex-wrap:wrap;gap:4px 18px;color:#aaa69e;font-size:11px;line-height:1.6;margin-top:8px}
body.tvi-home .hero-next {margin-top:25px;font-size:10px;letter-spacing:.15em}

/* One alignment system. These rules only load on the homepage. */
body.tvi-home :is(#home-cinema,#editorial-spotlight,#featured,#compare,#diets,#methodology,#waitlist) {padding:58px 0}
body.tvi-home :is(#home-cinema .hc-wrap,#editorial-spotlight .es-wrap,#featured>.container,#compare>.container,#diets>.container,#methodology>.container,#waitlist>.container),
body.tvi-home #nashfilm-hero .nf-wrap {
  width:min(var(--home-width),calc(100% - var(--home-gutter) * 2));
  max-width:none;margin-inline:auto;padding-inline:0;
}
body.tvi-home #nashfilm-hero {padding:12px 0 0}
body.tvi-home #tonight-band {padding-inline:0;margin-top:40px}
body.tvi-home #tonight-band .ht-wrap {width:min(var(--home-width),calc(100% - var(--home-gutter) * 2));max-width:none}
body.tvi-home .section-tag {margin-bottom:14px;font-size:10px;letter-spacing:.22em}
body.tvi-home .section-title {font-size:clamp(31px,3.5vw,44px);letter-spacing:-.015em;line-height:1.12}
body.tvi-home .section-body {font-size:15px;font-weight:400;line-height:1.7}
body.tvi-home .section-link {font-size:13px;line-height:1.5;min-height:34px}

/* Preserve the generated feature and carousel, but give image and argument
   comparable room. :has keeps the empty rail quiet if no cards are supplied. */
body.tvi-home .lead-feature {max-width:none;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);border-radius:12px}
body.tvi-home .lf-art {height:100%;aspect-ratio:auto;min-height:390px}
body.tvi-home .lf-body {padding:32px}
body.tvi-home .lf-head {font-size:clamp(32px,3.1vw,42px);line-height:1.08;letter-spacing:-.01em}
body.tvi-home .lf-sub {font-size:14px;font-weight:400;line-height:1.65}
body.tvi-home .lf-meta {align-items:flex-start}
body.tvi-home .lf-shelf {font-size:12px;line-height:1.55}
body.tvi-home .hc-wrap:not(:has(.hc-next-grid>.hc-card)) .hc-next-head,
body.tvi-home .hc-next-grid:not(:has(>*)) {display:none}
body.tvi-home #editorial-spotlight .es-title {font-size:clamp(31px,3.5vw,44px)}
body.tvi-home #editorial-spotlight .es-card {border-radius:12px}
body.tvi-home #editorial-spotlight .es-featured {flex-basis:380px}
body.tvi-home #editorial-spotlight .es-card-title {font-size:25px;line-height:1.15}
body.tvi-home #editorial-spotlight .es-byline {font-size:12px}
body.tvi-home #editorial-spotlight .es-body {padding:19px 20px 23px}

/* The four destinations stay; the second product demonstration is redundant
   after Tonight. Keep its data hook in place without spending another screen. */
body.tvi-home #job-strip {width:min(var(--home-width),calc(100% - var(--home-gutter) * 2));max-width:none;padding:48px 0;margin-inline:auto}
body.tvi-home #job-strip .js-head {text-align:left;margin-bottom:24px}
body.tvi-home #job-strip .js-kicker {font-size:10px;letter-spacing:.22em;margin-bottom:10px}
body.tvi-home #job-strip .js-eyebrow {font-size:clamp(31px,3.5vw,44px);font-weight:400}
body.tvi-home #job-strip .js-grid {grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;align-items:stretch}
body.tvi-home #job-strip .js-hero {padding:28px;border-radius:12px;justify-content:center}
body.tvi-home #job-strip .js-hero h3 {font-size:34px;line-height:1.1;max-width:20ch}
body.tvi-home #job-strip .js-sub {font-size:14px;line-height:1.6;margin-bottom:0}
body.tvi-home #job-strip .js-mock {display:none}
body.tvi-home #job-strip .js-cta {margin-top:22px}
body.tvi-home #job-strip .js-cards {gap:10px;padding-top:0}
body.tvi-home #job-strip .js-card {grid-template-columns:66px minmax(0,1fr);padding:15px 18px;gap:17px;border-radius:10px;transform:none}
body.tvi-home #job-strip .js-cards .js-card:nth-child(n) {transform:none}
body.tvi-home #job-strip .js-card:hover {transform:translateY(-2px) !important}
body.tvi-home #job-strip .js-card-vis {width:66px;height:66px}
body.tvi-home #job-strip .js-card-vis .fan {width:36px;height:54px;top:6px;transform:none;border-radius:4px}
body.tvi-home #job-strip .js-card-vis .fan1 {left:0}
body.tvi-home #job-strip .js-card-vis .fan2 {left:14px;top:3px}
body.tvi-home #job-strip .js-card-vis .fan3 {left:28px;top:0}
body.tvi-home #job-strip .js-card h4 {font-size:23px;line-height:1.15}
body.tvi-home #job-strip .js-cdesc {font-size:13px;margin:6px 0 0}
body.tvi-home #job-strip .js-receipt {display:none}
body.tvi-home #job-strip .js-now {padding:15px 20px;margin:0;gap:16px;border-radius:10px;grid-template-columns:46px minmax(0,1fr) auto}
body.tvi-home #job-strip .js-now-art img {width:46px;height:69px}
body.tvi-home #job-strip .js-now-h {font-size:23px}
body.tvi-home #job-strip .js-now-d {margin-bottom:4px;font-size:13px}

body.tvi-home .trust-band {padding:24px var(--home-gutter) 0}
body.tvi-home .trust-row {max-width:var(--home-width);margin-bottom:24px}
body.tvi-home .trust-band .iq-ticker {opacity:1}
body.tvi-home .iq-ticker-label {color:#bab4a9;font-size:10px}
body.tvi-home #returning-cta {padding:18px var(--home-gutter) 30px !important}
body.tvi-home #returning-cta>a {max-width:var(--home-width) !important;border-radius:10px !important}

/* Consistent card legibility, without changing scores or selection. */
body.tvi-home #featured .featured-grid {margin-top:26px;gap:20px}
body.tvi-home #featured .featured-card {border-radius:12px;text-decoration:none;display:block;color:var(--ivory)}
body.tvi-home #featured .featured-card:hover {transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.25)}
body.tvi-home #featured .featured-info {padding:20px}
body.tvi-home #featured .featured-title {font-size:27px;margin-bottom:10px}
body.tvi-home #featured .featured-score-line {gap:9px;flex-wrap:wrap;margin-bottom:10px}
body.tvi-home #featured .featured-iq {font-size:23px;font-weight:500}
body.tvi-home #featured .featured-iq-suffix {font-size:12px;color:var(--ivory-muted);font-weight:400;margin-left:2px}
body.tvi-home #featured .featured-cat {font-size:9px;letter-spacing:.07em;padding:4px 7px}
body.tvi-home #featured .featured-note {font-size:13px;color:#bdb7ad;line-height:1.6}
body.tvi-home #compare .compare-grid {margin-top:26px;gap:20px}
body.tvi-home #compare .compare-card {border-radius:12px;min-height:0}
body.tvi-home #diets .pw-compact {padding:26px;border-radius:12px;margin-top:26px}
body.tvi-home #diets .diets-grid {gap:20px}
body.tvi-home #diets .diet-card {display:block;padding:21px;border-radius:12px;text-decoration:none;color:var(--ivory)}
body.tvi-home #diets .diet-stat-iq {font-family:'DM Sans',sans-serif;font-size:15px;font-weight:500;white-space:nowrap}
body.tvi-home #diets .diet-stat-den {font-size:11px;color:var(--ivory-muted);font-weight:400;margin-left:2px}
body.tvi-home #diets .diet-title {font-size:24px;line-height:1.15}
body.tvi-home #diets .diet-desc {font-size:13px;line-height:1.6}
body.tvi-home #methodology .method-grid {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px}
body.tvi-home #methodology .formula-card {border-radius:12px;min-width:0}
body.tvi-home #methodology .method-note {font-size:13px}
body.tvi-home #checkin {padding:48px var(--home-gutter)}
body.tvi-home #checkin .ci-card {border-radius:12px}
body.tvi-home #waitlist .wl-feature-text h4 {font-size:14px}
body.tvi-home #waitlist .wl-feature-text p {font-size:13px;line-height:1.6}
body.tvi-home #waitlist .wl-signup {border-radius:12px}
body.tvi-home .site-footer {padding:35px var(--home-gutter)}
body.tvi-home .site-footer .foot-links {gap:12px 22px}
body.tvi-home .site-footer .foot-links a {font-size:12px}

@media(max-width:1100px) {
  body.tvi-home .nav-links {gap:14px}
  body.tvi-home .nav-left {gap:22px}
  body.tvi-home .nav-name {font-size:15px}
  body.tvi-home #featured .featured-info {padding:17px}
  body.tvi-home #featured .featured-title {font-size:25px}
}
@media(max-width:1000px) {
  body.tvi-home .nav-links,body.tvi-home .nav-cta-founding {display:none}
  body.tvi-home .hamburger {display:flex;padding:10px}
  body.tvi-home .nav-cta-mobile {display:inline-block}
  body.tvi-home .nav-left {gap:0}
  body.tvi-home .nav-right {gap:12px}
}
@media(max-width:940px) {
  body.tvi-home .lead-feature {grid-template-columns:1fr}
  body.tvi-home .lf-art {aspect-ratio:16/9;height:auto;min-height:0}
  body.tvi-home .lf-body {padding:28px}
}
@media(max-width:900px) {
  body.tvi-home #tonight-band .ht-wrap {max-width:660px}
  body.tvi-home #job-strip .js-grid {grid-template-columns:1fr 1.15fr}
  body.tvi-home #job-strip .js-card {grid-template-columns:1fr;padding:16px}
  body.tvi-home #job-strip .js-card-vis {display:none}
  body.tvi-home #featured .featured-grid,
  body.tvi-home #compare .compare-grid,
  body.tvi-home #diets .diets-grid {margin-inline:0;padding:2px 3px 16px;gap:20px;scrollbar-width:thin;scrollbar-color:var(--copper-dim) transparent}
  body.tvi-home #methodology .method-grid {grid-template-columns:minmax(0,1fr);gap:30px}
}
@media(max-width:640px) {
  body.tvi-home .site-nav {padding:11px 20px}
  body.tvi-home .nav-name,body.tvi-home .nav-sep {display:none}
  body.tvi-home .hero {padding:38px 20px 28px}
  body.tvi-home .hero-tag {font-size:9px !important;letter-spacing:.15em !important;max-width:310px;margin-bottom:20px}
  body.tvi-home .hero h1 {font-size:clamp(37px,9.8vw,58px);margin-bottom:20px}
  body.tvi-home .hero-sub {font-size:15px;line-height:1.65;margin-bottom:23px}
  body.tvi-home .hero-overlay {background:radial-gradient(ellipse at 50% 35%,rgba(20,20,20,.94),rgba(20,20,20,.77))}
  body.tvi-home .search-input {min-height:56px;font-size:14px;padding:15px}
  body.tvi-home .hero-chips {gap:7px}
  body.tvi-home .hero-chips a {font-size:12px;padding:10px 13px}
  body.tvi-home .hero-proof {font-size:10px;gap:6px 15px;margin-top:23px}
  body.tvi-home .hero-trust {font-size:10px;gap:3px 12px;margin-top:9px}
  body.tvi-home .hero-next {margin-top:22px}
  body.tvi-home :is(#home-cinema,#editorial-spotlight,#featured,#compare,#diets,#methodology,#waitlist) {padding:40px 0}
  body.tvi-home #nashfilm-hero {padding-top:8px}
  body.tvi-home #tonight-band {margin-top:28px}
  body.tvi-home .section-head {gap:16px}
  body.tvi-home .section-body {font-size:14px}
  body.tvi-home .hc-head {margin-bottom:20px}
  body.tvi-home .hc-intro {font-size:14px;line-height:1.65}
  body.tvi-home .lf-body {padding:23px}
  body.tvi-home .lf-head {font-size:33px}
  body.tvi-home .lf-art {aspect-ratio:4/3}
  body.tvi-home #job-strip {padding:38px 0}
  body.tvi-home #job-strip .js-grid {grid-template-columns:1fr;gap:14px}
  body.tvi-home #job-strip .js-hero {padding:24px}
  body.tvi-home #job-strip .js-hero h3 {font-size:30px;max-width:19ch}
  body.tvi-home #job-strip .js-card {grid-template-columns:56px minmax(0,1fr);padding:17px;gap:13px}
  body.tvi-home #job-strip .js-card-vis {display:block;width:56px;height:56px}
  body.tvi-home #job-strip .js-card-vis .fan {width:30px;height:45px}
  body.tvi-home #job-strip .js-card-vis .fan2 {left:12px}
  body.tvi-home #job-strip .js-card-vis .fan3 {left:24px}
  body.tvi-home #job-strip .js-card h4 {font-size:22px}
  body.tvi-home #job-strip .js-cdesc {font-size:12px;line-height:1.6}
  body.tvi-home #job-strip .js-now {padding:17px;grid-template-columns:40px minmax(0,1fr);gap:14px}
  body.tvi-home #job-strip .js-now-art img {width:40px;height:60px}
  body.tvi-home #job-strip .js-now-k {font-size:9px;letter-spacing:.14em}
  body.tvi-home #job-strip .js-now-d {font-size:12px}
  body.tvi-home #editorial-spotlight .es-card {flex-basis:84vw;max-width:340px}
  body.tvi-home #editorial-spotlight .es-featured {flex-basis:84vw}
  body.tvi-home #editorial-spotlight .es-card-title {font-size:25px}
  body.tvi-home .trust-essential .te-txt {font-size:12px}
  body.tvi-home #featured .featured-card {flex-basis:min(72vw,250px)}
  body.tvi-home #featured .featured-info {padding:18px}
  body.tvi-home #diets .pw-compact {padding:22px;gap:22px}
  body.tvi-home #methodology .formula-card {padding:24px 18px}
  body.tvi-home #methodology .formula-dim {grid-template-columns:18px minmax(0,1fr) 40px;gap:10px}
  body.tvi-home #methodology .formula-card-foot {font-size:10px;letter-spacing:.1em;line-height:1.6;overflow-wrap:anywhere}
  body.tvi-home #waitlist .waitlist-features {gap:10px}
}
@media(prefers-reduced-motion:reduce) {
  html:has(body.tvi-home) {scroll-behavior:auto}
  body.tvi-home *,body.tvi-home *::before,body.tvi-home *::after {animation:none !important;transition:none !important;scroll-behavior:auto !important}
  body.tvi-home :is(.hero-tag,.hero h1,.hero-sub,.hero-search,.hero-chips,.reveal) {opacity:1 !important;transform:none !important}
}
