/* The shared header keeps the existing SonorBooks identity. */
.sb-header .sb-nav{max-width:none;justify-content:flex-start;padding-inline:12px;gap:28px;min-height:68px}.home .sb-header{background:#101010}.sb-menu{margin-left:auto;gap:29px}.sb-menu>li>a,.sb-menu summary{font-size:15px;font-weight:400;min-height:68px}.sb-dropdown ul{top:58px;max-height:70vh;overflow:auto}.sb-account{display:flex;align-items:center;gap:26px;border-left:1px solid #555;padding-left:28px;white-space:nowrap}.sb-account a{font:400 14px/20px var(--sb-sans);text-decoration:none;color:white}.sb-account .sb-register,.sb-menu .sb-register{background:#ffcb06;color:#101010;border-radius:24px;padding:11px 20px;font:700 13px/20px var(--sb-sans);min-height:42px;justify-content:center}.sb-register:hover{background:#ffda45}.sb-login:hover{color:#ffcb06}.sb-search{position:relative;margin-left:0;border-left:1px solid #555;padding-left:21px;flex-shrink:0}.sb-search>summary{list-style:none;display:grid;place-items:center;cursor:pointer;width:42px;height:42px;color:white}.sb-search>summary::-webkit-details-marker{display:none}.sb-search>summary svg{width:21px;height:21px}.sb-search[open]>summary{color:#ffcb06}.sb-header-search{position:absolute;right:0;top:54px;width:360px;max-width:calc(100vw - 24px);background:white;border:1px solid #e5e2da;box-shadow:0 10px 30px #0002;border-radius:9px;padding:22px;color:#101010}.sb-header-search label{display:block;font:700 15px/22px var(--sb-sans);margin-bottom:12px}.sb-header-search>div{display:flex;border:1px solid #ccc7ba;border-radius:5px;overflow:hidden}.sb-header-search input{font:400 15px/22px var(--sb-sans);width:100%;min-width:0;border:0;padding:11px 12px;background:white;color:#101010}.sb-header-search button{display:grid;place-items:center;flex-shrink:0;width:44px;border:0;background:#ffcb06;color:#101010;cursor:pointer}.sb-header-search svg{width:20px;height:20px}.sb-header-search :focus-visible{outline-color:#876600;outline-offset:-3px}.sb-menu .sb-mobile-account{display:none}
@media(max-width:1099px){.sb-header .sb-nav{gap:13px;min-height:64px}.sb-search{margin-left:auto;padding-left:0;border:0;position:static}.sb-account{display:none}.sb-search .sb-header-search{right:12px;top:64px}.sb-menu{margin:0;padding:16px 24px 24px}.sb-menu>li>a,.sb-menu summary{font-size:19px;min-height:49px}.sb-menu .sb-mobile-account{display:block}.sb-menu .sb-mobile-account:nth-last-child(2){border-top:1px solid #ddd;margin-top:12px!important;padding-top:10px}.sb-menu .sb-register{display:inline-flex;margin-top:12px;min-height:44px;padding-inline:24px}.sb-dropdown ul{max-height:none}.sb-toggle{border:0;border-radius:50%}.sb-open .sb-search{visibility:hidden}}
@media(max-width:350px){.sb-header .sb-nav{gap:5px}.sb-header .sb-brand{font-size:22px;gap:6px}.sb-header .sb-brand .sb-mark{width:29px;height:29px}.sb-search>summary{width:36px}.sb-toggle{width:36px}}

/* v6.12: measured Storytel header placement; preserve the SonorBooks lockup. */
.sb-header .sb-nav{min-height:64px;padding-inline:64px}.sb-header .sb-brand{width:111px;height:24px;flex:0 0 111px;gap:5.7px;font:400 16.45px/24px var(--sb-sans);letter-spacing:-.665px}.sb-header .sb-brand .sb-mark{width:22.15px;height:22.15px}.sb-header .sb-menu>li>a,.sb-header .sb-menu summary{min-height:64px}.sb-header .sb-dropdown ul{top:56px}.sb-search .sb-header-search{top:52px}
@media(max-width:1279px){.sb-header .sb-nav{padding-inline:16px}}
@media(max-width:1099px){.sb-header .sb-menu>li>a,.sb-header .sb-menu summary{min-height:49px}.sb-search .sb-header-search{right:16px;top:64px;max-width:calc(100vw - 32px)}}

/* The complete logo is a PNG: invariant geometry across home, books and blog. */
.sb-header .sb-brand{width:112px;height:24px;min-width:112px;flex:0 0 112px;gap:0;padding:0;line-height:0}
.sb-header .sb-brand>img.sb-brand-image{display:block;width:112px;height:24px;min-width:112px;max-width:none;max-height:none;object-fit:contain;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;filter:none;transform:none}
.sb-footer .sb-brand{gap:0;line-height:0}
.sb-footer .sb-brand>img.sb-brand-image{display:block;width:176px;height:auto;max-width:none;aspect-ratio:14/3;object-fit:contain;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;filter:none;transform:none}

/* Selected Books 430 */
.sb-header .sb-brand{width:120px;height:26.383px;min-width:120px;flex-basis:120px}
.sb-header .sb-brand>img.sb-brand-image{width:120px;height:26.383px;min-width:120px}
.sb-footer .sb-brand>img.sb-brand-image{aspect-ratio:564/124}
/* Sesión en el encabezado (20/11/2026): hasta que dk.mjs sabe si hay sesión, los enlaces de la cuenta no se ven (como mucho 1,5 s).
   Con la sesión iniciada, el menú llega hasta la cuenta (Joan, 20/11): cada estado ocupa solo su sitio. Para que el menú no se mueva,
   la página sabe antes de pintarse si este navegador tenía sesión (html[data-sb-ses], lo pone la pasarela) y reserva el hueco de
   los enlaces de la cuenta con los mismos enlaces y sus textos, hasta que dk.mjs pone los de verdad. */
.sb-account:not([data-ses]) a{visibility:hidden;animation:sb-ses-ver 0s 1.5s forwards}
@keyframes sb-ses-ver{to{visibility:visible}}
@media(min-width:1100px){
.sb-account[data-ses]{display:flex;align-items:center;border-left:0;padding-left:0}
.sb-account[data-ses]>.sb-ses{display:flex;align-items:center;gap:26px;border-left:1px solid #555;padding-left:28px}
.sb-account[data-ses="1"]>.sb-ses-fuera,.sb-account[data-ses="0"]>.sb-ses-dentro{display:none}
html[data-sb-ses="1"] .sb-account:not([data-ses])>a{font-size:0}
html[data-sb-ses="1"] .sb-account:not([data-ses])>.sb-login::after{content:"For you";font:400 14px/20px var(--sb-sans)}
html[data-sb-ses="1"] .sb-account:not([data-ses])>.sb-register::after{content:"Account";font:700 13px/20px var(--sb-sans)}
}
/* Mientras llega la fuente Ubuntu, el menú y la cuenta se pintan con Arial a su mismo ancho (medido con los textos de este país), para que no se muevan al cambiar de letra. */
@font-face{font-family:"SB Ubuntu respaldo";src:local("Arial"),local("ArialMT"),local("Liberation Sans");font-weight:400;size-adjust:104.0%}
.sb-header .sb-menu{--sb-sans:"Ubuntu","SB Ubuntu respaldo",Arial,sans-serif}
@font-face{font-family:"SB Ubuntu cuenta";src:local("Arial"),local("ArialMT"),local("Liberation Sans");font-weight:400;size-adjust:100.3%}
@font-face{font-family:"SB Ubuntu cuenta";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold");font-weight:700;size-adjust:100.4%}
.sb-header .sb-account{--sb-sans:"Ubuntu","SB Ubuntu cuenta",Arial,sans-serif}
/* Con la sesión iniciada, «For you / Account» lleva su propio respaldo de Arial, medido con esos textos (20/11/2026),
   para que la cuenta tampoco cambie de ancho al llegar Ubuntu ahora que cada estado ocupa solo su sitio. */
@font-face{font-family:"SB Ubuntu dentro";src:local("Arial"),local("ArialMT"),local("Liberation Sans");font-weight:400;size-adjust:100.0%}
@font-face{font-family:"SB Ubuntu dentro";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold");font-weight:700;size-adjust:97.2%}
.sb-header .sb-account>.sb-ses-dentro,html[data-sb-ses="1"] .sb-header .sb-account:not([data-ses]){--sb-sans:"Ubuntu","SB Ubuntu dentro",Arial,sans-serif}
