/* Bulk visual-parity corrections. Loaded after the base responsive sheets. */

/* WooCommerce feedback surfaces */
.woocommerce-notices-wrapper{margin:0;padding:0;background:transparent;border:0}
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info{display:flex;min-height:68px;align-items:center;gap:20px;margin:22px 0;padding:14px 16px 14px 22px;background:rgba(224,138,77,.09);border:1px solid rgba(224,138,77,.3);color:var(--text);line-height:1.55}
.woocommerce-error{margin:22px 0;padding:16px 22px;background:rgba(255,180,171,.07);border:1px solid rgba(255,180,171,.28);color:var(--text);line-height:1.55;list-style-position:inside}
.woocommerce-error li+li{margin-top:8px}
.woocommerce-message a,.woocommerce-info a,.woocommerce-error a{float:none!important;color:var(--copper)}
.woocommerce-message a.button,.woocommerce-info a.button,.woocommerce-error a.button{order:2;flex:none;min-height:42px;margin:0 0 0 auto;padding:10px 20px;background:var(--copper);border:1px solid var(--copper);color:var(--ink);font-family:"JetBrains Mono",monospace;font-size:.56rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.woocommerce-message a.button:hover,.woocommerce-info a.button:hover,.woocommerce-error a.button:hover{background:var(--bone);border-color:var(--bone);color:var(--ink)}

/* Smooth, accessible cart drawer */
.cart-drawer:not([hidden]){visibility:hidden;opacity:0;pointer-events:none;transition:visibility 0s linear .32s,opacity .24s ease}
.cart-drawer__backdrop{opacity:0;transition:opacity .28s ease}
.cart-drawer__panel{transform:translate3d(100%,0,0);transition:transform .32s cubic-bezier(.22,1,.36,1)}
.cart-drawer.is-open{visibility:visible;opacity:1;pointer-events:auto;transition-delay:0s}
.cart-drawer.is-open .cart-drawer__backdrop{opacity:1}
.cart-drawer.is-open .cart-drawer__panel{transform:translate3d(0,0,0)}
.cart-drawer__panel>header>button:focus-visible,.cart-drawer__backdrop:focus-visible{outline:2px solid var(--copper);outline-offset:-2px}

/* Service gallery: demo contract is a two-column hero plus two tiles and a wide tile. */
.designed-gallery{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:270px 270px}
.gallery-item--1{grid-column:1/3;grid-row:1/3}
.gallery-item--2{grid-column:3;grid-row:1}
.gallery-item--3{grid-column:4;grid-row:1}
.gallery-item--4{grid-column:3/5;grid-row:2}

/* Product configuration must follow the price instead of being pushed to the image floor. */
.product-summary{justify-content:flex-start;gap:28px}
.product-summary>div:first-child{flex:none}
.product-summary__price{margin:0;color:var(--copper);font-family:"Hanken Grotesk",Arial,sans-serif;font-size:2rem;font-weight:700;line-height:1.2}
.product-summary__price .woocommerce-Price-amount{color:inherit;font-size:inherit}
.product-summary__price>span{font-size:.56rem}
.product-configurator{margin-top:0}
.product-configurator .woocommerce-variation-price{font-family:"Hanken Grotesk",Arial,sans-serif;font-size:1.25rem;font-weight:700}

/* Catalog filter affordance is now an actual disclosure control. */
.shop-header__filter{display:inline-flex;flex:none;align-items:center;gap:10px;padding:12px 18px;background:var(--raised);border:1px solid rgba(58,57,62,.3);color:rgba(245,239,226,.65);font-family:"JetBrains Mono",monospace;font-size:.56rem;letter-spacing:.12em;cursor:pointer;transition:border-color .2s,color .2s}
.shop-header__filter:hover,.shop-header__filter:focus-visible{border-color:var(--copper);color:var(--copper);outline:0}
.shop-header__filter[aria-expanded="false"] span{transform:rotate(-90deg)}
.shop-layout--filter-collapsed{grid-template-columns:minmax(0,1fr)}

/* Logged-out account entry follows the accepted portal design while retaining Woo handlers. */
.woocommerce-account:not(.logged-in) .commerce-page{padding-inline:var(--pad)}
.woocommerce-account:not(.logged-in) .commerce-page>.prose-content{padding-top:72px;padding-bottom:110px}
.tt-auth{width:100%}
.tt-auth__panel{width:min(100%,520px);margin:0 auto;text-align:left}
.tt-auth__header{margin-bottom:38px;text-align:center}
.tt-auth__mark{display:grid;width:48px;height:48px;place-items:center;margin:0 auto 22px;background:var(--raised);border:1px solid rgba(58,57,62,.3);color:var(--copper);font-size:1.35rem}
.tt-auth__header h1{margin:0;color:var(--bone);font-size:2.15rem;font-weight:650;letter-spacing:.16em;outline:0}
.tt-auth__header p{margin:7px 0 0;color:rgba(201,197,203,.35);font-family:"JetBrains Mono",monospace;font-size:.52rem;letter-spacing:.08em}
.tt-auth__card{position:relative;padding:42px;background:var(--raised);border:1px solid rgba(58,57,62,.28);box-shadow:0 25px 60px rgba(0,0,0,.14)}
.tt-auth__version{position:absolute;top:18px;right:18px;color:rgba(201,197,203,.18);font-family:"JetBrains Mono",monospace;font-size:.43rem;letter-spacing:.06em}
.tt-auth form{display:grid;gap:24px;margin:0;padding-top:12px}
.tt-auth .form-row{margin:0}
.tt-auth .form-row label{margin-bottom:9px;color:var(--copper);font-size:.52rem}
.tt-auth .tt-auth__card input.input-text{width:100%;min-height:48px;padding:8px 0;background:transparent;border:0;border-bottom:1px solid rgba(201,197,203,.24);color:var(--bone);font-family:"JetBrains Mono",monospace;font-size:.72rem;letter-spacing:.06em}
.tt-auth .tt-auth__card input.input-text:focus{border-color:var(--copper)}
.tt-auth .password-input{display:block;width:100%}
.tt-auth .show-password-input{display:none}
.tt-auth__options{display:flex;align-items:center;justify-content:space-between;gap:20px;color:rgba(201,197,203,.48);font-family:"JetBrains Mono",monospace;font-size:.5rem;letter-spacing:.06em}
.tt-auth__options label{display:flex!important;align-items:center;gap:8px;margin:0!important;color:inherit!important}
.tt-auth__options input{width:14px;height:14px;margin:0;accent-color:var(--copper)}
.tt-auth__options a:hover{color:var(--copper)}
.tt-auth button[type="submit"]{width:100%;min-height:52px;margin:5px 0 0;background:var(--copper);border:1px solid var(--copper);color:var(--ink)}
.tt-auth button[type="submit"]:hover{background:var(--bone);border-color:var(--bone)}
.tt-auth__help,.tt-auth .woocommerce-privacy-policy-text{margin:0;color:rgba(201,197,203,.55);font-size:.72rem;line-height:1.7}
.tt-auth__switch{margin:38px 0 0;color:rgba(201,197,203,.48);font-size:.78rem;text-align:center}
.tt-auth__switch button{padding:0 0 2px;background:transparent;border:0;border-bottom:1px solid var(--bone);color:var(--bone);font-family:"JetBrains Mono",monospace;font-size:.6rem;letter-spacing:.05em;cursor:pointer}
.tt-auth__switch button:hover,.tt-auth__switch button:focus-visible{border-color:var(--copper);color:var(--copper);outline:0}

/* Checkout: customer details and native Woo review now share one aligned row. */
.checkout-header{padding:70px 0 34px}
.checkout-header .text-link{display:inline-block;margin-bottom:44px;color:rgba(201,197,203,.58)}
.checkout-header ol{display:flex;width:min(100%,640px);gap:0;margin:0 0 48px;padding:0;list-style:none}
.checkout-header li{position:relative;flex:1;color:rgba(201,197,203,.25);font-family:"JetBrains Mono",monospace;font-size:.58rem;font-weight:700;letter-spacing:.08em}
.checkout-header li:not(:last-child)::after{content:"";position:absolute;top:50%;right:12px;left:70%;height:1px;background:rgba(58,57,62,.35)}
.checkout-header li.is-active{color:var(--copper)}
.checkout-header h1{margin:0;color:var(--bone);font-size:3rem}
.woocommerce-checkout .commerce-page>.prose-content{padding-top:0}
.checkout.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,7fr) minmax(390px,5fr);gap:80px;align-items:start}
.tt-checkout-details{min-width:0}
.tt-checkout-summary{position:sticky;top:calc(var(--header) + 28px);min-width:0;padding:42px;background:var(--raised);border:1px solid rgba(58,57,62,.25)}
.tt-checkout-summary>h2{margin:0 0 28px;padding-bottom:24px;border-bottom:1px solid rgba(58,57,62,.24);color:var(--bone);font-size:2rem}
.checkout #customer_details,.checkout #order_review_heading,.checkout #order_review{grid-column:auto}
.checkout #order_review{padding:0;background:transparent;border:0}
.checkout .col2-set{display:grid;gap:42px}
.checkout .woocommerce-billing-fields>h3,.checkout .woocommerce-additional-fields>h3{margin:0 0 32px;color:var(--copper);font-family:"JetBrains Mono",monospace;font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.checkout .woocommerce-billing-fields>h3::before{content:"1. ";color:var(--copper)}
.checkout .woocommerce-additional-fields>h3::before{content:"2. ";color:var(--copper)}
.woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.woocommerce-billing-fields__field-wrapper .form-row{grid-column:1/-1;float:none;width:100%;margin:0}
.woocommerce-billing-fields__field-wrapper #billing_first_name_field,.woocommerce-billing-fields__field-wrapper #billing_last_name_field,.woocommerce-billing-fields__field-wrapper #billing_phone_field,.woocommerce-billing-fields__field-wrapper #billing_email_field{grid-column:span 3}
.woocommerce-billing-fields__field-wrapper #billing_city_field,.woocommerce-billing-fields__field-wrapper #billing_state_field,.woocommerce-billing-fields__field-wrapper #billing_postcode_field{grid-column:span 2}
.checkout .form-row label{margin-bottom:9px}
.commerce-page .checkout input.input-text,.commerce-page .checkout textarea,.commerce-page .checkout select{width:100%;border-color:rgba(58,57,62,.32);background:var(--raised)}
.checkout .select2-container{width:100%!important}
.checkout .select2-container .select2-selection--single{background:var(--raised)}
.checkout .woocommerce-additional-fields__field-wrapper,.checkout #order_comments_field{width:100%}
.checkout #order_comments{width:100%;min-height:145px}
.tt-checkout-summary table{table-layout:fixed}
.tt-checkout-summary table th,.tt-checkout-summary table td{padding:16px 0;border-bottom:1px solid rgba(58,57,62,.18)}
.tt-checkout-summary table th:last-child,.tt-checkout-summary table td:last-child{text-align:right}
.tt-checkout-summary .product-name{width:70%;color:var(--bone)}
.tt-checkout-summary .product-total,.tt-checkout-summary .order-total td{color:var(--copper)}
.tt-checkout-summary .woocommerce-shipping-methods{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.tt-checkout-summary .woocommerce-shipping-methods li{display:flex;align-items:flex-start;justify-content:flex-end;gap:7px;margin:0}
.tt-checkout-summary .woocommerce-shipping-methods input{flex:none;margin-top:4px}
.tt-checkout-summary .woocommerce-shipping-methods label{color:var(--muted);font-size:.72rem;line-height:1.5;text-align:right}
.tt-checkout-summary .woocommerce-checkout-payment{margin-top:32px;padding-top:24px;border-top:1px solid rgba(58,57,62,.2)}
.tt-checkout-summary .wc_payment_method{margin-bottom:10px;background:var(--lowest)}
.tt-checkout-summary .wc_payment_method label{color:var(--bone);font-family:"JetBrains Mono",monospace;font-size:.58rem;letter-spacing:.07em}
.tt-checkout-summary .woocommerce-privacy-policy-text{line-height:1.65}
.commerce-page .tt-checkout-summary #place_order{width:100%;margin-top:18px}

/* Article detail parity: sticky native index, CTA, and three related cards. */
.article-layout{grid-template-columns:230px minmax(0,850px) 1fr;align-items:start;gap:58px}
.article-sidebar{position:sticky;top:calc(var(--header) + 35px);display:grid;gap:34px;align-self:start}
.article-sidebar>div{padding-bottom:25px;border-bottom:1px solid rgba(58,57,62,.2)}
.article-sidebar span{display:block;margin-bottom:9px;color:rgba(201,197,203,.34);font-family:"JetBrains Mono",monospace;font-size:.48rem;letter-spacing:.1em}
.article-sidebar strong{color:var(--bone);font-size:.72rem;font-weight:500}
.article-sidebar nav p{margin:0;color:rgba(201,197,203,.38);font-size:.68rem}
.article-sidebar ol{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.article-sidebar li a{display:block;color:rgba(201,197,203,.5);font-family:"JetBrains Mono",monospace;font-size:.51rem;line-height:1.45}
.article-sidebar li.is-subsection a{padding-left:12px;color:rgba(201,197,203,.35)}
.article-sidebar li a:hover,.article-sidebar li a:focus-visible{color:var(--copper);outline:0}
.article-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0!important}
.article-tags a{padding:5px 7px;background:var(--raised);color:rgba(201,197,203,.5);font-family:"JetBrains Mono",monospace;font-size:.43rem}
.article-content{grid-column:2;max-width:850px;padding-top:0}
.article-content h2,.article-content h3{scroll-margin-top:calc(var(--header) + 30px)}
.article-cta{max-width:850px;margin-bottom:110px;padding:48px;border:1px solid rgba(224,138,77,.22);background:var(--lowest);text-align:center}
.article-cta h2{margin:0 0 15px;color:var(--bone);font-size:1.7rem}
.article-cta p{max-width:620px;margin:0 auto 24px;color:rgba(201,197,203,.55);font-size:.78rem;line-height:1.7}
.article-cta .button{min-height:46px;padding:12px 24px;font-size:.55rem}
.article-related{padding:90px 0 110px;background:var(--raised);border-top:1px solid rgba(58,57,62,.18)}
.article-related .shell>header{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:42px}
.article-related h2{margin:0;color:var(--bone);font-size:2rem}
.article-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.article-related__image{display:block;aspect-ratio:16/9;margin-bottom:18px;overflow:hidden;background:var(--lowest)}
.article-related__image img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);transition:filter .5s,transform .5s}
.article-related article:hover img{filter:grayscale(0);transform:scale(1.025)}
.article-related article>span{color:var(--copper);font-family:"JetBrains Mono",monospace;font-size:.48rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.article-related h3{margin:11px 0;color:var(--bone);font-size:1.15rem;line-height:1.35}
.article-related article>p{margin:0;color:rgba(201,197,203,.5);font-size:.7rem;line-height:1.65}

@media(max-width:1000px){
	.checkout.woocommerce-checkout{grid-template-columns:minmax(0,1fr) minmax(330px,430px);gap:40px}
	.tt-checkout-summary{padding:30px}
	.article-layout{grid-template-columns:190px minmax(0,1fr);gap:42px}
	.article-content{grid-column:2}
	.designed-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:250px 250px 250px}
	.gallery-item--1{grid-column:1;grid-row:1/3}
	.gallery-item--2{grid-column:2;grid-row:1}
	.gallery-item--3{grid-column:2;grid-row:2}
	.gallery-item--4{grid-column:1/3;grid-row:3}
}

