/* Skip link, focus rings, cookie banner, noscript nav, forms, tables */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #030506;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: none;
}

:root {
  --focus-ring: 0 0 0 3px rgba(167, 139, 250, 0.55);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

#cookie-consent-root {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.cookie-consent {
  pointer-events: auto;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent-inner {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.cookie-consent-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.cookie-consent-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cookie-consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #030506;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-strong);
}

.noscript-fallback {
  padding: 12px 20px;
  background: rgba(251, 146, 60, 0.12);
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

.noscript-fallback a {
  color: var(--accent);
  font-weight: 600;
  margin: 0 8px;
}

/* Back-to-top control after scroll (all pages) */
.scroll-top-btn {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #030506;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow var(--transition);
}

.scroll-top-btn:hover {
  box-shadow: 0 10px 32px var(--accent-glow);
}

.scroll-top-btn--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn-icon {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: none;
  }
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sites-table th,
.sites-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.sites-table th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.sites-table tbody tr:hover {
  background: rgba(167, 139, 250, 0.06);
}

.sites-table a {
  color: var(--accent);
  font-weight: 600;
}

.sites-table a:hover {
  color: var(--accent-2);
}

.page-404 {
  text-align: center;
  padding: 48px 24px 80px;
}

.page-404 p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.page-404 .btn-outline-404 {
  margin-left: 0;
}

.btn-outline-404 {
  display: inline-block;
  padding: 12px 28px;
  margin-left: 12px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline-404:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
}

.page-404 h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
