:root {
  --blue: #006599;
  --blue-dark: #004a70;
  --blue-soft: #eef7fa;
  --ink: #153a4a;
  --muted: #5b7480;
  --line: #b7d6e1;
  --paper: #ffffff;
  --shadow: 0 16px 42px rgba(0, 67, 101, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
}

a:hover, a:focus { color: var(--blue-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--blue-dark);
}

.skip-link:focus { left: 0; }

.site {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 78, 116, 0.72), rgba(0, 49, 74, 0.84)),
    url("campus-audimax-sidebar.jpg") center top / 100% auto repeat-y;
  padding: 0;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 49, 74, 0.08);
}

.sidebar-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 176px 1fr auto;
  height: 100vh;
}

.surface-box {
  width: 100%;
  height: 176px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
}

.surface-image {
  width: 168px;
  max-width: none;
  border: 0;
  box-shadow: none;
}

.main-nav {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0.95rem 0;
  align-content: start;
}

.main-nav a {
  display: block;
  padding: 0.52rem 0.68rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.03rem;
  font-weight: 650;
  text-decoration: none;
  background: rgba(0, 78, 116, 0.15);
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.side-links {
  padding: 1rem 0.95rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.side-links a { color: #fff; }

.site-main {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 176px minmax(0, 1fr);
  overflow: hidden;
}

.hero {
  margin: 0;
  height: 176px;
  min-height: 176px;
  display: grid;
  align-items: end;
  padding: 1.15rem clamp(1.5rem, 3vw, 2.4rem) 1.3rem;
  color: #fff;
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  background:
    linear-gradient(90deg, rgba(0, 69, 104, 0.88), rgba(0, 101, 153, 0.55), rgba(0, 101, 153, 0.16)),
    url("campus-audimax-header.jpg") center center / cover no-repeat;
}

.hero h1 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero p {
  margin: 0.35rem 0 0;
  max-width: 880px;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
}

.page-wrap {
  height: 100%;
  overflow-y: auto;
  max-width: none;
  padding: 1.1rem clamp(1.2rem, 3vw, 2.5rem) 2.2rem;
}

.page-intro {
  margin: 0 0 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.1rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.content-card,
.side-card,
.notice,
.schedule-card {
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background-image: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.97)), url("quartic.png");
  background-repeat: no-repeat;
  background-position: right -5rem bottom -5rem;
  background-size: min(530px, 70vw);
}

.content-card h2,
.content-card h3,
.side-card h2,
.side-card h3 {
  color: var(--blue-dark);
  line-height: 1.2;
}

.content-card h2:first-child { margin-top: 0; }
.content-card h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.content-card h3 { margin-top: 1.6rem; }

.metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.8rem;
}

.meta-box {
  padding: 1rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0.55rem;
}

.meta-box strong {
  display: block;
  color: var(--blue-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-box span { display: block; margin-top: 0.15rem; }

.speaker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.speaker-list li {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.82);
}

.speaker-list a.speaker-name {
  display: inline-block;
  font-weight: 750;
  font-size: 1.03rem;
}

.logo-stack {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.logo-stack a {
  display: block;
  padding: 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(183, 214, 225, 0.9);
  background: #fff;
}


.logo-stack a.oscar-link {
  background: #fff;
  border-color: rgba(183, 214, 225, 0.9);
}

.logo-stack img {
  width: 100%;
  max-height: 112px;
  object-fit: contain;
  margin: 0 auto;
}

.logo-stack img.singular-logo { max-height: 92px; }
.logo-stack img.oscar-logo { max-height: 82px; }
.logo-stack img.trr-logo { max-height: 100px; }

.memory-card {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.memory-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 65, 98, 0.16);
}

.memory-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.memory-card strong { display: block; color: var(--blue-dark); margin-bottom: 0.15rem; }

.notice {
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--blue);
  background: #f7fcfe;
}

.button-link {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button-link:hover,
.button-link:focus { background: var(--blue-dark); color: #fff; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.schedule-table th,
.schedule-table td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.schedule-table th {
  color: #fff;
  background: var(--blue);
  font-weight: 750;
}

.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table .time { width: 9rem; white-space: nowrap; font-weight: 700; color: var(--blue-dark); }
.schedule-table .break-row td { background: var(--blue-soft); }

.schedule-title {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
}

.hotel-list,
.info-list {
  padding-left: 1.2rem;
}

.hotel-list li,
.info-list li { margin-bottom: 0.7rem; }

.venue-box {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.venue-box address {
  font-style: normal;
  padding: 1rem;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0.6rem;
}

.abstracts-home-link {
  margin-top: 1.1rem;
}

.secondary-link {
  background: #eef7fa;
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

.secondary-link:hover,
.secondary-link:focus {
  background: var(--blue);
  color: #fff;
}

.abstract-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.2rem;
}

.abstract-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.86);
}

.abstract-card h3 {
  margin: 0 0 0.45rem;
}

.abstract-card p {
  margin: 0.55rem 0 0;
}

.abstract-card ul {
  margin: 0.55rem 0 0.75rem;
  padding-left: 1.2rem;
}

.abstract-card li {
  margin-bottom: 0.3rem;
}

.talk-title {
  color: var(--blue-dark);
  font-size: 1.04rem;
  font-weight: 750;
}

.talk-authors {
  color: var(--muted);
  font-style: italic;
}

.talk-time {
  display: inline-block;
  min-width: 7.4rem;
  margin-right: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-line {
  margin-top: 2rem;
  border-top: 4px solid var(--blue);
}

.photo-credit {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
}

.photo-credit a { color: inherit; }

@media (max-width: 980px) {
  body { overflow: auto; }
  .site {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    background-position: center;
  }
  .sidebar::before { display: none; }
  .sidebar-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: none;
    gap: 1rem;
    align-items: center;
    height: auto;
    padding: 1rem;
  }
  .surface-box {
    width: 86px;
    height: auto;
    min-height: 64px;
    padding: 0.25rem;
    border-width: 2px;
  }
  .surface-image {
    width: 100%;
    max-width: 100%;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
  }
  .main-nav a { font-size: 0.98rem; }
  .side-links { display: none; }
  .site-main {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .hero {
    height: auto;
    min-height: 160px;
  }
  .page-wrap {
    height: auto;
    overflow: visible;
  }
  .page-grid { grid-template-columns: 1fr; }
  .side-card { max-width: 480px; }
  .metadata { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: 150px; padding: 1.1rem; }
  .hero h1 { font-size: clamp(1.65rem, 9vw, 2.4rem); }
  .page-wrap { padding: 1rem; }
  .content-card { padding: 1rem; border-radius: 0.75rem; }
  .speaker-list { grid-template-columns: 1fr; }
  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td,
  .schedule-table th { display: block; width: 100%; }
  .schedule-table thead { display: none; }
  .schedule-table tr { border-bottom: 1px solid var(--line); }
  .schedule-table td { border: 0; padding: 0.55rem 0.8rem; }
  .schedule-table td::before {
    display: block;
    font-weight: 750;
    color: var(--blue-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
  .schedule-table td.time::before { content: "Time"; }
  .schedule-table td.event::before { content: "Event"; }
}
