:root {
  --ink: #022851;
  --paper: #fff;
  --accent: #ffbf00;
  --accent-light: #fff9e5;
  --rule: #c9cdd6;
  --muted: #5a6a7a;
  --session-bg: #f5f5f5;
  --card-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Helper classes */
.visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  position: static !important;
  white-space: inherit !important;
  width: auto !important;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* HEADER */
header {
  border-bottom: 3px solid var(--ink);
  padding: 3rem 4rem 2rem;
  position: relative;
  overflow: hidden;
}
header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 6px,
    rgba(192,57,43,0.06) 6px, rgba(192,57,43,0.06) 7px
  );
  pointer-events: none;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
header h1 span { color: #033266; font-style: normal; }
.header-sub {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}
.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.1rem;
  margin-bottom: 0.3rem;
}
.header-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.header-location a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}
.header-location a:hover { color: var(--accent); }
.map-pin-icon { color: var(--accent); flex-shrink: 0; }
.header-map {
  margin-top: 1.2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  max-width: 520px;
  cursor: pointer;
}
.header-map img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
}
.header-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.header-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 400;
}
.header-location a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-location a:hover { color: var(--accent); }
.map-pin-icon { color: var(--accent); flex-shrink: 0; }
.header-map {
  margin-top: 1.2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  max-width: 480px;
}
.header-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: none;
}

/* OVERVIEW TABLE */
.wrap {
  padding: 2.5rem 4rem;
}
.wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;
  margin-bottom: 1.2rem;
}

table.overview {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.overview th, table.overview td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.9rem;
  text-align: left;
}
table.overview th {
  background: var(--ink);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
table.overview td:first-child,
table.overview tr:nth-child(even) td:first-child,
table.overview .plenary td:first-child {
  background-color: var(--ink) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  white-space: nowrap;
  color: var(--paper) !important;
  width: 140px;
}
table.overview tr:nth-child(even) td { background: var(--session-bg); }
table.overview .plenary td { background: var(--accent-light) !important; font-style: italic; }

/* ROOM GRID */
.grid-wrap {
  padding: 0 4rem 2.5rem;
}
.grid-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;
  margin-bottom: 1.2rem;
}
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
table.grid th, table.grid td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.65rem;
  vertical-align: top;
}
table.grid th {
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
table.grid td.room-label {
  background: var(--session-bg);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  width: 72px;
}
table.grid td.topic {
  background: #fff;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  border-top: 3px solid var(--accent);
  font-size: 0.8rem;
  padding: 0.5rem;
}

/* SECTION DIVIDER */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.2rem 4rem 1rem;
}
.section-divider h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 900;
  white-space: nowrap;
}
.rule-line { flex: 1; height: 2px; background: var(--ink); }
.time-badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
}

/* SESSIONS GRID */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding: 0 4rem 0.5rem;
}

.session-card {
  border: 1px solid var(--rule);
  background: var(--card-bg);
  padding: 1.1rem 1.2rem 1rem;
  position: relative;
}
.session-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.session-room {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.session-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

/* PAPER */
.paper {
  border-top: 1px solid var(--rule);
  padding: 0.6rem 0 0.4rem;
}
.paper-title {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.18rem;
}
.paper-author {
  border-top: 2px solid var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}
.paper-inst {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0.25rem;
}
.co-authors {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.paper-abstract {
  font-size: 0.74rem;
  color: #4a4540;
  line-height: 1.5;
  font-weight: 300;
  margin-top: 0.2rem;
}

/* BREAKS */
.break-banner {
  margin: 0.6rem 4rem;
  padding: 0.45rem 1rem;
  background: var(--session-bg);
  border-left: 4px solid var(--rule);
  font-size: 0.79rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* PLENARY */
.plenary-wrap { padding: 0.4rem 0 0; }
.plenary-wrap.tall { margin-top:0.5rem; padding: 0.4rem 0 0; }
.plenary-banner {
  margin: 0 4rem;
  border: 2px solid var(--ink);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--session-bg);
  gap: 1rem;
}
.pb-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.pb-title {
  border-top: 1px solid var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}
.pb-time { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.pb-inst { font-size: 0.78rem; color: var(--muted); font-weight: 300; margin-top: 0.2rem; }
.pb-keynote-title { font-size: 0.9rem; color: var(--ink); font-style: italic; margin-top: 0.2rem; }

footer {
  margin-top: 4rem;
  border-top: 3px solid var(--ink);
  padding: 1.4rem 4rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .sessions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sessions-grid { grid-template-columns: 1fr; }
  header, .wrap, .grid-wrap, .section-divider, .sessions-grid,
  .break-banner, .plenary-banner, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .break-banner, .plenary-banner { margin-left: 0; margin-right: 0; }
}
