/* The site header and footer on every page (site-header.njk, site-footer.njk), in one file. Until 2026-11-29 the
   base layout, the home page and Start Here each carried their own copy, and they had drifted: two gold buttons,
   three phone breakpoints. Behaviour: site-chrome.js. */

/* ---------- Header bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(26, 39, 68, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 164, 78, 0.2);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { padding: 10px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand-text { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; color: #c8a44e; }
.nav-brand-text span { color: #ffffff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { list-style: none; }

/* Guides, Sports and Insights: buttons that open a menu. */
.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.nav-menu-btn:hover,
.nav-menu-btn[aria-expanded="true"] { color: #c8a44e; }
.nav-menu-btn svg { transition: transform 0.2s ease; }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu-btn:focus-visible,
.nav-toggle:focus-visible,
.nav .nav-cta:focus-visible { outline: 2px solid #c8a44e; outline-offset: 4px; border-radius: 4px; }

/* The gold button. */
.nav .nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #dabb6a, #c8a44e 55%, #a88a3a);
  color: #0f1a2e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(200, 164, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav .nav-cta:hover {
  color: #0f1a2e;
  transform: translateY(-1px);
  box-shadow: 0 5px 22px rgba(200, 164, 78, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.nav .nav-cta-phone { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu panels ---------- */
/* Placed under their button by site-chrome.js, kept inside the header's width; centred if the script hasn't run. */
.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--panel-w, 720px), calc(100% - 2 * clamp(20px, 5vw, 40px)));
  padding: 14px;
  background: #0f1a2e;
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  text-align: left;
}
.nav-panel.open { display: block; animation: navPanelIn 0.16s ease-out; }
/* An invisible strip that keeps the menu open while the pointer moves from the button down into it. */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
@keyframes navPanelIn { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }

.nav-panel a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-panel a:hover,
.nav-panel a:focus-visible { background: #243352; color: #ffffff; outline: none; }
.nav-panel-head {
  display: block;
  padding: 4px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a44e;
}

/* Guides */
.nav-panel-guides { --panel-w: 500px; }
.nav-panel a.nav-start {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(200, 164, 78, 0.12);
  border: 1px solid rgba(200, 164, 78, 0.3);
  color: #dabb6a;
}
.nav-panel a.nav-start b { color: #ffffff; font-weight: 700; }
.nav-panel a.nav-start:hover { background: rgba(200, 164, 78, 0.2); color: #dabb6a; }
.nav-panel-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.nav-panel a.nav-panel-all { color: #c8a44e; font-weight: 600; }

/* Sports */
.nav-panel-sports { --panel-w: 800px; }
.nav-sports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 8px; }
.nav-sport-card { padding: 4px 0 6px; }
.nav-panel a.nav-sport,
.nav-sport {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
}
.nav-sport img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.nav-sport b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.nav-sport small { display: block; font-size: 11px; font-weight: 400; line-height: 1.3; color: rgba(255, 255, 255, 0.6); }
.nav-sport.is-soon img { opacity: 0.55; }
.nav-sport-links { display: flex; flex-wrap: wrap; gap: 0 2px; padding: 2px 0 0 52px; }
.nav-panel .nav-sport-links a {
  display: inline-block;
  padding: 3px 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
}
.nav-panel .nav-sport-links a:hover,
.nav-panel .nav-sport-links a:focus-visible { color: #dabb6a; background: #243352; }

/* Insights */
.nav-panel-insights { --panel-w: 760px; }
.nav-insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.nav-panel a.nav-insights-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #dabb6a;
}
.nav-insights-head img { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.nav-insights-col a:not(.nav-insights-head) { font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.nav-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-panel-foot a { color: #c8a44e; font-weight: 600; font-size: 13px; }

/* ---------- Phones and narrow windows: ☰ menu ---------- */
@media (max-width: 880px) {
  .nav-inner { position: static; }
  .nav .nav-cta-phone { display: inline-block; margin-left: auto; padding: 6px 12px; font-size: 13px; }
  .nav-toggle { display: block; margin-right: -8px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px clamp(20px, 5vw, 40px) 20px;
    background: #0f1a2e;
    border-bottom: 1px solid rgba(200, 164, 78, 0.2);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links.open > li:last-child { border-bottom: 0; }
  .nav-menu-btn { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 16px; color: #ffffff; }
  .nav-menu-btn svg { width: 12px; height: 12px; }
  .nav-panel,
  .nav-panel.open {
    position: static;
    transform: none;
    width: auto;
    padding: 0 0 12px;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .nav-panel::before { display: none; }
  .nav-panel-cols { grid-template-columns: 1fr; gap: 4px; }
  .nav-sports-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav-sport-links { padding-left: 10px; }
  .nav-insights-grid { grid-template-columns: 1fr 1fr; }
  .nav-links.open .nav-search-btn { margin: 14px 0 4px; }
  .nav-cta-item { display: none; }
}
@media (max-width: 480px) {
  .nav-sports-grid,
  .nav-insights-grid { grid-template-columns: 1fr; }
  .nav-sport-links { padding-left: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav-toggle span, .nav-menu-btn svg, .nav .nav-cta { transition: none; }
  .nav-panel.open { animation: none; }
}

/* ---------- Footer ---------- */
.footer { background: #0f1a2e; padding: 60px 0 30px; color: rgba(255, 255, 255, 0.5); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.footer-brand .footer-logo { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; color: #c8a44e; margin-bottom: 8px; max-width: none; }
.footer-brand .footer-logo span { color: #ffffff; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.4); max-width: 280px; }
.footer-brand .footer-maker { margin-top: 12px; }
.footer-brand a { color: #c8a44e; text-decoration: none; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: #c8a44e; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px clamp(20px, 5vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom p { font-size: 12px; color: rgba(255, 255, 255, 0.25); }
.footer-bottom a { font-size: 12px; color: rgba(255, 255, 255, 0.25); text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a:hover { color: #c8a44e; }

/* Narrower: two columns, Resources (the long list) down the right beside Product and Legal, so a phone's footer
   isn't one long column. */
@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "product resources" "legal resources";
    gap: 32px 24px;
  }
  .footer-brand { grid-area: brand; }
  .footer-product { grid-area: product; }
  .footer-resources { grid-area: resources; }
  .footer-legal { grid-area: legal; }
}
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Gentle reveal on scroll (site-chrome.js), 2026-11-29 ----------
   Scott's pick: cards fade up a little as they scroll into view, once. site-chrome.js adds .rw-reveal only to cards
   still below the fold, only with IntersectionObserver and no reduced-motion request, and takes the classes off
   when the fade ends, so each card's own hover returns. Without the script nothing is hidden. */
.rw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rw-delay, 0ms);
}
.rw-reveal.rw-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rw-reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .rw-reveal { opacity: 1; transform: none; }
}
