/* ============================================================
   LANET 2027 — Stylesheet
   Colour palette based on UFRGS official identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #240C6C;
  --navy-dark:   #170844;
  --navy-subtle: #F3F0F9;
  --red:         #D82418;
  --red-hover:   #B31E14;
  --white:       #FFFFFF;
  --off-white:   #F8F7FC;
  --border:      #E6E2F0;
  --grey-light:  #EAE8F2;
  --grey-mid:    #948AB0;
  --grey-text:   #554A75;
  --text:        #1B152B;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;

  --shadow-sm: 0 1px 4px rgba(36, 12, 108, 0.08);
  --shadow:    0 2px 16px rgba(36, 12, 108, 0.10);
  --shadow-md: 0 6px 28px rgba(36, 12, 108, 0.14);

  --ease:     0.2s ease;
  --space-xl: 72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section       { padding: var(--space-xl) 0; }
.section-alt   { background: var(--off-white); }

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.nav-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-brand-sub {
  font-size: 0.68rem;
  color: var(--grey-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2px;
}

.nav-menu a {
  display: block;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #B4ACCD;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}

.nav-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-menu a.active { background: rgba(255,255,255,0.10); color: var(--white); border-bottom: 2px solid var(--red); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(80,46,184,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(216,36,24,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  height: 260px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* ── Hero logo pulse overlay ─────────────────────────────────── */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* Positioned over Porto Alegre (30.0°S, 51.2°W) — snapped to the
   network node at that point on the map graphic. */
.hero-pulse {
  position: absolute;
  left:      79%;
  top:       59.6%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-pulse-dot {
  width:  10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px 3px rgba(216,36,24,0.7);
  position: relative;
  z-index: 2;
}

.hero-pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(216,36,24,0.7);
  width: 10px; height: 10px;
  animation: hero-pulse-anim 2.2s ease-out infinite;
}

.hero-pulse-ring2 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(216,36,24,0.5);
  width: 10px; height: 10px;
  animation: hero-pulse-anim 2.2s ease-out 1.1s infinite;
}

@keyframes hero-pulse-anim {
  0%   { width:  10px; height:  10px; opacity: 0.9; }
  100% { width:  64px; height:  64px; opacity: 0;   }
}

.hero-text-col {
  flex: 1;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(216,36,24,0.6);
  color: #ED8982;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--grey-mid);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #D3CDE4;
  border-radius: 40px;
  padding: 11px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 36px;
}

