/* Shared navigation and footer. The color roles follow the published site design. */
#site-header, #site-footer { --sh-axis: min(var(--hl-width, 1320px), calc(100% - 2 * var(--hl-gutter, 4vw))); }
#site-header [hidden], #site-footer [hidden] { display: none !important; }
#site-header .sh-inner, #site-footer .sh-inner { width: var(--sh-axis); margin-inline: auto; }
html { scroll-padding-block-start: 86px; }
#site-header { --sh-bar-height: 76px; position: sticky; top: 0; z-index: 30; color: var(--sot-nav-text); }
#site-header .sh-bar { background: var(--sot-theme-header); border-block-end: 1px solid var(--sot-line); }
#site-header .sh-row { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); min-height: var(--sh-bar-height); }
.sh-icon { display: block; flex: none; width: 20px; height: 20px; }
#site-header :is(a, button), #site-footer :is(a, button) { font-family: inherit; text-decoration: none; }
#site-header button, #site-footer .sh-footer-toggle { appearance: none; cursor: pointer; background: transparent; box-shadow: none; border: 0; border-radius: 0; margin: 0; }
#site-header .sh-brand, #site-footer .sh-brand { display: inline-flex; flex: none; align-items: center; gap: 10px; max-width: 100%; text-decoration: none; }
.sh-logo-plate { display: grid; flex: none; place-items: center; padding: 3px; background: #fff; }
#site-header .sh-logo-plate > img, #site-footer .sh-logo-plate > img { display: block; width: 46px !important; height: auto !important; max-width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; filter: none; object-fit: contain !important; }
.sh-brand-name { display: block; white-space: nowrap; text-align: left; font-size: 21px; line-height: 1.1; font-weight: 760; letter-spacing: -.045em; }
.sh-brand-caption { display: block; margin-top: 3px; font-size: 9px; line-height: 1.2; font-weight: 570; letter-spacing: .012em; }
#site-header .sh-navigation, #site-header .sh-actions { display: flex; align-items: center; }
#site-header .sh-navigation { align-self: stretch; gap: clamp(2px, .6vw, 12px); }
#site-header :is(.sh-nav-link, .sh-language, .sh-account, .sh-icon-button) { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px; color: var(--sot-nav-text) !important; border-radius: 0; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
#site-header .sh-nav-link { position: relative; height: 100%; padding-inline: clamp(6px, .7vw, 14px); }
#site-header .sh-nav-link::after { position: absolute; inset-inline: 7px; inset-block-end: 0; content: ''; height: 3px; background: transparent; }
#site-header .sh-nav-link:is(:hover, [aria-expanded="true"], [aria-current="page"])::after { background: var(--hl-primary); }
#site-header .sh-icon--down, #site-footer .sh-icon--down { width: 15px; height: 15px; }
#site-header [aria-expanded="true"] > .sh-icon--down, #site-footer [aria-expanded="true"] > .sh-icon--down { transform: rotate(180deg); }
#site-header .sh-actions { position: relative; margin-inline-start: auto; gap: 2px; }
#site-header .sh-icon-button { min-width: 44px; padding-inline: 8px; }
#site-header :is(.sh-language, .sh-account, .sh-icon-button):hover { background: color-mix(in srgb, var(--sot-nav-text) 8%, var(--sot-theme-header)); }
#site-header .sh-account { border-inline-start: 1px solid var(--sot-line); margin-inline-start: 4px; }
#site-header #cartIconLink { position: relative; }
#site-header .cart-count { position: absolute; inset-inline-end: 0; inset-block-start: 0; display: grid; place-content: center; height: auto; min-width: 16px; min-height: 16px; padding-inline: 3px; border-radius: 12px; background: var(--hl-action); color: var(--hl-on-action); font: 700 10px/1.2 system-ui, sans-serif; }
#site-header #mobileToggle, #site-header #mobileToggle .sh-icon--close { display: none; }
#site-header .sh-layer, #site-header .sh-account-menu { position: absolute; inset-inline: 0; top: 100%; z-index: 10; background: var(--sot-theme-header); color: var(--sot-nav-text); border-block-end: 2px solid color-mix(in srgb, var(--hl-secondary) 55%, var(--sot-line)); box-shadow: 0 16px 26px color-mix(in srgb, var(--sot-nav-text) 12%, transparent); }
#site-header .sh-layer { max-height: calc(100vh - var(--sh-bar-height)); max-height: calc(100dvh - var(--sh-bar-height)); overflow-y: auto; overscroll-behavior: contain; }
#site-header .sh-mega-grid { display: grid; grid-template-columns: minmax(185px,.8fr) minmax(270px,1.22fr) minmax(180px,.9fr); gap: clamp(24px, 4vw, 80px); padding-block: 32px 36px; }
#site-header .sh-mega-grid section { min-width: 0; }
#site-header .sh-menu-intro { border-inline-end: 1px solid var(--sot-line); padding-inline-end: 22px; }
#site-header .sh-menu-intro h2, #site-header .sh-search-heading { color: var(--sot-nav-text); margin: 0 0 12px; font-weight: 650; font-size: clamp(24px, 2.65vw, 42px); line-height: 1.12; letter-spacing: -.032em; }
#site-header .sh-menu-heading, #site-header .sh-results h3 { color: var(--sot-nav-text); margin: 0 0 10px; font-weight: 725; font-size: 16px; line-height: 1.4; }
#site-header :is(.sh-mega-grid, .sh-mobile, .sh-results, .sh-account-menu) a, #site-header .sh-account-menu button { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 36px; padding: 5px 0; color: var(--sot-nav-text) !important; font-size: 14px; line-height: 1.45; text-align: start; overflow-wrap: anywhere; }
#site-header :is(.sh-mega-grid, .sh-mobile, .sh-results, .sh-account-menu) a:hover, #site-header .sh-account-menu button:hover { text-decoration: underline; text-decoration-color: var(--hl-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#site-header .sh-published-product { gap: 9px; }
#site-header .sh-published-product .sh-icon { width: 17px; height: 17px; }
#site-header .sh-published-product strong { display: block; font-weight: 630; }
#site-header .sh-published-product small { display: -webkit-box; font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#site-header .sh-mega-grid .sh-more { margin-block-start: 8px; font-weight: 680; text-decoration: underline; text-decoration-color: var(--hl-secondary); text-underline-offset: 4px; }
#site-header .sh-mega-grid .sh-feature { position: relative; width: 100%; gap: 11px; margin-block: 2px; padding: 10px 12px; background: color-mix(in srgb, var(--hl-secondary) 9%, var(--sot-theme-header)); }
#site-header .sh-feature small, #site-header .sh-feature strong { display: block; }
#site-header .sh-feature small { font-size: 12px; line-height: 1.45; }
#site-header .sh-feature .sh-icon--arrow { width: 16px; height: 16px; margin-inline-start: auto; }
[dir="rtl"] #site-header .sh-feature .sh-icon--arrow { transform: scaleX(-1); }
#site-header .sh-account-menu { inset-inline: auto 0; top: calc(100% + 8px); min-width: 175px; border: 1px solid var(--sot-line); padding: 8px 16px; }
#site-header .sh-account-menu :is(a,button) { width: 100%; min-height: 40px; }
#site-header .sh-search-inner { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px 12px; padding-block: 28px; }
#site-header .sh-search-heading { margin: 0; font-size: clamp(22px, 2.15vw, 32px); }
#site-header .sh-input-wrap, #site-header .sh-status, #site-header .sh-results { grid-column: 1 / -1; }
#site-header .sh-input-wrap { display: flex; gap: 12px; align-items: center; margin-block-start: 10px; padding: 6px 12px; border: 1px solid var(--sot-line-strong); background: var(--sot-input, var(--sot-surface)); color: var(--sot-input-text); }
#site-header .sh-input-wrap:focus-within { outline: 2px solid var(--hl-focus); outline-offset: 1px; }
#site-header #siteSearchInput { flex: 1; width: 100%; min-width: 0; height: 38px; min-height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none !important; box-shadow: none; background: transparent; font: inherit; color: var(--sot-input-text); }
#site-header .sh-status { margin: 6px 0 0; color: var(--sot-nav-text); font-size: 13px; }
#site-header .sh-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
#site-header .sh-results section { padding-block-start: 12px; }
#site-header .sh-results h3 { margin-block-end: 3px; }
html.sh-drawer-open { overflow: hidden; }
#site-footer { background: var(--sot-theme-footer); color: var(--sot-footer-text); }
#site-footer .sh-footer-body { display: grid; grid-template-columns: minmax(175px, .78fr) minmax(0, 2fr); gap: clamp(35px, 6vw, 90px); padding-block: clamp(38px, 5vw, 74px); }
#site-footer .sh-brand .sh-logo-plate { padding: 5px; }
#site-footer .sh-logo-plate > img { width: 61px !important; }
#site-footer .sh-brand-name { font-size: 24px; }
#site-footer .sh-brand-caption { font-size: 9px; }
#site-footer .sh-footer-brand p { max-width: 35ch; margin: 17px 0 0; font-size: 14px; line-height: 1.6; }
#site-footer .sh-footer-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); align-content: start; gap: 24px; }
#site-footer .sh-footer-group h2 { margin: 0 0 8px; }
#site-footer .sh-footer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; padding: 0; color: var(--sot-footer-text); opacity: 1; font-size: 16px; font-weight: 730; line-height: 1.35; text-align: start; }
#site-footer .sh-footer-toggle:disabled { cursor: default; }
#site-footer .sh-footer-toggle .sh-icon--down { display: none; }
#site-footer .sh-footer-links { display: grid; justify-items: start; }
#site-footer .sh-footer-links a, #site-footer .sh-footer-base nav a { display: inline-flex; align-items: center; color: var(--sot-footer-text) !important; padding-block: 4px; min-height: 33px; font-size: 14px; line-height: 1.45; }
#site-footer :is(.sh-footer-links, .sh-footer-base) a:hover { text-decoration: underline; text-decoration-color: var(--hl-secondary); text-underline-offset: 4px; }
#site-footer .sh-footer-base { border-top: 1px solid color-mix(in srgb, var(--sot-footer-text) 24%, transparent); }
#site-footer .sh-footer-base-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-block: 15px; font-size: 12px; line-height: 1.5; }
#site-footer .sh-footer-base nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
#site-footer .sh-footer-base nav a { min-height: 26px; font-size: 12px; }
@media (max-width: 1050px) {
  html { scroll-padding-block-start: 75px; }
  #site-header { --sh-bar-height: 65px; }
  #site-header .sh-navigation { display: none; }
  #site-header #mobileToggle { display: inline-flex; }
  #site-header #mobileToggle[aria-expanded="true"] .sh-icon--menu { display: none; }
  #site-header #mobileToggle[aria-expanded="true"] .sh-icon--close { display: block; }
  #site-header .sh-mobile nav { display: grid; gap: 12px; padding-block: 16px 28px; }
  #site-header .sh-mobile-group { border-block-start: 1px solid var(--sot-line); padding-block-start: 12px; }
  #site-header .sh-mobile-group .sh-menu-heading { margin-bottom: 3px; }
  #site-header .sh-mobile-group a { min-height: 40px; }
  #site-header #mobileSearchToggle { justify-content: start; gap: 12px; width: 100%; border: 1px solid var(--sot-line-strong); padding-inline: 12px; }
}
@media (max-width: 700px) {
  #site-header .sh-row { gap: 4px; }
  #site-header .sh-actions { gap: 0; }
  #site-header .sh-logo-plate > img { width: 39px !important; }
  #site-header .sh-brand { gap: 6px; }
  #site-header .sh-brand-name { font-size: 17px; }
  #site-header .sh-brand-caption, #site-header .sh-account > span, #site-header #searchToggle { display: none; }
  #site-header .sh-account { min-width: 44px; padding-inline: 5px; margin: 0; border: 0; }
  #site-header .sh-language { padding-inline: 6px; }
  #site-header .sh-language .sh-icon { display: none; }
  #site-header .sh-search-inner { padding-block: 16px; }
  #site-footer .sh-footer-body { grid-template-columns: 1fr; gap: 26px; padding-block: 32px 22px; }
  #site-footer .sh-footer-brand p { max-width: 52ch; }
  #site-footer .sh-footer-groups { display: block; }
  #site-footer .sh-footer-group { border-block-start: 1px solid color-mix(in srgb, var(--sot-footer-text) 26%, transparent); }
  #site-footer .sh-footer-group h2 { margin: 0; }
  #site-footer .sh-footer-toggle { min-height: 48px; font-size: 15px; }
  #site-footer .sh-footer-toggle .sh-icon--down { display: block; }
  #site-footer .sh-footer-links { padding-block-end: 14px; }
  #site-footer .sh-footer-links a { min-height: 39px; }
  #site-footer .sh-footer-base-row { flex-direction: column; align-items: start; padding-block: 16px; }
}
@media (max-width: 385px) {
  #site-header .sh-brand-name { display: none; }
}

html[data-typo-header-nav="on"] body:not(.admin-shell-page) #site-header :is(.sh-nav-link,.sh-account,.sh-language,.sh-mega-grid a,.sh-mobile a,.sh-mobile button,.sh-account-menu a,.sh-account-menu button) {
  font-family: var(--sot-type-header-nav-family) !important;
  font-size: var(--sot-type-header-nav-size) !important;
  color: var(--sot-type-header-nav-color) !important;
  font-weight: var(--sot-type-header-nav-weight) !important;
  line-height: var(--sot-type-header-nav-line) !important;
  letter-spacing: var(--sot-type-header-nav-tracking) !important;
  font-style: var(--sot-type-header-nav-style) !important;
}

