i /* These styles are generated from project.scss. */

/* ── LAYOUT: footer pushed to bottom on short pages ───── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1; }

/* ── STICKY NAVBAR ────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
}


/* ── DROPDOWNS ────────────────────────────────────────── */
.dropdown.is-active .dropdown-menu {
  z-index: 30;
}

/* ── DARK MODE NAVBAR ─────────────────────────────────── */
[data-theme="dark"] .navbar {
  background-color: #0d2010 !important;
  border-bottom: 5px solid #ede8dc;
}
[data-theme="dark"] a.navbar-item,
[data-theme="dark"] .navbar-link,
[data-theme="dark"] .navbar-item { color: #ede8dc !important; }

[data-theme="dark"] a.navbar-item:hover,
[data-theme="dark"] .navbar-link:hover {
  background-color: rgba(237,232,220,0.1) !important;
  color: #ede8dc !important;
}
[data-theme="dark"] .navbar-menu    { background-color: #0d2010 !important; }
[data-theme="dark"] .navbar-dropdown {
  background-color: #0a1a0c !important;
  border-top-color: #ede8dc !important;
}
[data-theme="dark"] .navbar-divider { background-color: rgba(237,232,220,0.2) !important; }
[data-theme="dark"] .navbar-burger span { background-color: #ede8dc !important; }

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  padding: 3rem 2rem 2rem !important;
  border-top: 5px solid #0a0a0a;
  background: #f5f0e8;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__brand {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #0a0a0a;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #0a0a0a;
}

.site-footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 80ms;
}

.site-footer__links a:hover {
  border-bottom-color: #c2185b;
  color: #0a0a0a;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(10,10,10,0.15);
}

.site-footer__copy {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #0a0a0a;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.site-footer__a11y {
  font-family: 'Courier Prime', 'Courier New', monospace !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.45em 1em !important;
  border: 2.5px solid #0a0a0a !important;
  background: transparent !important;
  color: #0a0a0a !important;
  box-shadow: 3px 3px 0 #0a0a0a !important;
  border-radius: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: transform 70ms ease, box-shadow 70ms ease !important;
}

.site-footer__a11y:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0 #0a0a0a !important;
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
  background: #0d2010;
  border-top-color: #ede8dc;
}
[data-theme="dark"] .site-footer__brand,
[data-theme="dark"] .site-footer__links a,
[data-theme="dark"] .site-footer__copy { color: #ede8dc; }
[data-theme="dark"] .site-footer__brand { border-bottom-color: rgba(237,232,220,0.35); }
[data-theme="dark"] .site-footer__bottom { border-top-color: rgba(237,232,220,0.15); }
[data-theme="dark"] .site-footer__links a:hover { border-bottom-color: #e91e8c; color: #ede8dc; }
[data-theme="dark"] .site-footer__a11y {
  border-color: #ede8dc !important;
  color: #ede8dc !important;
  box-shadow: 3px 3px 0 #ede8dc !important;
}
[data-theme="dark"] .site-footer__a11y:hover {
  box-shadow: 5px 5px 0 #ede8dc !important;
}

/* ── ACCESSIBILITY TRIGGER BUTTON ─────────────────────── */
#a11y-toggle {
  font-family: 'Courier Prime', 'Courier New', monospace !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.5em 1.1em !important;
  border: 3px solid #0a0a0a !important;
  background: transparent !important;
  color: #0a0a0a !important;
  box-shadow: 4px 4px 0 #0a0a0a !important;
  border-radius: 0 !important;
  height: auto !important;
  cursor: pointer;
  transition: transform 70ms ease, box-shadow 70ms ease !important;
}

#a11y-toggle:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0 #0a0a0a !important;
  background: transparent !important;
  color: #0a0a0a !important;
}

[data-theme="dark"] #a11y-toggle {
  border-color: #ede8dc !important;
  color: #ede8dc !important;
  box-shadow: 4px 4px 0 #ede8dc !important;
}

[data-theme="dark"] #a11y-toggle:hover {
  box-shadow: 6px 6px 0 #ede8dc !important;
  color: #ede8dc !important;
}

/* ── ACCESSIBILITY MODAL BUTTON GROUPS ────────────────── */
.a11y-btn-group {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
}

.a11y-btn-group label.radio {
  display: inline-flex !important;
  align-items: center;
  border: 2.5px solid #0a0a0a;
  padding: 0.45em 1.1em;
  margin-left: -2.5px;
  cursor: pointer;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f5f0e8;
  color: #0a0a0a;
  position: relative;
  transition: background 60ms, color 60ms;
  user-select: none;
}

.a11y-btn-group label.radio:first-child {
  margin-left: 0;
}

.a11y-btn-group label.radio:has(input:checked) {
  background: #0a0a0a;
  color: #f5f0e8;
  z-index: 1;
}

.a11y-btn-group label.radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.a11y-done-btn {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7em 2em;
  border: 3px solid #0a0a0a;
  background: #1b5e20;
  color: #f5f0e8;
  box-shadow: 4px 4px 0 #0a0a0a;
  cursor: pointer;
  transition: transform 70ms ease, box-shadow 70ms ease;
}

.a11y-done-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0a0a0a;
}

/* ── A11Y PREFERENCE IMPLEMENTATIONS ─────────────────── */
/* zoom on main only — leaves navbar/rem base untouched */
[data-a11y-text="large"]       body > main { zoom: 1.125; }
[data-a11y-text="extra-large"] body > main { zoom: 1.25;  }

[data-a11y-contrast="high"] { filter: contrast(1.3) !important; }
[data-a11y-contrast="low"]  { filter: contrast(0.75) brightness(1.1) !important; }

[data-a11y-motion="reduced"] *,
[data-a11y-motion="reduced"] *::before,
[data-a11y-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
