:root {
  --red: #ec1f27; /* YDSA brand red */
  --red-dark: #c0141c;
  --red-tint: #fde4e6;
  --ink: #161415;
  --ink-2: #4a4547;
  --ink-3: #7a7375;
  --paper: #faf6f1;
  --card: #ffffff;
  --line: #e6dfd8;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -40px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--red); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  position: relative;
  overflow: hidden;
}
.brandbar {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: 18px 0 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brandbar__logo { display: block; line-height: 0; }
.brandbar__logo img { height: 64px; width: auto; }
.hero::after {
  /* faint halftone texture, poster-print feel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.4px);
  background-size: 7px 7px;
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.hero__inner {
  max-width: 1240px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
}
@media (min-width: 1100px) {
  /* Room for the mass-call card beside the title. */
  .hero__inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
  .hero__title { font-size: clamp(54px, 8.4vw, 124px); }
}

.callout {
  background: var(--ink); color: #fff; border-radius: 16px; padding: 24px 24px 26px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.22); max-width: 640px; width: 100%;
  justify-self: center; /* centered when it stacks under the title on narrower screens */
}
.callout[hidden] { display: none; }
.callout__when {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.callout__when span { background: var(--red); border-radius: 999px; padding: 3px 9px; letter-spacing: .06em; }
.callout__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4vw, 44px); line-height: .95; margin: 14px 0 12px;
}
.callout__text { font-size: 15.5px; line-height: 1.5; margin: 0 0 20px; opacity: .92; }
.callout .btn--red:hover { background: #fff; color: var(--red); }
.hero__kicker {
  margin: 0 0 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
}
.hero__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(54px, 11vw, 132px); line-height: .9; margin: 0; letter-spacing: .005em;
}
.hero__title span { color: var(--ink); }
.hero__lede { max-width: 620px; font-size: clamp(17px, 2vw, 20px); margin: 24px 0 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.stats-wrap { position: relative; z-index: 1; max-width: 1240px; margin: 48px auto 0; padding-bottom: 20px; }
.stats {
  margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  border-top: 2px solid rgba(255,255,255,.35);
}
.stats div { padding: 22px 24px 24px 0; }
.stats div + div { padding-left: 24px; border-left: 2px solid rgba(255,255,255,.35); }
.stats dt { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; }
.stats dd { order: -1; margin: 0 0 10px; font-family: var(--display); font-size: clamp(44px, 5.4vw, 64px); line-height: 1; }
.stats div { display: flex; flex-direction: column; }
.stats__note { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; opacity: .85; }
.stats__note a { color: inherit; }
.fn { font-size: .7em; line-height: 0; margin-left: 2px; }
.fn a { color: inherit; text-decoration: none; }

/* ---------- Finder: list first, map only on request ---------- */
.finder { max-width: 1240px; margin: 0 auto; padding: 56px 16px 72px; }
.finder__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px); line-height: .95; margin: 0 0 20px;
}
.searchrow { display: flex; gap: 12px; align-items: stretch; }
.search {
  position: relative; flex: 1; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 0 22px;
  box-shadow: 5px 5px 0 var(--red);
}
.search svg { color: var(--ink-2); flex: none; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent; padding: 17px 0; min-width: 0;
  font: inherit; font-size: 19px; font-weight: 500;
}
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { box-shadow: 5px 5px 0 var(--red), 0 0 0 4px var(--red-tint); }
.nearme { flex: none; padding-left: 20px; padding-right: 22px; }
.nearme[aria-pressed="true"] { background: var(--ink); color: #fff; }

.suggest {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 1200;
  margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--red);
  max-height: 340px; overflow-y: auto;
}
.suggest li {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--red-tint); }
.suggest__label { font-weight: 700; }
.suggest__meta { color: var(--ink-2); font-size: 14px; }
.suggest__kind {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Days whose town halls are all over: dotted and greyed, still clickable. */
.chip--past { border-style: dashed; border-color: #b9b0a6; background: transparent; color: var(--ink-3); }
.chip--past:hover { border-color: var(--ink-2); color: var(--ink-2); }
.chip--past[aria-pressed="true"] { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 15px; }
.toggle input { accent-color: var(--red); width: 17px; height: 17px; margin: 0; }
.finder__status { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); min-height: 1px; }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }

.finder__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 8px; }
.finder.has-map .finder__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }

.group { margin-top: 18px; }
.group__title {
  margin: 0 0 12px; font-family: var(--display); font-weight: 400;
  font-size: 26px; text-transform: uppercase; letter-spacing: .01em;
}
/* With the whole width to work with, cards sit in a grid; an opened card takes its own row. */
.group__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.finder.has-map .group__cards { grid-template-columns: minmax(0, 1fr); }
.group__cards .card.is-open { grid-column: 1 / -1; }

