/* Vellotale evolutionary rebrand — isolated QA preview only */
:root{--vt-forest:#0f5e5a;--vt-teal:#2aa198;--vt-cream:#fff3e0;--vt-gold:#f9c74f;--vt-coral:#f28c6b;--vt-lavender:#8e7cc3}
body{background-color:#fffaf2;color:#173c3b}
.site-header,.topbar,.top-bar{background:rgba(255,250,242,.96);border-bottom:1px solid #e9e0d4}
.brand,.brand strong{color:var(--vt-forest)}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:var(--vt-forest)!important;border-radius:14px!important;min-width:42px;min-height:42px;overflow:hidden}
.brand-mark svg{opacity:0}
.brand-mark::after{content:"V";font-family:Georgia,serif;font-size:31px;font-weight:700;font-style:italic;color:#fff3e0;position:absolute}
.brand-mark{position:relative}
.btn-dark,.btn-primary{background-color:var(--vt-forest);border-color:var(--vt-forest)}
/* The active navigation item is a text link with an underline, never a filled button. */
.main-nav a.nav-active,.main-nav a.nav-active:hover{background:transparent!important;color:var(--vt-forest)!important;border:0!important}
.main-nav a.nav-active::after{background:var(--vt-teal)}
.site-header .header-inner{min-width:0}
.site-header .main-nav{min-width:0;flex-shrink:1}
.site-header .main-nav a{white-space:nowrap}
.hero-copy .eyebrow,.section-kicker,.world-eyebrow{color:var(--vt-forest)}
.hero-art,.world-card,.feature-book{border-radius:24px}
.world-card.kids-card{background:linear-gradient(150deg,#eff9f3,#fff3e0)}
.world-card.teens-card{background:linear-gradient(150deg,#f4effc,#fff4ee)}
.kids-card .world-eyebrow,.kids-section .section-kicker{color:#0f7c76}
.teens-card .world-eyebrow,.teens-section .section-kicker{color:#7354a6}
.hero-banner-controls button[aria-pressed="true"]{background:var(--vt-forest);color:white}
a:focus-visible,button:focus-visible{outline:3px solid var(--vt-gold);outline-offset:3px}
@media(max-width:600px){.brand-mark{min-width:35px;min-height:35px}.brand-mark::after{font-size:25px}}

/* Unified Vellotale identity across home, Wonder Tales, Chapters and legacy book views. */
:root{--vt-ink:#173c3b;--vt-forest:#0f5e5a;--vt-teal:#2aa198;--vt-cream:#fff3e0;--vt-gold:#f9c74f;--vt-coral:#f28c6b;--vt-lavender:#8e7cc3;--vt-serif:Georgia,"Times New Roman",serif;--vt-sans:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--forest:#0f5e5a;--ink:#173c3b;--accent:#8e7cc3}
html{color-scheme:light}
body{font-family:var(--vt-sans);background:#fffaf2;color:var(--vt-ink)}
h1,h2,h3,.brand strong,.logo,.book-title{font-family:var(--vt-serif)}
button,select,input,textarea{font-family:var(--vt-sans)}
a{accent-color:var(--vt-teal)}
:focus-visible{outline:3px solid var(--vt-gold);outline-offset:3px}
.site-header .brand-mark,.topbar .brand-mark{background:#0f5e5a!important;border-radius:12px!important;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.site-header .brand-mark::after,.topbar .brand-mark::after{content:none!important}
.vt-logo-icon{display:block;width:44px;height:44px;object-fit:contain;flex:none}
.brand .vt-wordmark{font-family:var(--vt-serif);font-weight:700;color:var(--vt-forest)}
body.vt-chapters header .logo{display:flex;align-items:center;gap:10px;white-space:normal;font-size:21px;line-height:1.1}
body.vt-chapters header .logo .vt-logo-icon{width:39px;height:39px}
body.vt-chapters header .logo .vt-logo-label{display:block}
body.vt-chapters header .logo span{margin-top:3px}
body.vt-chapters header{background:rgba(255,250,242,.97)}
body.vt-chapters .sg-return{background:#edf7f3;border-color:#d6e7e1;color:var(--vt-forest)}
body.vt-chapters .sg-return a{color:var(--vt-forest)}
body.vt-chapters .hero{background:linear-gradient(125deg,#fff3e0,#f0eafb)}
body.vt-chapters .paper{border-color:#e5dfd8}
body.vt-chapters .controls button,body.vt-chapters .controls select{border-color:#cbded8}
body.vt-chapters .controls button:hover{background:#edf7f3}
body.vt-chapters .reader-tools a{color:var(--vt-forest)}
body.vt-wonder .topbar{background:rgba(255,250,242,.97)}
body.vt-wonder .brand{font-family:var(--vt-serif)}
body.vt-wonder .brand small{font-family:var(--vt-sans)}
@media(max-width:680px){body.vt-chapters header .logo{font-size:17px}body.vt-chapters header .logo .vt-logo-icon{width:33px;height:33px}.vt-logo-icon{width:36px;height:36px}}

body.vt-chapters .vt-reader-brand{display:flex;align-items:center;gap:10px;color:var(--vt-forest);font-family:var(--vt-serif);font-size:20px;font-weight:700;line-height:1.1}
body.vt-chapters .vt-reader-brand .vt-logo-icon{width:39px;height:39px}
body.vt-chapters .vt-reader-brand small{display:block;margin-top:4px;font:10px var(--vt-sans);letter-spacing:.12em;color:#657c75}

/* Mission and footer: no legacy floral monogram or mismatched logo treatment. */
.vt-home .mission .vt-mission-mark{display:flex;align-items:center;justify-content:center;min-width:70px;font-size:0;line-height:1}
.vt-home .mission .vt-mission-mark .vt-logo-icon{width:58px;height:58px;filter:none}
.vt-home .footer{background:#123f3c;color:#fff3e0}
.vt-home .footer .vt-footer-brand{display:flex;align-items:center;gap:12px;font:700 clamp(24px,3vw,32px)/1.2 var(--vt-serif);color:#fff3e0}
.vt-home .footer .vt-footer-brand .vt-logo-icon{width:44px;height:44px}
.vt-home .footer a{color:#fff3e0}
.vt-home .mission h2{font-family:var(--vt-serif);color:#0f5e5a}
@media(max-width:680px){.vt-home .mission .vt-mission-mark{min-width:48px}.vt-home .mission .vt-mission-mark .vt-logo-icon{width:44px;height:44px}}

/* Episode 01 was authored with a different header structure than Episodes 02–06.
   Normalize its brand, playback tools and navigation into the same compact layout. */
body.vt-chapters-ep01>header{position:sticky;top:0;z-index:8;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px max(14px,calc((100vw - 900px)/2));min-height:74px;background:rgba(255,250,242,.97);border-bottom:1px solid #ded8ce}
body.vt-chapters-ep01>header>.logo{display:flex;align-items:center;gap:10px;flex:0 0 auto;font:700 19px/1.15 var(--vt-serif);white-space:normal}
body.vt-chapters-ep01>header>.logo .vt-logo-label{display:block}
body.vt-chapters-ep01>header>.logo .vt-logo-label span{display:block;font:9px/1.5 var(--vt-sans);letter-spacing:.12em;color:#70837c}
body.vt-chapters-ep01>header>.controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:1 1 440px;min-width:0}
body.vt-chapters-ep01>header>.controls button,body.vt-chapters-ep01>header>.controls select{min-height:34px;border-radius:9px}
body.vt-chapters-ep01>.reader-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:900px;margin:0 auto;padding:10px 16px;min-height:52px}
body.vt-chapters-ep01>.reader-tools a{margin-right:auto;text-decoration:none;color:var(--vt-forest)}
body.vt-chapters-ep01>.reader-tools button,body.vt-chapters-ep01>.reader-tools select{padding:7px 10px;border:1px solid #cad5cd;border-radius:8px;background:white;color:var(--vt-forest);font:12px var(--vt-sans)}
body.vt-chapters-ep01>.sg-return{padding:10px max(16px,calc((100vw - 900px)/2))}
@media(max-width:720px){body.vt-chapters-ep01>header{justify-content:center;padding:10px 12px}body.vt-chapters-ep01>header>.logo{width:100%;justify-content:center}body.vt-chapters-ep01>header>.controls{justify-content:center;flex-basis:100%}body.vt-chapters-ep01>.reader-tools{justify-content:center}body.vt-chapters-ep01>.reader-tools a{margin-right:0}}

/* Vellotale identity v3 — consistent responsive wordmark and illustrated emblem */
.brand-mark::after{content:none!important}
.brand-mark svg{opacity:1!important}
.brand-mark{background:transparent!important;border-radius:15px!important;overflow:visible!important;min-width:40px;min-height:40px;box-shadow:none!important}
.brand-mark img,.vt-logo-icon,.vt-brand-emblem{display:block!important;width:42px;height:42px;object-fit:contain;border-radius:12px;flex:none}
.vt-brand-lockup{display:inline-flex;align-items:center;gap:11px;min-width:0;text-decoration:none;color:var(--vt-forest)}
.vt-brand-wordmark{display:flex;flex-direction:column;justify-content:center;line-height:1.08;min-width:0}
.vt-brand-name{font:700 clamp(21px,2vw,29px)/1.05 Georgia,"Iowan Old Style",serif!important;letter-spacing:-.045em;color:#0F5E5A}
.vt-brand-tagline{margin-top:5px;font:600 8px/1.4 system-ui,-apple-system,sans-serif!important;letter-spacing:.17em;color:#687D79;white-space:nowrap}
.site-header .brand{display:inline-flex;align-items:center;gap:10px}
.site-header .brand .vt-brand-tagline{display:block!important}
.topbar .brand{display:inline-flex;align-items:center;gap:10px}
.topbar .brand .vt-brand-wordmark{display:flex}
.topbar .brand small{display:none}
body [class~="vt-reader-logo"]{display:inline-flex!important;align-items:center;gap:10px;font-size:initial!important;text-decoration:none;color:#0F5E5A}
body [class~="vt-reader-logo"] .vt-brand-name{font-size:22px!important}
body [class~="vt-reader-logo"] .vt-brand-tagline{font-size:8px!important}
@media(max-width:650px){.vt-brand-emblem,.brand-mark img{width:34px;height:34px}.vt-brand-name{font-size:22px!important}.vt-brand-tagline{font-size:7px!important;letter-spacing:.12em}}

/* Approved Vellotale artwork: identical image on every page, responsive only */
.vt-approved-logo{display:block!important;width:210px!important;max-width:100%!important;height:auto!important;aspect-ratio:240/81;object-fit:contain!important;flex:none;border:0!important;border-radius:0!important;box-shadow:none!important}
.site-header .brand,.topbar .brand,body .vt-reader-logo{display:inline-flex!important;align-items:center!important;gap:0!important;min-width:0!important;white-space:normal!important}
body .vt-reader-logo .vt-approved-logo{width:205px!important}
@media(max-width:700px){.vt-approved-logo{width:164px!important}body .vt-reader-logo .vt-approved-logo{width:170px!important}}

/* Brand legibility v5: enlarge the approved image without changing its artwork */
.site-header .header-inner{min-height:92px;gap:16px}
.vt-approved-logo{width:290px!important;max-width:min(290px,38vw)!important;aspect-ratio:auto!important;height:auto!important;image-rendering:auto!important}
body .vt-reader-logo .vt-approved-logo{width:290px!important;max-width:min(290px,45vw)!important}
.topbar{min-height:88px}
@media(max-width:900px){.site-header .header-inner{min-height:82px;gap:9px}.vt-approved-logo,body .vt-reader-logo .vt-approved-logo{width:250px!important;max-width:min(250px,45vw)!important}}
@media(max-width:600px){.site-header .header-inner{min-height:72px}.vt-approved-logo,body .vt-reader-logo .vt-approved-logo{width:205px!important;max-width:min(205px,52vw)!important}.topbar{min-height:76px}}
