@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

:root {
  --bg:        #0f1117;
  --bg2:       #161920;
  --bg3:       #1e2230;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --red:       #e03030;
  --red-dim:   rgba(224,48,48,0.15);
  --red-glow:  rgba(224,48,48,0.25);
  --blue:      #2b72e8;
  --blue-dim:  rgba(43,114,232,0.15);
  --white-div: #d4daea;
  --white-dim: rgba(212,218,234,0.1);
  --gold:      #e8a830;
  --text:      #7a8299;
  --text-lt:   #bcc3d4;
  --white:     #eceef4;
  --head:      'Barlow Condensed', sans-serif;
  --body:      'Barlow', sans-serif;
  --mono:      'Share Tech Mono', monospace;
  --radius:    4px;
  --nav-h:     60px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  background: var(--bg);
  color: var(--text-lt);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }

/* ══════════════════════════════════════════
   DIVISION STRIPE
══════════════════════════════════════════ */
.div-stripe {
  height: 5px;
  background: linear-gradient(90deg,
    var(--red)       0% 33.3%,
    var(--white-div) 33.3% 66.6%,
    var(--blue)      66.6% 100%);
  position: relative; z-index: 200;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15,17,23,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
}
.nav-logo {
  font-family: var(--head);
  font-size: 20px; font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 2px;
}
.nav-logo .slash { color: var(--red); margin: 0 4px; font-weight: 300; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 7px 14px; border-radius: var(--radius);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: var(--bg3); }
.nav-links a.active { color: var(--red); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-img {
  width: 100%; max-height: 380px;
  object-fit: cover; object-position: center 30%;
  display: block; opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,17,23,0.3) 0%,
    rgba(15,17,23,0.65) 60%,
    rgba(15,17,23,1) 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 28px 36px;
}
/* Hero without image (inner pages) */
.hero-plain {
  padding: 52px 28px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, var(--red-dim) 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 4px;
  color: var(--red);
  border: 1px solid rgba(224,48,48,0.35);
  padding: 4px 12px; margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--head);
  font-size: clamp(38px, 9vw, 82px);
  font-weight: 900; line-height: .92;
  letter-spacing: -1px; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  font-family: var(--head);
  font-size: 15px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--text); margin-bottom: 20px;
}
.div-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.div-badge {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
}
.div-badge.red   { background: var(--red-dim);   color: #f07070; border: 1px solid rgba(224,48,48,.3); }
.div-badge.white { background: var(--white-dim);  color: var(--white-div); border: 1px solid rgba(212,218,234,.18); }
.div-badge.blue  { background: var(--blue-dim);   color: #7aabff; border: 1px solid rgba(43,114,232,.3); }

/* ══════════════════════════════════════════
   PAGE WRAPPER + SIDEBAR GRID
══════════════════════════════════════════ */
.page-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: 48px 28px;
  position: relative; z-index: 1;
}
.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY HELPERS
══════════════════════════════════════════ */
.section-label {
  display: block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.section-title {
  font-family: var(--head);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800; text-transform: uppercase;
  color: var(--white); letter-spacing: .5px;
  line-height: 1.05; margin-bottom: 18px;
}

/* ══════════════════════════════════════════
   NEWS CARDS
══════════════════════════════════════════ */
.news-stack { display: flex; flex-direction: column; gap: 20px; }

.news-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 28px 28px 26px;
  transition: border-color .2s;
}
.news-card:hover { border-color: var(--border2); border-left-color: var(--red); }
.news-card .tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 3px; color: var(--text);
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.news-card h3 {
  font-family: var(--head);
  font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--white); margin-bottom: 12px; line-height: 1.1;
}
.news-card p { font-size: 14px; color: var(--text-lt); margin-bottom: 10px; line-height: 1.75; }
.news-card p:last-child { margin-bottom: 0; }
.news-card a { color: var(--red); text-decoration: none; }
.news-card a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   KEY DATES BOX
══════════════════════════════════════════ */
.key-dates {
  background: var(--bg3);
  border: 1px solid rgba(232,168,48,.2);
  border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px;
}
.key-dates .kd-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; display: block; margin-bottom: 16px;
}
.date-row {
  display: flex; gap: 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.date-row:last-child { border-bottom: none; padding-bottom: 0; }
.date-row .dt {
  font-family: var(--mono); font-size: 11px;
  color: var(--red); min-width: 68px; letter-spacing: 1px; flex-shrink: 0;
}
.date-row .ev { font-size: 14px; color: var(--text-lt); }

/* ══════════════════════════════════════════
   DIVISION CARDS (3-col on home)
══════════════════════════════════════════ */
.div-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px; margin: 28px 0;
}
.div-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid;
}
.div-card img {
  width:100%; height: 130px;
  object-fit:cover; display:block;
  filter: saturate(.8) brightness(.75);
}
.div-card-body { padding: 14px 16px; }
.div-card h4 {
  font-family: var(--head); font-size: 13px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px;
}
.div-card ul { list-style:none; }
.div-card ul li {
  font-size: 12px; color: var(--text-lt);
  padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.div-card ul li:last-child { border-bottom: none; }
.div-card.red   { background: var(--red-dim);   border-color: rgba(224,48,48,.25); }
.div-card.white { background: var(--white-dim);  border-color: rgba(212,218,234,.15); }
.div-card.blue  { background: var(--blue-dim);   border-color: rgba(43,114,232,.25); }
.div-card.red   h4 { color: var(--red); }
.div-card.white h4 { color: var(--white-div); }
.div-card.blue  h4 { color: #7aabff; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.sidebar-card.sticky-card { position: sticky; top: calc(var(--nav-h) + 16px); }
.sidebar-card h3 {
  font-family: var(--head); font-size: 14px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); margin-bottom: 4px;
}
.card-rule {
  height: 1px; background: var(--border);
  margin: 12px 0 16px;
}
.contact-item { margin-bottom: 14px; }
.contact-item h4 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 5px;
}
.contact-item p, .contact-item a {
  font-size: 13px; color: var(--text-lt);
  text-decoration: none; line-height: 1.6;
}
.contact-item a:hover { color: var(--white); }
.social-row { display: flex; gap: 8px; margin-top: 4px; }
.social-btn {
  width: 32px; height: 32px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 13px; font-family: var(--head);
  font-weight: 700; text-decoration: none; letter-spacing: 0;
  transition: color .18s, border-color .18s;
}
.social-btn:hover { color: var(--white); border-color: var(--border2); }
.slogan {
  font-family: var(--head); font-size: 17px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); margin-top: 6px;
}

