/* Shared footer + explore topnav (landing + explore + static pages). */

.tls-footer {
  width: 100%;
  background: #080808;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
  margin-top: auto;
}

.tls-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem 1.5rem;
  box-sizing: border-box;
}

.tls-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, auto));
  gap: 2rem 2.5rem;
  align-items: start;
}

.tls-footer-brand {
  min-width: 0;
}

.tls-footer-logo,
.tls-footer-logo:link,
.tls-footer-logo:visited {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #faf8f4 !important;
  text-decoration: none;
  display: inline-block;
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.tls-footer-logo:hover {
  color: #fff !important;
}

.tls-footer-logo .accent {
  color: var(--accent) !important;
  font-style: italic;
  font-weight: 700;
}

/* Footer always uses light-on-dark — never inherit page body link colors */
.tls-footer {
  color: rgba(250, 248, 244, 0.82);
}

.tls-footer-tagline {
  margin: 0.5rem 0 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.55);
  max-width: 16rem;
}

.tls-footer-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 248, 244, 0.45);
  margin: 0 0 0.65rem;
}

.tls-footer-links,
.tls-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tls-footer-links a,
.tls-footer-links a:link,
.tls-footer-links a:visited {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(250, 248, 244, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.tls-footer-links a:hover {
  color: var(--accent);
}

.tls-footer-col--social .tls-footer-social {
  flex-direction: row;
  gap: 0.45rem;
}

.tls-footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.04);
  color: rgba(250, 248, 244, 0.78);
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease;
}

.tls-footer-icon-link:hover {
  color: #faf8f4;
  border-color: rgba(200, 57, 10, 0.55);
  background: rgba(200, 57, 10, 0.1);
  transform: translateY(-1px);
}

.tls-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
}

.tls-footer-copy,
.tls-footer-credit {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.76rem;
  color: rgba(250, 248, 244, 0.5);
  line-height: 1.4;
}

.tls-footer-credit strong {
  color: rgba(250, 248, 244, 0.78);
  font-weight: 600;
}

.explore-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(.75rem, env(safe-area-inset-top, 0px)) 2rem .75rem;
  min-height: var(--explore-nav-h, 56px);
  box-sizing: border-box;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    transform .4s cubic-bezier(.4, 0, .2, 1),
    background .4s ease,
    border-color .35s ease,
    backdrop-filter .4s ease,
    box-shadow .4s ease;
}

@media (min-width: 601px) {
  .land-nav.tls-nav-auto-hidden,
  .explore-topnav.tls-nav-auto-hidden {
    transform: translateY(calc(-100% - 4px));
    pointer-events: none;
  }
}

.explore-topnav.scrolled {
  background: rgba(10, 9, 8, .55);
  backdrop-filter: blur(22px) saturate(180%) brightness(.85);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(.85);
  border-bottom-color: rgba(250, 248, 244, .08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 8px 28px rgba(0, 0, 0, .2);
}

[data-theme="light"] .explore-topnav.scrolled {
  background: rgba(250, 248, 244, .86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(15, 14, 13, .1);
  box-shadow: 0 6px 24px rgba(15, 14, 13, .08);
}

.explore-topnav-home {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: #faf8f4;
  text-decoration: none;
  transition: color .2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
[data-theme="light"] .explore-topnav:not(.scrolled) .explore-topnav-home {
  color: #faf8f4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
[data-theme="light"] .explore-topnav.scrolled .explore-topnav-home {
  color: var(--ink);
  text-shadow: none;
}
[data-theme="dark"] .explore-topnav.scrolled .explore-topnav-home {
  text-shadow: none;
}

.explore-topnav-home:hover,
[data-theme="light"] .explore-topnav-home:hover,
[data-theme="light"] .explore-topnav:not(.scrolled) .explore-topnav-home:hover,
[data-theme="light"] .explore-topnav.scrolled .explore-topnav-home:hover {
  color: var(--accent);
}
.explore-topnav-home:hover .explore-topnav-arrow {
  transform: translateX(-3px);
}

.explore-topnav-home svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: .85;
}
.explore-topnav-arrow {
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}

.explore-topnav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.explore-topnav-right .theme-toggle { color: rgba(250,248,244,.78); }
.explore-topnav-right .theme-toggle:hover { background: rgba(250,248,244,.1); color: #faf8f4; }
[data-theme="light"] .explore-topnav:not(.scrolled) .explore-topnav-right .theme-toggle {
  color: rgba(250, 248, 244, 0.78);
}
[data-theme="light"] .explore-topnav:not(.scrolled) .explore-topnav-right .theme-toggle:hover {
  background: rgba(250, 248, 244, 0.12);
  color: #faf8f4;
}
[data-theme="light"] .explore-topnav.scrolled .explore-topnav-right .theme-toggle {
  color: #5f5750;
}
[data-theme="light"] .explore-topnav.scrolled .explore-topnav-right .theme-toggle:hover {
  background: rgba(15, 14, 13, 0.08);
  color: var(--ink);
}

[data-theme="dark"] .tls-footer {
  background: #0a0908;
  border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .tls-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
  .tls-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .tls-footer-inner {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .tls-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1rem;
  }
  .tls-footer-tagline {
    max-width: none;
  }
  .tls-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
  }
  .explore-topnav { padding: .7rem 1.25rem; }
}

@media (max-width: 420px) {
  .tls-footer-grid {
    grid-template-columns: 1fr;
  }
  .tls-footer-col--social .tls-footer-social {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .land-nav.tls-nav-auto-hidden,
  .explore-topnav.tls-nav-auto-hidden {
    transform: none;
    opacity: 0;
    pointer-events: none;
  }
}
