/* ULTRASHOP TEAM HUB — ultramarine background theme
   Place ultrashop-background.webp in /public/images/ (or adapt the URL below).
   Add this stylesheet after the existing website styles.
*/
:root {
  --ultra-navy: #031354;
  --ultra-blue: #1031c5;
  --ultra-glass: rgba(7, 19, 69, .78);
  --ultra-border: transparent;
  --ultra-text: #f6f9ff;
}
html { background: var(--ultra-navy); }
body { position:relative; isolation:isolate; min-height:100vh; background:transparent !important; color:var(--ultra-text); }
body::before {
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background: var(--ultra-navy) url('/images/ultrashop-background.webp') center center / cover no-repeat;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
body::after {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg,rgba(1,8,44,.22) 0%,rgba(2,11,49,.58) 53%,rgba(2,11,49,.74) 100%);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Neutralize opaque main wrappers without disrupting individual brand visuals */
#root, #app, main, .app-shell, .page-shell { background:transparent; }
/* Add this opt-in class to section containers, text panels, tiles and information cards. */
.ultra-glass {
  background:var(--ultra-glass); color:var(--ultra-text);
  border:1px solid var(--ultra-border); border-radius:20px;
  box-shadow:0 12px 36px rgba(0,5,30,.22);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
}
.ultra-glass h1,.ultra-glass h2,.ultra-glass h3,.ultra-glass p {color:inherit;}
.ultra-glass a {color:#d4e5ff;}
.ultra-glass input,.ultra-glass textarea,.ultra-glass select {color:#121d46;}
/* Labels over image must remain readable */
.ultra-image-heading {text-shadow:0 3px 18px rgba(0,0,25,.75);}
@media (max-width:768px) {
  body::before { background-position:50% 22%; }
  body::after {background:linear-gradient(180deg,rgba(2,9,48,.62),rgba(2,9,48,.82));}
  .ultra-glass {border-radius:16px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);}
}
@media (prefers-reduced-transparency:reduce) {.ultra-glass {background:#08184d;backdrop-filter:none;}}

/* Integration with the existing Team Hub components and theme switch. */
:root[data-theme="dark"] { --ink:#f6f9ff; --muted:#c5d3ef; --line:rgba(210,227,255,.22); }
:root .sidebar, :root .topbar { background:rgba(3,13,57,.86); backdrop-filter:blur(18px); }
:root .hero { background:linear-gradient(0deg,rgba(2,9,48,.88),rgba(2,9,48,.05) 85%),url('/images/ultrashop-background.webp') center 25% / cover no-repeat; border-radius:20px; }
:root #ultracard:not([hidden]) { background:transparent; }
:root :is(.card,.step-card,.brand-story,.brand-tabs,.brand-strip,.page-intro,.training-hero,.denim-training-card,.brand-cover-copy,.loyalty-callout,.notice,.empty-state),
:root #ultracard :is(.card,.loyalty-callout,.notice,.page-intro) {
 background:var(--ultra-glass); border:1px solid var(--ultra-border); border-radius:20px;
 box-shadow:0 12px 36px rgba(0,5,30,.18); backdrop-filter:blur(18px);
}
:root :is(.page-intro,.training-hero,.brand-cover-copy,.loyalty-callout,.notice) { padding:clamp(22px,3vw,38px); }
:root .step-card summary { padding:18px 22px; }
:root .step-body { padding:0 22px 25px 68px; }
:root :is(.quick-card,.news-preview,.fact-card) { padding:24px; }
:root .brand-strip { padding:18px; }
:root .brand-tabs { padding:12px 20px; }
:root .latest-news-link { background:rgba(3,13,57,.5); border-radius:12px; padding:14px; }
:root .section-heading, :root .footer-note { color:#d4e2fb; }
:root[data-theme="dark"] :is(.news-copy p,.brand-story-copy p,.quick-card p,.page-intro > p:not(.eyebrow),.step-body,.fact-card p,.responsibility-list li,.loyalty-callout p,.notice,.section-heading p,.footer-note) { color:#c5d3ef; }
:root[data-theme="light"] { --ultra-glass:rgba(247,250,255,.94); --ultra-border:rgba(255,255,255,.6); }
:root[data-theme="light"] body::after { background:rgba(226,236,255,.80); }
:root[data-theme="light"] .sidebar, :root[data-theme="light"] .topbar { background:rgba(247,250,255,.94); }
:root[data-theme="light"] .latest-news-link { background:rgba(240,245,255,.9); }
:root[data-theme="light"] .section-heading, :root[data-theme="light"] .footer-note { color:#344552; }
:root[data-theme="light"] .training-hero { color:#1b2936; }
:root[data-theme="light"] .training-hero .lede { color:#536574; }
@media(max-width:760px) {
 :root :is(.card,.step-card,.brand-story,.brand-tabs,.brand-strip,.page-intro,.training-hero,.denim-training-card) { border-radius:16px; }
 :root .training-hero { padding:22px; }
 :root .hero { background-position:50% 20%; }
 :root .step-body { padding-left:22px; }
}
:root .hero { background-position:center top; }
:root[data-theme="light"] .training-hero p { color:#536574; }
:root[data-theme="light"] .training-hero .eyebrow { color:#235989; }
:root[data-theme="light"] .outline-button { color:#235989; border-color:#6b8dad; }
:root[data-theme="light"] .nav-link { color:#52647c; }
:root[data-theme="light"] .nav-link[aria-current="page"], :root[data-theme="light"] .theme-toggle { color:#142c54; }
:root[data-theme="light"] .denim-training-card { background:var(--ultra-glass); }
/* Keep the square artwork as one unified non-repeating backdrop across all viewports. */
body::before {
  background-size: max(100%, 121vh) auto;
  background-position: center calc(max(100vw, 121vh) * -0.17);
  background-repeat: no-repeat;
}
:root .hero {
 min-height:clamp(576px,calc(90svh - 94px),918px);
 background-color:var(--ultra-navy);
 background-image:linear-gradient(90deg,#031354 0%,rgba(3,19,84,.94) 28%,rgba(3,19,84,.24) 66%,transparent 100%),url('/images/ultrashop-background.webp');
 background-size:100% 100%,auto 100%;
 background-position:center,right center;
 background-repeat:no-repeat;
}
:root .hero h1 { font-size:clamp(56px,6.5vw,106px); max-width:11ch; }
@media(max-width:760px) {
 :root .hero { min-height:0; padding:66vw 22px 28px;
 background-image:linear-gradient(180deg,transparent 30%,rgba(3,19,84,.78) 60%,#031354 82%),url('/images/ultrashop-background.webp');
 background-size:100% 100%,100% auto; background-position:center,center top;
 }
 :root .hero h1 { font-size:clamp(40px,10vw,60px); }
}
/* Clear glass: retain the artwork's shapes under a subtle translucent tint. */
:root {
 --ultra-glass:rgba(5,18,64,.32);
 --ultra-border:transparent;
 --ultra-glass-filter:blur(5px) saturate(140%);
 --ultra-glass-shadow:0 12px 32px rgba(0,5,30,.18);
 --ultra-glass-raised:rgba(5,18,64,.64);
 --ultra-glass-raised-filter:blur(16px) saturate(140%);
 --ultra-glass-inset:rgba(3,14,54,.22);
 --ultra-glass-hover:rgba(62,126,235,.14);
 --ultra-glass-selected:linear-gradient(135deg,rgba(27,86,228,.24),rgba(5,18,64,.36));
 --ultra-glass-selected-border:rgba(154,217,255,.38);
 --ultra-glass-overlay:rgba(1,7,30,.35);
}
body::after { background:linear-gradient(180deg,rgba(1,8,44,.08),rgba(2,11,49,.20)); }
:root[data-theme="light"] { --ultra-glass:rgba(247,250,255,.62); --ultra-border:transparent; }
:root[data-theme="light"] body::after { background:rgba(226,236,255,.16); }
:root :is(.ultra-glass,.card,.step-card,.brand-story,.brand-tabs,.brand-strip,.page-intro,.training-hero,.denim-training-card,.brand-cover-copy,.loyalty-callout,.notice,.empty-state),
:root #ultracard :is(.card,.loyalty-callout,.notice,.page-intro) {
 background:var(--ultra-glass);
 border-color:var(--ultra-border);
 -webkit-backdrop-filter:var(--ultra-glass-filter);
 backdrop-filter:var(--ultra-glass-filter);
 box-shadow:var(--ultra-glass-shadow);
}
:root .sidebar, :root .topbar { background:rgba(3,13,57,.40); -webkit-backdrop-filter:blur(7px) saturate(140%); backdrop-filter:blur(7px) saturate(140%); }
:root[data-theme="light"] .sidebar, :root[data-theme="light"] .topbar { background:rgba(247,250,255,.66); }
:root .latest-news-link { background:rgba(3,13,57,.18); }
:root[data-theme="light"] .latest-news-link { background:rgba(240,245,255,.35); }
:root[data-theme="dark"] :is(.news-copy p,.brand-story-copy p,.quick-card p,.step-body,.fact-card p,.responsibility-list li,.loyalty-callout p,.notice,.section-heading p,.footer-note) { color:#e0eaff; }
@media(prefers-reduced-transparency:reduce) {
 :root {
  --ultra-glass:#08184d;
  --ultra-glass-filter:none;
  --ultra-glass-raised:#08184d;
  --ultra-glass-raised-filter:none;
  --ultra-glass-inset:#07163f;
  --ultra-glass-hover:#10295d;
  --ultra-glass-selected:#123574;
 }
 :root[data-theme="light"] { --ultra-glass:#f5f8ff; }
}
:root[data-theme="dark"] .nav-link, :root[data-theme="dark"] .theme-toggle { color:#d5e4ff; }
:root[data-theme="dark"] .nav-link[aria-current="page"] { color:#fff; }
:root[data-theme="dark"] .eyebrow { color:#bfd7ff; }
/* Baldinini is now transparent vector artwork; no raster crop or blending. */
:root .brand-logo-tile--baldinini img,
:root .brand-tab--baldinini img,
:root .brand-story-mark.is-baldinini img { object-fit:contain; mix-blend-mode:normal; filter:brightness(0) invert(1); }
:root[data-theme="light"] .brand-logo-tile--baldinini img,
:root[data-theme="light"] .brand-tab--baldinini img,
:root[data-theme="light"] .brand-story-mark.is-baldinini img { mix-blend-mode:normal; filter:brightness(0); }

/* Flat outline navigation matching the reference. */
:root .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  text-decoration: none;
}
:root .nav-icon,
:root .nav-icon-glass,
:root .nav-icon-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
:root .nav-icon {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
  color: inherit !important;
}
:root .nav-icon-glow { display: none; }
:root .nav-icon-glyph {
  width: 22px !important;
  height: 22px !important;
  color: inherit;
  stroke-width: 1.65;
}
:root .nav-icon-glyph [fill="currentColor"][fill-opacity] { fill: none; }
:root .nav-link::after {
  height: 1px;
  background: #69bfff;
}
:root .nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) {
  :root .nav-link { gap: 4px; }
  :root .nav-icon,
  :root .nav-icon-glyph { width: 20px !important; height: 20px !important; }
  :root .nav-icon { flex-basis: 20px; }
}

/* Keep search above content stacking contexts created by glass filters. */
:root .topbar {
  position: relative;
  z-index: 100;
  overflow: visible;
}

:root .site-search-wrap {
  z-index: 1;
}

:root .site-search-results {
  z-index: 2;
}

/* Video replaces the hero artwork over a translucent glass surface. */
:root .content { padding-top: 14px; }
body::before {
  background-size: max(100%, 121vh) auto;
  background-position: center calc(max(100vw, 121vh) * -0.17);
  background-repeat: no-repeat;
}
:root #overview .hero {
  min-height: clamp(576px, calc(90svh - 94px), 918px);
  margin-bottom: clamp(96px, 13svh, 150px);
  align-items: center;
  padding: clamp(40px, 4.7vw, 76px);
  border-radius: 25px;
  background-image: none;
  background-color: var(--ultra-glass);
  border-color: var(--ultra-border);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0,5,30,.18);
  isolation: isolate;
}
:root .hero-video {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(306px, 42%, 700px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}
:root #overview .hero-copy { max-width: 54%; }
:root #overview .hero .eyebrow {
  font-size: clamp(11px, .9vw, 13.5px);
  letter-spacing: .24em;
}
:root #overview .hero h1 {
  max-width: 11ch;
  margin: 18px 0 22px;
  font-size: clamp(56px, 6.5vw, 106px);
  line-height: .95;
  letter-spacing: -.02em;
}
:root #overview .hero .lede {
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 20.5px);
  line-height: 1.58;
  color: #dce8ff;
}
@media (max-width: 760px) {
  :root .hero-video { width: 100%; height: 50svh; top: 0; object-position: center; }
  :root #overview .hero {
    min-height: calc(90svh - 84px);
    align-items: flex-end;
    padding: 51svh 22px 30px;
    border-radius: 20px;
  }
  :root #overview .hero-copy { max-width: 100%; }
  :root #overview .hero h1 { font-size: clamp(41px, 10.8vw, 61px); margin: 12px 0 14px; }
  :root #overview .hero .lede { font-size: 15px; }
}

/* Three-tier luxury header: Top utility bar (socials, hotline, AI & language), main search & identity, and navigation below. */
:root .site-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--ultra-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* 1. Header Topbar */
:root .header-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 4px clamp(16px, 3.5vw, 44px);
  background: rgba(3, 10, 24, .7);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 11px;
  color: #9cb5d6;
}
:root .header-topbar-left,
:root .header-topbar-center,
:root .header-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
:root .header-topbar-left {
  flex: 0 1 auto;
}
:root .header-topbar-center {
  flex: 0 0 auto;
}
:root .header-topbar-right {
  flex: 0 0 auto;
  gap: 12px;
}
:root .topbar-social-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #7b94b5;
  letter-spacing: .02em;
  white-space: nowrap;
}
:root .topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}
:root .topbar-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #c7dcfa;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}
:root .topbar-social-link svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}
:root .topbar-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .25);
}
:root .topbar-social-link:hover svg {
  transform: scale(1.1);
}
:root .topbar-social-link--instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, .18), rgba(131, 58, 180, .18));
  border-color: rgba(225, 48, 108, .45);
  color: #ff8ab2;
  box-shadow: 0 2px 10px rgba(225, 48, 108, .2);
}
:root .topbar-social-link--facebook:hover {
  background: rgba(24, 119, 242, .18);
  border-color: rgba(24, 119, 242, .45);
  color: #87baff;
  box-shadow: 0 2px 10px rgba(24, 119, 242, .2);
}
:root .topbar-social-link--youtube:hover {
  background: rgba(255, 0, 0, .16);
  border-color: rgba(255, 60, 60, .45);
  color: #ff8585;
  box-shadow: 0 2px 10px rgba(255, 0, 0, .2);
}
:root .topbar-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(18, 135, 200, .12);
  border: 1px solid rgba(105, 191, 255, .28);
  color: #8ad8ff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .18s ease;
}
:root .topbar-store-link:hover {
  background: rgba(18, 135, 200, .24);
  border-color: #69bfff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(105, 191, 255, .3);
}
:root .topbar-store-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: topbarDotPulse 2s infinite ease-in-out;
}
@keyframes topbarDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}
:root .topbar-ext-icon {
  width: 10px;
  height: 10px;
  opacity: .8;
}
:root .topbar-sep {
  color: rgba(255, 255, 255, .2);
  font-weight: 300;
}
:root .topbar-brand-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e2eeff;
}
:root .topbar-center-title {
  color: #b0c9e8;
  font-weight: 500;
}
:root .topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cde2fe;
  text-decoration: none;
  font-weight: 600;
  transition: color .18s ease;
}
:root .topbar-phone svg {
  width: 12px;
  height: 12px;
  color: #69bfff;
}
:root .topbar-phone:hover {
  color: #fff;
}
:root .topbar-ultrik-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 75, 140, .45), rgba(15, 40, 85, .55));
  border: 1px solid rgba(135, 195, 255, .3);
  color: #d8eeff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