@media(max-width:800px){
	.woocommerce-message,.woocommerce-info{align-items:flex-start;flex-direction:column}
	.woocommerce-message a.button,.woocommerce-info a.button,.woocommerce-error a.button{order:0;margin:4px 0 0}
	.shop-header__filter{align-self:stretch;justify-content:center}
	.checkout-header{padding-top:55px}
	.checkout-header ol{margin-bottom:38px}
	.checkout.woocommerce-checkout{grid-template-columns:1fr;gap:45px}
	.tt-checkout-summary{position:static}
	.woocommerce-billing-fields__field-wrapper #billing_city_field,.woocommerce-billing-fields__field-wrapper #billing_state_field,.woocommerce-billing-fields__field-wrapper #billing_postcode_field{grid-column:span 3}
	.article-layout{grid-template-columns:1fr}
	.article-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1}
	.article-content{grid-column:1}
	.article-related__grid{grid-template-columns:1fr}
	.article-related article{display:grid;grid-template-columns:200px 1fr;column-gap:22px}
	.article-related__image{grid-row:1/5;margin:0}
}

@media(max-width:560px){
	.cart-drawer__panel{width:100%}
	.tt-auth__card{padding:34px 24px}
	.tt-auth__options{align-items:flex-start;flex-direction:column;gap:12px}
	.checkout-header ol{gap:12px}
	.checkout-header li{font-size:.49rem}
	.checkout-header li:not(:last-child)::after{display:none}
	.checkout-header h1{font-size:2.45rem}
	.woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}
	.woocommerce-billing-fields__field-wrapper .form-row,.woocommerce-billing-fields__field-wrapper #billing_first_name_field,.woocommerce-billing-fields__field-wrapper #billing_last_name_field,.woocommerce-billing-fields__field-wrapper #billing_phone_field,.woocommerce-billing-fields__field-wrapper #billing_email_field,.woocommerce-billing-fields__field-wrapper #billing_city_field,.woocommerce-billing-fields__field-wrapper #billing_state_field,.woocommerce-billing-fields__field-wrapper #billing_postcode_field{grid-column:1}
	.tt-checkout-summary{padding:24px 18px}
	.article-sidebar{grid-template-columns:1fr}
	.article-cta{margin-bottom:75px;padding:36px 22px}
	.article-related{padding:70px 0}
	.article-related .shell>header{align-items:flex-start;flex-direction:column}
	.article-related article{display:block}
	.article-related__image{margin-bottom:16px}
	.designed-gallery{display:grid;grid-template-columns:1fr;grid-template-rows:none}
	.gallery-item,.gallery-item--1,.gallery-item--2,.gallery-item--3,.gallery-item--4{grid-column:1;grid-row:auto;aspect-ratio:4/3}
}

