/* GSR Site Footer v1.0.8 — safe, scoped Fairy footer refinements */
footer.gsr-footer-polished,
.gsr-footer-polished {
  --gsr-footer-bg: #34343a;
  --gsr-footer-bottom-bg: #2d2d33;
  --gsr-footer-red: #a71919;
  --gsr-footer-text: #e0e0e4;
  --gsr-footer-muted: #c3c4c9;
  background: var(--gsr-footer-bg);
  border-top: 3px solid var(--gsr-footer-red);
  color: var(--gsr-footer-text);
}
.gsr-footer-polished .gsr-footer-brand {
  width: 100%;
  box-sizing: border-box;
  padding: 31px 24px 28px;
  background: var(--gsr-footer-bg);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.gsr-footer-polished .gsr-footer-brand__inner {
  max-width: 1140px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
/* Keep the social group next to the publication identity rather than floating at the far edge. */
.gsr-footer-polished .gsr-footer-brand__text {
  flex: 1 1 620px;
  min-width: 0;
  max-width: 660px;
}
.gsr-footer-polished .gsr-footer-brand__title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 10px;
}
.gsr-footer-polished .gsr-footer-brand__rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gsr-footer-red);
  margin: 0 0 11px;
}
.gsr-footer-polished .gsr-footer-brand__editorial {
  color: var(--gsr-footer-muted);
  font: 400 14px/1.65 Arial, Helvetica, sans-serif;
  max-width: 650px;
  margin: 0;
}
.gsr-footer-polished .gsr-footer-follow {
  display: flex;
  flex: 0 1 440px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  width: 440px;
  max-width: 100%;
}
.gsr-footer-polished .gsr-footer-follow__title {
  font: 600 16px/1.4 Arial, Helvetica, sans-serif;
  color: #fff;
  margin: 0 0 12px;
}
.gsr-footer-polished .gsr-footer-follow__rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gsr-footer-red);
  margin: 0 0 13px;
}
.gsr-footer-polished .gsr-footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.gsr-footer-polished .gsr-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
  transition: background-color .18s ease, border-color .18s ease;
}
.gsr-footer-polished .gsr-footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.gsr-footer-polished a.gsr-footer-social:hover {
  background: var(--gsr-footer-red);
  color: #fff;
  border-color: var(--gsr-footer-red);
}
/* Placeholders are visible but do not behave like links. */
.gsr-footer-polished .gsr-footer-social--placeholder {
  opacity: .96;
  cursor: default;
  user-select: none;
}
.gsr-footer-polished .gsr-footer-social--placeholder:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.26);
  color: #fff;
}
.gsr-footer-polished a.gsr-footer-social:focus-visible,
.gsr-footer-polished .gsr-footer-nav-grid a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The existing Fairy widget area is retained, including its WordPress-managed links. */
.gsr-footer-polished .site-footer-top,
.gsr-footer-polished .footer-top { padding-top: 0 !important; padding-bottom: 0 !important; }
.gsr-footer-polished .gsr-footer-nav-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  column-gap: 48px;
  row-gap: 26px;
  padding-top: 30px !important;
  padding-bottom: 21px !important;
  align-items: start;
}
.gsr-footer-polished .gsr-footer-nav-col {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gsr-footer-polished .gsr-footer-nav-col .widget { margin: 0 !important; }
.gsr-footer-polished .gsr-footer-nav-title {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: .1px;
  text-transform: none !important;
  margin: 0 0 13px !important;
  padding: 0 0 12px !important;
  position: relative;
  border: 0 !important;
}
.gsr-footer-polished .gsr-footer-nav-title::before { content: none !important; display:none !important; }
.gsr-footer-polished .gsr-footer-nav-title::after {
  content: '' !important;
  display: block !important;
  width: 30px;
  height: 2px;
  position: absolute;
  background: var(--gsr-footer-red);
  bottom: 0;
  left: 0;
}
.gsr-footer-polished .gsr-footer-nav-list,
.gsr-footer-polished .gsr-footer-nav-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gsr-footer-polished .gsr-footer-nav-list li + li { margin-top: 8px !important; }
.gsr-footer-polished .gsr-footer-nav-list li::before,
.gsr-footer-polished .gsr-footer-nav-list li::after,
.gsr-footer-polished .gsr-footer-nav-list a::before,
.gsr-footer-polished .gsr-footer-nav-list li .fa-angle-double-right {
  content: none !important;
  display: none !important;
}
.gsr-footer-polished .gsr-footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding-block: 2px;
  color: var(--gsr-footer-text) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-decoration: none !important;
  transition: color .18s ease;
}
.gsr-footer-polished .gsr-footer-nav-list a:hover,
.gsr-footer-polished .gsr-footer-nav-list a:focus-visible { color: #ff8787 !important; }
.gsr-footer-polished .site-footer-bottom,
.gsr-footer-polished .footer-bottom,
.gsr-footer-polished .gsr-footer-copyright-bar {
  background: var(--gsr-footer-bottom-bg);
}
.gsr-footer-polished .site-footer-bottom,
.gsr-footer-polished .footer-bottom {
  padding: 22px 16px !important;
}
.gsr-footer-polished .site-footer-bottom p,
.gsr-footer-polished .site-footer-bottom .copyright,
.gsr-footer-polished .gsr-footer-copyright-bar {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #c5c6cd !important;
  text-align: center;
}

/* Target the exact copyright text too; some Fairy versions style the inner paragraph. */
.gsr-footer-polished .gsr-footer-copyright-text,
.gsr-footer-polished .gsr-footer-copyright-text * {
  color: #c5c6cd !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
@media (max-width: 800px) {
  .gsr-footer-polished .gsr-footer-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; column-gap: 30px; }
  .gsr-footer-polished .gsr-footer-brand { padding: 28px 20px; }
  .gsr-footer-polished .gsr-footer-brand__inner { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .gsr-footer-polished .gsr-footer-brand__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gsr-footer-polished .gsr-footer-brand__text { flex: 0 1 auto; width: 100%; }
  .gsr-footer-polished .gsr-footer-brand__title { font-size: 19px; }
  .gsr-footer-polished .gsr-footer-follow { width: 100%; flex: 0 0 auto; }
  .gsr-footer-polished .gsr-footer-brand__editorial { font-size: 13px; line-height: 1.65; }
  .gsr-footer-polished .gsr-footer-nav-grid { grid-template-columns: 1fr !important; padding: 30px 20px !important; gap: 25px; }
  .gsr-footer-polished .gsr-footer-nav-title { margin-bottom: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .gsr-footer-polished .gsr-footer-social,
  .gsr-footer-polished .gsr-footer-nav-list a { transition: none !important; }
}

/* Fairy Back-to-Top: cosmetic desktop-only sizing, when identified by the JS.
   Do not create/move the control or override its click and visibility logic. */
@media (min-width: 801px) {
  .gsr-footer-go-top {
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 6px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}
