/* ===== Font: Archivo, hosted with the site (fonts/, free under the SIL Open Font License) =====
   One file covers every weight and width; each page preloads both files so text appears in
   the right font straight away instead of jumping when it arrives. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-wdth-italic.woff2) format('woff2');
}

/* ===== Colors & sizes (change these to restyle the whole site) =====
   Every page uses these names instead of raw colors, so the dark theme below
   (and any future restyle) only has to change them here. */
:root {
  --black: #000;
  --red: #e10600;          /* matches the logo red */
  --red-dark: #b80500;     /* buttons on hover */
  --red-soft: #fff4f4;     /* tinted background for selected / highlighted things */
  --red-line: #f1c4c2;     /* border around red-tinted boxes */
  --white: #fff;           /* white text on red/black (same in both themes) */
  --bg: #fff;              /* page background */
  --card: #fff;            /* cards, inputs, pop-ups */
  --surface: #f6f6f6;      /* light gray panels and rows */
  --surface-2: #ececec;    /* slightly darker gray (bars, hover) */
  --ink: #1a1a1a;          /* main text */
  --text: var(--ink);
  --muted: #555;           /* secondary text */
  --subtle: #6f6f6f;       /* small print (dark enough to read: passes WCAG AA) */
  --line: #e3e3e3;         /* light borders */
  --line-strong: #bbb;     /* input borders */
  --green: #1d7a3a;
  --blue: #1d4fb8;
  --shadow: 0 4px 14px rgba(0, 0, 0, .06);
  --nav-height: 64px;
  --radius: 10px;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;   /* headings (used at a condensed width) */
  /* Screen sizes used across the site: phones <= 600px, tablets <= 900px, small laptops <= 1200px */
  color-scheme: light;
}

/* ===== Dark "draft night" theme (menu bar toggle; remembered on this device) ===== */
:root[data-theme="dark"] {
  --red-dark: #ff2a20;
  --red-soft: rgba(225, 6, 0, .16);
  --red-line: rgba(225, 6, 0, .45);
  --bg: #0d0d0f;
  --card: #17171a;
  --surface: #1e1e22;
  --surface-2: #2a2a2f;
  --ink: #ececee;
  --muted: #b4b4ba;
  --subtle: #8e8e96;
  --line: #2c2c31;
  --line-strong: #46464d;
  --green: #4cc27a;
  --blue: #7ea6ff;
  --shadow: 0 4px 18px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  font-feature-settings: 'tnum' 0;
  background: var(--bg);
  color: var(--text);
}

/* ===== Top menu bar ===== */
.navbar {
  position: sticky;          /* stays at the top while scrolling */
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-height);
  padding: 0 1.25rem;
  background: var(--black);  /* black blends with the logo's background */
}

/* Hamburger icon */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* Logo: crops the extra black space around the logo image */
.logo {
  display: flex;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: 180px;
  height: 46px;
  object-fit: cover;
}

/* Menu links */
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

/* ===== Slide-out menu ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  max-width: 85vw;
  padding: 4rem 1.5rem 2rem;
  background: #111;
  transform: translateX(-100%);   /* hidden off-screen to the left */
  transition: transform .3s ease;
  z-index: 200;
}
.side-menu.open { transform: translateX(0); }

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-menu a {
  display: block;
  padding: .85rem 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid #2a2a2a;
}
.side-menu a:hover { color: var(--red); }

