:root {
  --ink: #171918;
  --muted: #596463;
  --paper: #f5f1e5;
  --white: #fffdf7;
  --slate: #7b8988;
  --slate-dark: #536361;
  --slate-light: #dfe3df;
  --yellow: #f9b206;
  --yellow-light: #fcd578;
  --line: #d2d5cf;
  --shadow: 0 12px 30px rgba(46, 57, 55, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.site-header {
  background: var(--slate-dark);
  border-bottom: 5px solid var(--yellow);
}

.banner-wrap {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.event-banner {
  display: block;
  width: 100%;
  height: auto;
}

.guide-strip {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--yellow);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

main, footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.step { margin: 0 0 6px; font-size: .86rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

main { padding: 34px 0 64px; }
.page-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 34px; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--slate); border-radius: 999px; font-weight: 760; text-decoration: none; }
.page-nav a:first-child { background: var(--yellow); border-color: #d49300; }
.page-nav a:hover { box-shadow: var(--shadow); }
.page-nav a:focus-visible, .timeline a:focus-visible { outline: 3px solid rgba(249,178,6,.68); outline-offset: 2px; }

.full-program { scroll-margin-top: 12px; }
.program-heading { display: block; margin-bottom: 22px; }
.program-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.1; }
.days-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.day-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.day-head { padding: 19px 22px 17px; color: var(--white); background: var(--slate-dark); border-bottom: 5px solid var(--yellow); }
.day-head p { margin: 0 0 2px; color: var(--slate-light); font-size: .86rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.day-head h2 { color: var(--white); font-size: clamp(1.65rem, 3.5vw, 2.2rem); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--slate-dark); font-size: .92rem; font-weight: 820; font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.35; }
.timeline p { margin: 8px 0 0; color: var(--muted); font-size: .94rem; }
.timeline p strong { color: var(--ink); }
.timeline .speaker-line { color: var(--ink); }
.timeline .speaker-line strong { font-weight: 820; }
.timeline .coord-line { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.timeline .location { margin: 0 0 5px; color: var(--slate-dark); font-size: .77rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.timeline a { display: inline-block; margin-top: 9px; color: var(--slate-dark); font-size: .9rem; font-weight: 800; text-underline-offset: 3px; }
.timeline .break-item { background: #f3f4f0; }
.timeline .linked-item { background: #fff8e4; }
.timeline .pending-item { background: var(--slate-light); }
.lab-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: lab; }
.lab-list li { display: block; position: relative; padding: 12px 13px 12px 45px; background: var(--white); border: 1px solid #c9cfca; border-left: 4px solid var(--yellow); border-radius: 7px; counter-increment: lab; }
.lab-list li::before { content: counter(lab); position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 23px; height: 23px; color: var(--white); background: var(--slate-dark); border-radius: 50%; font-size: .76rem; font-weight: 850; }
.timeline .lab-list p { margin: 3px 0 0; font-size: .88rem; }
.lab-list h4 { margin: 0 0 8px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 600; line-height: 1.38; }

.controls { margin-bottom: 26px; }
.full-program + .controls { margin-top: 56px; padding-top: 38px; border-top: 2px solid var(--slate-light); scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.step { color: var(--slate-dark); }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 500; }
.slot-instruction { margin: 10px 0 0; color: var(--muted); font-weight: 650; }

.slot-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.slot-tab {
  min-height: 78px;
  padding: 13px 14px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.slot-tab:hover { border-color: var(--slate-dark); transform: translateY(-1px); }
.slot-tab:focus-visible, input:focus-visible, summary:focus-visible, .copy-link:focus-visible { outline: 3px solid rgba(249,178,6,.68); outline-offset: 2px; }
.slot-tab[aria-selected="true"] { color: var(--ink); background: var(--yellow); border-color: #d49300; box-shadow: var(--shadow); }
.slot-day { display: block; font-weight: 760; }
.slot-time { display: block; margin-top: 2px; font-size: .93rem; opacity: .86; }
.slot-mesas { display: block; margin-top: 4px; font-size: .8rem; opacity: .76; }
.slot-action { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 7px; color: var(--slate-dark); border-top: 1px solid var(--line); font-size: .82rem; font-weight: 820; }
.slot-tab[aria-selected="true"] .slot-action { color: var(--ink); border-top-color: rgba(23,25,24,.28); }

.search-box { display: block; max-width: 660px; }
.search-box span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.search-box input { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.search-box input:focus { border-color: var(--slate-dark); }
.result-count { min-height: 1.4em; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.results { scroll-margin-top: 12px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; padding-top: 4px; scroll-margin-top: 12px; }
.results-heading h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
.change-slot { display: none; min-height: 46px; padding: 9px 13px; color: var(--ink); background: var(--white); border: 2px solid var(--slate); border-radius: 8px; cursor: pointer; font: 800 .9rem/1.2 inherit; white-space: nowrap; touch-action: manipulation; }
.change-slot:hover { background: var(--slate-light); }
.reading-help { max-width: 760px; margin: 0 0 16px; padding: 10px 13px; color: var(--ink); background: var(--yellow-light); border-left: 5px solid var(--yellow); border-radius: 4px; font-size: .96rem; }

.mesas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mesa-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--slate); border-radius: 12px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.mesa-card.highlight { animation: highlight 1.8s ease-out; }
@keyframes highlight { 0%, 35% { box-shadow: 0 0 0 5px rgba(249,178,6,.42), var(--shadow); } }
.mesa-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.mesa-number { margin: 0; color: var(--slate-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 600; }
.mesa-meta { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.mesa-room { display: inline-block; margin: 8px 0 0; padding: 3px 9px; color: var(--ink); background: var(--yellow-light); border-radius: 5px; font-size: .95rem; font-weight: 800; }
.copy-link { align-self: start; min-height: 40px; padding: 8px 11px; color: var(--ink); background: transparent; border: 1px solid var(--slate); border-radius: 7px; cursor: pointer; font: 700 .82rem/1.2 inherit; white-space: nowrap; }
.copy-link:hover { background: var(--slate-light); }

.work-list { margin: 0; padding: 0; list-style: none; }
.work { border-bottom: 1px solid var(--line); }
.work:last-child { border-bottom: 0; }
.work details { padding: 0; }
.work summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.work summary::-webkit-details-marker { display: none; }
.work-title { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 600; line-height: 1.38; }
.authors { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.summary-action { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 46px; padding: 10px 13px; color: var(--ink); background: var(--yellow); border: 2px solid #d49300; border-radius: 8px; font-size: .92rem; font-weight: 800; line-height: 1.15; }
.summary-action::after { content: "↓"; margin-left: 7px; font-size: 1.1rem; }
.action-close { display: none; }
.work details[open] .summary-action { color: var(--white); background: var(--slate-dark); border-color: var(--slate-dark); }
.work details[open] .summary-action::after { content: "↑"; }
.work details[open] .action-open { display: none; }
.work details[open] .action-close { display: inline; }
.abstract { padding: 0 20px 18px; color: #48404a; }
.abstract-label { margin: 0 0 5px; color: var(--slate-dark); font-size: .88rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.abstract p:last-child { margin-bottom: 0; }
.pending { color: var(--muted); font-style: italic; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: 10px; }

footer { padding: 28px 0 38px; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
footer a { color: var(--slate-dark); font-weight: 750; }
footer p { margin: 8px 0 0; }

@media (max-width: 820px) {
  .days-grid { grid-template-columns: 1fr; }
  .slot-tabs { grid-template-columns: repeat(2, 1fr); }
  .change-slot { display: inline-flex; align-items: center; justify-content: center; }
  .mesas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main, footer { width: min(100% - 22px, 1120px); }
  .guide-strip { padding-block: 9px; font-size: .84rem; }
  main { padding-top: 26px; }
  .page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
  .page-nav a { justify-content: center; padding-inline: 10px; border-radius: 8px; font-size: .88rem; text-align: center; }
  .timeline li { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 17px 15px; }
  .day-head { padding-inline: 16px; }
  .full-program + .controls { margin-top: 42px; padding-top: 30px; }
  .slot-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .slot-tab { min-height: 128px; padding: 13px 12px; }
  .slot-day { line-height: 1.25; }
  .results-heading { align-items: flex-end; }
  .results-heading h2 { max-width: 230px; line-height: 1.18; }
  .change-slot { min-width: 126px; }
  .mesa-head { padding-inline: 16px; }
  .work summary { grid-template-columns: 1fr; padding-inline: 16px; }
  .summary-action { grid-column: 1; grid-row: auto; justify-self: start; min-width: 142px; margin-top: 2px; }
  .abstract { padding-inline: 16px; }
}

@media (max-width: 350px) {
  .slot-tabs { grid-template-columns: 1fr; }
  .slot-tab { min-height: 104px; }
  .results-heading { align-items: stretch; flex-direction: column; }
  .results-heading h2 { max-width: none; }
  .change-slot { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
