/* TravelTrip World theme layer: brand palette, light + dark modes, polish. Loaded after tt-shell.css. */
:root,html[data-theme="dark"]{color-scheme:dark;
 --b-bg:#06191F;--b-bg2:#0A242C;--b-card:#0D2C36;--b-card2:#0A2229;--b-line:rgba(255,255,255,.10);--b-text:#F3F7F8;--b-soft:#C9D6DA;--b-muted:#93A7AE;
 --b-teal:#145768;--b-teal-ui:#3FB6C9;--b-gold:#D4AF37;--b-gold2:#F2CF5B;--b-gold-text:#F2CF5B;--b-header:rgba(6,25,31,.88);--b-shadow:0 10px 30px rgba(0,0,0,.25)}
html[data-theme="light"]{color-scheme:light;
 --b-bg:#F5F8F9;--b-bg2:#EAF1F3;--b-card:#FFFFFF;--b-card2:#F8FBFC;--b-line:#D9E4E7;--b-text:#0E2A33;--b-soft:#2F4A53;--b-muted:#566C74;
 --b-teal:#145768;--b-teal-ui:#145768;--b-gold:#C99A1E;--b-gold2:#E2B636;--b-gold-text:#8A6508;--b-header:rgba(255,255,255,.9);--b-shadow:0 8px 24px rgba(20,87,104,.08)}
/* map every page's token family onto the brand tokens */
html:root{--tt-bg:var(--b-bg);--tt-card:var(--b-card);--tt-line:var(--b-line);--tt-gold:var(--b-gold);--tt-gold2:var(--b-gold2);--tt-teal:var(--b-teal-ui);--tt-muted:var(--b-muted);--tt-text:var(--b-text);--tt-soft:var(--b-soft);
 --tt-font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
html:not([data-theme-lock]) body{--bg:var(--b-bg);--bg2:var(--b-bg2);--card:var(--b-card);--line:var(--b-line);--gold:var(--b-gold);--gold2:var(--b-gold-text);--teal:var(--b-teal-ui);--muted:var(--b-muted);--text:var(--b-text);--soft:var(--b-soft)}
html:not([data-theme-lock]) body{background:var(--b-bg)!important;color:var(--b-text);-webkit-font-smoothing:antialiased;line-height:1.6}
html[data-theme="light"] body{--bg-main:#F5F8F9;--bg-section:#EAF1F3;--primary:#145768;--primary-hover:#0F4352;--primary-light:#E6F2F4;--accent-gold:#C99A1E;--text-main:#0E2A33;--text-muted:#566C74;--border:#D9E4E7}
html[data-theme="dark"] body{--primary:#145768;--primary-hover:#0F4352}
/* header / footer */
html:not([data-theme-lock]) .tts-h{background:var(--b-header)}
html[data-theme="light"] .tts-nav a:hover,html[data-theme="light"] .tts-nav a.on{color:var(--b-teal)!important;background:#E6F2F4}
html[data-theme="light"] .tts-btn.o{background:#fff}
html[data-theme="light"] .tts-f{background:var(--b-bg2)}
.tts-theme{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;border:1px solid var(--tt-line);background:transparent;color:var(--tt-soft);cursor:pointer;font-size:16px;line-height:1;padding:0}
.tts-theme:hover{border-color:var(--b-gold)}
.tts-theme .i-sun{display:none}html[data-theme="dark"] .tts-theme .i-sun{display:inline}html[data-theme="dark"] .tts-theme .i-moon{display:none}
html[data-theme-lock] .tts-theme{display:none}
.tts-btn,.tts-theme{transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.tts-btn.g:hover{box-shadow:0 6px 18px rgba(212,175,55,.35)}
:focus-visible{outline:2px solid var(--b-gold);outline-offset:2px}
/* polish: shared cards, type, spacing (design-system pages) */
html:not([data-theme-lock]) main h1{letter-spacing:-.02em;line-height:1.15}
html:not([data-theme-lock]) main h2{letter-spacing:-.01em;line-height:1.25}
html:not([data-theme-lock]) .step,html:not([data-theme-lock]) .box,html:not([data-theme-lock]) .plan,html:not([data-theme-lock]) details{border-radius:16px}
html:not([data-theme-lock]) .step ul,html:not([data-theme-lock]) .step ol{padding-left:20px;margin:8px 0 0}
html:not([data-theme-lock]) .step li{margin:6px 0}
html:not([data-theme-lock]) section.step{margin-bottom:16px}
/* light-mode overrides for hardcoded dark colours */
html[data-theme="light"] .lead,html[data-theme="light"] .plan-name,html[data-theme="light"] .step p,html[data-theme="light"] details p,html[data-theme="light"] .box p,html[data-theme="light"] .sub,html[data-theme="light"] .step li,html[data-theme="light"] main li{color:var(--b-soft)!important}
html[data-theme="light"] .f,html[data-theme="light"] .badge{color:var(--b-text)!important;background:#fff!important}
html[data-theme="light"] .plan,html[data-theme="light"] .box,html[data-theme="light"] .step,html[data-theme="light"] details,html[data-theme="light"] .cc,html[data-theme="light"] .ghost{background:var(--b-card)!important;box-shadow:var(--b-shadow)}
html[data-theme="light"] .search{background:#fff!important;border-color:var(--b-line)!important}
html[data-theme="light"] .search input{color:var(--b-text)!important}
html[data-theme="light"] .flag{box-shadow:0 0 0 1px rgba(0,0,0,.08)}
html[data-theme="light"] main a:not([class*="btn"]):not(.cc):not(.buy):not(.fplan):not(.pcard){color:var(--b-teal)}
html[data-theme="light"] .hero,html[data-theme="light"] header.hero{background:linear-gradient(180deg,#E6F2F4,var(--b-bg))!important}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] summary,html[data-theme="light"] b,html[data-theme="light"] strong{color:var(--b-text)}
html[data-theme="light"] .cp b,html[data-theme="light"] .price,html[data-theme="light"] .plan-price{color:var(--b-gold-text)!important}
html:not([data-theme-lock]) .step li b{display:inline}
html:not([data-theme-lock]) section.step>h2:first-child{margin-top:0}
/* light mode: legacy page components (site.css / traveltrip.css pages) */
html[data-theme="light"] .card,html[data-theme="light"] .channel-card,html[data-theme="light"] .help-cat-card,html[data-theme="light"] .faq-item,html[data-theme="light"] .auth-tabs,
html[data-theme="light"] .device-card,html[data-theme="light"] .tt-setup-step-card,html[data-theme="light"] [style*="background: #0F172A"],html[data-theme="light"] [style*="background:#0F172A"]{background:#fff!important;border-color:var(--b-line)!important;box-shadow:var(--b-shadow)!important;color:var(--b-text)}
html[data-theme="light"] .card *:not(a):not(button):not(.btn):not([class*="btn"]),html[data-theme="light"] .channel-card *,html[data-theme="light"] .help-cat-card *,html[data-theme="light"] .faq-item *,html[data-theme="light"] .device-card *,html[data-theme="light"] .tt-setup-step-card *,html[data-theme="light"] [style*="background: #0F172A"] *{color:var(--b-soft)}
html[data-theme="light"] .card h1,html[data-theme="light"] .card h2,html[data-theme="light"] .card h3,html[data-theme="light"] .card h4,html[data-theme="light"] .card strong,html[data-theme="light"] .card b,html[data-theme="light"] .channel-card div[style*="font-weight: 700"],html[data-theme="light"] .cat-title,html[data-theme="light"] .tt-setup-step-title,html[data-theme="light"] [style*="background: #0F172A"] h3{color:var(--b-text)!important}
html[data-theme="light"] .section-heading-dark,html[data-theme="light"] main h1,html[data-theme="light"] .tt-hero-title,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] h4{color:var(--b-text)!important}
html[data-theme="light"] .tt-hero-subhead,html[data-theme="light"] .tt-setup-step-desc,html[data-theme="light"] .muted{color:var(--b-muted)!important}
html[data-theme="light"] .card a:not([class*="btn"]),html[data-theme="light"] .channel-card div[style*="color"]{color:var(--b-teal)!important}
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fff!important;color:var(--b-text)!important;border-color:var(--b-line)!important}
html[data-theme="light"] .auth-tab-btn{color:var(--b-soft)!important}html[data-theme="light"] .auth-tab-btn.active{background:var(--b-teal)!important;color:#fff!important}
html[data-theme="light"] .tt-search-input{color:var(--b-text)!important}
html[data-theme="light"] .watermark-shade::before,html[data-theme="light"] .watermark-shade::after{opacity:.04}
html[data-theme="light"] .buy{color:#fff!important}
/* dark mode fix: legacy channel-card titles used near-black inline colour */
html[data-theme="dark"] .channel-card div[style*="color: #0E131F"]{color:var(--b-text)!important}
/* contrast fixes for inline-coloured legacy content */

html[data-theme="light"] [style*="color: #CBD5E1"],html[data-theme="light"] [style*="color:#CBD5E1"],html[data-theme="light"] [style*="color: #E2E8F0"],html[data-theme="light"] [style*="color:#E2E8F0"],html[data-theme="light"] [style*="color: #94A3B8"],html[data-theme="light"] [style*="color:#94A3B8"]{color:var(--b-soft)!important}
html[data-theme="light"] .title-gradient{background:none!important;-webkit-text-fill-color:var(--b-gold-text)!important;color:var(--b-gold-text)!important}
html[data-theme="light"] .appcta span{color:var(--b-soft)!important}html[data-theme="light"] .appcta span b{color:var(--b-text)!important}html[data-theme="light"] .appcta .buy{color:#fff!important}
html[data-theme="dark"] [style*="color: var(--primary)"],html[data-theme="dark"] [style*="color:var(--primary)"]{color:var(--b-teal-ui)!important}
html[data-theme="dark"] [style*="color: #0E131F"],html[data-theme="dark"] [style*="color:#0E131F"]{color:var(--b-text)!important}
html[data-theme="dark"] main a:not([class]):not([style]),html[data-theme="dark"] .card a:not([class*="btn"]){color:var(--b-teal-ui)}
[style*="color: var(--tt-pitch-black)"]{color:var(--b-text)!important}
[style*="background: var(--tt-pitch-black)"]{background:linear-gradient(135deg,#145768,#0B3440)!important;color:#fff!important}
[style*="background: var(--tt-pitch-black)"] h2,[style*="background: var(--tt-pitch-black)"] h3{color:#fff!important}
[style*="background: var(--tt-pitch-black)"] p{color:#D6E6EA!important}
html[data-theme="light"] body{--bg-elevated:#F8FBFC;--bg-card:#FFFFFF;--text-card:#0E2A33}
html[data-theme="light"] .tt-hero-eyebrow,html[data-theme="light"] .tt-hero-eyebrow span,html[data-theme="light"] .tt-tab-btn.active{color:var(--b-gold-text)!important}
html[data-theme="light"] [style*="--tt-primary-extra-light"],html[data-theme="light"] [style*="--tt-green-bg"]{color:var(--b-text)!important}
html[data-theme="light"] [style*="background: #0F172A"]{color:var(--b-gold-text)!important}

/* premium conversion polish (Virgin-inspired structure; TT teal/gold only) */
html[data-theme="light"] body{background:linear-gradient(180deg,#E6F2F4 0,#F5F8F9 220px,var(--b-bg) 480px)!important}
html:not([data-theme-lock]) .tts-trust a,html:not([data-theme-lock]) .tts-trust span{box-shadow:var(--b-shadow)}
html[data-theme="light"] .tts-trust a,html[data-theme="light"] .tts-trust span{background:#fff!important;color:var(--b-soft)!important;border-color:var(--b-line)!important}
html[data-theme="light"] .tts-trust a:hover{border-color:var(--b-gold)!important;color:var(--b-teal)!important}
html:not([data-theme-lock]) .plan,html:not([data-theme-lock]) .box,html:not([data-theme-lock]) .step,html:not([data-theme-lock]) .cc{border-radius:20px}
html:not([data-theme-lock]) .chip{border-radius:999px}
.tt-info-panel{margin:16px 0;padding:16px 18px;border-radius:16px;border:1px solid var(--tt-line);background:rgba(63,182,201,.08);font-size:14.5px;line-height:1.55}
.tt-info-panel h3{margin:0 0 8px;font-size:15px}
.tt-info-panel ul{margin:6px 0 0;padding-left:18px}
.tt-info-panel li{margin:4px 0}
.tt-fup{font-size:12px;color:var(--tt-muted);margin:4px 0 0}
.tt-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.tt-stat{border-radius:18px;padding:18px 16px;background:linear-gradient(160deg,#0D2C36,#0A2229);border:1px solid rgba(255,255,255,.08);color:#F3F7F8}
html[data-theme="light"] .tt-stat{background:linear-gradient(160deg,#145768,#0F4352);border:none;box-shadow:var(--b-shadow)}
.tt-stat .k{display:block;font-size:22px;font-weight:800;color:#F2CF5B;letter-spacing:-.02em;margin-bottom:4px}
.tt-stat p{margin:0;font-size:13.5px;color:#D6E6EA}
.tt-step-n{font-size:28px;font-weight:800;color:var(--b-gold-text);letter-spacing:-.03em;line-height:1;margin-bottom:8px;display:block}


/* === WCAG AA contrast layer (2026-11-04) === */
/* Dark teal / dark photo panels: keep light text + gold links */
.feat-card a,
.tt-stat a,
.tts-cta-band a,
.featured-copy a,
[style*="background: var(--tt-pitch-black)"] a,
[style*="background:var(--tt-pitch-black)"] a{
  color:#F2CF5B!important;text-decoration:underline;text-underline-offset:2px;font-weight:700
}
.feat-card a:hover,.tt-stat a:hover,.tts-cta-band a:hover{color:#fff!important}
.featured-copy h2,.featured-copy h1,.tts-cta-band h2{
  color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.55)
}
html[data-theme="light"] .featured-copy h2,
html[data-theme="light"] .featured-copy h1,
html[data-theme="light"] .tts-cta-band h2,
html[data-theme="light"] .feat-card .big,
html[data-theme="light"] .tt-stat .k{
  color:#F2CF5B!important
}
html[data-theme="light"] .featured-copy h2,
html[data-theme="light"] .featured-copy h1,
html[data-theme="light"] .tts-cta-band h2{color:#fff!important}
html[data-theme="light"] .feat-card p,
html[data-theme="light"] .tt-stat p,
html[data-theme="light"] .tts-cta-band p{color:#E8F2F4!important}
html[data-theme="light"] .feat-card .lbl{color:rgba(255,255,255,.9)!important}

/* Light mode: solid white plan cards, dark readable text */
html[data-theme="light"] .plan,
html[data-theme="light"] .fplan,
html[data-theme="light"] .tt-plan-card,
html[data-theme="light"] .tier{
  background:#fff!important;
  border:1px solid var(--b-line)!important;
  box-shadow:var(--b-shadow)!important;
  color:var(--b-text)!important;
  backdrop-filter:none!important
}
html[data-theme="light"] .plan-name,
html[data-theme="light"] .fplan-name,
html[data-theme="light"] .plan-net,
html[data-theme="light"] .fplan-meta,
html[data-theme="light"] .fplan-price,
html[data-theme="light"] .tier p{color:var(--b-soft)!important;opacity:1!important}
html[data-theme="light"] .plan-data,
html[data-theme="light"] .fplan-dest{color:var(--b-text)!important}
html[data-theme="light"] .price,
html[data-theme="light"] .plan-price,
html[data-theme="light"] .fplan-price b,
html[data-theme="light"] .tier .big{color:var(--b-gold-text)!important}
html[data-theme="light"] .chip{
  background:#E6F2F4!important;color:#0F4352!important;border:1px solid #B7D3DA!important
}
html[data-theme="light"] .chip.alt,
html[data-theme="light"] .chip.tier,
html[data-theme="light"] .chip[style*="color:#F5D061"],
html[data-theme="light"] .chip[style*="color: #F5D061"]{
  background:#FEF3C7!important;color:#7A4E00!important;border:1px solid #D97706!important
}

/* Footer tagline: readable in both themes */
.tts-f b.tts-tagline,
.tts-f p > b[style*="E8C070"],
.tts-f p > b[style*="e8c070"],
.tts-f p > b[style*="C99A1E"],
.tts-f p > b[style*="c99a1e"]{color:#7A4E00!important}
html[data-theme="dark"] .tts-f b.tts-tagline,
html[data-theme="dark"] .tts-f p > b[style*="E8C070"],
html[data-theme="dark"] .tts-f p > b[style*="e8c070"],
html[data-theme="dark"] .tts-f p > b[style*="C99A1E"],
html[data-theme="dark"] .tts-f p > b[style*="7A4E00"]{color:#F2CF5B!important}
html[data-theme="light"] .tts-f{color:var(--b-muted)}
html[data-theme="light"] .tts-f a{color:var(--b-soft)!important}
html[data-theme="light"] .tts-f a:hover{color:var(--b-teal)!important}
html[data-theme="light"] .tts-f h4{color:var(--b-text)!important}

/* Dark-mode link contrast on dark surfaces */
html[data-theme="dark"] main a:not([class*="btn"]):not(.cc):not(.buy):not(.fplan):not(.pcard):not(.tts-btn),
html[data-theme="dark"] .note a,
html[data-theme="dark"] details a,
html[data-theme="dark"] .trust a{color:#F2CF5B}
html[data-theme="dark"] .chip.tier{color:#F2CF5B!important}

/* Promo strip / copy button AA */
.ttp-copy{background:#92400E!important;color:#fff!important}
.ttp-copy:hover{background:#78350F!important}
.ttp-strip{color:#1F2937!important;font-size:15px}
.ttp-strip b{color:#92400E!important}
.ttp-code{color:#78350F!important;border-color:#B45309!important}

/* Mobile type scale — larger readable body */
@media (max-width:760px){
  body{font-size:17px!important}
  .plan-name,.fplan-name,.step p,.lead,.feat-card p{font-size:15.5px!important;line-height:1.5!important}
  .plan-data{font-size:26px!important}
  .price,.fplan-price b{font-size:22px!important}
  .chip{font-size:12px!important;padding:4px 10px!important}
  .fplan-meta,.plan-net{font-size:14px!important}
  h2{font-size:clamp(28px,7vw,36px)!important}
}

/* featured heading lock */
html[data-theme="light"] .featured-copy h2,
html[data-theme="light"] .featured-copy > p,
html[data-theme="light"] .featured-copy .lbl{color:#fff!important}
html[data-theme="light"] .featured-copy .lbl{color:#F2CF5B!important}
html[data-theme="light"] .fplan,
html[data-theme="light"] .fplan *{color:inherit}
html[data-theme="light"] .fplan{color:#0E2A33!important}
html[data-theme="light"] .fplan .fplan-dest{color:#8A6508!important}
html[data-theme="light"] .fplan .fplan-name{color:#0E2A33!important}
html[data-theme="light"] .fplan .fplan-meta{color:#2F4A53!important}
html[data-theme="light"] .fplan .fplan-price{color:#2F4A53!important}
html[data-theme="light"] .fplan .fplan-price b{color:#8A6508!important}
html[data-theme="light"] .fplan .fplan-cta{color:#0E2A33!important}