:root .topbar-ultrik-btn:hover {
  background: linear-gradient(135deg, rgba(40, 100, 185, .6), rgba(20, 55, 115, .7));
  border-color: #69bfff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(105, 191, 255, .35);
}
:root .ultrik-sparkle {
  font-size: 11px;
  filter: drop-shadow(0 0 4px #69bfff);
}

/* 2. Main Identity & Search Row */
:root .header-upper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 36px);
  min-height: 64px;
  padding: 10px clamp(16px, 3.5vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
:root .header-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
:root .header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
:root .header-logo img {
  display: block;
  width: 172px;
  height: 40px;
  object-fit: contain;
  filter: invert(1);
  transition: opacity .18s ease;
}
:root .header-logo:hover img {
  opacity: .92;
}
:root[data-theme="light"] .header-logo img {
  filter: none;
}
:root .header-portal-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .12em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(105, 191, 255, .1);
  border: 1px solid rgba(105, 191, 255, .28);
  color: #8ad8ff;
  text-transform: uppercase;
}
:root .header-upper .site-search-wrap {
  position: relative;
  flex: 1 1 540px;
  width: 100%;
  max-width: 580px;
  min-width: 220px;
  margin: 0 auto;
}
:root .header-upper .site-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 21px;
  background: rgba(8, 20, 42, .72);
  border: 1px solid rgba(135, 185, 240, .24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3), 0 2px 12px rgba(0, 0, 0, .15);
  color: #b5cbe8;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
