/* ============================================================================
   SportMyLife — Quiet-Luxury 3D Stadium Broadcast Editorial Footer
   File: footerLuxury.css (loaded last in index.html)
   Architectural dark stadium obsidian & emerald/gold foundation bookending
   #sml-broadcast-ticker across Dark, Light, and RTL layouts (320px–1440px).
   Laws #17, #18, #19, #22: 100% link/legal/ecosystem preservation, 0px overflow.
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. STADIUM OBSIDIAN & EMERALD-GOLD CANVAS (BOTH DARK & LIGHT THEMES)
   -------------------------------------------------------------------------- */
html body footer.site-footer,
html[data-theme='dark'] body footer.site-footer,
html[data-theme='light'] body footer.site-footer {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  margin-top: 0;
  padding: 38px 0 calc(42px + env(safe-area-inset-bottom));
  border-top: 0;
  background-color: #07120c;
  background-image:
    radial-gradient(ellipse 68% 58% at 14% 0%, rgba(22, 134, 79, 0.24) 0%, rgba(12, 52, 32, 0.08) 52%, transparent 78%),
    radial-gradient(ellipse 56% 50% at 88% 6%, rgba(230, 196, 115, 0.14) 0%, rgba(204, 160, 63, 0.04) 50%, transparent 75%),
    radial-gradient(ellipse 82% 46% at 50% 100%, rgba(16, 82, 50, 0.18) 0%, transparent 72%),
    linear-gradient(180deg, #0a1b12 0%, #07120c 44%, #050d08 100%);
  color: rgba(236, 242, 238, 0.88);
  box-shadow:
    0 -18px 46px rgba(3, 10, 6, 0.24),
    inset 0 1px 0 rgba(246, 220, 147, 0.24);
}

html[data-theme='light'] body footer.site-footer {
  box-shadow:
    0 -14px 38px rgba(7, 20, 13, 0.16),
    inset 0 1px 0 rgba(246, 220, 147, 0.34);
}

/* Inner sport wings display fixed #deck-stepper-bar (62px) on desktop */
html[data-sport-branch='football'] body footer.site-footer,
html[data-sport-branch='ufc'] body footer.site-footer,
html[data-sport-branch='basketball'] body footer.site-footer,
html[data-sport-branch='tennis'] body footer.site-footer,
html[data-sport-branch='motorsport'] body footer.site-footer,
html[data-sport-branch='hockey'] body footer.site-footer {
  padding-bottom: calc(40px + 66px + env(safe-area-inset-bottom));
}

/* Top metallic champagne-gold & stadium-emerald specular hairline */
html body footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.08) 0%,
    rgba(27, 134, 80, 0.54) 18%,
    rgba(246, 220, 147, 0.94) 50%,
    rgba(27, 134, 80, 0.54) 82%,
    rgba(230, 196, 115, 0.08) 100%
  );
}

/* Soft ambient floodlight sheen directly beneath top metallic rim */
html body footer.site-footer::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline: 10%;
  height: 54px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 64% 100% at 50% 0%,
    rgba(230, 196, 115, 0.11) 0%,
    rgba(16, 185, 129, 0.05) 48%,
    transparent 82%
  );
}

html body footer.site-footer *,
html body footer.site-footer *::before,
html body footer.site-footer *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. EDITORIAL CONTAINER GRID
   -------------------------------------------------------------------------- */
html body footer.site-footer .footer-inner,
html[data-theme] body footer.site-footer .footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 24px 36px;
  max-width: 1380px;
}

html body footer.site-footer .footer-inner > div {
  min-width: 0;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. BRAND IDENTITY BLOCK (52x52 FORGED SML SHIELD + METALLIC WORDMARK)
   -------------------------------------------------------------------------- */
html body footer.site-footer .footer-brand-row,
html[data-theme] body footer.site-footer .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

html body footer.site-footer .footer-crest-stack,
html[data-theme] body footer.site-footer .footer-crest-stack {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 2px 2px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Soft ambient champagne-gold halo behind the 3D forged SML shield */
html body footer.site-footer .footer-crest-stack::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(246, 220, 147, 0.28) 0%,
    rgba(27, 134, 80, 0.16) 46%,
    transparent 74%
  );
}

