/* ==========================================================
   Workshop on Trustworthy Algorithmic Decision-Making
   "Academic Policy Brief" aesthetic
   Fonts: Spectral (headings/body) · Space Mono (UI/labels)
   Palette: charcoal slate, warm white, vermillion accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --slate:        #1e2535;
  --slate-mid:    #2d3a52;
  --slate-light:  #3d4f6e;
  --red:          #c0392b;
  --red-bright:   #e74c3c;
  --cream:        #faf8f4;
  --cream-mid:    #f0ece4;
  --cream-dark:   #e4ddd0;
  --warm-white:   #fffefb;
  --text:         #1a1714;
  --text-mid:     #3d342a;
  --text-dim:     #7a6e63;
  --border:       #d8d0c4;
  --border-dark:  #b8ae9e;
  --max-w:        1020px;
  --narrow:       720px;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  line-height: 1.78;
  background: var(--cream);
  color: var(--text);
}

h1, h2, h3, h4, h5 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
}
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 1.8rem 0 .7rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 1.5rem 0 .5rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 1.2rem 0 .4rem; color: var(--slate-mid); }

p { margin-bottom: .95em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; transition: color .14s; }
a:hover { color: var(--red-bright); }

ul:not(#primary-nav ul):not(.dropdown-list), ol { padding-left: 1.4rem; margin-bottom: 1em; }
li:not(#primary-nav li):not(.dropdown-list li) { margin-bottom: .35em; line-height: 1.7; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* ── SITE HEADER ─────────────────────────────────────────── */
#site-header {
  background: var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}

.header-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--cream);
  text-decoration: none;
  padding: .95rem 0;
  line-height: 1.3;
  max-width: 260px;
  flex-shrink: 0;
}
.site-brand:hover { color: var(--cream); text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────── */
#primary-nav { display: flex; align-items: stretch; }
#primary-nav ul,
#primary-nav ul li { list-style: none; padding: 0; margin: 0; }
#primary-nav ul { display: flex; align-items: stretch; }
#primary-nav > ul > li { display: flex; align-items: stretch; position: relative; }

#primary-nav > ul > li > a {
  font-family: 'Space Mono', monospace;
  font-size: .67rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(250,248,244,.58);
  text-decoration: none;
  padding: 0 .9rem;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,.06);
  transition: background .13s, color .13s;
  white-space: nowrap;
}
#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.active > a {
  background: rgba(192,57,43,.2);
  color: var(--cream);
  text-decoration: none;
}
#primary-nav > ul > li.active > a { color: #ffc9c4; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--slate-mid);
  border-top: 2px solid var(--red);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--red);
  min-width: 185px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 200;
}
.has-dropdown .dropdown-list { display: none; }
.has-dropdown.open .dropdown-list { display: block; }
.dropdown-list li a {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(250,248,244,.68);
  text-decoration: none;
  padding: .62rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .12s, color .12s;
}
.dropdown-list li:last-child a { border-bottom: none; }
.dropdown-list li a:hover { background: rgba(192,57,43,.28); color: var(--cream); text-decoration: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--cream);
  padding: .35rem .6rem;
  font-size: 1.1rem;
  cursor: pointer;
  align-self: center;
  margin: .5rem 0;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  #primary-nav { display: none; width: 100%; order: 3; }
  #primary-nav.open { display: flex; }
  #primary-nav ul { flex-direction: column; width: 100%; }
  #primary-nav > ul > li > a { padding: .6rem 1rem; border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
  .header-wrap { flex-wrap: wrap; }
  .dropdown-list { position: static; box-shadow: none; border: none; border-top: none; padding-left: 1rem; display: none; }
  .has-dropdown:hover .dropdown-list { display: none; } /* no hover on mobile */
  .dropdown-list.open { display: block; }
}

/* ── HOME HERO ───────────────────────────────────────────── */
.home-hero {
  background: var(--slate);
  padding: 4.5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 100% 100%, rgba(192,57,43,.12) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 50px, transparent 50px, transparent 70px);
  opacity: .4;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.home-hero h1 {
  font-family: 'Spectral', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
  max-width: 720px;
}
.hero-tagline {
  font-size: 1.05rem;
  color: rgba(250,248,244,.56);
  max-width: 580px;
  line-height: 1.72;
  margin-bottom: 2rem;
  font-style: italic;
}
.hero-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-meta-item {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .05em;
  color: rgba(250,248,244,.38);
  line-height: 1.6;
}
.hero-meta-item strong {
  display: block;
  color: rgba(250,248,244,.8);
  font-weight: 700;
  margin-bottom: .1rem;
}

