/* V38: interior-only editorial navigation and conversion hierarchy. Approved PT/EN homepages unchanged. */
:root{--v38-ink:#27282c;--v38-wine:#974b3c;--v38-paper:#f7f5f0;--v38-line:#ded4ca}
.v38-book-index{display:flex;align-items:center;gap:7px 21px;flex-wrap:wrap;padding:16px max(24px,calc((100vw - 1170px)/2));background:#f2eae3;border-block:1px solid #dfd1c7}
.v38-book-index span{font-size:.66rem;letter-spacing:.14em;font-weight:850;color:#884638}
.v38-book-index a{font-size:.78rem;color:#59413b;font-weight:750;text-underline-offset:4px;min-height:36px;display:inline-flex;align-items:center}
.v38-book-index a:hover,.v38-book-index a:focus-visible{color:var(--v38-wine)}
.v38-tool-map{margin:20px 0 0;max-width:720px;font-size:.98rem;line-height:1.6;color:inherit}
.v38-tool-map a{font-weight:800;text-underline-offset:4px;color:inherit}
.v38-short-context{max-width:1140px;margin:16px auto 48px;padding:21px 26px;border-left:3px solid #a85b4a;background:#f5eee8;color:#423936}
.v38-short-context p{margin:0 0 8px;line-height:1.55}.v38-short-context a{color:#813c31;font-weight:800}
.v38-archive-intro{margin:24px 0 12px;font-size:.94rem;color:#66554c}
.v38-past-event{margin-bottom:42px!important;border-top:1px solid #d8c7bb;opacity:.94}
.v38-past-event .ptw12-admission{font-weight:800;color:#884638}
.v38-optional-detail{margin:0 auto;border-top:1px solid #d4c9be;background:#fbf8f5;max-width:100%}
.v38-optional-detail>summary{cursor:pointer;list-style:none;min-height:59px;display:flex;align-items:center;gap:12px;padding:16px max(25px,calc((100vw - 1120px)/2));font-weight:780;font-size:.9rem;color:#653d33}
.v38-optional-detail>summary::-webkit-details-marker{display:none}
.v38-optional-detail>summary:after{content:'+';margin-left:auto;font-size:1.35rem}
.v38-optional-detail[open]>summary:after{content:'\2212'}
.v38-optional-detail section{padding-block:24px!important}
.v38-checkout{max-width:1150px;margin:0 auto;padding-block:18px 30px}
.v38-checkout p{max-width:750px;line-height:1.65}
.v38-checkout .v154-brow{margin-bottom:14px}
.v38-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:22px}
.v38-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;text-decoration:none;font-weight:760;line-height:1.3}
.v38-actions>a:not(.button):not(.v154-btn){color:#874537;text-decoration:underline;text-underline-offset:5px}
.v38-br-terms{margin:28px auto 0;padding:24px;border:1px solid #dccfc4;background:#f7f0e9;max-width:1140px}
.v38-br-terms h3{font-size:clamp(1.6rem,2.5vw,2.5rem);font-family:'Instrument Serif',Georgia,serif}
.v38-br-terms p{max-width:780px;line-height:1.65}
.v38-editorial-path{width:min(calc(100% - 40px),840px);margin:66px auto 40px;padding:29px;border:1px solid #d6c5b8;background:#f6eee8;color:#392a26}
.v38-editorial-path small,.v38-eyebrow{font-size:.69rem;letter-spacing:.15em;font-weight:850;color:#98513d}
.v38-editorial-path h2{font-size:clamp(1.7rem,3.2vw,2.65rem);line-height:1.13;margin:12px 0;color:#292424}
.v38-editorial-path p{line-height:1.65;max-width:650px}.v38-editorial-path .v38-actions{margin-top:18px}
/* Standalone legacy subpages now use the same header structure, without restyling their content. */
.v38-unified-header.header{position:sticky;top:0;z-index:700;background:rgba(247,245,240,.97);border-bottom:1px solid #dbd1c8;color:#252427;font:500 14px/1.4 'DM Sans',Arial,sans-serif;backdrop-filter:blur(14px)}
.v38-unified-header .wrap{width:min(calc(100% - 44px),1170px);margin:0 auto}
.v38-unified-header .header-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.v38-unified-header .brand{display:inline-flex;align-items:center;gap:9px;color:#282528;text-decoration:none;flex:0 0 auto}
.v38-unified-header .brand-symbol{display:grid;place-items:center;min-width:38px;width:38px;height:42px;border:1px solid #af6657;font:italic 29px 'Instrument Serif',Georgia,serif;color:#934a3a}
.v38-unified-header .brand-words{display:block;line-height:1.2}
.v38-unified-header .brand-name{display:block;font-size:.83rem;letter-spacing:.12em;font-weight:850}
.v38-unified-header .brand-sub{display:block;margin-top:4px;font-size:.5rem;letter-spacing:.04em;line-height:1.45;font-weight:700;color:#63574f}
.v38-unified-header .brand-sub span+span:before{content:' / '}
.v38-unified-header .sm-language-switch{display:flex;gap:3px;align-items:center}
.v38-unified-header .sm-language-switch a{min-width:28px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;color:#5e5249;text-decoration:none;font-size:.7rem;font-weight:800}
.v38-unified-header .sm-language-switch a[aria-current=page]{border-bottom:2px solid #934b3a}
.v38-unified-header .smv159-nav{display:flex;align-items:center;gap:15px}
.v38-unified-header .smv159-nav>a,.v38-unified-header summary{font-size:.74rem;font-weight:750;color:#51413b;text-decoration:none;white-space:nowrap;cursor:pointer}
.v38-unified-header .nav-more{position:relative}
.v38-unified-header .nav-more>summary{list-style:none}.v38-unified-header .nav-more>summary::-webkit-details-marker{display:none}
.v38-unified-header .nav-more>summary:after{content:' \25be'}
.v38-unified-header .nav-more:not([open]) .nav-more-links{display:none}
.v38-unified-header .smv159-menu-groups{z-index:710}
.v38-unified-header .menu-btn{display:none;background:none;border:0;font-size:.72rem;font-weight:800;align-items:center;cursor:pointer;color:#3b3031}
.v38-unified-header .button--wine{display:inline-flex;align-items:center;background:#934a3a;padding:10px 14px;min-height:40px;color:#fff;text-decoration:none;font-size:.71rem;font-weight:800}
.v38-unified-header .smv159-account{min-height:44px}
/* Approved mobile layouts: scannable, no side-scrolling body, accessible touch targets. */
@media(max-width:1260px){
 .v38-unified-header .menu-btn{display:inline-flex!important}
 .v38-unified-header .smv159-nav{position:absolute;display:none;flex-direction:column;align-items:stretch;gap:0;top:100%;left:0;right:0;max-height:calc(100dvh - 76px);overflow:auto;background:#faf6f1;padding:15px 25px 24px;box-shadow:0 20px 30px #0002}
 .v38-unified-header .smv159-nav.is-open{display:flex}
 .v38-unified-header .smv159-nav>a,.v38-unified-header summary{display:flex;align-items:center;min-height:47px;font-size:.96rem}
 .v38-unified-header .smv159-menu-groups{position:static!important;width:100%!important;max-width:100%!important;margin:8px 0 14px}
 .v38-unified-header .button--wine{display:none}
}
@media(max-width:760px){
 .v38-book-index{gap:2px 19px;padding:12px 19px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 .v38-book-index span,.v38-book-index a{white-space:nowrap;flex:0 0 auto}
 .v38-short-context{margin:15px 15px 40px;padding:18px}
 .v38-archive-intro{padding-inline:14px}
 .v38-optional-detail>summary{padding:17px 20px}
 .v38-optional-detail section{padding-inline:8px}
 .v38-actions>a.button,.v38-actions>a.v154-btn{width:100%}
 .v38-unified-header .header-inner{min-height:70px;gap:5px}
 .v38-unified-header .brand-sub{display:none}
 .v38-unified-header .smv159-account{padding:8px;min-width:44px;min-height:44px}
 .v38-unified-header .smv159-account span{display:none}
 .v38-unified-header .smv159-menu-groups{display:grid;grid-template-columns:1fr;gap:13px;padding:12px}
 .v38-unified-header .smv159-menu-groups a{min-height:43px}
 .smv159-member-page .sm11-ribbon{display:none!important}
}
/* Brazil-first editorial landing: deliberately not a translated clone of the approved PT homepage. */
.v38-br-home{background:#fbf8f4;color:#2d2a28}
.v38-br-home .v38-br-hero{background:#242b33;color:#fff;padding:clamp(70px,9vw,140px) 0}
.v38-br-home .v38-br-hero .wrap,.v38-br-home .v38-br-section .wrap{max-width:1120px;margin-inline:auto;width:min(calc(100% - 40px),1120px)}
.v38-br-home .v38-eyebrow{color:#aa6c58}
.v38-br-home .v38-br-hero .v38-eyebrow{color:#edc1af}
.v38-br-home h1,.v38-br-home h2,.v38-br-home h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400;letter-spacing:-.022em}
.v38-br-home h1{font-size:clamp(3rem,6.1vw,6.4rem);line-height:1.03;max-width:1000px;margin:18px 0 25px}
.v38-br-home h1 em{color:#e4b19c}
.v38-br-home .v38-br-hero p:not(.v38-eyebrow){max-width:760px;font-size:clamp(1.05rem,1.8vw,1.25rem);line-height:1.65;color:#f2e8e1}
.v38-br-home .v38-br-hero .button--outline{border:1px solid #e4cdc1;color:#fff;padding:12px 20px}
.v38-br-home .v38-br-section{padding:clamp(60px,7vw,100px) 0}
.v38-br-home .v38-br-section--tint{background:#f1e9e3}
.v38-br-home .v38-br-section h2{font-size:clamp(2.6rem,4vw,4.4rem);line-height:1.04;max-width:850px;margin:16px 0 28px}
.v38-br-home .v38-br-section p{max-width:760px;line-height:1.75}
.v38-br-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:38px}
.v38-br-grid article{padding:28px 26px;border:1px solid #d8c9bb;background:#fffdfa;min-width:0}
.v38-br-grid span{font-size:.68rem;letter-spacing:.11em;color:#99503e;font-weight:800}
.v38-br-grid h3{font-size:clamp(1.7rem,2.5vw,2.6rem);line-height:1.12;margin:18px 0}
.v38-br-grid article>a{display:inline-block;margin-top:16px;color:#884837;font-weight:800;text-underline-offset:4px}
.v38-br-footer{background:#252a30;color:#f5e8e1;padding:33px 0;font-size:.8rem}
.v38-br-footer .wrap{width:min(calc(100% - 40px),1120px);display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin:auto}
.v38-br-footer a{color:#f5e8e1}
@media(max-width:800px){.v38-br-grid{grid-template-columns:1fr}.v38-br-home .v38-br-hero{padding:68px 0}.v38-br-grid article{padding:25px}}
@media(prefers-reduced-motion:reduce){.v38-book-index{scroll-behavior:auto}}
/* Narrow phones: stop approved header elements from competing with account and menu. */
@media(max-width:460px){
 .v38-unified-header .header-inner{gap:3px!important}
 .v38-unified-header .brand{gap:5px!important;min-width:0!important;flex:0 1 auto!important}
 .v38-unified-header .brand-symbol{width:29px!important;min-width:29px!important;height:36px!important;font-size:24px!important}
 .v38-unified-header .brand-name{font-size:.68rem!important;letter-spacing:.045em!important;white-space:nowrap}
 .v38-unified-header .brand-words{max-width:105px!important;min-width:0}
 .v38-unified-header .sm-language-switch{min-width:0!important;gap:0!important;margin-left:auto!important}
 .v38-unified-header .sm-language-switch a{min-width:23px!important;padding:0!important;font-size:.63rem!important}
 .v38-unified-header .smv159-account{min-width:39px!important;max-width:44px!important;padding:6px!important;gap:2px!important}
 .v38-unified-header .smv159-account:after{display:none!important}
 .v38-unified-header .menu-btn{min-width:46px!important;font-size:.61rem!important;padding:6px 0!important;gap:1px!important}
 .v38-unified-header .menu-btn svg{margin-left:2px!important}
 .v38-br-home .header .header-inner{gap:3px!important}
 .v38-br-home .header .brand{gap:5px!important;min-width:0!important;flex:0 1 auto!important}
 .v38-br-home .header .brand-symbol{width:29px!important;min-width:29px!important;height:36px!important;font-size:24px!important}
 .v38-br-home .header .brand-name{font-size:.68rem!important;letter-spacing:.045em!important;white-space:nowrap}
 .v38-br-home .header .brand-words{max-width:105px!important;min-width:0}
 .v38-br-home .header .sm-language-switch{min-width:0!important;gap:0!important;margin-left:auto!important}
 .v38-br-home .header .sm-language-switch a{min-width:23px!important;padding:0!important;font-size:.63rem!important}
 .v38-br-home .header .smv159-account{font-size:0!important;min-width:40px!important;max-width:42px!important;padding:6px!important}
 .v38-br-home .header .smv159-account::after{content:'Area'!important;font-size:.65rem!important;display:block!important}
 .v38-br-home .header .menu-btn{min-width:47px!important;font-size:.61rem!important;padding:6px 0!important;gap:1px!important}
 .v38-br-home .header .menu-btn svg{margin-left:2px!important}
}
/* All Portuguese-for-Brazil pages share the same compact accessible header on phones. */
@media(max-width:600px){
 html[lang="pt-BR"] .header .header-inner{gap:3px!important}
 html[lang="pt-BR"] .header .brand{gap:5px!important;min-width:0!important;flex:0 1 auto!important}
 html[lang="pt-BR"] .header .brand-symbol{width:29px!important;min-width:29px!important;height:36px!important;font-size:24px!important}
 html[lang="pt-BR"] .header .brand-name{font-size:.68rem!important;letter-spacing:.045em!important;white-space:nowrap}
 html[lang="pt-BR"] .header .brand-words{max-width:105px!important;min-width:0}
 html[lang="pt-BR"] .header .sm-language-switch{min-width:0!important;gap:0!important;margin-left:auto!important}
 html[lang="pt-BR"] .header .sm-language-switch a{min-width:22px!important;padding:0!important;font-size:.62rem!important}
 html[lang="pt-BR"] .header .smv159-account{font-size:0!important;min-width:40px!important;max-width:42px!important;padding:5px!important;white-space:nowrap}
 html[lang="pt-BR"] .header .smv159-account::after{content:'Area'!important;font-size:.65rem!important;display:block!important}
 html[lang="pt-BR"] .header .menu-btn{min-width:45px!important;font-size:.6rem!important;padding:6px 0!important;gap:1px!important}
 html[lang="pt-BR"] .header .menu-btn svg{margin-left:2px!important}
}
