/**
 * Jedi-Robe footer, legal footer, go-to-top and global chrome.
 *
 * Migration-safe extraction from the canonical Jedi-Robe dark-commerce
 * stylesheet. Rule order and declarations are preserved for staging review.
 *
 * @package Jedi_Theme
 * @since   2026-08-25
 */

/* ========================================================================== 
   Main footer widget columns
   ========================================================================== */

body.jr-dark-commerce #colophon,
body.jr-dark-commerce footer.site-footer,
body.jr-dark-commerce .site-footer {
  position: relative;
  border-top: 1px solid var(--jr-border-strong);
  background:
    radial-gradient(circle at 8% 0, rgba(45, 166, 83, 0.06), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(71, 148, 205, 0.07), transparent 32rem),
    linear-gradient(180deg, #0b1018, #06090f) !important;
  color: var(--jr-text-soft) !important;
}

body.jr-dark-commerce #colophon::before,
body.jr-dark-commerce footer.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 166, 83, 0.7), transparent);
  box-shadow: 0 0 1.25rem rgba(45, 166, 83, 0.18);
  content: "";
  pointer-events: none;
}

body.jr-dark-commerce #colophon .footer-widgets,
body.jr-dark-commerce #colophon .footer-widgets .col-full,
body.jr-dark-commerce .site-footer .footer-widgets,
body.jr-dark-commerce .site-footer .footer-widgets .col-full,
body.jr-dark-commerce #colophon .widget,
body.jr-dark-commerce #colophon .widget-area,
body.jr-dark-commerce .site-footer .widget,
body.jr-dark-commerce .site-footer .widget-area {
  border-color: var(--jr-border) !important;
  background: transparent !important;
  color: var(--jr-text-soft) !important;
}

body.jr-dark-commerce #colophon h2,
body.jr-dark-commerce #colophon h3,
body.jr-dark-commerce #colophon h4,
body.jr-dark-commerce #colophon .widget-title,
body.jr-dark-commerce .site-footer h2,
body.jr-dark-commerce .site-footer h3,
body.jr-dark-commerce .site-footer h4,
body.jr-dark-commerce .site-footer .widget-title {
  position: relative;
  margin-bottom: 1.25rem;
  color: var(--jr-text) !important;
  font-weight: 700;
  letter-spacing: 0.025em;
}

body.jr-dark-commerce #colophon .widget-title::after,
body.jr-dark-commerce .site-footer .widget-title::after {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--jr-green-light), transparent);
  box-shadow: 0 0 0.75rem rgba(45, 166, 83, 0.2);
  content: "";
}

body.jr-dark-commerce #colophon p,
body.jr-dark-commerce #colophon li,
body.jr-dark-commerce #colophon address,
body.jr-dark-commerce #colophon label,
body.jr-dark-commerce .site-footer p,
body.jr-dark-commerce .site-footer li,
body.jr-dark-commerce .site-footer address,
body.jr-dark-commerce .site-footer label {
  color: var(--jr-text-soft) !important;
}

body.jr-dark-commerce #colophon small,
body.jr-dark-commerce #colophon .description,
body.jr-dark-commerce #colophon .form-description,
body.jr-dark-commerce .site-footer small {
  color: var(--jr-text);
}

body.jr-dark-commerce #colophon a,
body.jr-dark-commerce footer.site-footer a:not(.button) {
  color: var(--jr-text-soft);
  text-decoration-color: transparent;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

/**
 * Footer link hover state.
 *
 * Keeps footer links consistent with the Jedi-Robe dark sci-fi design by
 * replacing the standard underline treatment with a restrained accent glow.
 *
 * @package Jedi_Theme
 */

body.jr-dark-commerce #colophon a:hover,
body.jr-dark-commerce footer.site-footer a:not(.button):hover {
              background: transparent;
            color: #fff;
            text-shadow: 0 0 0.7rem rgba(69, 217, 107, 0.06);
	text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.18em;
}

/* ========================================================================== 
   Exact final legal footer markup
   ========================================================================== */

body.jr-dark-commerce .jedi-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--jr-border-strong);
  background:
    radial-gradient(circle at 12% 0, rgba(45, 166, 83, 0.055), transparent 28rem),
    radial-gradient(circle at 88% 100%, rgba(71, 148, 205, 0.045), transparent 30rem),
    linear-gradient(180deg, #0b0f16, #04070c) !important;
  color: var(--jr-text-soft) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 -1.75rem 4rem rgba(0, 0, 0, 0.18);
}

