/* ===================================================================
   CCSC Northwestern 2026 — shared stylesheet
   Self-contained, no external dependencies. Bold & vibrant theme.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — sampled from the CCSC NW logo */
  --navy:     #0c2448;
  --indigo:   #0c2448;
  --violet:   #0a5490;  /* primary blue */
  --magenta:  #2b8fc4;  /* sky blue */
  --blue:     #0a5490;
  --cyan:     #48a8cc;  /* light blue accents */
  --coral:    #1f86bf;
  --amber:    #f0a830;  /* gold accent (logo dots) */
  --gold:     #f0a830;

  /* Signature gradients */
  --grad-hero: linear-gradient(140deg, #08203f 0%, #0c2f5a 38%, #0a5490 72%, #2b8fc4 100%);
  --grad-brand: linear-gradient(90deg, #0a5490, #2b8fc4);
  --grad-cta: linear-gradient(135deg, #f0a830, #f7bd4d);
  --grad-footer: linear-gradient(160deg, #081a33 0%, #0c2448 60%, #103a63 100%);

  /* Neutrals (cool / blue-tinted) */
  --ink:      #12233d;
  --ink-soft: #3a4a63;
  --muted:    #6a7790;
  --line:     #dce6f1;
  --bg:       #ffffff;
  --bg-soft:  #f3f8fc;
  --bg-tint:  #e7f1fa;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(12,36,72,.06), 0 2px 8px rgba(12,36,72,.06);
  --shadow-md: 0 6px 20px rgba(12,36,72,.12), 0 2px 6px rgba(12,36,72,.08);
  --shadow-lg: 0 18px 50px rgba(12,36,72,.22);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.offleft a {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.offleft a:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

main.container { padding-block: var(--s-7) var(--s-8); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--bg-tint); color: var(--violet); text-decoration: none; }
.main-nav a[aria-current="page"] {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(240,168,48,.22), transparent 70%),
    radial-gradient(50% 70% at 10% 90%, rgba(72,168,204,.38), transparent 70%);
  z-index: -1;
}
.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-8) var(--s-5);
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240,168,48,.14);
  border: 1px solid rgba(240,168,48,.5);
  margin-bottom: var(--s-5);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  margin: 0 0 var(--s-4);
  max-width: 16ch;
  margin-inline: auto;
}
.hero__meta {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 var(--s-2);
  color: #fff;
}
.hero__meta strong { color: var(--amber); }
.hero__sub { color: rgba(255,255,255,.85); margin: 0 0 var(--s-6); }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--grad-cta);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--solid {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Section heading ---------- */
.page-title { text-align: center; margin: 0 0 var(--s-2); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.page-title::after {
  content: "";
  display: block;
  width: 72px; height: 4px;
  margin: var(--s-4) auto 0;
  border-radius: 999px;
  background: var(--grad-cta);
}
.page-subtitle { text-align: center; color: var(--muted); margin: 0 0 var(--s-7); font-weight: 600; }

.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin: var(--s-7) 0 var(--s-3);
  padding-top: var(--s-2);
}
.prose h3 { font-size: 1.2rem; margin: var(--s-6) 0 var(--s-2); color: var(--violet); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-5);
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.prose li::marker { color: var(--gold); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10,84,144,.35); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--gold); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  margin: var(--s-6) 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 var(--s-2); color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); }
a.card { display: block; }
a.card, a.card:hover { text-decoration: none; }
a.card:hover h3 { color: var(--violet); }

/* Deadline cards */
.deadline-card { border-top: 4px solid transparent; border-image: var(--grad-cta) 1; }
.deadline-card .date {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Host / highlight card */
.host-card {
  text-align: center;
  background: linear-gradient(160deg, var(--bg-tint), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-5);
  box-shadow: var(--shadow-sm);
  margin: var(--s-6) 0;
}
.host-card h2 { margin: 0 0 var(--s-2); }
.host-card .host-name {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); text-align: center; max-width: 60ch; margin-inline: auto; }

/* Callout chip */
.callout {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.data caption {
  caption-side: top;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: left;
  padding: var(--s-3) var(--s-4);
  color: var(--ink);
}
table.data th, table.data td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody tr:hover { background: var(--bg-tint); }
table.data tbody tr:last-child td { border-bottom: none; }

/* Responsive: stack data tables into labeled rows on small screens */
@media (max-width: 640px) {
  table.data, table.data thead, table.data tbody, table.data th, table.data td, table.data tr {
    display: block;
  }
  table.data thead { position: absolute; left: -9999px; }
  table.data tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: var(--s-4);
    background: #fff !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  table.data td {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  table.data td::before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    color: var(--violet);
  }
  table.data td:last-child { border-bottom: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grad-footer);
  color: rgba(255,255,255,.82);
  margin-top: var(--s-8);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-8) var(--s-5) var(--s-6);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.site-footer h4 {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--s-4);
}
.footer-brand .brand-mark { height: 50px; width: auto; }
.footer-brand .brand-name { color: #fff; }
.site-footer__note { color: rgba(255,255,255,.6); font-size: .9rem; margin: var(--s-2) 0 0; }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  padding: var(--s-4) var(--s-5);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: var(--s-3); gap: var(--s-1); }
  .main-nav a { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); }
  .site-header__inner { position: relative; }
}

/* Footer: 4 cols -> 2 cols (brand spans full) -> 1 col */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- Misc legacy-content niceties ---------- */
.float-img { float: left; margin: var(--s-1) var(--s-5) var(--s-3) 0; }
.clear { clear: both; }
.center { text-align: center; }

/* Archive year cell */
.archive-year a {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* No-JS fallback nav (shown only when scripting is disabled) */
.nojs-nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-3) var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: center;
  font-weight: 600;
}
.nojs-nav .nojs-brand { margin-right: auto; font-weight: 800; color: var(--ink); }
.nojs-nav a { color: var(--violet); }

@media print {
  .site-header, .nav-toggle, .hero__cta, .site-footer { display: none !important; }
  .hero { background: none !important; color: var(--ink) !important; }
  .hero h1, .hero__meta, .hero__meta strong, .hero__sub { color: var(--ink) !important; }
  a { color: var(--ink) !important; text-decoration: underline; }
  body { font-size: 11pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
