/* 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;
}

/* Let a <button> (the accessibility toggle) sit in the navbar
   looking exactly like the plain text nav links. */
button.navbar-item {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}


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

/* ── DARK MODE NAVBAR ─────────────────────────────────── */
[data-theme="dark"] .navbar {
  background-color: var(--bf-cream) !important;
  border-bottom: 5px solid var(--bf-black);
}
[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: var(--bf-cream) !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;
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
  background: var(--bf-cream);
  border-top-color: var(--bf-black);
}
[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; }

/* ── 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;
}

/* ── BRUTAL FLORAL BUTTON SYSTEM (site-wide) ──────────── */
/* Promoted out of pages/home.html so the navbar and the    */
/* auth pages can reuse the same custom buttons. The colour  */
/* variables theme with the rest of the site.               */
:root {
  --bf-cream:  #f5f0e8;
  --bf-black:  #0a0a0a;
  --bf-rose:   #c2185b;
  --bf-rose-dk:#ad1457;
  --bf-green:  #1b5e20;
  --bf-shadow: 6px 6px 0 #0a0a0a;
}

[data-theme="dark"] {
  --bf-cream:  #141410;
  --bf-black:  #ede8dc;
  --bf-rose:   #e91e8c;
  --bf-rose-dk:#c2185b;
  --bf-green:  #66bb6a;
  --bf-shadow: 6px 6px 0 #ede8dc;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bf-cream:  #141410;
    --bf-black:  #ede8dc;
    --bf-rose:   #e91e8c;
    --bf-rose-dk:#c2185b;
    --bf-green:  #66bb6a;
    --bf-shadow: 6px 6px 0 #ede8dc;
  }
}

.bf-btn {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border: 3.5px solid var(--bf-black);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  box-shadow: var(--bf-shadow);
  transition: transform 70ms ease, box-shadow 70ms ease;
  cursor: pointer;
}

.bf-btn--fill  { background: var(--bf-rose); color: var(--bf-cream); }
.bf-btn--ghost { background: transparent;    color: var(--bf-black); }

.bf-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--bf-black);
  text-decoration: none;
}
.bf-btn--fill:hover  { color: var(--bf-cream); }
.bf-btn--ghost:hover { color: var(--bf-black); }

/* Full-width variant for form submit buttons (auth pages) */
.bf-btn--block { display: block; width: 100%; text-align: center; }

/* Icon + label variant (keeps the glyph and text aligned) */
.bf-btn--icon { display: inline-flex; align-items: center; gap: 0.45em; }
/* Stop Bulma's fixed 1.5rem .icon box from making icon buttons taller.
   Box matches the text line; the glyph can spill slightly without adding height. */
.bf-btn--icon .icon { height: 1em; width: 1em; }
.bf-btn--icon .icon i { font-size: 1.15em; }

/* Compact variant sized to sit inside the navbar */
.bf-btn--sm {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 0.4em 0.8em;
  border-width: 2px;
  box-shadow: 2px 2px 0 var(--bf-black);
}
.bf-btn--sm:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--bf-black);
}

/* Row wrapper for navbar auth buttons */
.bf-navbtns { display: flex; align-items: center; gap: 0.6rem; }