/* ── INNER PAGE BANNER ───────────────────────────────────── */
.page-banner {
  background: var(--slate);
  padding: 1.9rem 1.5rem 1.7rem;
  border-bottom: 3px solid var(--red);
}
.page-banner-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250,248,244,.3);
  margin-bottom: .45rem;
}
.breadcrumb a { color: rgba(250,248,244,.45); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb span { margin: 0 .35rem; opacity: .35; }
.page-banner h1 {
  font-family: 'Spectral', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -.01em;
}

/* ── PAGE BODY ───────────────────────────────────────────── */
.page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.page-body.narrow { max-width: var(--narrow); }

/* Home two-col */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 750px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar-block {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1.2rem 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-label {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-block ul { list-style: none; padding: 0; margin: 0; }
.sidebar-block ul li { margin: 0; border-bottom: 1px dotted var(--border); }
.sidebar-block ul li:last-child { border-bottom: none; }
.sidebar-block ul li a {
  display: block;
  font-size: .88rem;
  color: var(--text-mid);
  text-decoration: none;
  padding: .35rem 0;
  transition: color .12s;
}
.sidebar-block ul li a:hover { color: var(--red); }
.sidebar-block p { font-size: .87rem; color: var(--text-mid); line-height: 1.65; margin-bottom: .5rem; }
.event-line {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.65;
}

/* ── NOTICE ──────────────────────────────────────────────── */
.notice {
  background: #fef9ec;
  border-left: 4px solid #e8b84b;
  padding: .65rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: .74rem;
  color: #7a5f00;
  line-height: 1.6;
  margin-bottom: 1.2em;
}

/* ── BUTTON ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .56rem 1.15rem;
  border: 2px solid;
  text-decoration: none;
  transition: all .14s;
  cursor: pointer;
  line-height: 1;
  margin-right: .45rem;
  margin-bottom: .4rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }

/* ── SPONSORS ────────────────────────────────────────────── */
.sponsors { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sponsors-label {
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.sponsor-row { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.sponsor-row a { display: block; opacity: .72; transition: opacity .14s; }
.sponsor-row a:hover { opacity: 1; }
.sponsor-row img { display: block; max-height: 54px; width: auto; }

/* Recommended (preserved from original) */
.recommended-row {
  margin-top: 1.5rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--border);
  font-size: .82rem;
  color: var(--text-dim);
}
.recommended-row a { color: var(--text-dim); }
.recommended-row a:hover { color: var(--red); }

/* ── SCHEDULE ────────────────────────────────────────────── */
.sched-day { margin-bottom: 3rem; }
.sched-day-head {
  background: var(--slate);
  color: var(--cream);
  font-family: 'Spectral', serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: .62rem 1.1rem;
}
.sched-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: none;
  font-size: .9rem;
}
.sched-table tr { border-bottom: 1px solid var(--border); }
.sched-table tr:last-child { border-bottom: none; }
.sched-table tr.is-break { background: rgba(30,37,53,.025); }
.sched-table tr.is-meal  { background: rgba(192,57,43,.035); }
.sched-table td { padding: .72rem 1rem; vertical-align: top; line-height: 1.6; }
.sched-table td:first-child {
  font-family: 'Space Mono', monospace;
  font-size: .67rem;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
  width: 21%;
  border-right: 1px solid var(--border);
  padding-top: .85rem;
}
.sched-table i { color: var(--text-dim); }
.sched-table ul { margin: .4rem 0 0 1.1rem; }
.sched-table ul li { font-size: .86rem; margin-bottom: .2rem; }

/* ── STEPS ───────────────────────────────────────────────── */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin-bottom: 1.2em; }
ol.steps > li {
  counter-increment: step;
  padding: .82rem 1rem .82rem 3.3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: .82rem;
  top: .82rem;
  background: var(--slate);
  color: var(--cream);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-family: 'Space Mono', monospace;
  font-size: .63rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps > li:last-child { border-bottom: none; }

/* ── WHITEPAPERS ─────────────────────────────────────────── */
.wp-list { list-style: none; padding: 0; margin: 0; }
.wp-list li {
  padding: .88rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.wp-list li:last-child { border-bottom: none; }
.wp-author {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: .87rem;
  display: block;
  margin-bottom: .2rem;
}
.wp-title { font-size: .95rem; line-height: 1.5; }
.wp-title a { color: var(--slate); }
.wp-title a:hover { color: var(--red); }
.wp-no-link { font-style: italic; color: var(--text-dim); }

/* ── BREAKOUT CARDS ──────────────────────────────────────── */
.breakout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.breakout-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--slate);
  padding: 1.1rem 1.15rem;
}
.breakout-card .room {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .3rem;
}
.breakout-card h4 { font-size: .95rem; margin: 0 0 .4rem; color: var(--slate); }
.breakout-card p { font-size: .83rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer {
  background: var(--slate);
  border-top: 3px solid var(--red);
}
.footer-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.7rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-wrap p {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .07em;
  color: rgba(250,248,244,.35);
  margin: 0;
  line-height: 1.7;
}
.footer-wrap a { color: rgba(250,248,244,.48); text-decoration: none; }
.footer-wrap a:hover { color: var(--cream); }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }