/* V15.9 · One brand, three clear spaces. Scoped additions to the existing design. */
.header .header-inner{gap:clamp(10px,1.15vw,20px)}
.header .brand{order:0}
.header .sm-language-switch{order:1}
.header .smv159-nav{order:2;gap:clamp(12px,1.22vw,22px)}
.header .smv159-nav>.nav-primary{white-space:nowrap}
.header .smv159-nav a.nav-buy{display:none!important}
.header .smv159-account{order:3;display:inline-flex;gap:8px;align-items:center;justify-content:center;flex-shrink:0;padding:11px 14px;border:1px solid #a85040;border-radius:999px;color:#7f392f;background:rgba(176,78,59,.05);font-size:.72rem;font-weight:800;letter-spacing:.025em;text-decoration:none;min-height:44px;transition:color .2s,background .2s}
.header .smv159-account svg{height:18px;width:18px;flex-shrink:0}
.header .smv159-account:hover,.header .smv159-account[aria-current=page]{color:#fff;background:#974836}
.header .smv159-account:focus-visible{outline:3px solid #a85040;outline-offset:3px}
.header .button--wine{order:4;white-space:nowrap}
.header .menu-btn{order:5}
.header .smv159-explore{position:relative}
.header .smv159-menu-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(670px,calc(100vw - 52px));max-width:calc(100vw - 32px);gap:16px 20px;padding:23px 24px;right:-140px;left:auto;border:1px solid #dfd3c9;background:#faf7f2;box-shadow:0 20px 55px #2a201e20;max-height:min(72vh,570px);overflow-y:auto;z-index:700}
.header .smv159-menu-group{min-width:0;display:flex;flex-direction:column}
.header .smv159-menu-caption{font-size:.64rem;letter-spacing:.12em;color:#a04e3f;font-weight:800;line-height:1.5;margin-bottom:8px}
.header .smv159-menu-groups a{font-size:.81rem!important;font-weight:650;min-height:34px!important;padding:7px 0!important;line-height:1.35!important;display:block!important;text-transform:none;white-space:normal}
.header .smv159-menu-groups a:hover{text-decoration:underline;text-underline-offset:4px}
.header .smv159-menu-groups a[aria-current=page]::after{display:none}
.smv159-book-link{margin:24px 0;padding:18px 22px;border-left:3px solid #b55a48;background:#f8f0eb;max-width:690px}
.smv159-book-link a{text-decoration:none;color:#7f3d33;font-weight:800;line-height:1.55}
.smv159-book-link a:hover{text-decoration:underline;text-underline-offset:4px}
/* The header must breathe at laptop widths. Use the existing hamburger behaviour, not a second nav. */
@media(max-width:1260px){
 .header .smv159-nav{position:absolute;top:100%;left:0;right:0;background:var(--paper,#f7f5f0);padding:14px max(20px,4vw) 22px;display:none;flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid #ded3ca;box-shadow:0 18px 35px #0002;max-height:calc(100dvh - 74px);overflow-y:auto}
 .header .smv159-nav.is-open{display:flex}
 .header .menu-btn{display:inline-flex!important;align-items:center;gap:6px;min-width:64px;padding:7px 4px}
 .header .button--wine{display:none!important}
 .header .smv159-nav>.nav-primary{padding:12px 8px;min-height:47px;font-size:.97rem!important}
 .header .smv159-nav .nav-buy{display:block!important;padding:16px 8px;border-top:1px solid #e1d5cd;color:#813a2f;font-weight:900}
 .header .smv159-explore{width:100%}
 .header .smv159-explore>summary{min-height:49px;padding:8px;font-size:.96rem}
 .header .smv159-menu-groups{position:static!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:100%;margin:4px 0 12px;max-height:none;overflow:visible;right:auto;box-shadow:none;padding:17px 14px;background:#f5eee8}
}
@media(max-width:820px){
 .header .smv159-account{order:3;padding:11px;min-width:44px;height:44px;margin-left:auto}
 .header .smv159-account span{display:none}
 .header .smv159-account::after{content:attr(data-short);font-size:.66rem;font-weight:800;white-space:nowrap}
 .header .smv159-nav{order:5}
 .header .menu-btn{order:4}
 .header .smv159-menu-groups{grid-template-columns:1fr;gap:19px;}
 .header .smv159-menu-group:not(:first-child){padding-top:13px;border-top:1px solid #e1d5cc}
 .header .smv159-menu-groups a{min-height:44px!important;padding:10px 2px!important;font-size:.91rem!important}
 .header .sm-language-switch{margin-left:auto}
 .header .smv159-account{margin-left:0}
}
@media(max-width:400px){
 .header .smv159-account{min-width:40px;height:40px;padding:9px}
 .header .smv159-account svg{width:17px;height:17px}
 .header .menu-btn{min-width:55px!important;font-size:.67rem}
 .header .header-inner{gap:4px}
}
/* The membership entrance has a deliberate identity without becoming another brand. */
.smv159-member-page .top-bar{display:none}
.smv159-member-page .buy-float{display:none!important}
.smv159-member-page main.v154-member{background:#f8f7f4}
.smv159-member-page .v154-hero{background:#202730;color:#fff;padding:clamp(36px,5.5vw,68px) 0 clamp(32px,4vw,56px);border:0}
.smv159-member-page .v154-hero h1{font-size:clamp(3.2rem,6vw,6.5rem);line-height:.96;margin:14px 0 17px;color:#fff}
.smv159-member-page .v154-hero h1 em{color:#dc9d89}
.smv159-member-page .v154-hero .v154-brow{color:#dfb19d}
.smv159-member-page .smv159-hero-lead{max-width:570px;color:#e9e7e2;font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.55}
.smv159-hero-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:25px}
.smv159-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 23px;border:1px solid #9c4939;border-radius:0;text-decoration:none;font-weight:800;font-size:.85rem;background:#a34d3b;color:#fff;transition:background .2s}
.smv159-btn:hover{background:#78382e}
.smv159-btn--light{background:#fdf9f3;color:#392820;border-color:#fdf9f3}
.smv159-btn--light:hover{background:#edd7cb;color:#2c211c}
.smv159-textlink{color:#f1dbd1;text-underline-offset:5px;font-weight:700;font-size:.83rem}
.smv159-member-page #registo{background:#fff;padding:clamp(26px,4vw,52px) 0}
.smv159-member-page #registo .v154-panel{max-width:690px;background:#faf7f3}
.smv159-member-page #v154-access-section{background:#f4f0eb}
.smv159-member-page #v154-access-section .v154-option{border-radius:8px;min-height:156px}
.smv159-member-page #v154-access-section .v154-option:hover{border-color:#9d4838}
.smv159-member-page #v154-member-dashboard{background:#f3eee9}
.smv159-member-page #v155-premium-dashboard{background:#252d35;color:#f6f3ef}
.smv159-member-page #v155-premium-dashboard h2{color:#f6f3ef}
.smv159-member-page #v155-premium-dashboard .v154-brow{color:#e0aa94}
.smv159-member-page #v155-premium-dashboard .v154-copy,.smv159-member-page #v155-premium-dashboard .v154-note{color:#e4dcd4}
.smv159-member-page #v155-premium-dashboard .v154-tile{background:#f9f5f1;color:#282422;border-color:#baa89d}
.smv159-member-page #v155-premium-dashboard #v154-lesson-root .v154-tile{color:#242225}
.smv159-member-page .smv159-private-nav{background:#292c31;color:#fff;border-top:1px solid #657078;border-bottom:1px solid #657078;position:sticky;top:84px;z-index:70}
.smv159-member-page .smv159-private-nav .m-wrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding-top:11px;padding-bottom:11px}
.smv159-member-page .smv159-private-nav a{font-size:.82rem;color:#f6f1ec;text-underline-offset:5px;font-weight:700}
.smv159-member-page .smv159-private-nav a:hover{color:#ffd1c0}
.smv159-member-page [data-v159-level='book'] + .smv159-private-nav{background:#292c31}
.smv159-member-page .smv159-flow-anchor{height:0}
.smv159-disclosure{border-top:1px solid #e3d8ce;background:#faf7f2;margin:0;padding:0}
.smv159-disclosure>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1156px;margin-inline:auto;padding:23px 28px;list-style:none;font-weight:750;color:#44342d;font-size:1rem}
.smv159-disclosure>summary::marker{content:''}
.smv159-disclosure>summary::-webkit-details-marker{display:none}
.smv159-disclosure>summary::after{content:'+';font-size:1.4rem;line-height:1;color:#9b4d3e}
.smv159-disclosure[open]>summary::after{content:'−'}
.smv159-disclosure-hint{margin-left:auto;font-size:.76rem;color:#77665e;font-weight:500}
.smv159-disclosure .v158-section{border:0;padding-top:10px}
.smv159-disclosure .v154-section{padding-top:20px}
.smv159-disclosure--public{margin:10px 0;border-top:1px solid #e3d8ce;border-bottom:1px solid #e3d8ce}
.smv159-disclosure--public>summary{max-width:1100px}
/* Public book resources: paper and ink. Public Premium: deep ink with terracotta warmth. */
.smv159-reader-page .v155-public-hero{background:#f2ede7;border-bottom:1px solid #d2c3b8}
.smv159-reader-page .v155-public-hero .v154-brow{color:#895244}
.smv159-premium-page .v155-public-hero{background:linear-gradient(125deg,#242831 5%,#49302f 80%,#783f36 100%);color:#fff;border-color:transparent}
.smv159-premium-page .v155-public-hero h1{color:#fff}
.smv159-premium-page .v155-public-hero h1 em{color:#e5ac96}
.smv159-premium-page .v155-public-hero .v154-brow{color:#e7b6a4}
.smv159-premium-page .v155-public-hero .v154-lead{color:#f0e7e0}
.smv159-premium-page .v155-public-hero a{color:#fff}
.smv159-premium-page .v155-public-hero .v154-btn{color:#fff}
@media(max-width:700px){
 .smv159-member-page .smv159-private-nav{top:70px}
 .smv159-member-page .v154-hero{padding:38px 0 33px}
 .smv159-member-page .v154-hero h1{font-size:clamp(2.9rem,10.5vw,4.8rem)}
 .smv159-hero-actions{align-items:stretch;gap:15px}
 .smv159-hero-actions .smv159-btn{min-height:48px}
 .smv159-disclosure>summary{padding:21px 18px;flex-wrap:wrap}
 .smv159-disclosure-hint{font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){.header .smv159-account,.smv159-btn{transition:none}}

.smv159-anchor{display:block;height:0;position:relative;top:-90px;visibility:hidden;pointer-events:none}
@media(max-width:365px){.header .smv159-account::after{display:none}}

/* V17.3: same approved header button, with compact account actions. */
.header .sm173-header-account{position:relative;order:3;display:flex;align-items:center;flex-shrink:0;z-index:710}
.header .sm173-header-account .smv159-account{order:0;margin:0;cursor:pointer;font-family:inherit}
.header .sm173-header-menu{position:absolute;top:calc(100% + 10px);right:0;display:grid;min-width:240px;max-width:calc(100vw - 24px);padding:8px;background:#fffdfa;border:1px solid #dfd0c5;box-shadow:0 20px 38px #30201b24;border-radius:11px;z-index:711}
.header .sm173-header-menu[hidden]{display:none!important}
.header .sm173-header-menu a{display:block;min-height:45px;padding:12px 14px;color:#573d35;background:transparent;border-radius:7px;text-decoration:none;white-space:normal;font-size:.83rem;font-weight:650;letter-spacing:0;line-height:1.25}
.header .sm173-header-menu a:hover,.header .sm173-header-menu a:focus-visible{background:#f2e7df;color:#873f34;outline-offset:2px}
.header .sm173-header-menu a:last-child{border-top:1px solid #e6d9cf;border-radius:0;margin-top:4px}
@media(max-width:820px){.header .sm173-header-account{margin-left:0}.header .sm173-header-account .smv159-account{min-width:44px;height:44px}}
@media(max-width:400px){.header .sm173-header-account .smv159-account{min-width:40px;height:40px}}
