/* ─────────────────────────────────────────────
   Edge IQ — Secondary Pages Stylesheet
   Covers: stewards-reports.html, faq.html,
           racing-glossary.html
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #daa520;
  --gold-light: #f5c842;
  --gold-dim:   #a07a10;
  --black:      #080808;
  --dark:       #0f0f0f;
  --card:       #141414;
  --card2:      #1a1a1a;
  --border:     rgba(218,165,32,0.18);
  --border-solid: #2e2a1e;
  --text:       #e8e0d0;
  --muted:      #8a8070;
  --white:      #f9f5ed;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── NAV ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.brand .iq { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  padding: 0.35rem 0.9rem;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.nav-dropbtn::after {
  content: '▾';
  font-size: 0.7em;
}

.nav-dropdown:hover .nav-dropbtn,
.nav-dropdown:focus-within .nav-dropbtn { color: var(--gold); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14,14,14,0.98);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  min-width: 180px;
  z-index: 200;
  padding: 0.4rem 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block !important;
  padding: 0.6rem 1.2rem;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  border: none !important;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--gold) !important;
  background: rgba(218,165,32,0.06);
}

/* ── LAYOUT ──────────────────────────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Breadcrumb */
.crumbs {
  padding: 5.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--border); }

/* Sections */
.section {
  padding: 3.5rem 0 4rem;
}

.section-tight {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

/* ── TYPOGRAPHY ──────────────────────────────── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.accent { color: var(--gold); }

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 1rem;
}

.rule {
  height: 2px;
  width: 40px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
}

.updated {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

/* ── REPORT CARDS ────────────────────────────── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.report-card {
  background: var(--card);
  border: 1px solid var(--border-solid);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-card .meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.report-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.report-card .club {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.report-card .facts {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-card .facts li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 1rem;
}

.report-card .facts .k {
  color: var(--muted);
  flex-shrink: 0;
}

.report-card .facts .v {
  color: var(--text);
  text-align: right;
}

/* Highlights bullets (optional, from reports-data.js) */
.report-card .highlights {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-card .highlights li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.report-card .highlights li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

.report-card .btns {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--black);
}

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── FAQ ─────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child { border-top: 1px solid var(--border); }

.faq summary {
  padding: 1.1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: '−';
}

.faq summary:hover { color: var(--gold); }

.faq details p,
.faq details ul,
.faq details ol {
  padding-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.faq details a { color: var(--gold); }
.faq details strong { color: var(--text); font-weight: 600; }

/* ── GLOSSARY ────────────────────────────────── */
.letter-head {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.glossary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.term {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.term:first-child { padding-top: 0; }

.term dt {
  font-weight: 600;
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.term dd {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-left: 0;
}

/* ── PROSE SECTIONS ──────────────────────────── */
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.prose p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 700px;
}

.prose ul {
  margin: 0.5rem 0 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }
.prose a { color: var(--gold); }

/* ── CTA BAND ────────────────────────────────── */
.cta-band {
  background: var(--card);
  border: 1px solid var(--border-solid);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-band h2 { margin-bottom: 0; }

.cta-band p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.foot-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.foot-links a {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover { color: var(--gold); }

.foot-note {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 0.72rem;
  color: #444;
  line-height: 1.7;
}

.foot-note a { color: #555; }
.foot-note a:hover { color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0.9rem 1.25rem; }
  .nav-links { gap: 1.1rem; }
  .wrap { padding: 0 1.25rem; }

  .report-grid { grid-template-columns: 1fr; }

  .cta-band { padding: 1.75rem; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  h1 { font-size: 1.9rem; }
}

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