.hero-meta .dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.hero-meta .tbc { font-size: 0.78rem; color: var(--grey-mid); font-style: italic; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero-content { flex-direction: column; gap: 32px; text-align: center; }
  .hero-text-col { text-align: center; }
  .hero-logo { height: 160px; }
  .hero-actions { justify-content: center; }
  .hero-meta { flex-direction: column; gap: 6px; border-radius: var(--radius); padding: 14px 20px; }
  .hero-meta .dot { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(216,36,24,0.30);
}

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

.btn-disabled {
  background: var(--grey-light);
  color: var(--grey-mid);
  border-color: var(--grey-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Info bar ────────────────────────────────────────────────── */
.info-bar {
  background: var(--navy);
  padding: 36px 0;
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.info-bar-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.info-bar-item + .info-bar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.info-bar-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
  margin-bottom: 6px;
  font-weight: 500;
}

.info-bar-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.info-bar-value.pending { color: #957CDE; font-style: italic; font-weight: 500; }

/* ── Section headings ────────────────────────────────────────── */
.section-header { margin-bottom: 40px; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.02rem;
  color: var(--grey-text);
  max-width: 620px;
  line-height: 1.75;
}

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--navy-dark);
  padding: 52px 0 44px;
  border-bottom: 2px solid var(--red);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 90% 50%, rgba(80,46,184,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero-lead {
  font-size: 0.95rem;
  color: var(--grey-mid);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid   { display: grid; gap: 20px; }
.grid-3      { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4      { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Icon list items ─────────────────────────────────────────── */
.icon-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.icon-list li { display: flex; align-items: flex-start; gap: 14px; }
.icon-list .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--navy-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.icon-list .icon svg { width: 16px; height: 16px; }
.icon-list .icon-label { font-weight: 600; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.icon-list .icon-value { font-size: 0.85rem; color: var(--grey-text); }

/* ── Speaker cards ──────────────────────────────────────────── */
.speaker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.speaker-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.speaker-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 28px auto 0;
  border: 3px solid var(--navy);
}

.speaker-body { padding: 20px; text-align: center; }
.speaker-name { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 3px; }
.speaker-affil { font-size: 0.82rem; color: var(--grey-text); margin-bottom: 8px; }
.speaker-talk { font-size: 0.82rem; color: var(--grey-mid); font-style: italic; }

/* ── Committee cards ─────────────────────────────────────────── */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.committee-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow var(--ease);
}
.committee-card:hover { box-shadow: var(--shadow); }

/* General Co-Chairs — tinted panel with a red accent edge */
.committee-card--featured {
  background: var(--navy-subtle);
  border-color: var(--grey-light);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
}
.committee-card--featured:hover { box-shadow: var(--shadow-md); }
.committee-card--featured .committee-name { font-size: 1.1rem; }

.committee-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--navy);
}

.committee-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3px;
}
.committee-name { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 3px; }
.committee-affil { font-size: 0.83rem; color: var(--grey-text); line-height: 1.5; }

/* ── Programme at a glance (proportional timetable) ──────────── */
.tt-wrap { overflow-x: auto; margin-bottom: 48px; padding-bottom: 4px; }
.tt {
  display: grid;
  /* time axis + five days, each split in two so parallel sessions sit
     side by side within their day */
  grid-template-columns: 58px repeat(10, minmax(84px, 1fr));
  grid-auto-rows: 42px;            /* one row = 30 minutes */
  gap: 3px;
  min-width: 940px;
}
.tt-corner { grid-column: 1; grid-row: 1; }
.tt-head {
  grid-row: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}
.tt-head span {
  font-weight: 400; font-size: 0.68rem; color: var(--grey-light);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tt-time {
  grid-column: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-mid);
  border-top: 1px solid var(--border);
  padding-top: 2px;
}
.tt-slot {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  overflow: hidden;
  min-width: 0;
}
.tt-name  { font-size: 0.76rem; font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
/* Tight leading: these inherit the body's 1.7, which overflows a 30-min block. */
.tt-room  { font-size: 0.66rem; color: var(--grey-mid);  line-height: 1.3; }
.tt-chair { font-size: 0.66rem; color: var(--grey-text); line-height: 1.3; }

/* Session type carried by the left edge colour. */
.tt-slot--keynote     { border-left-color: var(--navy); background: var(--navy-subtle); }
.tt-slot--contributed { border-left-color: #4A9B6E; }
.tt-slot--lightning   { border-left-color: #D9A21B; }
.tt-slot--poster      { border-left-color: var(--red); }
.tt-slot--tutorial    { border-left-color: #7A6BB5; }
.tt-slot--ceremony    { border-left-color: var(--grey-mid); background: var(--off-white); }
.tt-slot--social      { border-left-color: var(--grey-light); background: var(--off-white); }
.tt-slot--break {
  border-left-color: var(--grey-light);
  background: var(--off-white);
  border-style: dashed;
  display: flex; align-items: center;
}
.tt-slot--break .tt-name { font-weight: 500; font-size: 0.7rem; color: var(--grey-mid); }
/* A 30-minute block has room for two lines only; those are all plenary,
   which the legend already states, so the room line is dropped. */
.tt-slot--short .tt-room { display: none; }

.glance-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 16px; font-size: 0.75rem; color: var(--grey-text);
}
.glance-legend span { display: flex; align-items: center; gap: 6px; }
.glance-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; font-style: normal; }

/* ── Programme table ─────────────────────────────────────────── */
.prog-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prog-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prog-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prog-table tbody tr:last-child td { border-bottom: none; }
.prog-table tbody tr:hover td { background: var(--off-white); }
.time-col { font-weight: 600; color: var(--navy); white-space: nowrap; width: 130px; }
.chair-col { white-space: nowrap; color: var(--grey-text); width: 90px; }
.room-col  { white-space: nowrap; color: var(--grey-text); width: 110px; }
/* The two halves of a parallel slot share a start time, which reads as a typo
   without a cue; a left edge marks them as one slot running in two rooms. */
.parallel-row td:first-child { border-left: 3px solid var(--grey-mid); }

/* ── Day navigation bar ─────────────────────────────────────── */
.day-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 16px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.day-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  line-height: 1.2;
}
.day-nav-btn span {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--grey-mid);
  margin-top: 2px;
}
.day-nav-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.day-nav-btn:hover span { color: rgba(255,255,255,0.7); }

.day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 14px;
}
.day-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}
.day-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.day-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(216,36,24,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Important dates ─────────────────────────────────────────── */
.dates-list { list-style: none; }
.dates-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.dates-list li:last-child { border-bottom: none; }
.date-event { color: var(--text); font-weight: 500; }
.date-val { font-weight: 700; color: var(--navy); white-space: nowrap; }
.date-val.tbc { color: var(--grey-mid); font-weight: 500; font-style: italic; }

/* ── Notice / alert box ──────────────────────────────────────── */
.notice {
  background: var(--navy-subtle);
  border-left: 3px solid var(--navy);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--grey-text);
  margin-bottom: 28px;
}

/* ── Tags ────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--grey-text);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 3px 2px;
}

/* ── Two-col layout ──────────────────────────────────────────── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

/* ── Host institutions ───────────────────────────────────────── */
.host-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}
.host-item { text-align: center; }
.host-item img {
  height: 88px;
  width: auto;
  margin: 0 auto 10px;
  opacity: 0.85;
  transition: opacity var(--ease);
}
.host-item img:hover { opacity: 1; }
.host-item span { display: block; font-size: 0.8rem; color: var(--grey-text); max-width: 220px; }

