/* Ecoutance: paper, ink, a little gold, and room for the books. */
:root{--bg:#f6f2ea;--ink:#202d3b;--muted:#655f58;--line:#ddd5c7;--surface:#fffcf6;--surface-soft:#ece5d7;--accent:#b98b44;--accent-ink:#785528;--action:#22384a;--action-hover:#334f63;--focus:#926a32}
html[data-theme=dark]{--bg:#172127;--ink:#f4efe4;--muted:#c2bbad;--line:#455057;--surface:#202e36;--surface-soft:#2b393f;--accent:#d4ac6d;--accent-ink:#e4c18a;--action:#e2bd80;--action-hover:#f0d09b;--focus:#f0d09b}
body,html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
body{line-height:1.6}
:is(a,a:visited){color:var(--action);text-underline-offset:4px;text-decoration-thickness:1px}
html[data-theme=dark] :is(a,a:visited){color:#e4c18a}
a:hover{color:var(--accent-ink)}
:is(h1,h2,h3){text-wrap:balance}
:is(main.content-page,.explorer-page){max-width:1440px;width:calc(100% - 64px);margin:0 auto;padding:40px 0 0;box-sizing:border-box}
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-height:88px;gap:12px 28px;padding:16px max(32px,calc((100% - 1440px)/2));background:#202d3b;border-bottom:3px solid #b98b44;box-shadow:none}
.topbar .brand-lockup,.topbar>.brand{grid-column:1;grid-row:1;order:initial}
.topbar .brand{color:#fff9ee;white-space:nowrap}.topbar .brand-dot{color:#d4ac6d}.topbar .pilot{display:none}
.topbar .header-actions{grid-column:3;grid-row:1;order:initial;margin:0;gap:12px}
.topbar .site-nav{grid-column:2;grid-row:1;order:initial;justify-content:center;gap:4px 18px;flex-wrap:wrap;min-width:0}
.topbar .site-nav a{display:inline-flex;align-items:center;min-height:44px;color:#eee9de;line-height:1.35;white-space:nowrap;font-size:14px;padding:2px 0;border-bottom:2px solid transparent;text-decoration:none}
.topbar .site-nav a[aria-current=page]{color:#eed0a1;border-bottom-color:#d4ac6d}
.topbar .site-nav a:hover{color:#eed0a1;border-bottom-color:#d4ac6d}
.topbar .companion-open{color:#eed0a1!important;white-space:normal;text-align:left;font-size:14px;line-height:1.35}
.topbar .theme-toggle{border-color:#66717a;background:#2b3a46;color:#fff9ee}
.topbar .locale-switch{border-color:#66717a;background:#2b3a46}
.topbar .locale-switch a{color:#eee9de}.topbar .locale-switch a[aria-current=true]{background:#e1c393;color:#202d3b}
.content-page .page-intro,.about-page .about-hero{padding:0 0 28px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0 0 32px}
.content-page .page-intro h1,.explorer-page .intro h1{font-size:clamp(32px,3.1vw,48px);line-height:1.15;color:var(--ink);margin:10px 0 16px;max-width:28ch}
.content-page .page-intro p,.explorer-page .intro-copy{color:var(--muted);max-width:75ch}
.content-page .eyebrow,.explorer-page .eyebrow{color:var(--accent-ink);font-size:13px;line-height:1.5;letter-spacing:1.6px;font-weight:700}
.content-page .guide-card,.content-page .detail-offers article{background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--accent);border-radius:10px;box-shadow:none;color:var(--ink);padding:24px}
.content-page .guide-card :is(h2,h3){color:var(--ink)}
.content-page .guide-step{margin:0 0 12px;color:var(--accent-ink);font-size:14px}
.content-page .guide-reference{border-top:1px solid var(--line);padding-top:24px}
.content-page .guide-reference-card{padding:0}
.content-page .guide-reference-card>summary{padding:18px 20px;min-height:64px}
.content-page .guide-reference-body{padding:0 20px 20px}
.content-page .shared-faq,.explorer-page .shared-faq{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:28px 0;margin:40px 0;box-shadow:none;max-width:none}
.shared-faq :is(details,.faq-more){border-color:var(--line)}
.shared-faq .seo-links a,.content-page .seo-links a{color:var(--action)}
.content-page .book-list{gap:12px 24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.content-page .book-list li{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:16px 0}
.content-page .book-list a{font-weight:600;color:var(--action)}
.content-page .breadcrumbs{font-size:14px;padding:0 0 20px;color:var(--muted)}
.content-page .book-facts{padding:24px;background:var(--surface-soft);border-radius:10px;display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:10px 24px;max-width:850px;box-sizing:border-box}
.content-page .book-facts dd{margin:0}
.platform-page :is(.platform-models,.platform-access-note,.platform-request){background:var(--surface-soft);border-color:var(--line);border-radius:10px;padding:24px;margin:32px 0}
.platform-page .platform-guide{background:var(--surface);border-color:var(--line);border-radius:10px}
.platform-page .platform-guide summary:hover{background:var(--surface-soft)}
.platform-page :is(a,a:visited){color:var(--action)}
.platform-page .platform-jump{padding:0 0 20px;border-bottom:1px solid var(--line)}
.explorer-page .workspace{border-color:var(--line)}
.explorer-page #books .book{background:var(--surface);border-color:var(--line);border-radius:10px;box-shadow:0 3px 10px #28201405}
.explorer-page #books .cover-wrap{background:var(--surface-soft);border-radius:6px}
.explorer-page #books>.book>details>summary{background:var(--surface-soft);color:var(--ink)}
.explorer-page #books .book-main{padding:22px}
.explorer-page #search{background:var(--surface);color:var(--ink)}
.explorer-page #criteria-panel select{background:var(--surface);color:var(--ink);border-color:var(--line)}
.explorer-page #criteria-panel>summary{color:var(--ink)}
.explorer-page .tabs button[aria-selected=true]{color:var(--ink);border-color:var(--accent)}
.explorer-page .tabs button[aria-selected=true] span:not([id$="-label"]){background:var(--surface-soft);color:var(--ink)}
.explorer-page #discovery-tools #subscriptions{background:var(--surface);border-color:var(--line);color:var(--ink)}
.explorer-page #discovery-tools #mood-panel{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
.explorer-page .library-panel,.explorer-page .catalogue-context{background:var(--surface-soft);border-color:var(--line);border-radius:10px;max-width:none}
.explorer-page .launch-signup{max-width:900px;margin:32px auto}
.explorer-page .spotlight-panel{background:transparent;border-color:var(--line);color:var(--ink)}
.notification-form{background:var(--surface-soft);color:var(--ink);border-color:var(--line);border-radius:10px}
/* Editorial About: fewer boxes, clear section anchors, and facts on paper. */
.about-page .about-headline{font-size:26px;line-height:1.35;color:var(--ink);max-width:60ch}
.about-page .about-origin{padding:0;border:0;background:transparent}
.about-page .about-story-grid{gap:40px}
.about-page .about-question{background:var(--surface-soft);border:0;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;padding:20px 24px}
.about-page .about-section{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:40px;padding:32px 0;border-top:1px solid var(--line);margin:32px 0 0}
.about-page .section-heading h2{font-size:27px;margin-top:0}
.about-page .section-heading p{color:var(--muted);font-size:15px}
.about-page .section-body{min-width:0}
.about-page .about-feature-grid,.about-page .about-roadmap{gap:24px 32px;counter-reset:item}
.about-page :is(.about-feature-grid,.about-roadmap) article{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0 0 20px;border-bottom:1px solid var(--line);counter-increment:item}
.about-page :is(.about-feature-grid,.about-roadmap) article h3:before{content:'0' counter(item);display:block;font-family:inherit;font-size:14px;line-height:1.5;color:var(--accent-ink);letter-spacing:1px;margin-bottom:10px}
.about-page :is(.about-feature-grid,.about-roadmap) article p{font-size:16px}
.about-page .about-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:var(--surface-soft);border-radius:10px;padding:8px}
.about-page .about-stat-grid article{background:transparent;border:0;border-radius:0;box-shadow:none;padding:24px;min-width:0}
.about-page .about-stat-grid article:nth-child(odd){border-right:1px solid var(--line)}
.about-page .about-stat-grid article:nth-child(-n+2){border-bottom:1px solid var(--line)}
.about-page .about-stat-grid .about-stat-number{font-family:var(--heading-font);font-size:38px;color:var(--ink)}
.about-page .about-stat-grid a{color:var(--action)}
.about-page .about-ambition{background:var(--surface-soft);border:0;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;box-shadow:none;padding:28px;margin:32px 0}
.about-page .about-founder{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:32px 0;margin:0;align-items:start}
.about-page .about-founder .about-actions{justify-self:start}
/* The same closing chapter on every route. */
.site-footer{background:#202d3b;color:#e8e1d6;border:0;border-top:3px solid #b98b44;border-radius:12px 12px 0 0;padding:36px 40px 24px;margin:48px 0 0;width:100%;box-sizing:border-box;font-size:14px}
.site-footer .footer-top{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:40px}
.site-footer .footer-brand{font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-1px;color:#fff8ec;text-decoration:none}
.site-footer .footer-brand span{color:#d4ac6d}
.site-footer .footer-intro p{font-size:15px;line-height:1.75;max-width:44ch;color:#c9c6bd;margin:14px 0 0}
.site-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.site-footer nav h2{font-family:inherit;font-size:15px;letter-spacing:0;color:#e6c799;margin:0 0 8px}
.site-footer :is(a,a:visited){color:#eee9df;font-size:14px;line-height:1.7;text-decoration:none}
.site-footer a:hover{color:#e6c799;text-decoration:underline}
.site-footer .footer-brand{font-size:28px}
.site-footer .footer-bottom{border-top:1px solid #4c565d;margin-top:28px;padding-top:18px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.site-footer .footer-bottom p{font-size:13px;line-height:1.7;margin:0;color:#c9c6bd;max-width:85ch}
html[data-theme=dark] .site-footer :is(a,a:visited){color:#eee9df}
@media(min-width:1100px){.explorer-page #books{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:651px) and (max-width:1299px){
 .topbar{grid-template-columns:auto 1fr;gap:8px 24px}.topbar .header-actions{grid-column:2;justify-self:end}
 .topbar .site-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;border-top:1px solid #46515b;padding-top:8px}
 .content-page .guide-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .about-page .about-section{grid-template-columns:minmax(0,230px) minmax(0,1fr);gap:28px}
}
@media(min-width:651px) and (max-width:999px){
 .about-page .about-section{grid-template-columns:1fr;gap:20px}
 .content-page .book-list,.content-page .detail-offers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 :is(main.content-page,.explorer-page){width:calc(100% - 32px);padding:24px 0 0}
 .topbar{grid-template-columns:minmax(0,1fr) auto auto;padding:10px 16px;gap:8px;min-height:70px}
 .topbar .brand-lockup,.topbar>.brand{grid-column:1;grid-row:1;min-width:0}.topbar .brand{font-size:24px}
 .topbar .header-actions{grid-column:2;grid-row:1;gap:6px}
 .has-mobile-menu .topbar .mobile-menu-toggle{grid-column:3;grid-row:1;order:initial;background:#2b3a46;border-color:#66717a}
 .topbar .site-nav,.has-mobile-menu .topbar #mobile-site-nav{grid-column:1/-1;grid-row:2;order:initial;gap:0;border-top:1px solid #46515b;padding-top:8px}
 .has-mobile-menu .topbar #mobile-site-nav.menu-open{display:grid;grid-template-columns:1fr}
 .topbar .site-nav a{white-space:normal;min-height:44px;padding:8px 0;border-bottom:0;font-size:15px}
 .topbar .companion-open{min-height:44px;padding:8px 0!important}
 .content-page .page-intro h1,.explorer-page .intro h1{font-size:30px;max-width:none}
 .content-page .page-intro{padding-bottom:22px;margin-bottom:24px}
 .content-page .book-list,.content-page .detail-offers{grid-template-columns:1fr}
 .content-page .book-facts{grid-template-columns:1fr;padding:20px;gap:4px}.content-page .book-facts dd{margin-bottom:12px}
 .content-page .guide-card{padding:20px}.content-page .guide-reference-card{padding:0}
 .about-page .about-section{grid-template-columns:1fr;gap:20px;padding:24px 0;margin-top:24px}
 .about-page .about-feature-grid,.about-page .about-roadmap{grid-template-columns:1fr;gap:20px}
 .about-page .about-stat-grid{grid-template-columns:1fr;padding:4px}
 .about-page .about-stat-grid article{padding:20px;border-right:0!important;border-bottom:1px solid var(--line)}
 .about-page .about-stat-grid article:last-child{border-bottom:0}.about-page .about-stat-grid .about-stat-number{font-size:34px}
 .about-page .about-ambition{padding:22px 20px}.about-page .about-founder{padding:24px 0}
 .site-footer{padding:28px 22px 22px;margin-top:32px;border-radius:10px 10px 0 0}
 .site-footer .footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}.site-footer .footer-intro{grid-column:1/-1}
 .site-footer nav a{min-height:44px;display:flex;align-items:center}.site-footer nav{gap:0}
 .site-footer .footer-bottom{margin-top:24px}
}
@media(max-width:360px){.topbar{padding:10px 12px}.topbar .brand{font-size:21px}:is(main.content-page,.explorer-page){width:calc(100% - 24px)}}
/* Keep older dark-mode component rules inside the same palette. */
html[data-theme=dark] .platform-page :is(.platform-guide,.platform-models,.platform-access-note,.platform-request){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .platform-page :is(.platform-models,.platform-access-note,.platform-request){background:var(--surface-soft)}
html[data-theme=dark] :is(.content-page,.explorer-page) .shared-faq{background:transparent;border-color:var(--line);box-shadow:none}
html[data-theme=dark] .explorer-page #books .cover-wrap{background:var(--surface-soft)}
html[data-theme=dark] .explorer-page :is(.library-panel,.catalogue-context){background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .explorer-page .spotlight-panel{background:transparent;color:var(--ink)}
html[data-theme=dark] .about-page .about-hero{background:transparent;border-color:var(--line)}
html[data-theme=dark] .content-page .page-intro{background:transparent;border-color:var(--line)}
html[data-theme=dark] .notification-form{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
/* Complete component boundaries: legacy footer/link rules must not leak in. */
.site-footer{display:block;gap:normal;justify-content:normal}
.site-footer :is(.footer-top,.footer-bottom,.footer-intro,nav){min-width:0;max-width:100%;box-sizing:border-box}
.site-footer p,.site-footer p:first-child,.site-footer p:last-child{white-space:normal;overflow-wrap:break-word}
.site-footer .footer-intro p{max-width:44ch;white-space:normal}
.site-footer a.footer-brand,.site-footer a.footer-brand:visited{font-size:28px;line-height:1.3;font-weight:800}
.site-footer .footer-bottom{width:100%;align-items:center}
.site-footer .footer-bottom .analytics-settings{margin-left:auto;color:#eee9df;font-size:14px;flex-shrink:0}
.site-footer .footer-bottom #verified-date{flex-basis:100%;order:3}
a:is(.page-cta,.storytel-link,.primary,.shelf-primary,.mood-compare,.show-more),a:is(.page-cta,.storytel-link,.primary,.shelf-primary,.mood-compare,.show-more):visited{color:#fff;text-decoration:none}
html[data-theme=dark] a:is(.page-cta,.storytel-link,.primary,.shelf-primary,.mood-compare,.show-more),html[data-theme=dark] a:is(.page-cta,.storytel-link,.primary,.shelf-primary,.mood-compare,.show-more):visited{color:#202d3b}
.content-page .guide-grid:not(.guide-reference){align-items:stretch}
.content-page .guide-grid:not(.guide-reference)>.guide-card{align-self:stretch;height:auto}
.content-page .contact-pending,html[data-theme=dark] .content-page .contact-pending{background:var(--surface-soft);color:var(--ink)}
.content-page .page-actions{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;margin:24px 0 32px}
.content-page .page-actions .page-cta{margin:0}
.about-page .about-actions{justify-self:end;min-width:250px;align-items:stretch}
.about-page .about-actions>a{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center}
.explorer-page :is(.catalogue-context,.library-panel,.launch-signup,.shared-faq){max-width:1100px;width:100%;box-sizing:border-box;margin-left:auto;margin-right:auto}
.explorer-page .catalogue-context{margin-top:32px;margin-bottom:20px}
.explorer-page .library-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:24px;margin-top:0;margin-bottom:28px}
.explorer-page .library-panel>div>p:last-child{max-width:90ch;margin-bottom:0}
.explorer-page .library-panel>details{border-top:1px solid var(--line);padding-top:12px}
.explorer-page .launch-signup{margin-top:28px;margin-bottom:32px}
.explorer-page .launch-signup .notification-form{margin-top:0}
.explorer-page .launch-signup .notification-interests{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
.explorer-page .launch-signup .notification-interests .interest-hint{grid-column:1/-1;margin:0 0 4px}
.explorer-page .launch-signup .notification-interests label{min-width:0;align-items:flex-start;line-height:1.6}
.shared-faq details,.shared-faq .faq-more{margin:0;padding:0}
.shared-faq summary,.shared-faq .faq-more>summary,.shared-faq .signup-disclosure>summary{min-height:48px;padding:12px 0;box-sizing:border-box;line-height:1.5}
.shared-faq .signup-disclosure{margin:0;padding:0}
@media(max-width:650px){
 .site-footer .footer-bottom .analytics-settings{margin-left:0}.site-footer .footer-bottom #verified-date{order:initial}
 .about-page .about-actions{justify-self:stretch;min-width:0}
 .explorer-page .launch-signup .notification-interests{grid-template-columns:1fr;gap:8px}
 .explorer-page .library-panel{padding:20px;gap:14px}
 .content-page .page-actions{align-items:stretch;flex-direction:column;gap:12px;margin:20px 0 24px}
 .content-page .page-actions>a{display:flex;align-items:center;min-height:44px}.content-page .page-actions .page-cta{justify-content:center;text-align:center}
}
.content-page .shared-faq details,.explorer-page .shared-faq details{margin:0;padding:0}
.content-page .shared-faq summary,.explorer-page .shared-faq summary{min-height:48px;padding:12px 0;box-sizing:border-box;line-height:1.5}
/* Final spacing pass: one surface per control and contiguous card disclosures. */
.explorer-page #filters .search-field,html[data-theme=dark] .explorer-page #filters .search-field{background:var(--surface);border-color:var(--line);box-shadow:none}
.explorer-page #filters .search-field #search,html[data-theme=dark] .explorer-page #filters .search-field #search{background:transparent;color:var(--ink);padding:0;line-height:1.5}
.explorer-page #criteria-panel>summary,html[data-theme=dark] .explorer-page #criteria-panel>summary{background:var(--surface);color:var(--ink);border-color:var(--line)}
.explorer-page #criteria-panel .filter-controls,html[data-theme=dark] .explorer-page #criteria-panel .filter-controls{background:var(--surface);color:var(--ink);border-color:var(--line)}
.explorer-page #criteria-panel .select-field,html[data-theme=dark] .explorer-page #criteria-panel .select-field{background:transparent;color:var(--ink)}
.explorer-page #criteria-panel label,html[data-theme=dark] .explorer-page #criteria-panel label{color:var(--muted)}
.explorer-page .catalogue-context{padding:0;border:1px solid var(--line);overflow:hidden}
.explorer-page .catalogue-context>summary{padding:16px 20px;min-height:56px;line-height:1.5}
.explorer-page .catalogue-context .source-note{margin:0;padding:0 20px 20px;max-width:90ch}
.explorer-page #books .book-main{flex:1 0 auto}
.explorer-page #books>.book>details{flex:none;margin-top:0}
.explorer-page #books>.book>details>summary{gap:10px;line-height:1.5}
.explorer-page #books>.book>details>summary:after{flex-shrink:0}
.site-footer .footer-bottom .site-ownership{border:0;padding:0;flex-basis:auto}
@media(min-width:1100px){
 .explorer-page #criteria-panel{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
 .explorer-page #criteria-panel>summary,html[data-theme=dark] .explorer-page #criteria-panel>summary{background:transparent;padding:0 0 14px;margin-bottom:16px;min-height:40px}
 .explorer-page #criteria-panel .filter-controls,html[data-theme=dark] .explorer-page #criteria-panel .filter-controls{background:transparent;padding:0;border:0;gap:16px}
}
@media(max-width:650px){
 .explorer-page #books .book-main{padding:14px}
 .explorer-page .catalogue-context>summary{padding:14px 16px}
 .explorer-page .catalogue-context .source-note{padding:0 16px 16px}
 .explorer-page #criteria-panel .filter-controls{padding:16px}
}
@media(min-width:380px) and (max-width:650px){
 .explorer-page #books>.book>details>summary{min-height:72px;padding:12px;font-size:14px}
}
.free-listening-note{max-width:1100px;width:100%;margin:28px auto 20px;padding:20px 24px;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 10px 10px 0;box-sizing:border-box}
.free-listening-note h2{font-size:22px;margin:0 0 10px}.free-listening-note p{margin:10px 0 0;line-height:1.7}.free-listening-note p:last-child{font-size:14px}
@media(max-width:650px){.free-listening-note{padding:18px 20px}.free-listening-note h2{font-size:21px}.free-listening-note a{display:inline-block;min-height:44px;padding:8px 0}}
