/* Shared two-row product header. Page palettes and content layouts stay scoped. */
.mw-header { --mw-cream:#f5f9f5; --mw-forest:#12391c; --mw-accent:#008a28; background:#fff; color:#142519; font:16px/1.45 Inter,Arial,sans-serif; position:relative; z-index:30; border-bottom:1px solid #dce5dc; }
.mw-header,.mw-header * { box-sizing:border-box; }
.mw-header a { color:inherit; text-decoration:none; }
.mw-header a:hover { color:#24532d; }
.mw-header :focus-visible { outline:3px solid #247b38; outline-offset:3px; }
.mw-header .mw-topbar { width:100%; max-width:1480px; min-height:82px; margin:auto; padding:0 44px; display:flex; align-items:center; gap:38px; }
.mw-header .mw-brand { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex:none; min-width:84px; padding:7px 0; border:0; color:var(--mw-forest); font:650 13px/1.2 Inter,Arial,sans-serif; letter-spacing:.035em; white-space:nowrap; }
.mw-header .mw-brand img { width:46px; height:46px; object-fit:contain; flex:none; }
.mw-header .mw-primary { display:flex; align-items:center; gap:26px; min-width:0; margin-inline:auto; }
.mw-header .mw-primary a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 22px; font-size:16px; font-weight:600; white-space:nowrap; }
.mw-header .mw-primary .mw-selected { background:var(--mw-accent); border-radius:40px; color:#fff; }
.mw-header .mw-account { display:flex; align-items:center; gap:14px; margin-left:0; flex:none; }
.mw-header .mw-account>form { display:flex; align-items:center; gap:4px; margin:0; }
.mw-header select,.mw-header button { font:inherit; color:inherit; background:transparent; border:0; min-height:44px; cursor:pointer; margin:0; }
.mw-header select { padding:8px 4px; border-radius:4px; max-width:65px; }
.mw-header [data-language-apply] { font-size:12px; text-decoration:underline; padding:8px 4px; }
.mw-header .mw-avatar { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--mw-forest); color:white; font-size:16px; font-weight:600; }
.mw-header .mw-login { display:flex; align-items:center; min-height:44px; font-weight:600; white-space:nowrap; }
.mw-header .mw-subnav { display:flex; align-items:stretch; justify-content:center; gap:42px; border-top:1px solid #dce5dc; padding:0 16px; margin:0; }
.mw-header .mw-subnav a { display:flex; align-items:center; justify-content:center; position:relative; padding:15px 24px; min-height:50px; font-size:16px; line-height:1.3; font-weight:600; white-space:nowrap; text-align:center; }
.mw-header .mw-subnav a+a::before { content:''; position:absolute; height:23px; width:1px; background:#dce5dc; left:-21px; top:14px; }
.mw-header .mw-subnav .mw-current::after { content:''; position:absolute; bottom:6px; height:4px; background:var(--mw-accent); left:12px; right:12px; }
.mw-header .mw-user-menu { position:relative; }
.mw-header .mw-user-menu>summary { display:grid; place-items:center; min-height:44px; min-width:28px; cursor:pointer; list-style:none; }
.mw-header .mw-user-menu>summary::-webkit-details-marker { display:none; }
.mw-header .mw-user-menu>nav { position:absolute; right:0; top:calc(100% + 8px); min-width:215px; max-width:calc(100vw - 32px); padding:8px; border:1px solid #dce5dc; border-radius:12px; background:#fff; box-shadow:0 8px 25px #12391c20; z-index:50; }
.mw-header .mw-user-menu nav a,.mw-header .mw-user-menu nav button { display:flex; align-items:center; width:100%; padding:10px 12px; min-height:44px; border-radius:6px; font-size:14px; text-align:left; }
.mw-header .mw-user-menu nav a:hover,.mw-header .mw-user-menu nav button:hover { background:#edf5ee; }
.mw-header .mw-user-menu nav form { margin:0; border-top:1px solid #dce5dc; }
.mw-sr,.mw-skip { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mw-skip:focus { clip-path:none; width:auto; height:auto; z-index:100; left:12px; top:8px; padding:14px; background:white; color:#12391c; border:2px solid #247b38; }
@media(max-width:1350px) {
 .mw-header .mw-topbar { padding:10px 24px; gap:20px; flex-wrap:wrap; }
 .mw-header .mw-brand { font-size:13px; padding-right:0; }
 .mw-header .mw-primary { gap:4px; }
 .mw-header .mw-primary a { padding:10px 12px; font-size:15px; }
 .mw-header .mw-subnav { gap:22px; }
 .mw-header .mw-subnav a { padding-inline:16px; }
 .mw-header .mw-subnav a+a::before { left:-11px; }
}
@media(max-width:1100px) {
 .mw-header .mw-primary { order:3; width:100%; justify-content:center; flex-wrap:wrap; margin:0; }
 .mw-header .mw-account { margin-left:auto; }
 .mw-header .mw-topbar { row-gap:4px; }
 .mw-header .mw-subnav { justify-content:flex-start; overflow-x:auto; scrollbar-width:thin; }
 .mw-header .mw-subnav a { flex:none; }
}
@media(max-width:640px) {
 .mw-header .mw-topbar { padding:10px 16px; gap:4px 12px; }
 .mw-header .mw-brand { border:0; padding:4px 0; font-size:12px; gap:3px; min-width:72px; }
 .mw-header .mw-brand img { width:42px; height:42px; }
 .mw-header .mw-account { gap:6px; }
 .mw-header .mw-avatar { width:40px; height:40px; }
 .mw-header .mw-primary { gap:0 4px; }
 .mw-header .mw-primary a { font-size:14px; padding:10px; }
 .mw-header .mw-subnav { gap:12px; padding:0 12px; }
 .mw-header .mw-subnav a { font-size:14px; padding:15px 10px; }
 .mw-header .mw-subnav a+a::before { left:-6px; }
 .mw-header[data-product="marketplace"] .mw-subnav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; overflow:visible; }
 .mw-header[data-product="marketplace"] .mw-subnav a { white-space:normal; padding:15px 8px; }
 .mw-header[data-product="marketplace"] .mw-subnav a+a::before { left:0; }
 .mw-header .mw-login { font-size:14px; }
}
@media(max-width:380px) { .mw-header .mw-brand { font-size:12px; } .mw-header .mw-account { gap:3px; } .mw-header .mw-primary a { padding-inline:8px; } }
body:has([data-site-header]) { margin:0; }

/* Reusable stacked brand, including footers on pages with different shells. */
.tg-brand,.landing-footer .tg-brand { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:max-content; color:#12391c; font:650 13px/1.2 Inter,Arial,sans-serif; letter-spacing:.035em; text-decoration:none; white-space:nowrap; }
.tg-brand img,.landing-footer .tg-brand img { display:block; width:48px; height:48px; object-fit:contain; background:transparent; padding:0; border:0; border-radius:0; }
.tg-brand:focus-visible { outline:3px solid #247b38; outline-offset:4px; }
.tg-site-footer { background:#fff; color:#142519; }
.tg-site-footer a { color:#475467; text-decoration:none; }
.tg-site-footer a:hover { color:#006e20; text-decoration:underline; }
.tg-site-footer .tg-brand { margin-bottom:16px; color:#12391c; }
.mw-footer { background:#fff; color:#475467; margin:0; padding:24px max(4vw,24px); align-items:center; border-top:1px solid #d8deda; }
.mw-footer-identity { display:flex; align-items:center; gap:22px; }
.mw-footer a:hover { color:#006e20; }
@media(max-width:800px) { .mw-footer { margin:0; padding:24px; align-items:flex-start; } }

/* Marketplace mobile navigation: short tabs, one account trigger. */
.mw-mobile-tab,.mw-guest-menu,.mw-seller-site-links{display:none}
.mw-header--marketplace .mw-user-menu>summary{min-width:44px;min-height:44px;border-radius:50%}
.mw-header--marketplace .mw-user-menu[open]>summary{outline:2px solid #008a28;outline-offset:3px}
.mw-header--marketplace .mw-user-menu>nav{max-height:calc(100dvh - 96px);overflow:auto}
@media(max-width:900px){
 .mw-header.mw-header--marketplace .mw-primary{display:none}
 .mw-header.mw-header--marketplace .mw-topbar{min-height:72px;flex-wrap:nowrap;padding:6px 16px;gap:12px}
 .mw-header--marketplace .mw-seller-site-links{display:block;border-bottom:1px solid #dce5dc;margin-bottom:4px;padding-bottom:4px}
 .mw-header--marketplace .mw-guest-menu{display:block}
 .mw-header--marketplace .mw-account{gap:12px;margin-left:auto}
 .mw-header--marketplace .mw-account select{font-size:14px!important;min-height:44px;padding:8px 4px!important}
 .mw-header--marketplace .mw-desktop-tab{display:none}
 .mw-header--marketplace .mw-mobile-tab{display:inline}
 .mw-header.mw-header--marketplace .mw-subnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 12px;border-top:0;overflow:visible}
 .mw-header.mw-header--marketplace .mw-subnav a{padding:10px 6px;min-height:44px;font-size:14px;white-space:normal;border-radius:8px;font-weight:500;line-height:1.3}
 .mw-header.mw-header--marketplace .mw-subnav a::before,.mw-header.mw-header--marketplace .mw-subnav a::after{display:none}
 .mw-header.mw-header--marketplace .mw-subnav .mw-current{background:#e8f5eb;color:#006d22;font-weight:700}
}

/* Shared marketplace footer foundation. */
.mw-footer:has(.mw-footer-inner){display:block;margin:0;background:#f8faf9;border-top:1px solid #dce5dc;font:14px/1.5 Inter,Arial,sans-serif}
.mw-footer-inner{max-width:1240px;margin-inline:auto}
.mw-footer .tg-brand img{width:40px;height:40px}
/* Footer information has stable groups rather than scattered inline links. */
.mw-footer:has(.mw-footer-groups){padding:24px 20px;background:#f8faf9}
.mw-footer-brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #dce5dc;color:#475467;font-size:13px}
.mw-footer .mw-footer-brand-row .tg-brand{font-size:12px}
.mw-footer-groups{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-top:20px}
.mw-footer-groups h2{font:600 14px/1.5 Inter,Arial,sans-serif;color:#142519;margin:0 0 8px}
.mw-footer .mw-footer-groups nav{display:flex;flex-direction:column;gap:0}
.mw-footer-groups nav a{display:flex;align-items:center;min-height:44px;padding:6px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}

/* Keep the global navigation in the existing accessible menu on phones. */
.mw-header .mw-user-menu>summary{min-width:44px;min-height:44px;border-radius:50%}
.mw-header .mw-user-menu[open]>summary{outline:2px solid #008a28;outline-offset:3px}
.mw-header .mw-user-menu>nav{max-height:calc(100dvh - 96px);overflow:auto}
@media(max-width:900px){
 .mw-header .mw-primary{display:none}
 .mw-header .mw-topbar{min-height:72px;flex-wrap:nowrap;padding:6px 16px;gap:12px}
 .mw-header .mw-seller-site-links{display:block;border-bottom:1px solid #dce5dc;margin-bottom:4px;padding-bottom:4px}
 .mw-header .mw-guest-menu{display:block}
 .mw-header .mw-account{gap:12px;margin-left:auto}
}