:root .header-upper .site-search-field:focus-within {
  border-color: #69bfff;
  background: rgba(9, 24, 52, .92);
  box-shadow: 0 0 0 3px rgba(105, 191, 255, .18), 0 6px 24px rgba(0, 10, 30, .4);
}
:root .header-upper .site-search-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #69bfff;
  opacity: .85;
}
:root .header-upper .site-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f6ff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.4;
}
:root .header-upper .site-search-field input::placeholder {
  color: #728cae;
  opacity: 1;
  font-weight: 400;
}
:root .site-search-clear {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #a8c2e6;
  cursor: pointer;
  transition: all .15s ease;
}
:root .site-search-clear:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
:root .site-search-clear svg {
  width: 10px;
  height: 10px;
}
:root .header-upper .site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: min(420px, 68vh);
  border-radius: 16px;
  border: 1px solid rgba(135, 195, 255, .28);
  background: rgba(7, 18, 40, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px rgba(0, 5, 20, .6);
  overflow: auto;
}
:root .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
:root .header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d0e4ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
}
:root .header-action-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #72bbfb;
}
:root .header-action-btn:hover {
  background: rgba(145, 202, 255, .12);
  border-color: rgba(105, 191, 255, .4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
:root .header-action-btn--store {
  background: linear-gradient(135deg, rgba(20, 80, 160, .25), rgba(10, 45, 100, .35));
  border-color: rgba(105, 191, 255, .32);
  color: #8ad8ff;
}
:root .header-action-btn--store:hover {
  background: linear-gradient(135deg, rgba(20, 95, 190, .4), rgba(15, 60, 130, .5));
  border-color: #69bfff;
  color: #fff;
  box-shadow: 0 0 16px rgba(105, 191, 255, .35);
}
:root .header-action-arrow {
  width: 10px;
  height: 10px;
  margin-left: -2px;
  opacity: .8;
}

/* 3. Hero Channels Strip */
:root .hero-channels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
:root .hero-channels-label {
  font-size: 11px;
  font-weight: 550;
  color: #8fa7c7;
  letter-spacing: .02em;
  margin-right: 4px;
}
:root .hero-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d2e4ff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
}
:root .hero-channel-tag svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
:root .hero-channel-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
:root .hero-channel-tag--store {
  background: rgba(18, 135, 200, .15);
  border-color: rgba(105, 191, 255, .35);
  color: #8ad8ff;
}
:root .hero-channel-tag--store:hover {
  background: rgba(18, 135, 200, .3);
  border-color: #69bfff;
  box-shadow: 0 0 14px rgba(105, 191, 255, .4);
}
:root .hero-channel-tag--instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, .2), rgba(131, 58, 180, .2));
  border-color: rgba(225, 48, 108, .5);
  color: #ff94b8;
}
:root .hero-channel-tag--facebook:hover {
  background: rgba(24, 119, 242, .2);
  border-color: rgba(24, 119, 242, .5);
  color: #87baff;
}
:root .hero-channel-tag--youtube:hover {
  background: rgba(255, 0, 0, .18);
  border-color: rgba(255, 60, 60, .5);
  color: #ff8a8a;
}
:root .channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
:root .header-lower {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px clamp(14px, 2.5vw, 40px) 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
:root .header-lower nav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
:root .header-lower .nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
:root .header-lower .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #d5e4ff;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
:root .header-lower .nav-link:hover {
  color: #fff;
  background: rgba(145, 202, 255, .08);
}
:root .header-lower .nav-link[aria-current="page"] {
  color: #fff;
}
:root .header-lower .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #69bfff;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .18s ease, transform .18s ease;
  border-radius: 2px;
}
:root .header-lower .nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 8px rgba(105, 191, 255, .7);
}
@media (max-width: 1120px) {
  :root .header-topbar-center {
    display: none;
  }
  :root .header-action-btn span {
    display: none;
  }
  :root .header-action-btn {
    padding: 0 10px;
  }
}
@media (max-width: 860px) {
  :root .topbar-social-handle {
    display: none;
  }
  :root .header-upper {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  :root .header-upper .site-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 4px;
  }
  :root .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  :root .topbar-social-label {
    display: none;
  }
  :root .header-topbar {
    padding: 4px 10px;
    min-height: 34px;
  }
  :root .header-brand-block .header-portal-pill {
    display: none;
  }
  :root .header-logo img {
    width: 135px;
    height: 32px;
  }
  :root .header-lower {
    padding: 6px 6px 8px;
  }
  :root .header-lower .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
  }
  :root .header-lower .nav-link {
    min-height: 34px;
    padding: 3px 6px;
    font-size: 10.5px;
    gap: 4px;
  }
}

/* Light theme support for topbar and header */
:root[data-theme="light"] .header-topbar {
  background: rgba(240, 246, 254, .92);
  border-bottom-color: rgba(18, 50, 90, .1);
  color: #4b6282;
}
:root[data-theme="light"] .topbar-social-label {
  color: #627b9c;
}
:root[data-theme="light"] .topbar-social-link {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(30, 70, 120, .14);
  color: #1e3a60;
}
:root[data-theme="light"] .topbar-store-link {
  background: rgba(18, 135, 200, .1);
  border-color: rgba(18, 135, 200, .3);
  color: #0b689e;
}
:root[data-theme="light"] .topbar-brand-badge {
  background: rgba(18, 50, 90, .08);
  border-color: rgba(18, 50, 90, .15);
  color: #1a365d;
}
:root[data-theme="light"] .topbar-center-title {
  color: #3b5375;
}
:root[data-theme="light"] .topbar-phone {
  color: #13467e;
}
:root[data-theme="light"] .topbar-ultrik-btn {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(59, 130, 246, .35);
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 35, 60, .08);
}
:root[data-theme="light"] .header-portal-pill {
  background: rgba(18, 135, 200, .1);
  border-color: rgba(18, 135, 200, .3);
  color: #0d6194;
}
:root[data-theme="light"] .header-upper .site-search-field {
  background: #ffffff;
  border-color: rgba(40, 80, 130, .2);
  box-shadow: 0 2px 8px rgba(15, 35, 60, .06);
  color: #0f172a;
}
:root[data-theme="light"] .header-upper .site-search-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15), 0 4px 16px rgba(15, 35, 60, .12);
}
:root[data-theme="light"] .header-upper .site-search-field input {
  color: #0f172a;
}
:root[data-theme="light"] .header-upper .site-search-field input::placeholder {
  color: #64748b;
}
:root[data-theme="light"] .header-upper .site-search-results {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(40, 80, 130, .2);
  box-shadow: 0 18px 45px rgba(15, 35, 60, .18);
}
:root[data-theme="light"] .header-action-btn {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(30, 70, 120, .18);
  color: #1e3a60;
}
:root[data-theme="light"] .header-action-btn:hover {
  background: #fff;
  border-color: #2563eb;
  color: #0f172a;
}
:root[data-theme="light"] .header-action-btn--store {
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .3);
  color: #1d4ed8;
}
:root[data-theme="light"] .hero-channels-label {
  color: #4b6282;
}
:root[data-theme="light"] .hero-channel-tag {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(30, 70, 120, .16);
  color: #1e3a60;
}
:root[data-theme="light"] .hero-channel-tag--store {
  background: rgba(18, 135, 200, .12);
  border-color: rgba(18, 135, 200, .35);
  color: #0b689e;
}