@media(prefers-reduced-motion:reduce){
	.cart-drawer:not([hidden]),.cart-drawer__backdrop,.cart-drawer__panel{transition:none}
}

/* Final persistent type scale: match the accepted demo's 72px desktop and 36px mobile route titles. */
.home-hero h1{font-size:4.5rem;font-weight:500;line-height:1.25}
.archive-hero h1,.shop-header h1,.blog-hero h1,.fixed-page__header h1,.legal-page>header h1,.service-detail__hero h1,.article-header h1{font-size:4.5rem;font-weight:400}
.archive-hero h1,.service-detail__hero h1,.article-header h1{line-height:1.25}
.shop-header h1,.blog-hero h1,.fixed-page__header h1{line-height:1}
.blog-hero h1{letter-spacing:-.025em}
.product-summary h1{font-size:3rem;font-weight:400;line-height:1.2}
.checkout-header h1{font-size:2.25rem;font-weight:400;line-height:1.2}
.woocommerce-account.logged-in .page-hero h1{font-size:2.25rem;font-weight:400;line-height:1.2}
.woocommerce-cart .page-hero h1{font-size:3rem;font-weight:400;line-height:1.2}

@media(max-width:560px){
	.home-hero h1,.archive-hero h1,.shop-header h1,.blog-hero h1,.fixed-page__header h1,.legal-page>header h1,.service-detail__hero h1,.article-header h1,.product-summary h1{font-size:2.25rem}
	.checkout-header h1,.woocommerce-account.logged-in .page-hero h1{font-size:2.25rem}
}