body.jr-dark-commerce .jedi-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(45, 166, 83, 0.18) 15%,
      rgba(69, 217, 107, 0.72) 50%,
      rgba(45, 166, 83, 0.18) 85%,
      transparent 100%
    );
  box-shadow: 0 0 1.25rem rgba(45, 166, 83, 0.15);
  content: "";
  pointer-events: none;
}

body.jr-dark-commerce .jedi-footer > .col-full {
  width: 100%;
  max-width: var(--jr-container);
  margin-inline: auto;
  background: transparent;
}

body.jr-dark-commerce .jedi-footer #text-16,
body.jr-dark-commerce .jedi-footer #text-16 .textwidget {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--jr-text-soft);
}

body.jr-dark-commerce .jedi-footer .jedi-copyright {
  display: grid;
  gap: 0.25rem;
  width: 100%;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0 0.5rem;
  text-align: center;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__links br {
  display: none;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__links a {
  display: inline-flex;
  align-items: center;
  padding-inline: clamp(0.45rem, 0.8vw, 0.75rem);
  color: var(--jr-text-soft) !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__links a:hover {
  color: var(--jr-text) !important;
  text-shadow: 0 0 0.9rem rgba(45, 166, 83, 0.18);
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__links .separator {
  color: rgba(69, 217, 107, 0.38) !important;
  font-size: 0.8rem;
  line-height: 1;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.25rem);
  width: 100%;
  margin: 0;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-item {
  position: relative;
  display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  overflow: hidden;
  min-width: 100%;
  padding: 15px;
  border: 1px solid rgba(111, 203, 255, 0.22);
  border-radius: 0.1875rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(111, 203, 255, 0.055), transparent 15rem),
    rgba(10, 17, 27, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 1rem 2rem rgba(0, 0, 0, 0.14);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--jr-green-light), transparent);
  box-shadow: 0 0 0.8rem rgba(45, 166, 83, 0.18);
  content: "";
}

@media (hover: hover) and (pointer: fine) {
  body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-item:hover {
    border-color: rgba(69, 217, 107, 0.46);
    background:
      linear-gradient(135deg, rgba(111, 203, 255, 0.065), transparent 40%),
      rgba(11, 19, 30, 0.68);
    transform: translateY(-0.125rem);
  }
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-text {
  color: var(--jr-text-soft) !important;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  text-align: left;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info .date {
  color: var(--jr-text) !important;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__info .copyright {
  color: var(--jr-text);
  font-size: 14px;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__about {
  position: relative;
  margin: 0;
  padding-top: 0.25rem;
  text-align: center;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__about .text {
  max-width: 76rem;
  margin-inline: auto;
  color: var(--jr-text);
  font-size: clamp(0.8rem, 0.76rem + 0.1vw, 0.87rem);
  line-height: 1.65;
  text-wrap: balance;
}

body.jr-dark-commerce .jedi-footer .jedi-copyright__about small {
  color: inherit !important;
}

/* ========================================================================== 
   Go-to-top control
   ========================================================================== */

body.jr-dark-commerce .go-top,
body.jr-dark-commerce .go-to-top,
body.jr-dark-commerce .back-to-top,
body.jr-dark-commerce .shoptimizer-go-to-top,
body.jr-dark-commerce #scroll-to-top {
  z-index: 999;
  display: grid !important;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0 !important;
  place-items: center;
  border: 1px solid transparent !important;
  border-radius: 0.875rem;
  background:
    linear-gradient(145deg, #111722, #070a10) padding-box,
    linear-gradient(145deg, rgba(69, 217, 107, 0.9), rgba(45, 166, 83, 0.38) 55%, rgba(111, 203, 255, 0.24)) border-box !important;
  color: var(--jr-green-light) !important;
  box-shadow:
    0 1rem 2.5rem rgba(0, 0, 0, 0.42),
    0 0 1.3rem rgba(45, 166, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

body.jr-dark-commerce .go-top svg,
body.jr-dark-commerce .go-top svg path,
body.jr-dark-commerce .go-to-top svg,
body.jr-dark-commerce .go-to-top svg path,
body.jr-dark-commerce .back-to-top svg,
body.jr-dark-commerce .back-to-top svg path,
body.jr-dark-commerce .shoptimizer-go-to-top svg,
body.jr-dark-commerce .shoptimizer-go-to-top svg path,
body.jr-dark-commerce #scroll-to-top svg,
body.jr-dark-commerce #scroll-to-top svg path,
body.jr-dark-commerce .go-top i,
body.jr-dark-commerce .go-to-top i,
body.jr-dark-commerce .back-to-top i {
  color: currentcolor !important;
  fill: none;
  stroke: currentcolor !important;
  stroke-width: 2.25;
}

body.jr-dark-commerce .go-top:hover,
body.jr-dark-commerce .go-to-top:hover,
body.jr-dark-commerce .back-to-top:hover,
body.jr-dark-commerce .shoptimizer-go-to-top:hover,
body.jr-dark-commerce #scroll-to-top:hover {
  background:
    linear-gradient(145deg, #171f2d, #0b0f17) padding-box,
    linear-gradient(145deg, var(--jr-green-bright), var(--jr-green) 65%, rgba(111, 203, 255, 0.42)) border-box !important;
  color: var(--jr-green-bright) !important;
  transform: translateY(-0.25rem);
  box-shadow:
    0 1.3rem 3rem rgba(0, 0, 0, 0.48),
    0 0 1.7rem rgba(45, 166, 83, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

/* ========================================================================== 
   Keyboard focus
   ========================================================================== */

body.jr-dark-commerce a:focus-visible,
body.jr-dark-commerce button:focus-visible,
body.jr-dark-commerce input:focus-visible,
body.jr-dark-commerce .go-top:focus-visible,
body.jr-dark-commerce .go-to-top:focus-visible,
body.jr-dark-commerce .back-to-top:focus-visible,
body.jr-dark-commerce .shoptimizer-go-to-top:focus-visible,
body.jr-dark-commerce #scroll-to-top:focus-visible {
  outline: 3px solid var(--jr-blue-light);
  outline-offset: 3px;
}

/* ========================================================================== 
   Tablet and mobile footer
   ========================================================================== */

@media (max-width: 992px) {
  body.jr-dark-commerce .jedi-footer .jedi-copyright__info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.jr-dark-commerce {
    --jr-gutter: 2rem;
  }

  body.jr-dark-commerce .jedi-the-way-you-like-section [class*="newsletter"],
  body.jr-dark-commerce .jedi-the-way-you-like-section [class*="subscribe"],
  body.jr-dark-commerce .jedi-the-way-you-like-section [class*="right-column"] {
    border-top-color: rgba(152, 169, 192, 0.24) !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 620px) {
  body.jr-dark-commerce .jedi-footer > .col-full {
    padding-inline: 1.25rem;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__links {
    gap: 0.65rem;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__links a {
    padding: 0;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__links .separator {
    display: none;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__info {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-item {
    min-height: 0;
    justify-content: center;
  }

  body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-text {
    text-align: center;
  }

  body.jr-dark-commerce .go-top,
  body.jr-dark-commerce .go-to-top,
  body.jr-dark-commerce .back-to-top,
  body.jr-dark-commerce .shoptimizer-go-to-top,
  body.jr-dark-commerce #scroll-to-top {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 0.75rem;
  }
}

/* ========================================================================== 
   Accessibility motion preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  body.jr-dark-commerce *,
  body.jr-dark-commerce *::before,
  body.jr-dark-commerce *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.jr-dark-commerce ul.products li.product .button:hover,
  body.jr-dark-commerce .jedi-footer .jedi-copyright__info .info-item:hover,
  body.jr-dark-commerce .go-top:hover,
  body.jr-dark-commerce .go-to-top:hover,
  body.jr-dark-commerce .back-to-top:hover,
  body.jr-dark-commerce .shoptimizer-go-to-top:hover,
  body.jr-dark-commerce #scroll-to-top:hover {
    transform: none;
  }
}