.close-menu {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Dark overlay behind the open menu */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  z-index: 150;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Page content ===== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.page-title {
  margin: 0 0 1.5rem;
  font-family: var(--display); font-stretch: 72%;
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
/* Small red line above a page title ("2026 NFL Season") */
.page-kicker {
  flex-basis: 100%;        /* its own line, even inside a flex header */
  margin: 0 0 .35rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-sub { margin: .4rem 0 0; color: var(--muted); }
@media (max-width: 600px) { .page-title { font-size: 2.1rem; } }

/* Gray placeholder shapes shown while a page's data loads */
.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
}
@keyframes skeleton { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Keyboard focus: always visible */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Theme toggle in the menu bar */
.theme-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.navbar .theme-toggle ~ .account-area { margin-left: .6rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}
.card h2 { margin-top: 0; }

/* ===== Smaller screens: hide inline links, use the hamburger menu ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ===== User accounts: menu bar button, dropdown and pop-up ===== */
.account-area {
  position: relative;
  margin-left: auto;   /* pushes the account button to the far right of the menu bar */
  flex-shrink: 0;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 220px;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.account-btn:hover { border-color: var(--red); color: var(--red); }
.account-btn.signed-in { padding: .25rem .8rem .25rem .25rem; }
.account-icon { display: grid; place-items: center; }
.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
}
.account-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 300;
  min-width: 220px;
  padding: .4rem;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.account-menu[hidden] { display: none; }
.account-menu-head {
  padding: .5rem .6rem .6rem;
  margin-bottom: .3rem;
  border-bottom: 1px solid var(--line);
}
.account-menu-name { font-weight: 700; color: var(--text); }
.account-menu-email { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.admin-badge {
  display: inline-block;
  margin-top: .35rem;
  padding: .05rem .45rem;
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-menu button,
.account-menu a {
  display: block;
  width: 100%;
  padding: .55rem .6rem;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.account-menu a { text-decoration: none; font-size: .95rem; }
.account-menu button:hover,
.account-menu a:hover { background: var(--surface); color: var(--red); }

/* Phones: show just the icon / initials to save room */
@media (max-width: 600px) {
  .account-label { display: none; }
  .account-btn, .account-btn.signed-in { padding: .35rem; }
}

/* ----- Log in / sign up pop-up ----- */
.auth-dialog {
  width: min(92vw, 400px);
  padding: 0;
  border: none;
  border-top: 4px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  color: var(--text);
  font-family: inherit;
}
.auth-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.auth-body { padding: 1.5rem; }
.auth-dialog h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.auth-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: none;
  background: none;
  color: var(--subtle);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.auth-close:hover { color: var(--red); }
.auth-intro { margin: -.25rem 0 1rem; color: var(--muted); font-size: .9rem; }

.auth-field {
  display: block;
  margin-bottom: .9rem;
}
.auth-field > span {
  display: block;
  margin-bottom: .3rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--red);
}
.auth-field input {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
}
.auth-field input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.auth-field input:disabled { background: var(--surface); color: var(--muted); }
.auth-field small { display: block; margin-top: .25rem; color: var(--subtle); font-size: .78rem; }

.auth-msg {
  margin: 0 0 .75rem;
  color: var(--red);
  font-size: .88rem;
  font-weight: 600;
}
.auth-msg:empty { display: none; }
.auth-msg.ok { color: var(--green); }

.auth-dialog .btn {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
}
.auth-dialog .btn:hover { background: var(--red-dark); }
.auth-dialog .btn:disabled { opacity: .6; cursor: default; }

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--muted);
}
.auth-dialog .link-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-dialog .link-btn:hover { text-decoration: underline; }

/* ===== Logged-in user card at the top of the slide-out menu ===== */
.side-menu { overflow-y: auto; }
.side-user {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #2a2a2a;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: #1b1b1b;
  color: var(--white);
}
.side-user:empty { display: none; }
.side-user-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.account-avatar.large { width: 44px; height: 44px; font-size: 1rem; font-weight: 700; }
.side-user-info { min-width: 0; }
.side-user-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.side-user-email { font-size: .8rem; color: #aaa; overflow-wrap: anywhere; }
.side-user .admin-badge { background: var(--red); }
.side-menu .side-user-link {
  padding: .6rem 0;
  font-size: .85rem;
  border-bottom-color: #2f2f2f;
}
.side-menu .side-user-link::after { content: " ›"; color: var(--red); }
.side-user-hint { margin: 0 0 .75rem; font-size: .9rem; color: #ccc; }
.side-user-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.side-btn {
  flex: 1;
  padding: .45rem .6rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.side-btn:hover { border-color: var(--red); color: var(--red); }
.side-btn.primary { background: var(--red); border-color: var(--red); }
.side-btn.primary:hover { background: var(--red-dark); color: var(--white); }

/* The page you're on, in the slide-out menu */
.side-menu ul a.active { color: var(--red); }

/* ===== Phones and tablets: tab bar along the bottom ===== */
.tab-bar { display: none; }
@media (max-width: 900px) {
  .tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
    background: var(--black);
    border-top: 2px solid var(--red);
  }
  .tab-bar a, .tab-bar button {
    display: grid;
    justify-items: center;
    gap: .1rem;
    padding: .3rem 0;
    border: none;
    background: none;
    color: #bdbdbd;
    font: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
  }
  .tab-bar .active { color: var(--red); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.to-top[hidden] { display: none; }

/* ===== Buttons (shared by every page; pages may add their own sizes) ===== */
.btn {
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .6rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-small { padding: .35rem .8rem; font-size: .8rem; }

/* Menu links: a little tighter on smaller laptops */
@media (max-width: 1200px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a, .nav-drop { font-size: .88rem; }
}

/* ===== "Draft" dropdown in the top bar ===== */
.nav-links { align-items: center; }
.nav-links .has-menu { position: relative; }
.nav-drop {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nav-drop svg { transition: transform .2s; }
.nav-drop:hover, .nav-drop[aria-expanded="true"] { color: var(--red); }
.nav-drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-links a.active, .has-menu.active > .nav-drop { color: var(--red); border-color: var(--red); }   /* the page you're on */
.nav-menu {
  position: absolute;
  top: calc(100% + .55rem);
  left: -1rem;
  z-index: 130;
  display: none;
  min-width: 270px;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
/* An invisible bridge so the mouse can travel from the button to the menu */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
.nav-drop[aria-expanded="true"] + .nav-menu { display: block; }
@media (hover: hover) {
  .has-menu:hover > .nav-menu { display: block; }
  .has-menu:hover > .nav-drop svg { transform: rotate(180deg); }
}
.nav-menu a {
  display: grid;
  gap: .1rem;
  padding: .6rem .75rem;
  border: none;
  border-radius: 7px;
  text-transform: none;
  letter-spacing: 0;
}
.nav-menu a span { font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-menu a small { color: #9a9a9a; font-weight: 500; font-size: .8rem; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: #222; color: var(--white); }
.nav-menu a:hover span, .nav-menu a.active span { color: var(--red); }

/* ===== Search ===== */
.search-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: var(--red); color: var(--red); }
.navbar .search-toggle ~ .theme-toggle { margin-left: -.9rem; }   /* sits next to search (navbar gap is 1.5rem) */

.site-search {
  position: fixed;
  top: calc(var(--nav-height) + .5rem);
  left: 50%;
  z-index: 140;
  width: min(640px, calc(100vw - 1.5rem));
  transform: translateX(-50%);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.site-search[hidden] { display: none; }
.site-search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.site-search-box input {
  flex: 1;
  min-width: 0;
  padding: .45rem 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.site-search-box input::-webkit-search-cancel-button { display: none; }
.site-search-close {
  padding: .2rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.site-search-results {
  max-height: min(60vh, 460px);
  margin: 0;
  padding: .3rem;
  overflow-y: auto;
  list-style: none;
}
.site-search-results:empty { display: none; }
.site-search-results a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.site-search-results a.active, .site-search-results a:hover { background: var(--surface-2); }
.ss-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  overflow: hidden;
}
.ss-icon.has-logo { background: #f4f4f4; }
.ss-icon img { width: 26px; height: 26px; object-fit: contain; }
.ss-text { display: grid; flex: 1; min-width: 0; }
.ss-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-kind {
  flex-shrink: 0;
  padding: .1rem .45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-search-empty { padding: 1rem; color: var(--muted); }

/* ===== Slide-out menu sections ===== */
.side-section { margin-top: 1.1rem; }
.side-heading {
  margin: 0 0 .1rem;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.side-section a, .side-home a { padding: .65rem 0; }
.side-section li:last-child a { border-bottom: none; }
.side-admin { padding-top: .9rem; border-top: 1px dashed #333; }
.side-admin a { font-size: .9rem; text-transform: none; }

/* ===== Admin bar (admin pages only, admins only) ===== */
.admin-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: #1a1a1a;
  border-bottom: 1px solid #2c2c2c;
}
.admin-bar[hidden] { display: none; }
.admin-bar-label {
  flex-shrink: 0;
  padding: .15rem .5rem;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-bar-links {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-bar-links::-webkit-scrollbar { display: none; }
.admin-bar-links a {
  flex-shrink: 0;
  padding: .7rem 0;
  border-bottom: 2px solid transparent;
  color: #c9c9c9;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.admin-bar-links a:hover { color: var(--white); }
.admin-bar-links a.active { color: var(--white); border-color: var(--red); }

/* ===== Phones: a tighter top bar ===== */
@media (max-width: 600px) {
  .navbar { gap: .75rem; padding: 0 .75rem; }
  .logo img { width: 150px; height: 40px; }
  .navbar .search-toggle ~ .theme-toggle { margin-left: -.25rem; }
  .navbar .theme-toggle ~ .account-area { margin-left: 0; }
  .admin-bar { padding: 0 .75rem; gap: .75rem; }
}

/* Small laptops and tablets in landscape: keep the top bar on one line */
.nav-links a, .nav-drop { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .navbar { gap: 1rem; }
  .logo img { width: 150px; height: 40px; }
  .nav-links { gap: .95rem; }
  .nav-links a, .nav-drop { font-size: .82rem; }
  .account-label { display: none; }
  .account-btn.signed-in { padding: .25rem; }
  .navbar .search-toggle ~ .theme-toggle { margin-left: -.4rem; }
}

/* ===== Password rules checklist (sign up, reset, account page) ===== */
.pw-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .15rem .75rem;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
}
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--green); }
.pw-rules li.ok::before { content: "✓ "; font-weight: 800; }
.pw-rules .pw-meter { grid-column: 1 / -1; height: 4px; margin-top: .25rem; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.pw-rules .pw-meter::before { content: none; }
.pw-rules .pw-meter span { display: block; height: 100%; background: var(--green); transition: width .2s; }
.auth-captcha { min-height: 65px; }
a.side-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ===== Footer (every page, added by script.js) ===== */
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 1.25rem 2rem;
  background: var(--black);
  border-top: 3px solid var(--red);
  color: #a9a9a9;
  font-size: .8rem;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: .5rem; }
.site-footer-brand {
  color: var(--white);
  font-family: var(--display); font-stretch: 72%;
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer-brand span { color: var(--red); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer-links a { color: var(--white); font-weight: 700; text-decoration: none; }
.site-footer-links a:hover { color: var(--red); }
.site-footer p { margin: 0; max-width: 60rem; }