html body footer.site-footer .footer-brand-emblem,
html[data-theme] body footer.site-footer .footer-brand-emblem {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter:
    drop-shadow(0 0 14px rgba(230, 196, 115, 0.36))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.58));
  transition: transform 0.24s ease, filter 0.24s ease;
}

html body footer.site-footer .footer-crest-stack:hover .footer-brand-emblem {
  transform: translateY(-1px) scale(1.03);
  filter:
    drop-shadow(0 0 18px rgba(246, 220, 147, 0.5))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.64));
}

/* Metallic champagne-gold SPORTMYLIFE wordmark in BOTH Dark & Light themes */
html body footer.site-footer .footer-crest-wordmark,
html[data-theme='light'] body footer.site-footer .footer-crest-wordmark,
html[data-theme='dark'] body footer.site-footer .footer-crest-wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display, 'Oswald'), 'Barlow Condensed', Impact, sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: skewX(-7deg);
  padding: 0 2px 5px;
  color: #f1cf73;
  background: linear-gradient(180deg, #fff8e2 0%, #f1cf73 54%, #c4922c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Crisp tri-color heritage underline */
html body footer.site-footer .footer-crest-wordmark::after,
html[data-theme] body footer.site-footer .footer-crest-wordmark::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1b7f4c 0%, #f1cf73 50%, #c8252d 100%);
  box-shadow: 0 1px 6px rgba(241, 207, 115, 0.28);
}

/* Gold-tinted editorial headline beside crest */
html body footer.site-footer .footer-brand-row > strong,
html[data-theme] body footer.site-footer .footer-brand-row > strong {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, 'Oswald'), 'Barlow Condensed', sans-serif;
  font-size: clamp(14.5px, 1.45vw, 17.5px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: #f6dc93;
  text-align: start;
  overflow-wrap: break-word;
  text-shadow: 0 1px 12px rgba(230, 196, 115, 0.14);
}

