/* A2A-MML Workshop – classy typography from Sharut/Website (Muli, Raleway) */
@import url("https://fonts.googleapis.com/css2?family=Muli:wght@400;600;700&family=Raleway:wght@400;500;600;700&display=swap");

:root {
  --gunn-red: #a82a32;
  --gunn-red-dark: #8b1e26;
  --paper: #f6f3ef;
  --ink: #0f0f12;
  --muted: #5e5a55;
  --line: #e9e4dc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0,0,0,.10);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.08);
  --max: 1100px;
  --font: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: clamp(1.5rem, 3.5vw, 2.25rem);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  font-weight: 400;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* In-content links: distinct color, underline on hover */
main a:not(.submit-btn):not(.cta-btn) {
  color: var(--gunn-red);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
main a:not(.submit-btn):not(.cta-btn):hover {
  text-decoration: underline;
  color: var(--gunn-red-dark);
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav – fixed at top so it stays visible when scrolling */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: rgba(246,243,239,.82);
  border-bottom: 1px solid var(--line);
}
body { padding-top: 64px; }
.nav .container { max-width: 100%; padding-left: 20px; padding-right: 20px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  padding: 10px 0;
}
.nav-inner .menu { margin-left: auto; flex-shrink: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
}
.menu a { opacity: .86; text-underline-offset: 6px; }
.menu a:hover { opacity: 1; text-decoration: underline; }

/* Mobile menu */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  cursor: pointer;
}
.nav-toggle:active { transform: translateY(1px); }
.nav-toggle .bars { width: 20px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: rgba(15,15,18,.9);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.mobile-menu { position: fixed; inset: 0; z-index: 999; display: none; }
.mobile-menu.open { display: block; }
.mm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }
.mm-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw);
  background: rgba(246,243,239,.96);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0,0,0,.18);
  padding: 14px 16px 18px;
  overflow: auto;
  transform: translateX(8px);
}
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--line);
}
.mm-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: .03em;
}
.mm-close {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.mm-close:hover { background: #fff; }
.mm-groups { padding: 6px 0 6px; }
.mm-group {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin: 10px 0;
  overflow: hidden;
}
.mm-group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group summary .mm-caret {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.8);
  color: var(--gunn-red);
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  flex: 0 0 auto;
  transition: transform .12s ease;
}
.mm-group[open] summary .mm-caret { transform: rotate(90deg); }
.mm-links { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.mm-link {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.9);
  font-weight: 500;
  opacity: .95;
}
.mm-link:hover { opacity: 1; border-color: rgba(0,0,0,.10); background: #fff; }
@media (max-width: 860px) {
  .menu { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  min-height: 0;
  padding: 48px 20px 56px;
  background: linear-gradient(135deg, var(--gunn-red), var(--gunn-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .wrap {
  position: relative;
  width: 100%;
  padding: 0;
  text-align: center;
}
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 16px 8px 14px;
  border-left: 3px solid rgba(255,255,255,.9);
  margin-bottom: 0;
  background: rgba(255,255,255,.12);
}
.hero h1 {
  margin: 12px 0 16px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: .03em;
  font-weight: 600;
}
.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .95;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta-icon {
  font-size: 1rem;
  opacity: .9;
}
.cta { display: flex; justify-content: center; margin-top: 0; gap: 12px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.92);
  background: transparent;
  color: #fff;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.cta-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: #fff;
}

/* Main content & headings */
main { padding-bottom: 48px; }
section { padding: 56px 0; }
.section-title {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  color: var(--gunn-red);
  font-weight: 600;
  letter-spacing: .03em;
  text-align: left;
}
.box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: left;
}
.box p { text-align: left; }
.content h3 {
  margin: 28px 0 12px;
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .03em;
  text-align: left;
}
.content h3:first-of-type { margin-top: 0; }
.content h3::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin-bottom: 14px;
}
.content p { margin: 12px 0; text-align: left; }
.bullets { margin: 14px 0 14px 22px; padding: 0; text-align: left; }
.bullets li { margin: 8px 0; }

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { gap: 12px; } }
#organizersGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1200px) { #organizersGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { #organizersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #organizersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#organizersGrid .card { min-height: 220px; }
#organizersGrid .card .img { aspect-ratio: 1/1; }
#contributorsGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1200px) { #contributorsGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { #contributorsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #contributorsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#contributorsGrid .card { min-height: 220px; }
#contributorsGrid .card .img { aspect-ratio: 1/1; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  cursor: pointer;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .img { aspect-ratio: 4/5; background: #ddd; position: relative; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .meta { padding: 14px 16px 16px; }
.card .name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.2;
  margin: 0 0 4px;
}
.card .affil { margin: 0; color: var(--gunn-red); font-size: var(--text-xs); font-weight: 700; line-height: 1.35; }
.card .chev {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.card .chev span { font-size: 18px; font-weight: 700; color: var(--gunn-red); transform: translateX(1px); }

/* Schedule */
.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.schedule th,
.schedule td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: var(--text-sm);
  font-weight: 400;
}
.schedule th { background: rgba(155,13,19,.06); color: var(--ink); font-weight: 600; }
.schedule tr:last-child td { border-bottom: none; }
.schedule .section-row td { background: rgba(0,0,0,.03); font-weight: 500; }
.pill { display: inline; padding: 0; border: none; background: none; font-weight: 400; }

/* Important dates */
.dates-note {
  margin: 8px 0 24px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.dates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 980px) { .dates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dates-grid { grid-template-columns: 1fr; } }
.date-card {
  background: #fafafa;
  border: none;
  border-left: 4px solid var(--line);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  box-shadow: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.date-card:hover {
  background: #f5f5f5;
}
.date-card .date.is-deadline + .label { font-weight: 600; }
.date-card:has(.date.is-deadline) {
  border-left-color: var(--gunn-red);
  background: rgba(168, 42, 50, .06);
}
.date-card:has(.date.is-deadline):hover {
  background: rgba(168, 42, 50, .08);
}
.date-card .date {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.date-card .date.is-deadline { color: var(--gunn-red); }
.date-card .label {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Buttons */
.submit-row { display: flex; justify-content: center; margin-top: 14px; }
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--gunn-red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
  background: var(--gunn-red-dark);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1000;
  background: rgba(0,0,0,.55);
}
.modal.open { display: flex; }
.modal-panel {
  width: min(980px, 100%);
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden;
}
.modal-head {
  padding: 18px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-2xl);
  color: var(--ink);
  letter-spacing: .03em;
}
.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
}
.modal-close:hover { background: rgba(0,0,0,.05); }
.modal-body { padding: 18px; display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
@media (max-width: 760px) { .modal-body { grid-template-columns: 1fr; } }
.modal-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #ddd;
  aspect-ratio: 4/5;
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-text p { margin: 10px 0; font-size: var(--text); line-height: 1.6; text-align: left; }
.modal-sub { margin: 6px 0 0; font-size: var(--text-sm); color: var(--muted); font-weight: 500; }
.modal-actions {
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--gunn-red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  white-space: nowrap;
}
.home-btn:hover { background: var(--gunn-red-dark); }

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gunn-red), var(--gunn-red-dark));
  color: #fff;
  margin-top: 40px;
}
footer .container {
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  font-weight: 500;
}
footer .muted { opacity: .92; }
