/* DarkTiger Football — shared styles for subpages (index.html carries its own inline copy) */
:root {
  --green: #24462f;
  --green-deep: #17301f;
  --chalk: #f7f4ea;
  --gold: #ffd34d;
  --red: #e05252;
  --red-soft: #ef9a9a;
  --go: #5ecb8f;
  --mute: #b3c4b8;
  --paper: #f4ead2;
  --ink: #2b2418;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Chalkboard SE', 'Comic Sans MS', cursive;
  background: var(--green); color: var(--chalk); overflow-x: hidden;
}
/* the field: top-down turf stripes + yard lines, kept quiet under the content */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,.15) 0px, rgba(255,255,255,.15) 3px, transparent 3px, transparent 16.66vh),
    repeating-linear-gradient(180deg,
      rgba(0,0,0,0) 0vh, rgba(0,0,0,0) 16.66vh, rgba(0,0,0,.12) 16.66vh, rgba(0,0,0,.12) 33.32vh);
}
/* classroom lighting over the turf */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 30% 8%, rgba(255,224,140,.14), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 45%, rgba(240,237,228,.06), transparent 55%),
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(0,0,0,.5), transparent 60%);
}
.fieldmarks { position: fixed; inset: 0; pointer-events: none; z-index: 0; width: 100%; height: 100%; }
h1, h2, h3 { text-shadow: 0 0 14px rgba(247,244,234,.22); }

nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(22,43,30,.92); backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(240,237,228,.15);
}
nav .logo { font-size: 19px; letter-spacing: 3px; color: var(--chalk); text-decoration: none; }
nav .logo b { color: var(--gold); }
nav .links a {
  color: var(--mute); text-decoration: none; font-size: 14.5px; margin-left: 26px; transition: color .2s;
}
nav .links a:hover { color: var(--gold); }
nav .links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
nav .links a.cta { color: var(--green-deep); background: var(--gold); padding: 7px 16px; border-radius: 9px; border-bottom: none; }
nav .links a.cta:hover { background: #ffdd70; }

.btn {
  font-family: inherit; font-size: 16.5px; text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: 12px; border: none;
  transition: transform .15s, box-shadow .15s; display: inline-block;
}
.btn:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 0 24px rgba(255,211,77,.35), 0 6px 16px rgba(0,0,0,.3); }
.btn.gold:hover { box-shadow: 0 0 34px rgba(255,211,77,.55), 0 10px 22px rgba(0,0,0,.35); }
.btn.line { background: transparent; color: var(--chalk); border: 2.5px dashed rgba(247,244,234,.6); }

.pagehead {
  position: relative; z-index: 1; padding: 5vh 4vw 4.5vh 4vw; max-width: 1200px;
  margin: 4vh auto 2vh auto;
  background: rgba(18,34,23,.78); border: 2px solid rgba(240,237,228,.10);
  border-radius: 20px; backdrop-filter: blur(3px);
}
/* board panel for raw-text sections sitting on the field */
.band {
  background: rgba(18,34,23,.62); border: 2px solid rgba(240,237,228,.08);
  border-radius: 20px; margin: 2vh auto 4vh auto !important; padding: 4.5vh 4vw !important;
}
@media (max-width: 900px) { .pagehead, .band { border-radius: 0; border-left: none; border-right: none; } }
.sec-badge {
  display: inline-block; background: #c43d3d; color: #fff; font-size: 13.5px;
  padding: 4px 14px; border-radius: 8px; transform: rotate(-1.5deg); margin-bottom: 14px;
}
.pagehead h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 10px; }
.pagehead h1 em { color: var(--gold); font-style: normal; }
.pagehead .sub { color: var(--mute); font-size: 17px; line-height: 1.65; max-width: 44em; }
.pagehead .sub b { color: var(--gold); }

section, .wrap { position: relative; z-index: 1; padding: 4vh 5vw 8vh 5vw; max-width: 1200px; margin: 0 auto; }

/* cream paper cards */
.card {
  background: var(--paper); border: none; border-radius: 6px; padding: 22px;
  transition: transform .18s, box-shadow .18s; position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.35); color: var(--ink);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.45); }
.card h3 { color: var(--ink); text-shadow: none; }
.card .ep { color: #a63030; font-size: 12.5px; letter-spacing: 2px; margin-bottom: 7px; }
.card p { color: #5c5340; font-size: 13.5px; line-height: 1.5; }

.tag { font-size: 12px; padding: 4px 10px; border-radius: 8px; text-decoration: none; }
.tag.v { background: rgba(224,82,82,.16); color: #c23c3c; }
.tag.p { background: rgba(36,70,47,.12); color: #24462f; }

footer {
  position: relative; z-index: 1; padding: 40px 5vw; text-align: center;
  color: var(--mute); font-size: 13.5px; border-top: 2px solid rgba(240,237,228,.12); line-height: 2;
}
footer b { color: var(--gold); }
footer a { color: var(--mute); }
footer a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  nav .links a:not(.cta) { display: none; }
}

@media (max-width: 520px) {
  nav { padding: 12px 4vw; }
  nav .logo { font-size: 15px; letter-spacing: 2px; }
  nav .links a.cta { font-size: 12.5px; padding: 6px 11px; margin-left: 10px; }
}

/* ============ APP SHELL (sidebar pages) ============ */
.topbar { display: none; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 236px; z-index: 60;
  background: rgba(18,34,23,.97); border-right: 2px solid rgba(240,237,228,.12);
  display: flex; flex-direction: column; padding: 24px 16px 20px 16px;
}
.sidebar .logo { font-size: 16.5px; letter-spacing: 2px; color: var(--chalk); text-decoration: none; padding: 0 10px; }
.sidebar .logo b { color: var(--gold); }
.sidebar .label { color: var(--mute); opacity: .7; font-size: 10.5px; letter-spacing: 3px; margin: 26px 0 8px 12px; }
.sidebar a.item {
  display: flex; align-items: center; gap: 11px; color: var(--mute); text-decoration: none;
  font-size: 14.5px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent;
  transition: color .15s, background .15s; margin-bottom: 2px;
}
.sidebar a.item .ico { width: 20px; text-align: center; }
.sidebar a.item:hover { color: var(--chalk); background: rgba(247,244,234,.06); }
.sidebar a.item.active { color: var(--gold); background: rgba(255,211,77,.09); border-left-color: var(--gold); }
.sidebar .push { flex: 1; }
.sidebar .side-cta {
  display: block; text-align: center; background: var(--gold); color: var(--ink); text-decoration: none;
  font-size: 14.5px; padding: 12px; border-radius: 11px;
  box-shadow: 0 0 20px rgba(255,211,77,.3);
}
.sidebar .side-cta:hover { background: #ffdd70; }
.sidebar .side-note { color: var(--mute); opacity: .65; font-size: 11px; text-align: center; margin-top: 12px; line-height: 1.6; }
.main { margin-left: 236px; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .main { margin-left: 0; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 55; align-items: center; justify-content: space-between;
    padding: 12px 4vw; background: rgba(22,43,30,.95); backdrop-filter: blur(6px);
    border-bottom: 2px solid rgba(240,237,228,.15);
  }
  .topbar .logo { font-size: 15px; letter-spacing: 2px; color: var(--chalk); text-decoration: none; }
  .topbar .logo b { color: var(--gold); }
  .topbar button {
    font-family: inherit; background: none; border: 2px dashed rgba(247,244,234,.5); color: var(--chalk);
    border-radius: 9px; font-size: 17px; padding: 4px 12px; cursor: pointer;
  }
}