.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  scroll-margin-top: 24px;
}
.card:hover { border-color: #cfc5bb; }
.card.is-open { border-color: var(--ink); box-shadow: 4px 4px 0 var(--red); }
.card__head {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; background: none; border: 0; padding: 14px; cursor: pointer;
}
.statebox {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: var(--red-tint); color: var(--red-dark);
  font-family: var(--display); font-size: 21px; letter-spacing: .03em; line-height: 1;
}
.card.is-open .statebox { background: var(--red); color: #fff; }
.card--past { background: #f7f3ee; border-style: dashed; }
.card--past:not(.is-open) .card__title, .card--past:not(.is-open) .card__sub { color: var(--ink-3); }
.card--past .statebox { background: #ebe5de; color: var(--ink-3); }
.card--past.is-open .statebox { background: var(--ink-3); color: #fff; }

.past { margin-top: 40px; }
.past__toggle, .past__title {
  width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 4px;
  background: none; border: 0; border-top: 2px dashed var(--line); padding: 20px 0 8px; text-align: left;
  font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; color: var(--ink-3);
}
.past__toggle { cursor: pointer; }
.past__toggle:hover { color: var(--ink-2); }
.past__hint { margin-left: auto; font-family: var(--body); font-size: 14px; font-weight: 700; text-transform: none; color: var(--ink-2); }
.past__toggle .card__chev { transition: transform .2s ease; }
.past.is-open .past__toggle .card__chev { transform: rotate(180deg); }
.past .group { margin-top: 10px; }
.past .group__title { color: var(--ink-3); font-size: 22px; }
.card__title { font-weight: 800; font-size: 17px; line-height: 1.25; margin: 0; }
.card__sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.card__chev { color: var(--ink-3); transition: transform .2s ease; }
.card.is-open .card__chev { transform: rotate(180deg); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #f1ece6; color: var(--ink-2); letter-spacing: .02em;
}
.tag--rsvp { background: var(--red-tint); color: var(--red-dark); }
.tag--when { background: var(--ink); color: #fff; }
.tag--past { background: #e6e0d9; color: var(--ink-2); }

.card__body { padding: 0 14px 16px; border-top: 1px dashed var(--line); margin: 0 12px; padding-left: 0; padding-right: 0; }
.card__body[hidden] { display: none; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px 8px; font-size: 14.5px; }
.facts svg { color: var(--red); margin-top: 2px; }
.facts dd { margin: 0; }
.facts dt { line-height: 0; }
.desc { font-size: 15px; margin: 14px 0 0; }
.note {
  margin: 12px 0 0; font-size: 13.5px; background: #fff8e6; border-left: 3px solid #e3a619;
  padding: 8px 10px; border-radius: 0 6px 6px 0; color: #5a4300;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.calmenu { position: relative; }
.calmenu summary { list-style: none; }
.calmenu summary::-webkit-details-marker { display: none; }
.calmenu__list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--red);
  padding: 6px; display: flex; flex-direction: column;
}
.calmenu__list a, .calmenu__list button {
  display: block; text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.calmenu__list a:hover, .calmenu__list button:hover { background: var(--red-tint); }
.embed { margin-top: 16px; }
.embed .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.embed__loading { font-size: 13px; color: var(--ink-3); }

.empty { text-align: center; padding: 40px 12px; color: var(--ink-2); }
.empty p { margin: 0 0 14px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Map (only shown for a search, "Near me", or an opened campus) ---------- */
.mapwrap {
  position: sticky; top: 16px; margin-top: 18px;
  height: min(calc(100vh - 32px), 720px); min-height: 420px;
  display: flex; flex-direction: column;
  border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 5px 5px 0 var(--red);
}
.mapwrap[hidden] { display: none; }
.mapwrap__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 14.5px;
}
.mapwrap__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapwrap__close { flex: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.mapwrap__close:hover { background: var(--ink); color: #fff; }
#map { flex: 1; min-height: 0; background: #e9e4dc; }
/* Mute the basemap so the red pins carry the color. */
.leaflet-tile-pane { filter: grayscale(1) contrast(.9) brightness(1.06); }

.pin { background: none; border: 0; }
.pin i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: var(--red); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.pin.is-active i { background: var(--ink); border-color: #fff; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(236,31,39,.45); }
.pin.is-active { z-index: 1000 !important; }

.leaflet-container { font-family: var(--body); }
.leaflet-popup-content-wrapper { border-radius: 10px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.4; min-width: 200px; }
.leaflet-popup-tip { border: 2px solid var(--ink); }
.leaflet-popup-content p { margin: 0; }
.pop__title { font-weight: 800; font-size: 15.5px; margin: 0 0 2px !important; }
.pop__sub { color: var(--ink-2); }
.pop__when { margin-top: 8px !important; }
.pop__when { font-weight: 600; }
.pop__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pop__actions .btn { padding: 6px 12px; font-size: 13px; }
.leaflet-popup-content a.btn--red { color: #fff; }
/* ---------- About ---------- */
.about {
  max-width: 1240px; margin: 0 auto; padding: 72px 16px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start;
}
.about h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 68px); line-height: .95; margin: 0 0 20px; color: var(--red);
}
.about p { font-size: 17px; margin: 0 0 16px; max-width: 62ch; }
.about__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about__embed .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

.footer { border-top: 1px solid var(--line); padding: 32px 16px 40px; text-align: center; color: var(--ink-3); font-size: 14px; }
.footer__logo { display: inline-block; line-height: 0; margin-bottom: 16px; }
.footer__logo img { height: 52px; width: auto; }
.footer p { max-width: 720px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .brandbar { padding-bottom: 32px; }
  .brandbar__logo img { height: 52px; }
  .stats-wrap { margin-top: 36px; }
  .finder { padding-top: 40px; }
  .finder.has-map .finder__body { grid-template-columns: minmax(0, 1fr); }
  .mapwrap { order: -1; position: relative; top: 0; height: 46vh; min-height: 300px; }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats div { padding: 16px 0 18px; }
  .stats dd { margin-bottom: 6px; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 2px solid rgba(255,255,255,.35); }
  .searchrow { flex-direction: column; }
  .nearme { align-self: flex-start; }
  .search { padding: 0 18px; }
  .search input { font-size: 17px; padding: 15px 0; }
  .group__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .card__head { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