/* ══════════════════════════════════════════
   QUICK LINKS IN SIDEBAR
══════════════════════════════════════════ */
.quick-links { list-style: none; }
.quick-links li { border-bottom: 1px solid var(--border); }
.quick-links li:first-child { border-top: 1px solid var(--border); }
.quick-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 2px; text-decoration: none;
  color: var(--text-lt); font-size: 13px;
  transition: color .18s, padding-left .18s;
  gap: 8px;
}
.quick-links a:hover { color: var(--white); padding-left: 4px; }
.quick-links .ql-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 1px; color: var(--text);
  background: var(--bg3); padding: 2px 7px;
  border-radius: 2px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   YEAR TABS + DOC LIST
══════════════════════════════════════════ */
.year-tabs {
  display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap;
}
.ytab {
  font-family: var(--head); font-size: 15px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg2); color: var(--text);
  cursor: pointer; transition: all .18s;
}
.ytab:hover { color: var(--white); border-color: var(--border2); }
.ytab.active { background: var(--red); border-color: var(--red); color: #fff; }

.doc-panel { display: none; }
.doc-panel.active { display: block; }

.doc-intro {
  font-size: 14px; color: var(--text-lt); line-height: 1.75;
  margin-bottom: 24px; max-width: 640px;
}

.doc-list { list-style: none; }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list li:first-child { border-top: 1px solid var(--border); }
.doc-list a {
  display: flex; align-items: center;
  gap: 12px; padding: 12px 4px;
  text-decoration: none; color: var(--text-lt); font-size: 14px;
  transition: color .18s, padding-left .18s;
}
.doc-list a:hover { color: var(--white); padding-left: 6px; }
.doc-list a .dl-icon {
  color: var(--red); font-family: var(--mono);
  font-size: 13px; flex-shrink: 0; opacity: .7;
  transition: opacity .18s;
}
.doc-list a:hover .dl-icon { opacity: 1; }
.doc-list a .dl-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 1px; color: var(--text);
  background: var(--bg3); padding: 2px 7px;
  border-radius: 2px; margin-left: auto; flex-shrink: 0;
}
.doc-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--text); letter-spacing: 1px;
  margin-top: 20px; padding: 14px 16px;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   SPONSORS
══════════════════════════════════════════ */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.sponsor-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.sponsor-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.sponsor-card img {
  width: 100%; height: 190px;
  object-fit: cover; display: block;
  filter: saturate(.7) brightness(.7);
  transition: filter .3s;
}
.sponsor-card:hover img { filter: saturate(.9) brightness(.85); }
.sponsor-body { padding: 20px; }
.sponsor-body h3 {
  font-family: var(--head); font-size: 20px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--white); margin-bottom: 8px;
}
.sponsor-body p { font-size: 13px; color: var(--text); line-height: 1.65; margin-bottom: 16px; }
.sponsor-body a.map-link { color: var(--red); font-size: 13px; text-decoration: none; }
.sponsor-body a.map-link:hover { text-decoration: underline; }
.btn-dir {
  display: inline-block;
  font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(224,48,48,.45);
  color: var(--red); text-decoration: none; border-radius: var(--radius);
  transition: background .18s, color .18s;
}
.btn-dir:hover { background: var(--red); color: #fff; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; position: relative; z-index: 1;
}
.foot-logo {
  font-family: var(--head); font-size: 20px; font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase; color: var(--white);
}
.foot-logo .r { color: var(--red); }
.foot-info {
  font-family: var(--mono); font-size: 11px;
  color: var(--text); letter-spacing: 1px; text-align: right;
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   MOBILE — primary breakpoint
══════════════════════════════════════════ */
@media (max-width: 760px) {
  :root { --nav-h: 56px; }

  .site-nav { padding: 0 16px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; letter-spacing: 1px; }

  .hero-img { max-height: 240px; }
  .hero-content { padding: 0 16px 28px; }
  .hero-plain { padding: 40px 16px 32px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }

  .page-wrap { padding: 32px 16px; }

  /* Stack grid: content first, sidebar below */
  .page-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On mobile sidebar comes after content naturally */
  .sidebar-card.sticky-card { position: static; }

  .div-grid { grid-template-columns: 1fr; gap: 10px; }
  .div-card img { height: 100px; }

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

  .year-tabs { gap: 6px; }
  .ytab { padding: 7px 16px; font-size: 14px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
  .foot-info { text-align: left; }
}

@media (max-width: 420px) {
  .nav-logo { font-size: 17px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
}