/* Clean readable light-cream description (NEVER set display here — preserves [data-footer-branch]) */
html body footer.site-footer .footer-desc-branch,
html[data-theme] body footer.site-footer .footer-desc-branch {
  margin: 12px 0 0;
  max-width: 64ch;
  font-family: var(--font-sans, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.005em;
  color: rgba(236, 242, 238, 0.84);
  text-align: start;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   4. STRUCTURED NAVIGATION GLASS-CAPSULE SHOWCASE (LAW #18 SYMMETRY)
   -------------------------------------------------------------------------- */
html body footer.site-footer .footer-links-row,
html[data-theme] body footer.site-footer .footer-links-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(230, 196, 115, 0.18);
  background: linear-gradient(
    160deg,
    rgba(14, 34, 23, 0.62) 0%,
    rgba(7, 17, 11, 0.82) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(246, 220, 147, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

/* NEVER set display on .footer-links-group — styles.css controls active branch visibility */
html[data-sport-branch] body footer.site-footer .footer-links-group,
html body footer.site-footer .footer-links-group[data-footer-branch] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

html body footer.site-footer .footer-mini-link,
html[data-theme] body footer.site-footer .footer-mini-link {
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 8px);
  min-width: min(122px, calc(50% - 8px));
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background-color: #0b1b12;
  background-origin: border-box;
  background-clip: border-box;
  background-image: linear-gradient(
    158deg,
    rgba(17, 41, 28, 0.9) 0%,
    rgba(9, 22, 15, 0.96) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.24);
  font-family: var(--font-sans, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: rgba(236, 244, 239, 0.92);
  text-align: center;
  text-decoration: none;
  overflow-wrap: break-word;
  transition:
    background-image 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

/* Subtle champagne-gold gleam on Guides & Tickets pill */
html body footer.site-footer a.footer-mini-link[href='/guides'],
html[data-theme] body footer.site-footer a.footer-mini-link[href='/guides'] {
  color: #f6dc93;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.38),
    inset 0 1px 0 rgba(255, 248, 222, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.26);
}

html body footer.site-footer .footer-mini-link:hover,
html[data-theme] body footer.site-footer .footer-mini-link:hover,
html body footer.site-footer a.footer-mini-link[href='/guides']:hover,
html[data-theme] body footer.site-footer a.footer-mini-link[href='/guides']:hover,
html body footer.site-footer .footer-mini-link:focus-visible,
html[data-theme] body footer.site-footer .footer-mini-link:focus-visible,
html body footer.site-footer a.footer-mini-link[href='/guides']:focus-visible,
html[data-theme] body footer.site-footer a.footer-mini-link[href='/guides']:focus-visible {
  background-image: linear-gradient(
    158deg,
    rgba(26, 66, 45, 0.96) 0%,
    rgba(13, 33, 22, 0.98) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.72),
    inset 0 1px 0 rgba(255, 248, 222, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(230, 196, 115, 0.16);
  color: #fff6dc;
  transform: translateY(-1px);
  outline: none;
}

html body footer.site-footer .footer-mini-link:focus-visible,
html[data-theme] body footer.site-footer .footer-mini-link:focus-visible,
html body footer.site-footer a.footer-mini-link[href='/guides']:focus-visible,
html[data-theme] body footer.site-footer a.footer-mini-link[href='/guides']:focus-visible {
  box-shadow:
    inset 0 0 0 1px #f6dc93,
    0 0 0 2px rgba(246, 220, 147, 0.45);
}

/* --------------------------------------------------------------------------
   5. LEGAL & TRUST BAR + OFFICIAL GOLD-EMERALD CONTACT PILL
   -------------------------------------------------------------------------- */
html body footer.site-footer .footer-legal-row,
html[data-theme] body footer.site-footer .footer-legal-row {
  position: relative;
  grid-column: 1 / -1;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  padding-top: 22px;
  border-top: 0;
}

/* Metallic gold hairline divider separating editorial brand zone & legal bar */
html body footer.site-footer .footer-legal-row::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.04) 0%,
    rgba(230, 196, 115, 0.4) 24%,
    rgba(246, 220, 147, 0.64) 50%,
    rgba(230, 196, 115, 0.4) 76%,
    rgba(230, 196, 115, 0.04) 100%
  );
}

html body footer.site-footer .footer-legal-links,
html[data-theme] body footer.site-footer .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

html body footer.site-footer .footer-legal-link,
html[data-theme] body footer.site-footer .footer-legal-link {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: 999px;
  border: 0;
  background-color: #0b1b12;
  background-origin: border-box;
  background-clip: border-box;
  background-image: linear-gradient(
    160deg,
    rgba(14, 33, 23, 0.84) 0%,
    rgba(8, 19, 13, 0.94) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: var(--font-sans, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.22;
  color: rgba(230, 239, 233, 0.88);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition:
    background-image 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

html body footer.site-footer .footer-legal-link:hover,
html[data-theme] body footer.site-footer .footer-legal-link:hover,
html body footer.site-footer .footer-legal-link:focus-visible,
html[data-theme] body footer.site-footer .footer-legal-link:focus-visible {
  background-image: linear-gradient(
    160deg,
    rgba(24, 58, 40, 0.94) 0%,
    rgba(12, 30, 20, 0.98) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.68),
    inset 0 1px 0 rgba(255, 248, 222, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.3);
  color: #fff6dc;
  transform: translateY(-1px);
  outline: none;
}

html body footer.site-footer .footer-legal-link:focus-visible,
html[data-theme] body footer.site-footer .footer-legal-link:focus-visible {
  box-shadow:
    inset 0 0 0 1px #f6dc93,
    0 0 0 2px rgba(246, 220, 147, 0.45);
}

/* Signature Gold-Emerald Official Contact Pill: info@sportmylife.com */
html body footer.site-footer a.footer-legal-link[href^='mailto:'],
html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:'] {
  border: 0;
  background-color: #103b25;
  background-origin: border-box;
  background-clip: border-box;
  background-image: linear-gradient(
    132deg,
    rgba(24, 96, 59, 0.96) 0%,
    rgba(15, 64, 39, 0.98) 54%,
    rgba(102, 78, 26, 0.94) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.66),
    inset 0 1px 0 rgba(255, 248, 222, 0.24),
    0 6px 18px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(230, 196, 115, 0.14);
  color: #fff6dc;
  font-weight: 650;
  letter-spacing: 0.015em;
  padding-inline: 15px;
}

html body footer.site-footer a.footer-legal-link[href^='mailto:']::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f6dc93;
  box-shadow: 0 0 8px rgba(246, 220, 147, 0.85);
}

html body footer.site-footer a.footer-legal-link[href^='mailto:']:hover,
html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:']:hover,
html body footer.site-footer a.footer-legal-link[href^='mailto:']:focus-visible,
html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:']:focus-visible {
  background-image: linear-gradient(
    132deg,
    rgba(31, 118, 73, 0.98) 0%,
    rgba(20, 82, 50, 0.98) 50%,
    rgba(130, 99, 32, 0.96) 100%
  );
  box-shadow:
    inset 0 0 0 1px #f6dc93,
    inset 0 1px 0 rgba(255, 250, 232, 0.32),
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(230, 196, 115, 0.28);
  color: #ffffff;
}

html body footer.site-footer a.footer-legal-link[href^='mailto:']:focus-visible,
html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:']:focus-visible {
  box-shadow:
    inset 0 0 0 1px #f6dc93,
    0 0 0 2px rgba(246, 220, 147, 0.55),
    0 8px 22px rgba(0, 0, 0, 0.4);
}

/* Copyright & Legal Imprint Line */
html body footer.site-footer .footer-legal-owner,
html[data-theme] body footer.site-footer .footer-legal-owner {
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(212, 224, 217, 0.78);
  text-align: start;
  overflow-wrap: anywhere;
}

html body footer.site-footer .footer-legal-owner a,
html[data-theme] body footer.site-footer .footer-legal-owner a {
  color: #f1cf73;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 207, 115, 0.42);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

html body footer.site-footer .footer-legal-owner a:hover,
html[data-theme] body footer.site-footer .footer-legal-owner a:hover,
html body footer.site-footer .footer-legal-owner a:focus-visible,
html[data-theme] body footer.site-footer .footer-legal-owner a:focus-visible {
  color: #fff6dc;
  border-bottom-color: #fff6dc;
  outline: none;
}

/* --------------------------------------------------------------------------
   6. GASANOV STUDIO ECOSYSTEM — FRAMED OBSIDIAN MINI LUXURY BADGE STRIP
   -------------------------------------------------------------------------- */
html body footer.site-footer .footer-ecosystem-row,
html[data-theme] body footer.site-footer .footer-ecosystem-row {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 115, 0.2);
  background: linear-gradient(
    180deg,
    rgba(4, 11, 7, 0.88) 0%,
    rgba(7, 18, 12, 0.94) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(246, 220, 147, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.32);
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(218, 230, 222, 0.82);
  overflow-wrap: anywhere;
}

html body footer.site-footer .footer-eco-label,
html[data-theme] body footer.site-footer .footer-eco-label {
  font-family: var(--font-display, 'Oswald'), 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #e6c473;
  margin-inline-end: 4px;
  text-align: start;
}

html body footer.site-footer .footer-eco-link,
html[data-theme] body footer.site-footer .footer-eco-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  border: 0;
  border-bottom: 0;
  background-color: #0b1b12;
  background-origin: border-box;
  background-clip: border-box;
  background-image: linear-gradient(
    155deg,
    rgba(16, 39, 27, 0.9) 0%,
    rgba(9, 22, 15, 0.96) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #edf5f0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.24;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    background-image 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

/* Signature emerald-gold diamond marker inside each ecosystem brand badge */
html body footer.site-footer .footer-eco-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  transform: rotate(45deg);
  flex-shrink: 0;
  background: linear-gradient(135deg, #f6dc93 0%, #34d399 100%);
  box-shadow: 0 0 6px rgba(246, 220, 147, 0.4);
}

html body footer.site-footer .footer-eco-link:hover,
html[data-theme] body footer.site-footer .footer-eco-link:hover,
html body footer.site-footer .footer-eco-link:focus-visible,
html[data-theme] body footer.site-footer .footer-eco-link:focus-visible {
  background-image: linear-gradient(
    155deg,
    rgba(25, 64, 43, 0.96) 0%,
    rgba(13, 33, 22, 0.98) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.72),
    inset 0 1px 0 rgba(255, 248, 222, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(230, 196, 115, 0.14);
  color: #fff6dc;
  border-bottom: 0;
  transform: translateY(-1px);
  outline: none;
}

html body footer.site-footer .footer-eco-link:focus-visible,
html[data-theme] body footer.site-footer .footer-eco-link:focus-visible {
  box-shadow:
    inset 0 0 0 1px #f6dc93,
    0 0 0 2px rgba(246, 220, 147, 0.45);
}

html body footer.site-footer .footer-eco-sep,
html[data-theme] body footer.site-footer .footer-eco-sep {
  color: rgba(230, 196, 115, 0.4);
  opacity: 1;
  font-size: 12px;
  user-select: none;
}

/* Preserve clean ghost button fallback if present inside footer */
html body footer.site-footer .footer-inner > .btn-ghost {
  grid-column: 1 / -1;
  justify-self: end;
  border-color: rgba(230, 196, 115, 0.3);
  color: #f6dc93;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE ARCHITECTURE (900px, 820px MOBILE APPBAR, 640px, 560px, 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  html body footer.site-footer .footer-inner,
  html[data-theme] body footer.site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  html body footer.site-footer .footer-links-row,
  html[data-theme] body footer.site-footer .footer-links-row {
    justify-content: flex-start;
  }

  html body footer.site-footer .footer-inner > .btn-ghost {
    justify-self: start;
  }
}

/* Mobile bottom appbar (.sml-mob-appbar) clearance on <= 820px */
@media (max-width: 820px) {
  html body footer.site-footer,
  html[data-theme='dark'] body footer.site-footer,
  html[data-theme='light'] body footer.site-footer,
  html[data-sport-branch] body footer.site-footer {
    padding-top: 30px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  html body footer.site-footer .footer-brand-row,
  html[data-theme] body footer.site-footer .footer-brand-row {
    gap: 13px;
  }

  html body footer.site-footer .footer-brand-row > strong,
  html[data-theme] body footer.site-footer .footer-brand-row > strong {
    font-size: 15px;
    line-height: 1.26;
  }

  html body footer.site-footer .footer-desc-branch,
  html[data-theme] body footer.site-footer .footer-desc-branch {
    margin-top: 11px;
    font-size: 12.5px;
    line-height: 1.54;
  }

  html body footer.site-footer .footer-links-row,
  html[data-theme] body footer.site-footer .footer-links-row {
    padding: 12px;
    border-radius: 15px;
  }

  html body footer.site-footer .footer-legal-row,
  html[data-theme] body footer.site-footer .footer-legal-row {
    gap: 12px;
    padding-top: 18px;
  }

  /* Ecosystem header takes full top row; decorative dot collapses cleanly without display:none */
  html body footer.site-footer .footer-ecosystem-row,
  html[data-theme] body footer.site-footer .footer-ecosystem-row {
    padding: 12px 13px;
    gap: 8px;
  }

  html body footer.site-footer .footer-eco-label,
  html[data-theme] body footer.site-footer .footer-eco-label {
    flex: 1 0 100%;
    margin-inline-end: 0;
  }

  html body footer.site-footer .footer-eco-sep,
  html[data-theme] body footer.site-footer .footer-eco-sep {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  html body footer.site-footer .footer-eco-link,
  html[data-theme] body footer.site-footer .footer-eco-link {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 6px 11px;
  }
}

/* Mobile 2-column Law #18 symmetrical pill layout (390px & narrow viewports) */
@media (max-width: 560px) {
  html[data-sport-branch] body footer.site-footer .footer-links-group,
  html body footer.site-footer .footer-links-group[data-footer-branch] {
    gap: 7px;
  }

  html body footer.site-footer .footer-mini-link,
  html[data-theme] body footer.site-footer .footer-mini-link {
    flex: 1 1 calc(50% - 7px);
    min-width: min(122px, calc(50% - 7px));
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  html body footer.site-footer .footer-legal-links,
  html[data-theme] body footer.site-footer .footer-legal-links {
    width: 100%;
    gap: 7px;
  }

  html body footer.site-footer .footer-legal-link,
  html[data-theme] body footer.site-footer .footer-legal-link {
    flex: 1 1 calc(50% - 7px);
    min-width: min(122px, calc(50% - 7px));
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Official contact pill spans symmetrically across bottom of legal capsule grid */
  html body footer.site-footer a.footer-legal-link[href^='mailto:'],
  html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:'] {
    flex: 1 1 100%;
    min-width: 0;
  }

  html body footer.site-footer .footer-legal-owner,
  html[data-theme] body footer.site-footer .footer-legal-owner {
    width: 100%;
    font-size: 11.5px;
    text-align: center;
  }
}

/* Compact 320px–380px viewport perfection (0px horizontal overflow) */
@media (max-width: 380px) {
  html body footer.site-footer .footer-brand-row,
  html[data-theme] body footer.site-footer .footer-brand-row {
    gap: 11px;
  }

  html body footer.site-footer .footer-crest-wordmark,
  html[data-theme='light'] body footer.site-footer .footer-crest-wordmark,
  html[data-theme='dark'] body footer.site-footer .footer-crest-wordmark {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding-bottom: 4px;
  }

  html body footer.site-footer .footer-brand-row > strong,
  html[data-theme] body footer.site-footer .footer-brand-row > strong {
    font-size: 14px;
    line-height: 1.24;
  }

  html body footer.site-footer .footer-links-row,
  html[data-theme] body footer.site-footer .footer-links-row {
    padding: 10px;
    border-radius: 14px;
  }

  html body footer.site-footer .footer-mini-link,
  html[data-theme] body footer.site-footer .footer-mini-link,
  html body footer.site-footer .footer-legal-link,
  html[data-theme] body footer.site-footer .footer-legal-link {
    min-width: min(114px, calc(50% - 6px));
    padding: 6px 8px;
    font-size: 11.5px;
  }

  html body footer.site-footer .footer-ecosystem-row,
  html[data-theme] body footer.site-footer .footer-ecosystem-row {
    padding: 11px 11px;
  }

  html body footer.site-footer .footer-eco-link,
  html[data-theme] body footer.site-footer .footer-eco-link {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding: 7px 12px;
    text-align: start;
  }
}

/* --------------------------------------------------------------------------
   8. RTL (ARABIC / RIGHT-TO-LEFT) & ACCESSIBILITY POLISH
   -------------------------------------------------------------------------- */
html[dir='rtl'] body footer.site-footer .footer-brand-row > strong,
html[dir='rtl'] body footer.site-footer .footer-desc-branch,
html[dir='rtl'] body footer.site-footer .footer-legal-owner,
html[dir='rtl'] body footer.site-footer .footer-eco-label {
  letter-spacing: 0 !important;
  text-align: start;
}

html[dir='rtl'] body footer.site-footer .footer-mini-link,
html[dir='rtl'] body footer.site-footer .footer-legal-link,
html[dir='rtl'] body footer.site-footer .footer-eco-link {
  letter-spacing: 0 !important;
}

/* Keep brand wordmark & official email crisp LTR inside RTL context */
html[dir='rtl'] body footer.site-footer .footer-crest-stack,
html[dir='rtl'] body footer.site-footer a.footer-legal-link[href^='mailto:'] {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir='rtl'] body footer.site-footer .footer-crest-wordmark {
  letter-spacing: 0.08em !important;
}

@media (max-width: 560px) {
  html[dir='rtl'] body footer.site-footer .footer-legal-owner {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body footer.site-footer .footer-brand-emblem,
  html[data-theme] body footer.site-footer .footer-brand-emblem,
  html body footer.site-footer .footer-mini-link,
  html[data-theme] body footer.site-footer .footer-mini-link,
  html body footer.site-footer .footer-legal-link,
  html[data-theme] body footer.site-footer .footer-legal-link,
  html body footer.site-footer .footer-legal-owner a,
  html[data-theme] body footer.site-footer .footer-legal-owner a,
  html body footer.site-footer .footer-eco-link,
  html[data-theme] body footer.site-footer .footer-eco-link {
    transition: none;
  }

  html body footer.site-footer .footer-crest-stack:hover .footer-brand-emblem,
  html body footer.site-footer .footer-mini-link:hover,
  html[data-theme] body footer.site-footer .footer-mini-link:hover,
  html body footer.site-footer a.footer-mini-link[href='/guides']:hover,
  html[data-theme] body footer.site-footer a.footer-mini-link[href='/guides']:hover,
  html body footer.site-footer .footer-legal-link:hover,
  html[data-theme] body footer.site-footer .footer-legal-link:hover,
  html body footer.site-footer a.footer-legal-link[href^='mailto:']:hover,
  html[data-theme] body footer.site-footer a.footer-legal-link[href^='mailto:']:hover,
  html body footer.site-footer .footer-eco-link:hover,
  html[data-theme] body footer.site-footer .footer-eco-link:hover {
    transform: none;
  }
}
