/* WHT · Design A shell · v0.8.4 · staging 2026-11-21
   Shared header, footer, type and controls of design A on the pages that keep their own template. */

/* Previous site chrome: kept in the document for each page's scripts, never shown */
body.wht-a-shell :is(header.wht-vineyard-header,header.wht-site-header,header.wht-privacy-header,header.wht-wine-shop-header,header.wht-transaction-header,#masthead,.ast-mobile-header-wrap),
body.wht-a-shell :is(footer.wht-business-tours-footer,footer.wht-about-footer,footer.wht-private-tours-footer,footer.wht-site-footer,footer.wht-privacy-footer,footer.wht-wine-shop-footer,footer.wht-transaction-footer,#colophon),
html body.wht-a-shell #wht-whatsapp-contact.wht-whatsapp-contact{display:none!important}

body.wht-a-shell{background:var(--wht-bg)}
body.wht-a-shell.wha-menu-open{overflow:hidden}
.wha-shell{position:relative;width:100%}
.wha-shell--header{z-index:60}

/* 1 · Width: the content of every page lines up with the header and the footer */
body.wht-a-shell :is(.wht-private-tours-shell,.wht-business-tours-shell,.wht-about-story-shell,.wht-contact-page__container,.wht-container,.wht-beyond-shell,.wht-privacy-shell,.wht-wrap,.mwg-wrap,.wht-practical-guide__inner,.wht-wine-guide__inner,.wht-wine-shop-shell,.mwg-header__inner,.wht-guide-header__inner,.wht-cart-container,.wht-transaction-progress,.wht-cart-content){width:min(calc(var(--wht-wrap) - 2*var(--wht-gutter)),calc(100% - 2*var(--wht-gutter)))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
body.wht-a-shell :is(.wht-private-tours-shell,.wht-business-tours-shell,.wht-about-story-shell,.wht-contact-page__container,.wht-container,.wht-beyond-shell,.wht-privacy-shell,.wht-wrap,.mwg-wrap,.wht-practical-guide__inner,.wht-wine-guide__inner,.wht-wine-shop-shell,.mwg-header__inner,.wht-guide-header__inner,.wht-cart-container,.wht-transaction-progress,.wht-cart-content) :is(.wht-private-tours-shell,.wht-business-tours-shell,.wht-about-story-shell,.wht-contact-page__container,.wht-container,.wht-beyond-shell,.wht-privacy-shell,.wht-wrap,.mwg-wrap,.wht-practical-guide__inner,.wht-wine-guide__inner,.wht-wine-shop-shell,.mwg-header__inner,.wht-guide-header__inner,.wht-cart-container,.wht-transaction-progress,.wht-cart-content){width:100%!important}

/* 2 · Type: one serif weight, the design A scale for the big titles, quiet labels */
body.wht-a-shell :is(h1,h2,h3,h4,h5):not(.wha *,#wpadminbar *,.cky-consent-container *,.cky-modal *){font-family:var(--wht-serif)!important;font-weight:400!important;letter-spacing:-.02em!important;text-wrap:balance}
body.wht-a-shell h1:not(.wha *,#wpadminbar *){font-size:clamp(40px,5.2vw,88px)!important;line-height:1.03!important;letter-spacing:-.025em!important}
body.wht-a-shell :is(h2[id^="wht-business-tours-"],h2[id^="wht-about-"],.wht-wine-shop-shell h2,.wht-cart-content h2):not(.wha *),
body.wht-a-shell:is(.wht-tapas-page-template,.wht-caminito-page-template,.wht-a-shell--theme) main h2:not(.wha *),
body.wht-a-shell :is(.wht-wrap,.mwg-wrap)>h2,body.wht-a-shell :is(.wht-wrap,.mwg-wrap) :is(header,div)>h2{font-size:clamp(30px,3.5vw,58px)!important;line-height:1.1!important}
body.wht-a-shell :is(.wht-wine-shop-shell,.wht-cart-content) h3:not(.wha *){font-size:clamp(21px,1.7vw,30px)!important;line-height:1.2!important}
body.wht-a-shell :is([class*="kicker"],[class*="eyebrow"],[class*="section-label"]):not(.wha *){font-family:var(--wht-sans)!important;font-size:12px!important;font-weight:600!important;letter-spacing:.16em!important;text-transform:uppercase}
body.wht-a-shell :is(.wht-kicker,.mwg-kicker,.wht-practical-guide__eyebrow){color:var(--wht-olive)!important}

/* 3 · Controls: design A buttons and fields */
body.wht-a-shell :is(a,button,input)[class*="button"]:not(.wha *,#wpadminbar *,.cky-btn),
body.wht-a-shell :is(a,button,input)[class*="btn"]:not(.wha *,#wpadminbar *,.cky-btn),
body.wht-a-shell :is(.wht-private-choice__contact,.wht-guide-contact,.wht-gs-cta,.wht-guide-footer__cta,.wht-practical-guide__link,.wpcf7-submit,button[type="submit"],input[type="submit"]):not(.wha *,#wpadminbar *,.cky-btn){border-radius:var(--wht-radius)!important;font-family:var(--wht-sans)!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
body.wht-a-shell :is(.wht-btn,.mwg-btn,.wht-guide-footer__cta):not(.wha *){background-color:var(--wht-olive)!important;border-color:var(--wht-olive)!important;color:var(--wht-on-olive)!important}
body.wht-a-shell :is(input:not([type="checkbox"],[type="radio"],[type="submit"],[type="button"],[type="hidden"],[type="range"]),select,textarea):not(.wha *,#wpadminbar *,.cky-modal *){border-radius:var(--wht-radius)!important;font-family:var(--wht-sans)!important}

/* 4 · Shapes: the soft 6 px corner of design A instead of large rounded cards */
body.wht-a-shell :is(main,[class*="-page"],.woocommerce,#content) :is([class*="card"],[class*="panel"],[class*="photo"],[class*="media"],[class*="-box"],[class*="gallery"],[class*="visual"],[class*="choice"],[class*="collection"],[class*="step"],[class*="fact"],[class*="note"],[class*="toc"],[class*="table-wrap"],[class*="fulfilment"],[class*="payment"],[class*="grape"],[class*="location"],[class*="identity"],[class*="withdrawal"],[class*="combination"],[class*="fragment"],figure,article,details,img,video,iframe,picture):not(.wha *,section,[class*="kicker"],[class*="eyebrow"],[class*="label"],[class*="hero"]:not(img,figure,[class*="card"],[class*="visual"])){border-radius:6px!important}

/* 5 · Rhythm: the section spacing of design A */
body.wht-a-shell:is(.wht-business-tours-standalone-document,.wht-about-us-standalone-document) section:not([class*="hero"]){padding-top:var(--wht-sec)!important;padding-bottom:var(--wht-sec)!important}
body.wht-a-shell.single-product h1:not(.wha *){font-size:clamp(32px,3.4vw,56px)!important;line-height:1.08!important}

/* 6 · Guides: their own logo bar and menu give way to the shared header */
body.wht-a-shell :is(header.wht-guide-header,header.mwg-header,#ast-mobile-header,.main-header-menu-toggle){display:none!important}

/* 7 · Wine shop (0.8.3): the coloured bands run edge to edge and only their content lines up with the header;
   the tabs panel of a wine keeps its own padding and takes the content width */
body.wht-a-shell .wht-wine-shop-section.wht-wine-shop-tabs{width:min(calc(var(--wht-wrap) - 2*var(--wht-gutter)),calc(100% - 2*var(--wht-gutter)))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}

/* 8 · Heroes of the Caminito and tapas pages (0.8.4): the photo is shown, not buried under the text.
   Both: the photo fills its box and shows its middle band instead of only its top edge.
   Caminito on wide screens: plain deep background with the whole photo framed on the right. */
body.wht-a-shell.wht-tapas-page-template .wht-hero-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 62%!important}
body.wht-a-shell.wht-caminito-page-template .wht-hero-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 50%!important}
@media (min-width:1320px){
body.wht-a-shell.wht-caminito-page-template .wht-hero{background:var(--wht-deep,#0F2A33)!important}
body.wht-a-shell.wht-caminito-page-template .wht-hero::before,body.wht-a-shell.wht-caminito-page-template .wht-hero::after{display:none!important}
body.wht-a-shell.wht-caminito-page-template .wht-hero-media{position:absolute!important;inset:auto!important;top:50%!important;right:max(var(--wht-gutter),calc((100% - var(--wht-wrap))/2 + var(--wht-gutter)))!important;transform:translateY(-50%)!important;width:min(calc(100% - 2*var(--wht-gutter) - 816px),820px)!important;height:auto!important;aspect-ratio:3/2!important;overflow:hidden!important;border-radius:6px!important;box-shadow:0 30px 70px -34px rgba(0,0,0,.7)}
}