/* ── Sticky sidebar card ─────────────────────────────────────── */
.sticky-card { position: sticky; top: 80px; }

/* ── Board list ──────────────────────────────────────────────── */
.board-list {
  list-style: none;
  columns: 2;
  column-gap: 48px;
  max-width: 860px;
}

.board-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

.board-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.board-affil {
  font-size: 0.82rem;
  color: var(--grey-text);
}

@media (max-width: 640px) {
  .board-list { columns: 1; }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: var(--grey-mid);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 32px;
}

.footer-brand img {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--ease);
}

.footer-social a:hover { background: rgba(255,255,255,0.18); }

.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }

/* ── Responsive ──────────────────────────────────────────────── */

/* ── Card feature icon ───────────────────────────────────────── */
.card-icon {
  width: 40px;
  height: 40px;
  background: var(--navy-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--navy);
}
.card-icon svg { width: 20px; height: 20px; }

.card-h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.card-p  { font-size: 0.875rem; color: var(--grey-text); }

/* ── Prose body text ─────────────────────────────────────────── */
.prose    { color: var(--grey-text); margin-bottom: 16px; }
.prose-lg { color: var(--grey-text); margin-bottom: 32px; }

/* ── Section-header modifiers ────────────────────────────────── */
.section-header--tight  { margin-bottom: 20px; }
.section-header--center { text-align: center; }

/* ── Service credit / acknowledgement note ───────────────────── */
.credit-note {
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--grey-mid);
  margin-top: 24px;
}

/* ── Section-title size modifiers ────────────────────────────── */
.section-title--sm { font-size: 1.1rem; }
.section-title--md { font-size: 1.2rem; }

/* ── Button modifiers ────────────────────────────────────────── */
.btn--full { width: 100%; text-align: center; display: block; }

