.hasler-site-footer {
  box-sizing: border-box;
  width: min(100% - 32px, 1100px);
  margin: 36px auto 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  color: #fff;
  text-align: center;
  font-family: inherit;
}
.hasler-footer-rule {
  height: 2px;
  border-radius: 2px;
  margin: 2px 0 15px;
  background: linear-gradient(90deg, transparent, #638cff, #bd75ff, #638cff, transparent);
}
.hasler-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hasler-footer-line {
  display: block;
  flex: 1 1 35px;
  max-width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #8b83ff, #62d8ff);
}
.hasler-footer-copyright {
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.6;
}
.hasler-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.hasler-theme-toggle {
  appearance: none;
  cursor: pointer;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff !important;
  font: inherit;
  font-size: 13px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hasler-theme-toggle:hover,
.hasler-theme-toggle:focus-visible {
  box-shadow: 0 0 16px rgba(115,145,255,.55);
  border-color: rgba(150,170,255,.75);
}
html[data-theme="light"] .hasler-theme-toggle {
  color: #000 !important;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .hasler-theme-toggle {
    color: #000 !important;
  }
}

/* Remove the large footer box; keep the footer contents and effects */
.hasler-site-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 24px auto 12px !important;
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.hasler-footer-rule {
  margin: 2px 0 12px !important;
}

.hasler-footer-content {
  background: transparent !important;
}

.hasler-footer-actions {
  margin-top: 12px !important;
}

/* Appearance button colours for dark and light themes */
.hasler-theme-toggle {
  background: #c9a7ff !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  transition: background-color .25s ease, color .25s ease,
              box-shadow .2s ease, border-color .25s ease !important;
}

/* Dark mode: light purple button, white text */
html[data-theme="dark"] .hasler-theme-toggle {
  background: #c9a7ff !important;
  color: #ffffff !important;
}

/* Light mode: dark purple button, black text */
html[data-theme="light"] .hasler-theme-toggle {
  background: #542080 !important;
  color: #000000 !important;
  border-color: rgba(84,32,128,.35) !important;
}

/* Keep the hover glow */
.hasler-theme-toggle:hover,
.hasler-theme-toggle:focus-visible {
  box-shadow: 0 0 16px rgba(160,120,255,.65) !important;
  border-color: rgba(180,150,255,.85) !important;
}

/* ===== GLOBAL SHARED FOOTER: CONSISTENT ON EVERY PAGE ===== */
#hasler-site-footer,
.hasler-site-footer {
  all: initial !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 24px auto 12px !important;
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  position: relative !important;
  isolation: isolate !important;
  z-index: 1 !important;
}

#hasler-site-footer *,
.hasler-site-footer * {
  box-sizing: border-box !important;
}

#hasler-site-footer .hasler-footer-rule,
.hasler-site-footer .hasler-footer-rule {
  display: block !important;
  width: 100% !important;
  height: 2px !important;
  margin: 8px 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, transparent, #638cff, #bd75ff, #638cff, transparent) !important;
}

#hasler-site-footer .hasler-footer-content,
.hasler-site-footer .hasler-footer-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#hasler-site-footer .hasler-footer-line,
.hasler-site-footer .hasler-footer-line {
  display: block !important;
  flex: 1 1 35px !important;
  max-width: 140px !important;
  height: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, transparent, #8b83ff, #62d8ff) !important;
}

#hasler-site-footer .hasler-footer-copyright,
.hasler-site-footer .hasler-footer-copyright {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: .04em !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

#hasler-site-footer .hasler-footer-actions,
.hasler-site-footer .hasler-footer-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#hasler-site-footer .hasler-theme-toggle,
.hasler-site-footer .hasler-theme-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 999px !important;
  background: #c9a7ff !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  transition: background-color .25s ease, color .25s ease,
              box-shadow .2s ease, border-color .25s ease !important;
}

html[data-theme="dark"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="dark"] .hasler-site-footer .hasler-theme-toggle {
  background: #c9a7ff !important;
  color: #ffffff !important;
}

html[data-theme="light"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="light"] .hasler-site-footer .hasler-theme-toggle {
  background: #542080 !important;
  color: #000000 !important;
  border-color: rgba(84,32,128,.35) !important;
}

#hasler-site-footer .hasler-theme-toggle:hover,
#hasler-site-footer .hasler-theme-toggle:focus-visible,
.hasler-site-footer .hasler-theme-toggle:hover,
.hasler-site-footer .hasler-theme-toggle:focus-visible {
  box-shadow: 0 0 16px rgba(160,120,255,.65) !important;
  border-color: rgba(180,150,255,.85) !important;
}

#hasler-site-footer .hasler-theme-label,
.hasler-site-footer .hasler-theme-label {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  text-transform: none !important;
}

@media (max-width: 480px) {
  #hasler-site-footer,
  .hasler-site-footer {
    padding: 8px 4px !important;
  }

  #hasler-site-footer .hasler-footer-content,
  .hasler-site-footer .hasler-footer-content {
    gap: 8px !important;
  }
}

/* Appearance button text colours */
html[data-theme="dark"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="dark"] .hasler-site-footer .hasler-theme-toggle {
  color: #000000 !important;
}

html[data-theme="light"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="light"] .hasler-site-footer .hasler-theme-toggle {
  color: #ffffff !important;
}

/* Dynamic footer text and decorative elements */
#hasler-site-footer,
.hasler-site-footer {
  color: #ffffff !important;
  transition: color .25s ease !important;
}

#hasler-site-footer .hasler-footer-copyright,
.hasler-site-footer .hasler-footer-copyright {
  color: #ffffff !important;
  transition: color .25s ease !important;
}

/* Dark mode: light footer text */
html[data-theme="dark"] #hasler-site-footer,
html[data-theme="dark"] .hasler-site-footer,
html[data-theme="dark"] #hasler-site-footer .hasler-footer-copyright,
html[data-theme="dark"] .hasler-site-footer .hasler-footer-copyright {
  color: #ffffff !important;
}

/* Light mode: dark footer text */
html[data-theme="light"] #hasler-site-footer,
html[data-theme="light"] .hasler-site-footer,
html[data-theme="light"] #hasler-site-footer .hasler-footer-copyright,
html[data-theme="light"] .hasler-site-footer .hasler-footer-copyright {
  color: #000000 !important;
}

/* Keep decorative gradient lines consistent */
#hasler-site-footer .hasler-footer-line,
.hasler-site-footer .hasler-footer-line {
  background: linear-gradient(90deg, transparent, #8b83ff, #62d8ff) !important;
}

#hasler-site-footer .hasler-footer-rule,
.hasler-site-footer .hasler-footer-rule {
  background: linear-gradient(90deg, transparent, #638cff, #bd75ff, #638cff, transparent) !important;
}

/* Button text colours remain as requested */
html[data-theme="dark"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="dark"] .hasler-site-footer .hasler-theme-toggle {
  color: #000000 !important;
}

html[data-theme="light"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="light"] .hasler-site-footer .hasler-theme-toggle {
  color: #ffffff !important;
}

/* Correct the rest of the footer text colours */
html[data-theme="dark"] #hasler-site-footer,
html[data-theme="dark"] .hasler-site-footer,
html[data-theme="dark"] #hasler-site-footer .hasler-footer-copyright,
html[data-theme="dark"] .hasler-site-footer .hasler-footer-copyright {
  color: #000000 !important;
}

html[data-theme="light"] #hasler-site-footer,
html[data-theme="light"] .hasler-site-footer,
html[data-theme="light"] #hasler-site-footer .hasler-footer-copyright,
html[data-theme="light"] .hasler-site-footer .hasler-footer-copyright {
  color: #ffffff !important;
}

/* Keep copyright text white in both themes */
#hasler-site-footer .hasler-footer-copyright,
.hasler-site-footer .hasler-footer-copyright {
  color: #ffffff !important;
}

/* FINAL OVERRIDE: copyright text stays white in every theme */
html body #hasler-site-footer .hasler-footer-copyright,
html body footer#hasler-site-footer .hasler-footer-copyright,
html body .hasler-site-footer .hasler-footer-copyright,
html body #hasler-site-footer span.hasler-footer-copyright {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Appearance button: dark purple in dark mode */
html[data-theme="dark"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="dark"] .hasler-site-footer .hasler-theme-toggle {
  background-color: #542080 !important;
}

/* Appearance button: light purple in light mode */
html[data-theme="light"] #hasler-site-footer .hasler-theme-toggle,
html[data-theme="light"] .hasler-site-footer .hasler-theme-toggle {
  background-color: #c9a7ff !important;
}

/* iPhone responsive styles */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 600px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container,
  main,
  .glass {
    max-width: 100%;
  }

  .glass {
    padding: 24px 16px;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  button,
  a {
    overflow-wrap: anywhere;
  }
}

/* iPhone footer overflow fix */
@media screen and (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }

  footer * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  footer button,
  footer .theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  footer hr {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* FORCE iPhone mobile footer layout */
@media screen and (max-width: 600px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  footer,
  body footer,
  #footer,
  .footer,
  .site-footer,
  .hasler-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px auto 0 !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: hidden !important;
    gap: 14px !important;
  }

  footer *,
  body footer *,
  #footer *,
  .footer *,
  .site-footer *,
  .hasler-footer * {
    position: static !important;
    float: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    transform: none !important;
  }

  footer button,
  footer .theme-toggle,
  #footer button,
  .footer button,
  .site-footer button,
  .hasler-footer button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 12px 24px !important;
    margin: 0 auto !important;
    white-space: normal !important;
  }

  footer::before,
  footer::after,
  #footer::before,
  #footer::after,
  .footer::before,
  .footer::after,
  .site-footer::before,
  .site-footer::after,
  .hasler-footer::before,
  .hasler-footer::after {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* FORCED IPHONE FOOTER FIX */
@media screen and (max-width: 600px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hasler-site-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px auto 0 !important;
    padding: 16px 12px 20px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hasler-footer-credit {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  .hasler-footer-credit-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  .hasler-footer-line {
    display: none !important;
  }

  .hasler-site-footer .hasler-theme-toggle {
    margin: 0 auto !important;
    max-width: 100% !important;
    min-height: 44px !important;
    white-space: normal !important;
  }
}

/* FINAL IPHONE FOOTER FIX — uses the actual shared footer markup */
@media (max-width: 600px) {
  html body #hasler-site-footer,
  html body .hasler-site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px auto 8px !important;
    padding: 0 8px !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  html body #hasler-site-footer .hasler-footer-rule,
  html body .hasler-site-footer .hasler-footer-rule {
    width: 100% !important;
    margin: 5px 0 8px !important;
  }

  html body #hasler-site-footer .hasler-footer-content,
  html body .hasler-site-footer .hasler-footer-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #hasler-site-footer .hasler-footer-copyright,
  html body .hasler-site-footer .hasler-footer-copyright {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body #hasler-site-footer .hasler-footer-line,
  html body .hasler-site-footer .hasler-footer-line {
    flex: 1 1 12px !important;
    min-width: 0 !important;
    max-width: 40px !important;
  }

  html body #hasler-site-footer .hasler-footer-actions,
  html body .hasler-site-footer .hasler-footer-actions {
    margin: 8px 0 0 !important;
    padding: 0 !important;
  }

  html body #hasler-site-footer .hasler-theme-toggle,
  html body .hasler-site-footer .hasler-theme-toggle {
    min-height: 40px !important;
    padding: 8px 16px !important;
  }
}


/* ADIDAS-STYLE FULL PAGE BACKGROUND */
html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 15%, rgba(80,55,190,.25), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(35,85,220,.20), transparent 40%),
        url('noisy-gradient.webp') no-repeat center center fixed,
        #0a0a0a;
    background-size: cover;
}
html {
    background-color: #0a0a0a;
}


/* FORCED GLOBAL ADIDAS-STYLE BACKGROUND */
html,
body {
    min-height: 100% !important;
    background:
        radial-gradient(circle at 15% 15%, rgba(80,55,190,.25), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(35,85,220,.20), transparent 40%),
        url('noisy-gradient.webp') center center / cover no-repeat fixed,
        #0a0a0a !important;
    background-color: #0a0a0a !important;
    background-size: cover !important;
}

html {
    min-height: 100% !important;
    width: 100% !important;
}

body {
    width: 100% !important;
    background-color: #0a0a0a !important;
}