html[data-typo-footer-heading="on"] body:not(.admin-shell-page) #site-footer .sh-footer-toggle, html[data-typo-footer-heading="on"] body:not(.admin-shell-page) #site-footer .sh-footer-toggle > span {
  font-family: var(--sot-type-footer-heading-family) !important;
  font-size: var(--sot-type-footer-heading-size) !important;
  color: var(--sot-type-footer-heading-color) !important;
  font-weight: var(--sot-type-footer-heading-weight) !important;
  line-height: var(--sot-type-footer-heading-line) !important;
  letter-spacing: var(--sot-type-footer-heading-tracking) !important;
  font-style: var(--sot-type-footer-heading-style) !important;
}

html[data-typo-footer-body="on"] body:not(.admin-shell-page) #site-footer :is(.sh-footer-links a,.sh-footer-base span,.sh-footer-base a,.sh-footer-brand p) {
  font-family: var(--sot-type-footer-body-family) !important;
  font-size: var(--sot-type-footer-body-size) !important;
  color: var(--sot-type-footer-body-color) !important;
  font-weight: var(--sot-type-footer-body-weight) !important;
  line-height: var(--sot-type-footer-body-line) !important;
  letter-spacing: var(--sot-type-footer-body-tracking) !important;
  font-style: var(--sot-type-footer-body-style) !important;
}