/* ── Card footer note (e.g. format line in submission cards) ─── */
.card-footer-note {
  font-size: 0.78rem;
  color: var(--grey-mid);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

/* ── Previous-edition cards ──────────────────────────────────── */
.edition-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.edition-year  { font-weight: 700; font-size: 1.1rem; color: var(--navy-dark); margin-bottom: 4px; }
.edition-city  { font-size: 0.875rem; color: var(--grey-text); }

/* ── Restaurant / venue listing ──────────────────────────────── */
.restaurant-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.restaurant-name { font-size: 0.95rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.restaurant-desc { font-size: 0.82rem; color: var(--grey-text); margin-bottom: 10px; }
.restaurant-addr { font-size: 0.78rem; color: var(--grey-mid); }
.restaurant-addr svg { vertical-align: -2px; margin-right: 4px; }

/* ── Maps (Leaflet + CARTO Positron, fed from data/restaurants.json) ── */
.map-wrap { margin-top: 40px; margin-bottom: 32px; }
.site-map {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--off-white);
}
.map-note {
  font-size: 0.78rem;
  color: var(--grey-mid);
  margin-top: 8px;
}
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { font-size: 0.82rem; line-height: 1.5; color: var(--grey-text); }
.leaflet-popup-content strong { color: var(--navy-dark); }

.restaurant-walk {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

/* ── CTA box ─────────────────────────────────────────────────── */
.cta-box {
  margin-top: 48px;
  padding: 40px 32px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.cta-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}
.cta-box p {
  color: var(--grey-text);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Day header date ─────────────────────────────────────────── */
.day-date { color: var(--grey-mid); font-style: italic; }

/* ── Inline name link ────────────────────────────────────────── */
.name-link { color: var(--navy-dark); text-decoration: none; border-bottom: 1px solid var(--border); }
.name-link:hover { color: var(--red); border-bottom-color: var(--red); }

/* Tablet */
@media (max-width: 900px) {
  .two-col   { grid-template-columns: 1fr; gap: 36px; }
  .two-col-3 { grid-template-columns: 1fr; gap: 32px; }
  .info-bar-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .info-bar-item + .info-bar-item::before { display: none; }
  .footer-grid { flex-direction: row; }
  .sticky-card { position: static; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --space-xl: 48px; }

  .container { padding: 0 20px; }

  /* Nav */
  .nav-brand-text  { display: none; }
  .nav-toggle      { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #120830;
    flex-direction: column;
    border-top: 2px solid var(--red);
    padding: 8px 0 16px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-menu.open   { display: flex; }
  .nav-menu li     { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.85rem;
    border-bottom: none;
  }
  .nav-menu a.active {
    border-bottom: none;
    border-left: 3px solid var(--red);
    border-radius: 0;
    padding-left: 21px;
  }

  /* Hero */
  .hero { padding: 60px 0 56px; }
  .hero-logo { height: 80px; }
  .hero-meta { flex-direction: column; gap: 6px; border-radius: var(--radius); padding: 14px 20px; }
  .hero-meta .dot { display: none; }

  /* Info bar */
  .info-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Grids */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .committee-grid { grid-template-columns: 1fr; }

  /* Committee card */
  .committee-card { flex-direction: column; text-align: center; }

  /* Footer */
  .footer-grid { flex-direction: column; align-items: center; gap: 20px; }
  .footer-brand img { height: 72px; }
  .footer-social { justify-content: center; }

  /* Programme table */
  .prog-table thead { display: none; }
  .prog-table tbody td { display: block; padding: 6px 12px; border-bottom: none; }
  .prog-table tbody tr { border-bottom: 1px solid var(--border); display: block; padding: 10px 0; }
  .time-col { width: auto; }
  /* The header is hidden when the table stacks, so label the chair inline
     and drop the cell entirely on rows that have no chair. */
  .chair-col, .room-col { width: auto; }
  .chair-col::before { content: "Chair: "; color: var(--grey-mid); }
  .room-col::before  { content: "Room: ";  color: var(--grey-mid); }
  /* Needs to out-specify `.prog-table tbody td { display: block }` above. */
  .prog-table tbody td.chair-col--none,
  .prog-table tbody td.room-col--none { display: none; }
  .parallel-row td:first-child { border-left: none; }

  /* Dates list */
  .dates-list li { flex-direction: column; gap: 2px; }
}