/* One continuous brand cover with rounding only at its outer perimeter. */
:root .brand-cover-layout {
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ultra-border);
  border-radius: 20px;
  background: var(--ultra-glass);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 28px rgba(0,5,30,.14);
}
:root .brand-cover-layout .brand-cover {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
:root .brand-cover-layout .brand-cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Training introduction shares one perimeter with its cover image. */
:root .training-hero {
  padding: 0;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ultra-border);
  border-radius: 20px;
}
:root .training-hero-copy {
  align-self: center;
  padding: clamp(24px, 3vw, 46px);
}
:root .training-hero .training-cover {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root .training-cover img {
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  :root .training-cover img { height: auto; }
}

:root .download-button,
:root .outline-button { border-radius: 10px; }

/* Rounded disclosure and glass search results. */
:root .campaign-mechanics {
  border-radius: 16px;
  overflow: hidden;
  background: var(--ultra-glass);
  border-color: var(--ultra-border);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
}
:root .campaign-mechanics summary { border-radius: 15px; }
:root .campaign-mechanics[open] summary { border-radius: 15px 15px 0 0; }
:root .campaign-mechanics summary::after { border-radius: 7px; }
:root .campaign-mechanics summary:focus-visible {
  outline: 2px solid #91caff;
  outline-offset: -3px;
}
:root .campaign-mechanics-figure { border-radius: 12px; }
:root .site-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(210, 227, 255, .25);
  border-radius: 14px;
  background: rgba(4, 15, 56, .68);
  transition: all .18s ease;
}
:root .site-search-field:focus-within {
  border-color: #82baff;
  box-shadow: 0 0 0 3px rgba(100, 170, 255, .18);
  background: rgba(5, 18, 64, .92);
}
:root .site-search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: .8;
}
:root .site-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf2f8;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
}
:root .site-search-field input::placeholder {
  color: #8fa5c4;
  opacity: 1;
}
:root .site-search-results {
  border-radius: 18px;
  border-color: var(--ultra-border);
  background: linear-gradient(155deg, rgba(8, 24, 76, .96), rgba(3, 11, 48, .98));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 20px 50px rgba(0, 4, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #436399 transparent;
}
:root .search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #d8e6f8;
  text-align: left;
  cursor: pointer;
  transition: all .14s ease;
}
:root .search-result:last-child { margin-bottom: 0; }
:root .search-result:is(:hover, :focus-visible, .is-active) {
  outline: none;
  background: rgba(78, 137, 246, .22);
  border-color: rgba(135, 185, 255, .35);
  transform: translateX(2px);
}
:root .search-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:root .search-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(90, 145, 255, .18);
  color: #9ac7ff;
  border: 1px solid rgba(140, 190, 255, .25);
  flex-shrink: 0;
}
:root .search-category-badge--brand { background: rgba(168, 85, 247, .2); color: #d8b4fe; border-color: rgba(192, 132, 252, .3); }
:root .search-category-badge--academy { background: rgba(56, 189, 248, .2); color: #7dd3fc; border-color: rgba(56, 189, 248, .3); }
:root .search-category-badge--store { background: rgba(34, 197, 94, .2); color: #86efac; border-color: rgba(74, 222, 128, .3); }
:root .search-category-badge--bestseller { background: rgba(245, 158, 11, .2); color: #fde047; border-color: rgba(251, 191, 36, .3); }
:root .search-result strong {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root .search-result-arrow {
  color: #7d9dc9;
  font-size: 12px;
  opacity: .7;
}
:root .search-result span.search-result-desc {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9cb5d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root .search-result mark {
  background: rgba(255, 215, 0, .28);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}
:root .search-empty-box {
  padding: 16px 14px;
  text-align: center;
}
:root .search-empty-box p {
  margin: 0 0 12px;
  color: #a7bedc;
  font-size: 13px;
  line-height: 1.5;
}
:root .search-ask-ultrik {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(140, 190, 255, .35);
  border-radius: 12px;
  background: rgba(60, 115, 230, .3);
  color: #e5f1ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
:root .search-ask-ultrik:hover {
  background: rgba(80, 140, 255, .48);
  border-color: #88c0ff;
  color: #fff;
  transform: translateY(-1px);
}
:root[data-theme="light"] .site-search-field {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(50, 90, 140, .22);
}
:root[data-theme="light"] .site-search-field input { color: #122035; }
:root[data-theme="light"] .site-search-field input::placeholder { color: #6d8299; }
:root[data-theme="light"] .site-search-results {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(50, 90, 140, .22);
  box-shadow: 0 16px 40px rgba(15, 35, 60, .16);
}
:root[data-theme="light"] .language-menu summary {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(50, 90, 140, .22);
  color: #122035;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 8px rgba(15, 35, 60, .05);
}
:root[data-theme="light"] .language-menu summary:hover,
:root[data-theme="light"] .language-menu[open] summary {
  background: #fff;
  border-color: #3b82f6;
  color: #0b1a30;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14), 0 4px 14px rgba(15, 35, 60, .1);
}
:root[data-theme="light"] .language-globe-icon { color: #3b82f6; }
:root[data-theme="light"] .language-chevron { color: #64748b; }
:root[data-theme="light"] .language-options {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(50, 90, 140, .22);
  box-shadow: 0 16px 40px rgba(15, 35, 60, .16);
}
:root[data-theme="light"] .language-options button { color: #334155; }
:root[data-theme="light"] .language-options button .lang-tag {
  display: none !important;
}
:root[data-theme="light"] .language-options button:hover {
  background: rgba(59, 130, 246, .09);
  border-color: rgba(59, 130, 246, .2);
  color: #0f172a;
}
:root[data-theme="light"] .language-options button[aria-pressed="true"] {
  background: rgba(59, 130, 246, .14);
  border-color: rgba(59, 130, 246, .35);
  color: #1d4ed8;
}
:root[data-theme="light"] .language-options button[aria-pressed="true"] .lang-tag {
  background: #2563eb;
  color: #fff;
}
:root[data-theme="light"] .search-result strong { color: #122035; }
:root[data-theme="light"] .search-result span.search-result-desc { color: #49637e; }
:root[data-theme="light"] .search-result:is(:hover, :focus-visible, .is-active) {
  background: rgba(40, 120, 240, .12);
  border-color: rgba(40, 120, 240, .28);
}
:root[data-theme="light"] .search-empty-box p { color: #4b6480; }
:root[data-theme="light"] .search-ask-ultrik {
  background: rgba(40, 110, 230, .14);
  color: #174291;
  border-color: rgba(40, 110, 230, .3);
}

/* Compact course introduction: the portrait no longer dictates card height. */
@media (min-width: 761px) {
  :root .training-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  :root .training-hero-copy { padding: clamp(24px, 2.5vw, 36px); }
  :root .training-hero h1 {
    font-size: clamp(32px, 3.3vw, 46px);
    line-height: 1.12;
    max-width: 600px;
  }
  :root .training-hero .training-cover {
    position: relative;
    min-height: 380px;
  }
  :root .training-hero .training-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}



/* Custom language dropdown: luxury glass capsule matching search & header */
:root .language-menu {
  position: relative;
  display: inline-flex;
}
:root .language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  height: 40px;
  padding: 0 13px 0 11px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border: 1px solid rgba(210, 227, 255, .25);
  border-radius: 14px;
  background: rgba(4, 15, 56, .68);
  color: #d8e6f8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}
:root .language-menu summary::-webkit-details-marker {
  display: none;
}
:root .language-globe-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #89b8f8;
  transition: transform .25s ease, color .2s ease;
}
:root #language-current {
  font-weight: 700;
  letter-spacing: .08em;
  color: inherit;
}
:root .language-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #7d9dc9;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), color .2s ease;
}
:root .language-menu summary:hover {
  background: rgba(14, 34, 96, .85);
  border-color: #82baff;
  box-shadow: 0 0 0 3px rgba(100, 170, 255, .16), 0 4px 18px rgba(0, 10, 45, .3);
  color: #fff;
  transform: translateY(-1px);
}
:root .language-menu summary:hover .language-globe-icon,
:root .language-menu[open] .language-globe-icon {
  color: #aadaff;
  transform: rotate(15deg);
}
:root .language-menu summary:hover .language-chevron {
  color: #b5d5ff;
}
:root .language-menu[open] summary {
  background: rgba(16, 38, 105, .92);
  border-color: #91caff;
  box-shadow: 0 0 0 3px rgba(100, 170, 255, .22), 0 6px 20px rgba(0, 8, 40, .35);
  color: #fff;
}
:root .language-menu[open] .language-chevron {
  transform: rotate(180deg);
  color: #91caff;
}
:root .language-menu summary:focus-visible {
  outline: none;
  border-color: #91caff;
  box-shadow: 0 0 0 3px rgba(130, 190, 255, .35);
}
:root .language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 168px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--ultra-border);
  background: linear-gradient(155deg, rgba(8, 24, 76, .96), rgba(3, 11, 48, .98));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0, 4, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  animation: ultraLangDrop .18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@keyframes ultraLangDrop {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
:root .language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: #c9dcfa;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all .14s ease;
}
:root .language-options button .lang-title {
  color: inherit;
}
:root .language-options button .lang-tag {
  display: none !important;
}
:root .language-options button:hover {
  background: rgba(80, 140, 255, .18);
  border-color: rgba(135, 185, 255, .25);
  color: #fff;
  transform: translateX(2px);
}
:root .language-options button:hover .lang-tag {
  background: rgba(100, 165, 255, .25);
  color: #d6e8ff;
}
:root .language-options button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(56, 128, 255, .32), rgba(30, 80, 200, .32));
  border-color: rgba(135, 185, 255, .4);
  color: #fff;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
:root .language-options button[aria-pressed="true"] .lang-tag {
  background: #3b82f6;
  color: #fff;
}
:root .language-menu :focus-visible { outline: 2px solid #91caff; outline-offset: 2px; }
@media (max-width:760px) { :root .language-options { right: auto; left: 0; } }

/* Floating rounded header; dropdowns remain free to extend outside it. */
:root .site-header {
  margin: 12px clamp(12px, 1.5vw, 24px) 0;
  border: 1px solid var(--ultra-border);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 28px rgba(0,5,30,.12);
}
@media (max-width: 760px) {
  :root .site-header { margin: 8px 8px 0; border-radius: 16px; }
}

/* Align the header perimeter with the content cards below. */
:root .site-header {
  width: calc(min(100%, 1584px) - 2 * clamp(18px, 3vw, 48px));
  margin: 12px auto 0;
}
@media (max-width: 760px) {
  :root .site-header { width: calc(100% - 30px); margin: 8px auto 0; }
}

/* Clear expand/collapse chevron without a rotating button frame. */
:root .campaign-mechanics summary::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin: 0 5px 5px 12px;
  border: 0;
  border-right: 2px solid #b9dcff;
  border-bottom: 2px solid #b9dcff;
  border-radius: 0;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
:root .campaign-mechanics[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: -4px;
}
@media (prefers-reduced-motion: reduce) {
  :root .campaign-mechanics summary::after { transition: none; }
}

/* Denim training preview, integrated into the shared glass card. */
:root .denim-training-card {
  display: grid;
  grid-template-columns: clamp(190px, 20vw, 270px) minmax(0,1fr);
  grid-template-rows: 1fr auto;
  gap: 18px 30px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}
:root .denim-training-image {
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
:root .denim-training-card .denim-training-copy {
  grid-column: 2;
  align-self: center;
  padding: 28px 30px 0 0;
  max-width: none;
}
:root .denim-training-card .course-actions {
  grid-column: 2;
  padding: 0 30px 28px 0;
}
@media (max-width: 760px) {
  :root .denim-training-card { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; }
  :root .denim-training-image {
    grid-column: 1; grid-row: 1;
    height: 260px; min-height: 0; object-position: center 45%;
  }
  :root .denim-training-card .denim-training-copy { grid-column: 1; padding: 24px; }
  :root .denim-training-card .course-actions { grid-column: 1; padding: 0 24px 24px; }
}

/* Consistent rounded corners across standalone surfaces and controls. */
:root { --radius: 20px; }
:root :is(.download-button, .outline-button, .text-link, .brand-story-more) {
  border-radius: 10px;
}
:root .denim-training-card .course-actions :is(.download-button, .outline-button) {
  border-radius: 10px;
}
:root :is(.card, .step-card, .brand-story, .brand-tabs, .brand-strip,
  .page-intro, .loyalty-callout, .notice, .empty-state, .news-article) {
  border-radius: 20px;
}
:root :is(.news-article, .step-card) { overflow: hidden; }
:root :is(.brand-tab, .brand-logo-tile, .empty-mark, .step-index,
  .loyalty-rate, .brand-chip, .news-period, .campaign-mechanics-highlight,
  .news-preview .empty-copy) { border-radius: 10px; }
:root .step-toggle { border-radius: 50%; }
:root .certificate-values span { border-radius: 99px; }
:root .latest-news-thumb { border-radius: 10px; overflow: hidden; }
:root .step-card summary { border-radius: 19px; }
:root .step-card[open] summary { border-radius: 19px 19px 0 0; }

/* Sales ranking in the news section. */
:root .bestsellers { margin: 24px 0 32px; padding: clamp(24px,3vw,40px); }
:root .bestsellers-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
:root .bestsellers-heading h2 { margin: 0; font-size: clamp(30px,4vw,48px); font-weight: 500; }
:root .bestsellers-heading .eyebrow { margin-bottom: 10px; }
:root .bestsellers-badge { padding: 9px 14px; border: 1px solid var(--ultra-border); border-radius: 99px; color: #a9d7ff; white-space: nowrap; font-size: 12px; letter-spacing: .1em; }
:root .bestsellers-description { color: #c5d3ef; margin: 16px 0 24px; }
:root .bestsellers-pending { padding: 24px; margin: 0; border-radius: 14px; background: rgba(105,191,255,.06); color: #c5d3ef; }

:root .bestsellers-grid {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px; list-style: none; margin: 0; padding: 0;
}
:root .bestseller-item {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 18px; min-width: 0; border-radius: 16px;
  border: 1px solid rgba(210,227,255,.22);
  background: rgba(5,18,64,.22);
}
:root .bestseller-item:first-child { background: rgba(105,191,255,.12); border-color: rgba(145,202,255,.5); }
:root .bestseller-rank { color: #91caff; font-size: 28px; font-weight: 500; margin-bottom: 24px; }
:root .bestseller-brand { color: #b9d9ff; font-size: 11px; letter-spacing: .06em; min-height: 28px; margin: 0 0 10px; }
:root .bestseller-item h3 { font-size: 18px; line-height: 1.35; margin: 0 0 14px; }
:root .bestseller-sku { color: #c5d3ef; font-size: 12px; margin: 0 0 24px; }
:root .bestseller-sku span { display: block; overflow-wrap: anywhere; margin-top: 6px; }
:root .bestseller-quantity { margin: auto 0 0; color: #c5d3ef; font-size: 13px; }
:root .bestseller-quantity strong { color: #fff; font-size: 32px; font-weight: 500; }
:root .bestsellers-method { color: #b9cbe8; font-size: 12px; line-height: 1.6; margin: 20px 0 0; }
@media (max-width:1100px) { :root .bestsellers-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { :root .bestsellers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:420px) { :root .bestsellers-grid { grid-template-columns: 1fr; } }

/* Product images use one consistent frame while preserving their proportions. */
:root .bestseller-photo {
  display: block;
  margin: -6px -2px 18px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}
:root .bestseller-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
:root .bestseller-photo:hover img { transform: scale(1.025); }
:root .bestseller-photo:focus-visible { outline: 2px solid #91caff; outline-offset: 3px; }
:root .bestseller-rank { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { :root .bestseller-photo img { transition: none; } }

/* Dedicated bestseller hub: audience first, category second. */
:root .bestsellers-hub { margin-top: 24px; }
/* ==========================================================================
   UNIFIED PILL SWITCHES & TOGGLE CONTROLS (Bestsellers, Training, Hub)
   Resting state: transparent/dark glass capsule + white letters
   Active & Hover state: pure white background + brand blue letters
   ========================================================================== */

:root .bestsellers-audiences,
:root .bestsellers-toolbar .bestsellers-audiences {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 18, 64, .36);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

:root .bestsellers-categories,
:root .bestsellers-toolbar .bestsellers-categories {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 18, 64, .36);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  margin: 0;
}

:root :is(
  .bestsellers-filter,
  .bestsellers-category-filter,
  .bestsellers-toolbar .bestsellers-filter,
  .bestsellers-toolbar .bestsellers-category-filter
) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: var(--ultra-font, inherit) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background .22s cubic-bezier(.16, 1, .3, 1),
              color .22s cubic-bezier(.16, 1, .3, 1),
              transform .18s ease,
              box-shadow .22s ease !important;
}

:root :is(
  .bestsellers-filter,
  .bestsellers-category-filter,
  .bestsellers-toolbar .bestsellers-filter,
  .bestsellers-toolbar .bestsellers-category-filter
)[aria-pressed="true"] {
  background: #ffffff !important;
  color: #0b38cc !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 18, 64, .18) !important;
}

:root :is(
  .bestsellers-filter,
  .bestsellers-category-filter,
  .bestsellers-toolbar .bestsellers-filter,
  .bestsellers-toolbar .bestsellers-category-filter
):hover,
:root :is(
  .bestsellers-filter,
  .bestsellers-category-filter,
  .bestsellers-toolbar .bestsellers-filter,
  .bestsellers-toolbar .bestsellers-category-filter
):focus-visible {
  background: #ffffff !important;
  color: #0b38cc !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 18, 64, .18) !important;
  transform: translateY(-1px) !important;
}

:root :is(
  .bestsellers-filter,
  .bestsellers-category-filter,
  .bestsellers-toolbar .bestsellers-filter,
  .bestsellers-toolbar .bestsellers-category-filter
):active {
  transform: scale(.97) !important;
}

:root .bestseller-category[hidden] { display: none; }
:root .bestseller-category .bestsellers-heading h2 { font-size: clamp(26px,3vw,38px); }
:root .bestseller-category .bestsellers-description { margin-bottom: 22px; font-size: 14px; }
:root .bestsellers-category-note { color: #c5d3ef; font-size: 13px; margin: 0 0 20px; }
:root .bestseller-photo-missing {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 14px; padding: 20px; text-align: center;
  background: rgba(145,202,255,.05); border: 1px dashed rgba(210,227,255,.22);
  color: #b9cbe8; font-size: 12px;
}
:root .bestseller-photo-missing svg { width: 44px; height: 44px; }
:root .bestseller-item h3 { font-size: 15px; }
@media (max-width:760px) {
  :root .bestsellers-audiences { width: 100%; }
  :root .bestsellers-categories { width: 100%; }
  :root :is(.bestsellers-filter, .bestsellers-category-filter) { padding: 8px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  :root .bestsellers-filter, :root .bestsellers-category-filter { transition: none; }
}

:root .bestsellers-toolbar { margin-top: 24px; }

/* Brand filter sits alongside the category controls. */
:root #bestsellers > .page-intro { position: relative; z-index: 2; overflow: visible; }
:root .bestsellers-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
:root .bestsellers-filter-row .bestsellers-categories { flex: 1 1 auto; margin: 0; }
:root .bestsellers-brand-menu { position: relative; flex: 0 0 auto; color: #d5e4ff; }
:root .bestsellers-brand-menu summary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 8px 16px;
  border: 0; border-radius: 999px;
  background: rgba(5, 18, 64, .36); cursor: pointer; list-style: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 13px; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .22s cubic-bezier(.16, 1, .3, 1), color .22s cubic-bezier(.16, 1, .3, 1), transform .18s ease, box-shadow .22s ease;
}
:root .bestsellers-brand-menu summary::-webkit-details-marker { display: none; }
:root .bestsellers-brand-label { color: rgba(255, 255, 255, .7); font-size: 11px; }
:root #bestseller-brand-current { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .bestsellers-brand-menu summary:hover,
:root .bestsellers-brand-menu[open] summary {
  background: #ffffff;
  color: #0b38cc;
  box-shadow: 0 4px 14px rgba(0, 18, 64, .18);
  transform: translateY(-1px);
}
:root .bestsellers-brand-menu summary:hover :is(.bestsellers-brand-label, #bestseller-brand-current, svg),
:root .bestsellers-brand-menu[open] summary :is(.bestsellers-brand-label, #bestseller-brand-current, svg) {
  color: #0b38cc;
  stroke: #0b38cc;
}
:root .bestsellers-brand-options {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  min-width: 240px; max-height: 320px; overflow-y: auto; padding: 6px;
  border: 0; border-radius: 20px;
  background: rgba(5, 18, 64, .75); backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 16px 36px rgba(0, 5, 30, .35);
}
:root .bestsellers-brand-options button {
  display: block; width: 100%; padding: 8px 14px; margin-bottom: 2px;
  border: 0; border-radius: 999px; text-align: left; font-size: 13px; cursor: pointer;
  color: #ffffff; background: transparent;
  transition: background .18s ease, color .18s ease;
}
:root .bestsellers-brand-options button[aria-pressed="true"],
:root .bestsellers-brand-options button:hover,
:root .bestsellers-brand-options button:focus-visible {
  background: #ffffff !important; color: #0b38cc !important; font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 18, 64, .15);
}
:root .bestsellers-brand-menu :focus-visible { outline: 2px solid #91caff; outline-offset: 2px; }
:root .bestseller-item[hidden], :root .bestsellers-more[hidden] { display: none; }
:root .bestsellers-more-wrap { text-align: center; margin-top: 24px; }
:root .bestsellers-more { cursor: pointer; color: #d5e4ff; font: inherit; font-size: 12px; }
:root .bestsellers-empty { padding: 24px; border-radius: 14px; background: rgba(105,191,255,.06); color: #c5d3ef; }
@media (max-width:760px) {
  :root .bestsellers-brand-menu { width: 100%; }
  :root .bestsellers-brand-menu summary { justify-content: space-between; }
  :root .bestsellers-brand-options { left: 0; right: 0; min-width: 0; }
}

/* Preserve the full jacket photograph at every screen size. */
:root .jackets-training-cover {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}
:root .jackets-training-cover .denim-training-image {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
@media (max-width:760px) {
  :root .jackets-training-cover { grid-column: 1; grid-row: 1; }
  :root .jackets-training-cover .denim-training-image { max-height: 460px; }
}

/* Symmetric brand history control in both expanded and collapsed states. */
:root .brand-story-more {
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(145,202,255,.55);
  border-radius: 10px;
  background: rgba(105,191,255,.06);
  line-height: 1.4;
  text-align: center;
}
:root .brand-story-more::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
:root .brand-story-more:hover {
  border-color: #91caff;
  background: rgba(105,191,255,.12);
}
:root .brand-story-details { border-radius: 14px; }

/* Introductory learning panel, matching the other section headers. */
:root .training-intro { margin-bottom: 24px; }
:root .training-shortcuts {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 18, 64, .36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  margin-top: 24px;
  width: fit-content;
}
:root .training-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s cubic-bezier(.16, 1, .3, 1), color .22s cubic-bezier(.16, 1, .3, 1), transform .18s ease, box-shadow .22s ease;
}
:root .training-shortcuts a:hover,
:root .training-shortcuts a:focus-visible {
  background: #ffffff !important;
  color: #0b38cc !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 18, 64, .18);
  transform: translateY(-1px);
}
:root .training-shortcuts a:active {
  transform: scale(.97);
}
:root .training-hero h2 {
  max-width: 600px; margin-bottom: 12px;
  font-size: clamp(30px,3.3vw,46px); line-height: 1.12;
  font-weight: 500; letter-spacing: -.01em;
}
:root :is(#training-welcome,#training-denim,#training-jackets,#training-steps) { scroll-margin-top: 24px; }
@media (max-width:760px) {
  :root .training-shortcuts { gap: 8px; margin-top: 20px; }
  :root .training-shortcuts a { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) { :root .training-shortcuts a { transition: none; } }

/* Transparent card artwork belongs to the same glass introduction panel. */
:root #ultracard .ultracard-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(24px,3vw,48px);
}
:root .ultracard-intro-copy { min-width: 0; }
:root .ultracard-intro-copy .eyebrow { margin-bottom: 18px; }
:root .ultracard-intro-copy h1 { overflow-wrap: normal; }
:root .ultracard-intro-copy > p:not(.eyebrow) { color: #c5d3ef; line-height: 1.65; }
:root .ultracard-intro-visual { margin: 0; min-width: 0; background: transparent; }
:root .ultracard-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width:900px) {
  :root #ultracard .ultracard-intro { grid-template-columns: 1fr; gap: 28px; }
  :root .ultracard-intro-visual { width: min(100%,640px); justify-self: center; }
}

/* Full brand histories artwork with its white brand mark. */
:root .brand-cover-artwork { position: relative; width: 100%; }
:root .brand-cover-artwork > img:first-child { display: block; width: 100%; height: auto; }
:root .brand-cover-artwork .brand-cover-logo {
  position: absolute;
  left: 6.6%;
  top: 20%;
  width: 22.5%;
  height: auto;
  filter: invert(1);
}

/* Bestsellers section header */
:root #bestsellers .bestsellers-intro {
  margin-bottom: 24px;
}

/* Quiet, flat card previews with real typography and the existing brand logo. */
:root .ultracard-minimal-cards {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  justify-self: end;
}
:root .ultra-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.586;
  padding: clamp(14px,1.5vw,22px);
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(203,223,246,.24);
  box-shadow: 0 6px 16px rgba(0,5,30,.1);
}
:root .ultra-preview-card--loyalty { background: #14243c; color: #edf4fc; }
:root .ultra-preview-card--gift { background: #e7edf3; color: #192c46; border-color: rgba(255,255,255,.6); }
:root .ultra-preview-wordmark { font-size: clamp(12px,1.1vw,15px); font-weight: 750; letter-spacing: .08em; line-height: 1.2; }
:root .ultra-preview-wordmark > span { font-weight: 400; }
:root .ultracard-minimal-cards .ultra-preview-logo { width: 74%; height: auto; align-self: center; }
:root .ultra-preview-card--loyalty .ultra-preview-logo { filter: invert(1); }
:root .ultra-preview-caption { font-size: clamp(8px,.8vw,11px); line-height: 1.3; opacity: .75; }
@media (max-width:900px) {
  :root .ultracard-minimal-cards { width: 100%; max-width: 480px; justify-self: start; }
  :root .ultra-preview-card { padding: 18px; }
}
@media (max-width:420px) {
  :root .ultracard-minimal-cards { gap: 10px; }
  :root .ultra-preview-card { padding: 12px; border-radius: 10px; }
}

/* Full portrait artwork, kept compact alongside the UltraCard introduction. */
:root .ultracard-points-visual {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
}
:root .ultracard-points-visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 16px;
}
@media (max-width:900px) {
  :root .ultracard-points-visual { justify-self: center; }
  :root .ultracard-points-visual img { max-height: 420px; }
}

/* UltraCard artwork meets the panel perimeter on three sides. */
:root #ultracard .ultracard-intro {
  grid-template-columns: minmax(0,1fr) minmax(240px,32%);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
:root .ultracard-intro-copy {
  align-self: center;
  padding: clamp(24px,3vw,38px);
}
:root .ultracard-points-visual {
  display: flex;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}
:root .ultracard-points-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
@media (max-width:900px) {
  :root #ultracard .ultracard-intro { grid-template-columns: 1fr; }
  :root .ultracard-points-visual img { height: auto; object-fit: contain; }
}

/* Slightly reduce the UltraCard introduction while retaining edge-to-edge art. */
@media (min-width:901px) {
  :root #ultracard .ultracard-intro {
    grid-template-columns: minmax(0,1fr) minmax(220px,27%);
  }
  :root .ultracard-intro-copy { padding: clamp(24px,2.5vw,32px); }
  :root .ultracard-intro-copy h1 {
    font-size: clamp(34px,3.8vw,48px);
    line-height: 1.08;
    max-width: 640px;
  }
  :root .ultracard-intro-copy > p:not(.eyebrow) { font-size: 15px; }
}
/* Persistent mascot from source video; transparent canvas leaves the page clickable. */
:root { --ultra-mascot-size: clamp(184px, 17vw, 236px); }
:root .ultra-mascot {
  position: fixed;
  right: max(
    calc(env(safe-area-inset-right, 0px) - var(--ultra-mascot-size) * .28),
    calc((100% - min(100%, 1584px)) / 2 + clamp(18px, 3vw, 48px) - 3px - var(--ultra-mascot-size) * .585)
  );
  bottom: calc(env(safe-area-inset-bottom, 0px) - 10px);
  z-index: 900;
  width: var(--ultra-mascot-size);
  height: var(--ultra-mascot-size);
  pointer-events: none;
  user-select: none;
}
:root .ultra-mascot[hidden] { display: none; }
.ultra-mascot__canvas {
  display: block; width: 100%; height: 100%;
}
:root .ultra-mascot__speech {
  position: absolute;
  right: 61%;
  bottom: 73%;
  width: 280px;
  max-width: min(280px, calc(100vw - var(--ultra-mascot-size) * .61 - 16px));
  margin: 0;
  padding: 18px 20px;
  border: 0 !important;
  border-radius: 20px;
  background: rgba(6, 20, 78, .28) !important;
  box-shadow: 0 12px 32px rgba(0, 5, 30, .18) !important;
  color: #f4f7ff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 7px);
  transition: opacity .22s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1), visibility .22s;
  pointer-events: none;
  z-index: 910;
}
.ultra-mascot__speech::after {
  content: none !important;
}
:root .ultra-mascot[data-speaking="true"] .ultra-mascot__speech {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
:root .back-to-top {
  border: 0 !important;
  background: rgba(8, 26, 94, .28) !important;
  color: #e6f0ff !important;
  box-shadow: 0 8px 26px rgba(0, 5, 28, .15) !important;
  backdrop-filter: blur(14px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(145%) !important;
}
:root .back-to-top:hover {
  background: linear-gradient(135deg, rgba(58, 134, 255, .42) 0%, rgba(24, 76, 232, .34) 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(16, 62, 224, .24) !important;
  transform: translateY(-2px) scale(1.05);
}
:root.has-ultra-mascot .back-to-top {
  bottom: calc(var(--ultra-mascot-size) + 24px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 760px) {
  :root { --ultra-mascot-size: 144px; }
}

/* Preserve the complete presentation title slide inside the shared news card. */
:root .halloween-news { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); scroll-margin-top: 140px; }
.halloween-news-visual { display: block; min-width: 0; overflow: hidden; background: #071b55; }
.halloween-news-visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
:root .halloween-news .news-body { padding: clamp(24px, 3vw, 42px); }
:root .halloween-news h2 { font-size: clamp(28px, 3vw, 42px); }
.halloween-news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.halloween-news-file { margin: 14px 0 0; color: #9ebbe5; font-size: 12px; line-height: 1.5; }
.halloween-news .news-badge, .latest-news-link--halloween .news-badge { border-color: #8dc6ff55; border-radius: 8px; background: #16478b44; color: #bbdcff; }
:root .latest-news-link--halloween { border-color: #8dc6ff44; }
:root .latest-news-thumb--halloween { aspect-ratio: 1; border-radius: 12px; background: #071b55; }
@media (max-width: 980px) {
  :root .halloween-news { grid-template-columns: 1fr; }
  .halloween-news-visual { aspect-ratio: 16 / 9; max-height: 400px; }
}
@media (max-width: 480px) {
  .halloween-news-actions { flex-direction: column; align-items: stretch; }
  .halloween-news-actions a { text-align: center; }
}

/* Keep the complete vertical promotion visible without cropping its terms. */
:root .second-item-news { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); scroll-margin-top: 140px; }
.second-item-news .news-media--second-item { width: 100%; min-height: 0; aspect-ratio: 9 / 16; background: #f47720; }
.news-media--second-item::after { content: none; }
.news-media--second-item video { object-fit: contain; background: #f47720; pointer-events: none; }
:root .second-item-news .news-body { padding: clamp(24px, 3vw, 42px); }
:root .second-item-news h2 { font-size: clamp(30px, 3.5vw, 48px); }
:root .second-item-news .news-copy p { font-size: 16px; line-height: 1.6; }
.second-item-news .news-promo-lead { font-weight: 600; }
@media (max-width: 860px) {
  :root .second-item-news { grid-template-columns: 1fr; }
  .second-item-news .news-media--second-item { width: min(100%, 360px); justify-self: center; }
}

/* Native Instagram posts share the news feed's blue glass surface. */
:root :is(.instagram-news, .website-news) {
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  align-items: start;
  scroll-margin-top: 140px;
}
.instagram-gallery { position: relative; min-width: 0; width: 100%; overflow: hidden; background: #06113a; }
.instagram-gallery-track {
  display: flex;
  width: 100%;
  aspect-ratio: var(--instagram-ratio, 4 / 5);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 0;
}
.instagram-gallery-track::-webkit-scrollbar { display: none; }
.instagram-gallery-track:focus-visible { outline: 2px solid #9dd7ff; outline-offset: -4px; }
.instagram-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.instagram-slide img, .instagram-slide video { display: block; width: 100%; height: 100%; object-fit: contain; background: #06113a; border-radius: 0; }
.instagram-gallery-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 10px auto;
  padding: 5px;
  border: 1px solid #c3dcff40;
  border-radius: 30px;
  background: #071844db;
  box-shadow: 0 4px 16px #01082940;
  backdrop-filter: blur(12px);
}
.instagram-gallery-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #f1f7ff;
  cursor: pointer;
  transition: background .15s ease;
}
.instagram-gallery-controls button:hover:not(:disabled) { background: #b0d7ff24; }
.instagram-gallery-controls button:focus-visible { outline: 2px solid #a4dcff; outline-offset: 1px; }
.instagram-gallery-controls button:disabled { opacity: .32; cursor: default; }
.instagram-gallery-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.instagram-gallery-count { min-width: 36px; color: #eaf4ff; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
:root .instagram-news .news-body { align-self: center; min-width: 0; padding: clamp(24px, 3.3vw, 48px); }
:root .instagram-news h2 { margin-bottom: 18px; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.12; }
:root .instagram-news .news-copy p { font-size: 16px; line-height: 1.65; }
.instagram-badge { color: #b8d9ff; }
.instagram-caption-more { margin-top: 18px; }
.instagram-caption-more summary { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 9px 0; color: #c0e0ff; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.instagram-caption-more summary::-webkit-details-marker { display: none; }
.instagram-caption-more summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.instagram-caption-more[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.instagram-caption-more > div { padding-top: 12px; }
@media (max-width: 860px) {
  :root .instagram-news { grid-template-columns: 1fr; }
  .instagram-gallery { width: min(100%, 480px); justify-self: center; }
  :root .instagram-news .news-body { padding: 24px; }
}
@media (max-width: 600px) {
  :root .header-topbar { flex-wrap: wrap; row-gap: 6px; }
  :root .header-topbar-right { margin-left: auto; }
  :root .language-options { left: auto; right: 0; }
  :root .ultra-mascot { right: env(safe-area-inset-right, 0px); }
}

/* Keep the overview balanced when a standalone section moves into the Academy. */
:root .quick-cards {
  gap: 18px 22px;
}
:root .quick-cards > .quick-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
:root .quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 128px;
  padding: clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 34px);
  background: var(--ultra-glass) !important;
  border: 1px solid var(--ultra-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(0, 5, 30, .18) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .28s cubic-bezier(.16, 1, .3, 1),
              border-color .28s cubic-bezier(.16, 1, .3, 1),
              box-shadow .28s cubic-bezier(.16, 1, .3, 1),
              transform .28s cubic-bezier(.16, 1, .3, 1) !important;
}
:root .quick-card .quick-icon { display: none !important; }
:root .quick-card > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
:root .quick-card h3 {
  margin: 0;
  color: #f4f7ff !important;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.25;
  transition: color .28s cubic-bezier(.16, 1, .3, 1) !important;
}
:root .quick-card p {
  display: none !important;
}
:root .quick-card:is(:hover, :focus-visible) {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 14px 40px rgba(0, 18, 64, .24) !important;
  transform: translateY(-3px) scale(1.008) !important;
}
:root .quick-card:is(:hover, :focus-visible) :is(h3, span, p) {
  color: #0b38cc !important;
}
:root .quick-card:active {
  transform: translateY(-1px) scale(.995) !important;
}
:root .section-heading h2 {
  font-size: clamp(20px, 2.1vw, 27px);
}
:root .section-heading p {
  font-size: clamp(13.5px, 1vw, 15px);
}

/* Borderless glass windows without white perimeter frames or top inset highlights */
:root :is(
  .site-header,
  .hero,
  #overview .hero,
  .ultra-glass,
  .card,
  .quick-card,
  .step-card,
  .brand-story,
  .brand-tabs,
  .brand-strip,
  .brand-logo-tile,
  .brand-cover-layout,
  .brand-cover-copy,
  .page-intro,
  .training-hero,
  .denim-training-card,
  .loyalty-callout,
  .notice,
  .empty-state,
  .news-article,
  .latest-news-link,
  .bestseller-item,
  .bestseller-item:first-child,
  .bestsellers-audiences,
  .bestsellers-category-filter,
  .bestsellers-badge,
  .bestsellers-brand-menu summary,
  .bestsellers-brand-options,
  .campaign-mechanics,
  .site-search-results,
  .language-options
),
:root #ultracard :is(.card, .loyalty-callout, .notice, .page-intro) {
  border-color: transparent !important;
  box-shadow: 0 12px 32px rgba(0, 5, 30, .18);
}
:root :is(.brand-logo-tile, .latest-news-link, .bestseller-item, .bestsellers-audiences, .bestsellers-category-filter, .bestsellers-badge) {
  box-shadow: none;
}
:root .brand-strip,
:root .brand-logo-tile {
  margin-top: 28px;
  padding: 6px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
:root .brand-logo-tile {
  margin-top: 0;
  padding: 10px 8px;
}
/* Original frameless 5 × 2 brand wall. */
:root #overview .brand-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 26px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
:root #overview .brand-strip > li { min-width: 0; }
:root #overview .brand-logo-tile {
  min-height: 72px;
  padding: 10px 8px;
}
:root #overview .brand-logo-tile img {
  display: block;
  width: 100%;
  max-width: 176px;
  height: 50px;
  object-fit: contain;
}
:root #overview .brand-logo-link:hover { transform: none; }
:root #overview .brand-logo-link::after { bottom: 0; height: 1px; }
@media (max-width: 1050px) {
  :root #overview .brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root #overview .brand-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Silk is a viewport backdrop; content and all native scrolling stay independent. */
:root body::before {
  background: radial-gradient(ellipse at 75% 20%, #b18cff 0%, transparent 55%),
    linear-gradient(135deg, #0b1026, #3d46e8 65%, #ffd6e7);
  background-position: center;
  background-size: cover;
}
:root[data-ultra-background="silk"] body::before { opacity: 0; }
:root:not([data-ultra-background="silk"]) body::before { opacity: 1; }
.ultra-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.ultra-background[hidden] { display: none; }
.ultra-background__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Unified Satoshi / Onest typography across every section, matching the header navigation bar */
:root,
:root body,
:root button,
:root input,
:root select,
:root textarea,
:root .hub-header,
:root #ultra-academy-mount,
:root .ultrik-chat,
:root .ultra-mascot__speech {
  --ultra-font: "Satoshi", "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--ultra-font) !important;
}
:root :is(
  h1,
  h2,
  h3,
  h4,
  .hero h1,
  .page-intro h1,
  .section-heading h2,
  .quick-card h3,
  .latest-news-copy h3,
  .news-body h2,
  .brand-story-copy h2,
  .brand-cover-copy h2,
  .denim-training-copy h2,
  .training-hero h1,
  .training-hero h2,
  .bestsellers-heading h2,
  #stores .stores-intro h1,
  #ultra-academy-mount h1,
  #ultra-academy-mount h2,
  #ultra-academy-mount h3,
  .ultrik-chat__title,
  .ultrik-chat__welcome h4
) {
  font-family: var(--ultra-font) !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}

/* Silent video alongside the overview shortcuts. */
:root .card.overview-video-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #07133f;
}
:root .overview-video-card .overview-feature-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.overview-feature-video::-webkit-media-controls,
.overview-feature-video::-webkit-media-controls-enclosure { display: none !important; }
@media(max-width:900px) {
  :root .card.overview-video-card { width: 100%; aspect-ratio: 16 / 9; align-self: start; }
}
:root :is(
  .nav-link,
  .quick-card h3,
  .bestsellers-filter,
  .bestsellers-category-filter,
  .training-shortcuts a,
  .download-button,
  .outline-button,
  .brand-story-more
) {
  font-family: var(--ultra-font) !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
}

/* Imported official articles keep complete readable copy and local imagery. */
:root .website-news .news-body { min-width: 0; padding: clamp(24px, 3.3vw, 48px); }
:root .website-news h2 { margin-bottom: 18px; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.12; }
:root .website-news .news-copy { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
:root .website-news .news-copy :is(h2, h3, h4) { margin: 24px 0 12px; font-size: 22px; line-height: 1.35; }
:root .website-news .news-copy img { display: block; width: 100%; max-width: 100%; height: auto; margin: 20px 0; border-radius: 14px; }
:root .website-news .news-copy :is(ul, ol) { padding-left: 22px; }
.website-news-source { display: inline-block; margin-top: 18px; color: #b7dfff; font-size: 12px; text-underline-offset: 3px; }
@media (max-width:760px) { :root .website-news { grid-template-columns: 1fr; } }