#site-header [data-student-offer][hidden],#site-footer [data-student-offer][hidden]{display:none!important}

#site-footer .sh-footer-group h2, #site-footer .sh-footer-group .sh-footer-toggle {background:transparent!important;box-shadow:none!important}
html:not([data-typo-footer-heading="on"]) #site-footer .sh-footer-toggle, html:not([data-typo-footer-heading="on"]) #site-footer .sh-footer-toggle span {color:var(--sot-footer-text)!important}
html:not([data-typo-footer-body="on"]) #site-footer .sh-footer-brand p, html:not([data-typo-footer-body="on"]) #site-footer .sh-footer-base p {color:var(--sot-footer-text)!important}

/* Compact shell. Existing transparent PSD renditions keep the same identity. */
#site-header {--sh-bar-height:60px;}
#site-header .sh-row {gap:clamp(10px,1.75vw,23px);}
#site-header .sh-logo-plate {padding:1px;background:transparent;}
#site-header .sh-logo-plate > img {width:37px!important;}
#site-header .sh-brand-name {font-size:19px;}
#site-header .sh-brand-caption {font-size:9px;}
#site-footer .sh-footer-body {
  grid-template-columns:minmax(160px,.8fr) minmax(0,2fr);
  gap:clamp(13px,2vw,28px);padding-block:14px 10px;
}
#site-footer .sh-brand .sh-logo-plate {padding:2px;}
#site-footer .sh-logo-plate > img {width:31px!important;}
#site-footer .sh-brand-name {font-size:16px;}
#site-footer .sh-footer-brand p {margin:6px 0 0;line-height:1.38;}
#site-footer .sh-footer-groups {gap:10px 18px;}
#site-footer .sh-footer-group h2 {margin:0;}
#site-footer .sh-footer-toggle {min-height:28px;}
#site-footer .sh-footer-links a {min-height:29px;padding-block:2px;}
#site-footer .sh-footer-base-row {padding-block:4px;}
@media (max-width:700px) {
  #site-header {--sh-bar-height:54px;}
  #site-header .sh-logo-plate > img {width:31px!important;}
  #site-footer .sh-footer-body {grid-template-columns:minmax(0,1fr);gap:8px;padding-block:10px 7px;}
  #site-footer .sh-footer-toggle {min-height:36px;}
  #site-footer .sh-footer-links {padding-block-end:4px;}
  #site-footer .sh-footer-links a {min-height:34px;}
}
