/* ============================================================
   LAYOUT — shared chrome present on every page:
   container, promo bar, site header, site nav, site footer
   ============================================================ */

@layer layout {

/* --- Container --- */
.container {
  max-width: var(--container-max);
  padding: 0 var(--container-pad);
  margin: 0 auto;
}
.container-center {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

/* ── 1. Promo Bar ── */
.promo-bar {
  background: var(--color-promo-bg);
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-secondary);
}
.promo-bar__text { margin: 0; }
.promo-bar__text a { color: var(--color-secondary); text-decoration: underline; }
.promo-bar__sep { margin: 0 16px; color: var(--color-secondary); }

/* ── 2. Site Header ── */
.site-header { background: #fff; width: 100%; }

.header-util {
  height: 46px;
  background: #fff;
  border-bottom: 0.8px solid var(--color-border);
  display: flex;
  align-items: center;
}
.header-util__inner {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: var(--font-size-base);
  color: var(--color-secondary);
}
.currency-select { display: flex; align-items: center; gap: 4px; }
.currency-select a { color: var(--color-secondary); }
.currency-caret { font-size: 10px; }
.header-auth { display: flex; align-items: center; gap: 4px; color: var(--color-secondary); }
.header-auth a, .header-auth svg, .header-auth span { color: var(--color-secondary); }

.header-body { height: auto; min-height: 122px; display: flex; align-items: center; }
.header-body__inner {
  width: 100%;
  max-width: 1242px;
  margin: 0 auto;
  padding: 24px 40px 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo .logo-icon { display: block; width: 44px; height: 44px; }
.logo-full-mobile { display: none; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo-name { font-family: 'Figtree', Arial, sans-serif; font-weight: 700; font-size: 15px; line-height: 1; color: var(--color-dark); margin-top: 6px; }
.logo-tagline { font-family: 'Figtree', Arial, sans-serif; font-weight: 400; font-size: 10px; font-style: italic; line-height: 1; color: var(--color-secondary); }

/* Mobile burger — hidden on desktop */
.nav-burger { display: none; flex-direction: column; justify-content: space-between; width: 22px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--color-body); transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.search-form {
  flex: 1 1 320px;
  display: flex;
  align-items: stretch;
  background: transparent;
  min-width: 0;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: 0.8px solid var(--color-border);
  border-right: none;
  outline: none;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  color: var(--color-body);
  background: #fff;
  padding: 12.5px 16px;
  height: 50px;
}
.search-input::placeholder { color: var(--color-secondary); }
.search-btn {
  border: 0.8px solid var(--color-border);
  border-left: none;
  background: rgb(220, 220, 220);
  padding: 0 18px;
  color: rgb(94, 94, 94);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}
.search-btn:hover { background: rgb(200, 200, 200); }

.header-icons { display: flex; align-items: center; gap: 24px; color: var(--color-body); flex-shrink: 0; }
.header-icons a { color: var(--color-body); display: flex; align-items: center; }
.header-icons svg { display: block; }

/* Mobile-only dropdown items — hidden at all desktop sizes.
   Must use .nav-list > child selector (specificity 0,2,0) to beat .nav-list li (0,1,1). */
.nav-list > .nav-mobile-search,
.nav-list > .nav-mobile-icons { display: none; }

/* ── 3. Site Nav ── */
.site-nav {
  height: 59px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: 15px;
  position: relative;
}
.nav-list { display: flex; align-items: center; height: 59px; min-width: 0; }
.nav-list li { height: 59px; display: flex; align-items: center; position: relative; flex-shrink: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-body);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 2px;
}
.nav-list a:hover { color: var(--color-dark); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  min-width: 460px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  padding: 28px 50px 52px;
  z-index: 200;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.nav-list li:hover .nav-dropdown,
.nav-list li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}
.nav-dropdown__heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-body);
  margin: 0 0 14px;
  font-family: var(--font-body);
}
.nav-dropdown__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 40px;
  padding: 0;
  list-style: none;
}
.nav-dropdown__list li { display: block; height: auto; }
.nav-dropdown__list a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-body);
  text-decoration: none;
  font-weight: 400;
  transition: color 120ms ease;
}
.nav-dropdown__list a:hover { color: var(--color-dark); }

/* Multi-group dropdown columns */
.nav-groups { display: flex; flex-wrap: wrap; gap: 24px 50px; align-items: flex-start; }
.nav-group { min-width: 160px; }
.nav-group__heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-body);
  margin: 0 0 14px;
  font-family: var(--font-body);
}
.nav-group__list { list-style: none; padding: 0; margin: 0; }
.nav-group__list li { display: block; height: auto; }
.nav-group__list a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-body);
  text-decoration: none;
  font-weight: 400;
  transition: color 120ms ease;
}
.nav-group__list a:hover { color: var(--color-dark); }
/* A dropdown is never wider than the window (the phone menu, <=920px, sets its own width) */
@media (min-width: 921px) {
  .nav-dropdown { max-width: calc(100vw - 32px); }
}
/* "See all topics" under the columns (js/nav-data.js `all`) */
.nav-list .nav-dropdown__all {
  display: block;
  height: auto;
  margin-top: 22px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: var(--font-body);
}
.nav-list .nav-dropdown__all:hover { color: var(--color-dark); }

/* ── 4. Sticky Header ── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  background: #fff;
  border-bottom: 0.8px solid var(--color-border);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sticky-header--visible {
  transform: translateY(0);
}
.sticky-header__inner {
  max-width: 1242px;
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sticky-logo img { display: block; height: 30px; width: auto; }

.sticky-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sticky-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-body);
}

.sticky-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.sticky-nav-list li { height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.sticky-nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14.4px;
  font-family: var(--font-body);
  color: var(--color-body);
  text-decoration: none;
  white-space: nowrap;
}
.sticky-nav-list a:hover { color: var(--color-dark); }

.sticky-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.sticky-icons a {
  display: flex;
  align-items: center;
  color: var(--color-body);
}
.sticky-icons svg { display: block; }

/* Legacy footer rules removed — live TMME footer is styled in
   css/components/site-footer.css. Selectors deleted (verified unused
   on every HTML page): .footer-signup*, .footer-links, .footer-col*,
   .footer-social, .social-icon, .footer-copyright*. */

}
