@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1a2740;
  --text: #1a1d27;
  --text-muted: #5b6273;
  --text-on-dark: #e7eaf3;
  --text-on-dark-muted: #94a1bd;
  --primary: #1d4ed8;
  --primary-dark: #1739a3;
  --primary-light: #eef2ff;
  --accent: #0ea5a4;
  --border: #e4e7ee;
  --border-dark: #263149;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 280px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.25; color: #0b1120; }
h1 { font-size: 1.9rem; margin: 0 0 .4rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 1rem; padding-top: .2rem; border-top: 1px solid var(--border); padding-top: 1.6rem; }
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; color: var(--primary-dark); }
p { margin: 0 0 .9rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .5rem; }

/* ---------- Shell layout ---------- */
.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  padding: 1.6rem 1.2rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar-brand img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border-dark);
}
.sidebar-brand .name { font-weight: 700; font-size: .98rem; color: #fff; }
.sidebar-brand .role { font-size: .75rem; color: var(--text-on-dark-muted); }

.nav-group { margin-bottom: 1.5rem; }
/* Section headings in the sidebar: a display serif in light blue with a thin rule beneath, so they read as titles. */
.nav-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  color: #93c5fd;
  margin: 0 0 .55rem .1rem;
}
.nav-group-title::after {
  content: ''; display: block; height: 1px; margin-top: .4rem; background: currentColor; opacity: .28;
}
.nav-group a {
  display: block;
  color: var(--text-on-dark);
  padding: .42rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .89rem;
  text-decoration: none;
}
.nav-group a:hover { background: var(--bg-sidebar-hover); }
.nav-group a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  font-size: .78rem;
  color: var(--text-on-dark-muted);
}
.sidebar-footer a { color: var(--text-on-dark-muted); }

/* ---------- Mobile top bar ---------- */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sidebar);
  color: #fff;
  padding: .8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.mobile-topbar .name { font-weight: 700; font-size: .95rem; }
.nav-toggle {
  background: none; border: 1px solid var(--border-dark); color: #fff;
  border-radius: var(--radius-sm); padding: .4rem .6rem; font-size: 1rem; line-height: 1;
  cursor: pointer;
}

/* ---------- Main content ---------- */
.main-content { padding: 2.6rem 3rem 4rem; max-width: 880px; }
.page-header { margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--border); }
.page-header h1 { font-size: 2rem; }
.page-header .subtitle { color: var(--text-muted); font-size: 1rem; margin-top: .3rem; }

.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Hero (home page) ---------- */
.hero {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
}
.hero img {
  width: 148px; height: 148px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--primary-light); flex-shrink: 0;
}
.hero h1 { font-size: 1.7rem; margin-bottom: .15rem; }
.hero .hero-role { color: var(--text-muted); font-size: .98rem; margin-bottom: .1rem; }
.hero .hero-links a { display: inline-block; margin-top: .35rem; font-size: .92rem; }

.lede { font-size: 1.02rem; color: #333; }

.scholar-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff; padding: .55rem 1.1rem;
  border-radius: 999px; font-weight: 600; font-size: .88rem; margin-top: .6rem;
}
.scholar-btn:hover { background: var(--primary-dark); text-decoration: none; }

.contact-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin-top: 1rem;
}
.contact-card p { margin: 0 0 .3rem; }

/* ---------- Cards / timeline (education, work experience) ---------- */
.entry-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: .9rem; box-shadow: var(--shadow);
}
.entry-card .entry-title { font-weight: 700; color: var(--primary-dark); font-size: 1rem; margin-bottom: .3rem; }
.entry-card p { margin-bottom: .2rem; color: var(--text-muted); font-size: .93rem; }
.entry-card p:last-child { margin-bottom: 0; }
.entry-card .entry-meta { color: var(--text); font-size: .93rem; }

/* ---------- Lists ---------- */
.clean-list { list-style: none; padding-left: 0; }
.clean-list li {
  padding-left: 1.4rem; position: relative; margin-bottom: .55rem;
}
.clean-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

/* ---------- Publications ---------- */
/* a.pub-title links to the paper; span.pub-title is a paper with no link available. */
.pub-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.pub-jump a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem; font-weight: 600; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .9rem; box-shadow: var(--shadow); transition: border-color .2s ease, color .2s ease;
}
.pub-jump a:hover { color: var(--primary); border-color: #c7d2fe; text-decoration: none; }
.pub-count {
  font-size: .72rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-light);
  padding: .08rem .5rem; border-radius: 999px; vertical-align: .15em; font-variant-numeric: tabular-nums;
}
h2[id] { scroll-margin-top: 1.2rem; }

.pub-list { list-style: none; padding-left: 0; counter-reset: pub; margin: 1rem 0 1.4rem; }
.pub-list li {
  counter-increment: pub;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem 1rem 3.2rem;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pub-list li:hover { border-color: #c7d2fe; box-shadow: var(--shadow-md); }
.pub-list li::before {
  content: counter(pub);
  position: absolute; left: 1rem; top: 1rem;
  font-weight: 700; color: var(--primary-dark); font-size: .78rem;
  background: var(--primary-light); width: 1.6rem; height: 1.6rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pub-main { flex: 1; min-width: 0; }
.pub-title { font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--primary); }
.pub-title::after {
  /* stays inline (no break before it) so the hidden arrow never wraps onto a line of its own */
  content: '\00a0\2197'; font-size: .8em; opacity: 0; transition: opacity .2s ease;
}
.pub-title:hover { color: var(--primary-dark); }
.pub-title:hover::after { opacity: 1; }
span.pub-title, span.pub-title:hover { color: #0b1120; }
span.pub-title::after { content: none; }
.pub-authors { margin: .35rem 0 0; font-size: .9rem; color: var(--text-muted); }
.pub-authors b { color: var(--text); font-weight: 600; }
.pub-venue { margin: .2rem 0 0; font-size: .87rem; color: var(--text-muted); }
.pub-venue i { color: var(--text); }
.pub-note { margin: .4rem 0 0; font-size: .78rem; color: var(--text-muted); font-style: italic; }
@media (max-width: 700px) {
  .pub-list li { padding: .9rem 1rem .9rem 2.9rem; gap: .6rem; }
  .pub-list li::before { left: .8rem; top: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-list li, .pub-title::after { transition: none; }
}

/* ---------- Projects ---------- */
.project-card {
  background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.project-card .project-title { font-weight: 700; font-size: 1.02rem; margin-bottom: .6rem; }
.project-meta { display: grid; grid-template-columns: 110px 1fr; row-gap: .3rem; font-size: .9rem; }
.project-meta dt { font-weight: 600; color: var(--text-muted); }
.project-meta dd { margin: 0; }
.status-pill {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .6rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.status-ongoing { background: #dcfce7; color: #166534; }
.status-completed { background: #e5e7eb; color: #374151; }

/* ---------- People grid ---------- */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin-bottom: 1.6rem;
}
.person-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); display: flex; gap: .9rem;
}
.person-card img, .person-avatar-fallback {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.person-avatar-fallback {
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.person-card .person-name { font-weight: 700; font-size: .96rem; }
.person-card .person-name a { color: var(--text); }
.person-card p { font-size: .84rem; margin: .2rem 0 0; color: var(--text-muted); }
.person-card .person-meta-label { color: var(--text); font-weight: 600; }

.alumni-list { list-style: none; padding-left: 0; }
.alumni-list li {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1.1rem; margin-bottom: .55rem; font-size: .92rem;
}
.alumni-list .alumni-name { font-weight: 700; }
.alumni-list .alumni-meta { color: var(--text-muted); }
.award-badge {
  display: inline-block; margin-top: .3rem; font-size: .76rem; font-weight: 700;
  color: #92400e; background: #fef3c7; padding: .15rem .55rem; border-radius: 999px;
}

/* ---------- Tables (courses etc.) ---------- */
.simple-table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.4rem; font-size: .92rem; }
.simple-table th, .simple-table td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); }
.simple-table th { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.gallery-filter-btn {
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.gallery-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15) 60%, transparent);
  color: #fff;
}
.gallery-item .overlay .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #93c5fd; font-weight: 700; }
.gallery-item .overlay h4 { color: #fff; font-size: 1.15rem; margin: .15rem 0 0; }
.gallery-item.hidden-item { display: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(6,8,15,.92); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: #fff; border-radius: 20px; overflow: hidden; max-width: 1000px; width: 100%;
  max-height: 88vh; display: flex; flex-direction: column;
}
.lightbox-stage { position: relative; background: #05070c; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.lightbox-stage img { max-height: 62vh; object-fit: contain; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
  border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.lightbox-nav.prev { left: 14px; } .lightbox-nav.next { right: 14px; }
.lightbox-nav:hover { background: var(--primary); }
.lightbox-meta { padding: 1.1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lightbox-meta h3 { margin: 0 0 .2rem; }
.lightbox-meta p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.lightbox-close {
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.lightbox-count { font-size: .8rem; color: var(--text-muted); }

/* ---------- Conferences ---------- */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.conf-card {
  background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.conf-card .conf-body { padding: 1rem 1.1rem; flex: 1; }
.conf-card .conf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.conf-card .conf-acronym { font-weight: 700; color: var(--primary-dark); font-size: 1.05rem; }
.conf-card .conf-tag { font-size: .68rem; font-weight: 700; background: var(--primary-light); color: var(--primary-dark); padding: .15rem .5rem; border-radius: 6px; white-space: nowrap; }
.conf-card .conf-title { font-size: .87rem; color: var(--text-muted); margin: .3rem 0 .7rem; }
.conf-card .conf-meta { font-size: .85rem; margin-bottom: .3rem; }
.conf-deadline { font-size: .78rem; font-weight: 700; padding: .35rem .6rem; border-radius: var(--radius-sm); margin-top: .6rem; }
.conf-deadline.upcoming { background: #dcfce7; color: #166534; }
.conf-deadline.passed { background: #fee2e2; color: #991b1b; }
.conf-card .conf-footer { border-top: 1px solid var(--border); padding: .7rem 1.1rem; background: var(--bg-alt); }
.conf-card .conf-footer a { font-size: .82rem; font-weight: 600; }

/* ---------- Tabs (students, projects) ---------- */
/* Panels are plain sections without JS; main.js builds the tab bar and hides the panel titles. */
.tabs {
  display: flex; flex-wrap: wrap; gap: .25rem;
  border-bottom: 2px solid var(--border); margin: 0 0 1.6rem;
}
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  padding: .6rem 1rem; font: 600 .92rem var(--font-sans); color: var(--text-muted); cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--text); background: var(--bg); }
.tab-btn[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.tab-count {
  display: inline-block; margin-left: .35rem; font-size: .72rem; font-weight: 700;
  background: var(--border); color: var(--text-muted); padding: .05rem .45rem; border-radius: 999px;
}
.tab-btn[aria-selected="true"] .tab-count { background: var(--primary-light); color: var(--primary-dark); }
.tab-panel { margin-bottom: 2rem; }
.tabs-ready .tab-panel > .panel-title { display: none; }
.tab-panel > .panel-title { border-top: none; padding-top: 0; }
.tab-panel h3 { margin-top: 1.6rem; }
.tab-panel h3:first-child { margin-top: 0; }

/* ---------- Placeholders for content still to be supplied ---------- */
.todo-note {
  background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e;
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .86rem; margin: .4rem 0 1rem;
}
.todo-inline { color: #b45309; font-style: italic; font-size: .85rem; }
.project-desc { margin: .9rem 0 0; font-size: .92rem; color: var(--text); }

/* ---------- Infrastructure ---------- */
/* One card per piece of equipment: photos on the left, name, description and specs on the right. */
.equip-card {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.5rem; align-items: start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.equip-card.has-portrait { grid-template-columns: 190px minmax(0, 1fr); }
.equip-media { display: grid; gap: .6rem; }
.equip-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-alt);
}
.equip-media.is-portrait img { aspect-ratio: 3 / 4; }
.equip-name { margin: .1rem 0 .7rem; font-size: 1.08rem; color: #0b1120; }
.equip-body p { font-size: .92rem; color: var(--text); margin-bottom: .7rem; }
.equip-specs {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .45rem 1rem;
  margin: 0; font-size: .9rem;
}
.equip-body p + .equip-specs { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.equip-specs dt { font-weight: 600; color: var(--text-muted); }
.equip-specs dd { margin: 0; }
.equip-list { margin: .2rem 0 0; font-size: .9rem; }
.equip-list li { margin-bottom: .35rem; }

@media (max-width: 760px) {
  .equip-card, .equip-card.has-portrait { grid-template-columns: 1fr; }
  .equip-card.has-portrait .equip-media { max-width: 220px; }
  .equip-specs { grid-template-columns: 1fr; gap: .1rem; }
  .equip-specs dd { margin-bottom: .5rem; }
}

/* ---------- Research interests (areas in a side list, topics as an accordion) ---------- */
/* <div data-tabs="side">: main.js builds the area list from each panel's data-tab-label;
   it sits in a card on the left (above the topics on narrow screens) and stays in view while scrolling. */
.main-content--wide { max-width: 1140px; }
[data-tabs="side"] { scroll-margin-top: 1.5rem; }
[data-tabs="side"] > .tabs {
  flex-direction: column; flex-wrap: nowrap; gap: .2rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .6rem; margin: 0 0 1.4rem;
}
[data-tabs="side"] > .tabs::before {
  content: 'Research areas'; padding: .45rem .75rem .5rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa2b3;
}
[data-tabs="side"] .tab-btn {
  position: relative; text-align: left; line-height: 1.38; font-size: .9rem;
  margin: 0; padding: .72rem .8rem .72rem 1.05rem;
  border: none; border-radius: var(--radius-sm);
  transition: background .2s ease, color .2s ease;
}
[data-tabs="side"] .tab-btn::before {
  content: ''; position: absolute; left: .3rem; top: .7rem; bottom: .7rem; width: 3px; border-radius: 3px;
  background: var(--primary); opacity: 0; transition: opacity .2s ease;
}
[data-tabs="side"] .tab-btn:hover { background: var(--bg-alt); color: var(--text); }
[data-tabs="side"] .tab-btn[aria-selected="true"] { background: var(--primary-light); color: var(--primary-dark); }
[data-tabs="side"] .tab-btn[aria-selected="true"]::before { opacity: 1; }
[data-tabs="side"] > .tab-panel { animation: ri-panel-in .28s ease; }
@keyframes ri-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 901px) {
  [data-tabs="side"] { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 2.2rem; align-items: start; }
  [data-tabs="side"] > .tabs { grid-column: 1; grid-row: 1; margin: 0; position: sticky; top: 1.5rem; }
  [data-tabs="side"] > .tab-panel { grid-column: 2; grid-row: 1; min-width: 0; margin-bottom: 0; }
  [data-tabs="side"] .ri-list { border-top: none; margin-top: 0; }
  [data-tabs="side"] .ri-item:first-child summary { padding-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tabs="side"] > .tab-panel { animation: none; }
  [data-tabs="side"] .tab-btn, [data-tabs="side"] .tab-btn::before { transition: none; }
}
.ri-list { margin: .6rem 0 0; border-top: 1px solid var(--border); }
.ri-item { border-bottom: 1px solid var(--border); }
.ri-item[open] { background: linear-gradient(180deg, rgba(29, 78, 216, .022), transparent 180px); }
.ri-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 1.15rem;
  padding: 1.3rem .2rem 1.3rem 0;
  transition: padding-left .22s ease;
}
.ri-item summary::-webkit-details-marker { display: none; }
.ri-item summary:hover { padding-left: .4rem; }
.ri-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.ri-head { flex: 1; min-width: 0; }
.ri-title {
  display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: #0b1120;
  transition: color .2s ease;
}
.ri-item[open] .ri-title, .ri-item summary:hover .ri-title { color: var(--primary-dark); }
.ri-sign { flex: 0 0 13px; position: relative; width: 13px; height: 13px; margin-top: .5rem; }
.ri-sign::before, .ri-sign::after {
  content: ''; position: absolute; background: #9aa2b3;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .2s ease;
}
.ri-sign::before { left: 0; top: 6px; width: 13px; height: 1.5px; }
.ri-sign::after { top: 0; left: 6px; width: 1.5px; height: 13px; }
.ri-item[open] .ri-sign::after { transform: scaleY(0); }
.ri-item[open] .ri-sign::before { background: var(--primary); }
.ri-item summary:hover .ri-sign::before, .ri-item summary:hover .ri-sign::after { background: var(--primary); }

.ri-body { padding: .1rem 0 2.2rem; }
.ri-body > p, .ri-body .ri-ul { max-width: 68ch; }
.ri-p1 { font-size: 1rem; line-height: 1.7; color: #2c313d; margin: 0 0 .2rem; }
.ri-p-next { margin-top: .8rem; }
.ri-sub.ri-sub-first { margin-top: .6rem; }
.ri-sub {
  display: flex; align-items: center; gap: .8rem;
  font-size: .67rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #9aa2b3;
  margin: 1.8rem 0 .85rem;
}
.ri-sub::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ri-subtopic {
  margin: 2.4rem 0 .7rem; padding-left: .8rem; border-left: 3px solid var(--primary);
  font-size: 1.05rem; color: #0b1120;
}
.ri-ul { list-style: none; padding-left: 0; margin: 0; }
.ri-ul li {
  position: relative; padding-left: 1.2rem; margin-bottom: .6rem;
  font-size: .94rem; line-height: 1.64; color: #3a3f4c;
}
.ri-ul li::before {
  content: ''; position: absolute; left: .1rem; top: .66em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: .5;
}
.ri-ul li strong { color: #0b1120; font-weight: 700; }

.ri-figs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem; margin: 1.9rem 0 0;
}
.ri-figs.is-single { grid-template-columns: 1fr; }
.ri-figs figure { margin: 0; display: flex; flex-direction: column; }
.ri-frame {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ri-frame img { max-width: 100%; max-height: 290px; width: auto; height: auto; display: block; }
.ri-figs.is-single .ri-frame img { max-height: 460px; }
.ri-figs.is-single .ri-frame.is-tall img { max-height: 620px; }
.ri-figs.is-single .ri-frame { padding: 1.3rem 1.5rem; }
.ri-figs.is-single .ri-frame svg { width: 100%; height: auto; display: block; }
.ri-figs figcaption {
  margin-top: .75rem; padding-left: .9rem; border-left: 2px solid var(--border);
  font-size: .84rem; line-height: 1.55; color: var(--text-muted);
}
.ri-keys {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-muted); max-width: 68ch;
}
.ri-keys b {
  font-size: .66rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: #9aa2b3; margin-right: .6rem;
}
.ri-keys i { font-style: normal; }
.ri-keys i::after { content: ' · '; color: #ccd2de; }
.ri-keys i:last-child::after { content: ''; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .ri-item::details-content {
    height: 0; overflow: hidden; opacity: 0;
    transition: height .36s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, content-visibility .36s allow-discrete;
  }
  .ri-item[open]::details-content { height: auto; opacity: 1; }
  /* main.js: a topic closed because another opened collapses without animating */
  .ri-item.ri-instant::details-content { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ri-item summary, .ri-sign::before, .ri-sign::after, .ri-item::details-content { transition: none; }
}

/* inline SVG diagrams */
.dg-box { fill: #fff; stroke: #cbd5e1; stroke-width: 1.4; }
.dg-box-c { fill: #eef2ff; stroke: #1d4ed8; stroke-width: 1.4; }
.dg-box-p { fill: #ecfeff; stroke: #0e7490; stroke-width: 1.4; }
.dg-box-e { fill: #f0fdf4; stroke: #16a34a; stroke-width: 1.4; }
.dg-t { font: 600 12px 'Inter', system-ui, sans-serif; fill: #1a1d27; }
.dg-t-sm { font: 500 10.5px 'Inter', system-ui, sans-serif; fill: #5b6273; }
.dg-t-lbl { font: 700 9px 'Inter', system-ui, sans-serif; fill: #9aa2b3; letter-spacing: .12em; }
.dg-line { stroke: #94a3b8; stroke-width: 1.3; fill: none; }
.dg-line-c { stroke: #1d4ed8; stroke-width: 1.7; fill: none; }
.dg-line-p { stroke: #0e7490; stroke-width: 1.5; fill: none; stroke-dasharray: 5 3; }

@media (max-width: 700px) {
  .ri-item summary { gap: .85rem; }
}

/* ---------- Courses ---------- */
/* One card per course; .term chips hold each offering. A notes link is <a class="notes-btn" href="…">Lecture notes</a>. */

.course-list { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0 1.4rem; }
.course-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head notes" "terms notes";
  column-gap: 1.4rem; row-gap: .75rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1.1rem 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.course-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: .2; transition: opacity .2s ease;
}
.course-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.course-card:hover::before { opacity: 1; }
.course-card--wide { margin: 1rem 0 1.4rem; }

.course-head { grid-area: head; min-width: 0; }
.course-codes { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.course-code {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--primary-dark); background: var(--primary-light);
  padding: .14rem .5rem; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.course-title { margin: 0; font-size: 1.04rem; color: #0b1120; }
.course-role {
  font-size: .7rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border);
  padding: .08rem .45rem; border-radius: 999px; margin-left: .35rem; vertical-align: .12em;
}
.course-sub { margin: .25rem 0 0; font-size: .88rem; color: var(--text-muted); }

.course-terms { grid-area: terms; display: flex; flex-wrap: wrap; gap: .4rem; }
.term {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--text); white-space: nowrap;
  background: var(--bg-alt); border: 1px solid var(--border); padding: .28rem .65rem; border-radius: 999px;
}
.term small { font-size: .7rem; font-weight: 500; color: var(--text-muted); padding-left: .4rem; border-left: 1px solid var(--border); }
.term.is-current { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.term.is-current::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}
.term.is-current small { color: #047857; border-left-color: #a7f3d0; }

.course-notes { grid-area: notes; }
.notes-btn {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  font-size: .84rem; font-weight: 600; color: #fff; background: var(--primary);
  padding: .5rem .95rem; border-radius: 999px; transition: background .2s ease;
}
.notes-btn::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
a.notes-btn:hover { background: var(--primary-dark); text-decoration: none; }
.notes-btn.is-pending {
  color: #b45309; background: #fffbeb; border: 1px dashed #f59e0b;
  font-weight: 500; font-style: italic; font-size: .8rem;
}

.course-list--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.course-list--compact .course-card { grid-template-columns: 1fr; grid-template-areas: "head" "terms"; }

@media (max-width: 700px) {
  .course-card { grid-template-columns: 1fr; grid-template-areas: "head" "terms" "notes"; padding: 1rem 1.1rem 1rem 1.3rem; }
  .course-list--compact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .course-card, .course-card::before { transition: none; }
  .course-card:hover { transform: none; }
}


/* ---------- Invited talks (timeline) ---------- */
/* Each .talk-card sets its own accent from data-type; the date block, tag and timeline dot all pick it up. */
.talk-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.4rem;
}
.talk-stat {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow);
}
.talk-stat strong {
  display: block; font-size: 1.55rem; font-weight: 800; color: #0b1120; line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.talk-stat span {
  display: block; margin-top: .25rem; font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}

.talk-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.talk-filter-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: border-color .2s ease, color .2s ease;
}
.talk-filter-btn:hover { border-color: #c7d2fe; color: var(--primary); }
.talk-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.talk-filter-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.talk-filter-count {
  font-size: .72rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-light);
  padding: .08rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.talk-filter-btn.active .talk-filter-count { background: rgba(255, 255, 255, .2); color: #fff; }
.talk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--talk-accent, var(--primary)); flex-shrink: 0; }
.talk-filter-btn.active .talk-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }

/* Colour per talk type. The chip dots reuse the same values. */
.talk-card[data-type="invited"], .talk-dot--invited   { --talk-accent: var(--primary);  --talk-accent-dark: var(--primary-dark); --talk-tint: var(--primary-light); }
.talk-card[data-type="guest"],   .talk-dot--guest     { --talk-accent: #0f766e; --talk-accent-dark: #115e59; --talk-tint: #ccfbf1; }
.talk-card[data-type="keynote"], .talk-dot--keynote   { --talk-accent: #d97706; --talk-accent-dark: #92400e; --talk-tint: #fef3c7; }
.talk-card[data-type="tutorial"], .talk-card[data-type="course"] { --talk-accent: #7c3aed; --talk-accent-dark: #5b21b6; --talk-tint: #ede9fe; }

.talk-timeline { position: relative; padding-left: 1.6rem; }
.talk-timeline::before {
  content: ''; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px;
  background: var(--border); border-radius: 2px;
}

.talk-year { position: relative; }
.talk-year-label {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: baseline; gap: .7rem;
  margin: 0 0 .9rem; padding: .55rem 0; border-top: 0;
  background: var(--bg-alt); font-size: 1.25rem;
}
.talk-year-label::before {
  content: ''; position: absolute; left: calc(2px - 1.6rem); top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.talk-year-label small { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.talk-year + .talk-year { margin-top: 1.4rem; }

.talk-card {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 1rem; margin-bottom: .8rem; box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.talk-card::before {
  content: ''; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--talk-accent); opacity: .35; transition: opacity .2s ease;
}
.talk-card::after {
  content: ''; position: absolute; left: calc(3px - 1.6rem); top: 1.45rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--talk-accent); box-sizing: border-box; box-shadow: 0 0 0 3px var(--bg-alt);
}
.talk-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.talk-card:hover::before { opacity: 1; }
.talk-card[hidden], .talk-year[hidden] { display: none; }

.talk-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .5rem .25rem; border-radius: var(--radius-sm); text-align: center;
  background: var(--talk-tint); color: var(--talk-accent-dark);
}
.talk-day { font-size: 1.35rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.talk-day--range { font-size: .92rem; letter-spacing: 0; }
.talk-month { margin-top: .22rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }

.talk-body { min-width: 0; }
.talk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .4rem .8rem; }
.talk-title { flex: 1 1 260px; margin: 0; font-size: 1rem; line-height: 1.35; color: #0b1120; }
.talk-tags { display: flex; flex-wrap: wrap; gap: .35rem; flex: 0 0 auto; padding-top: .1rem; }
.talk-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .16rem .55rem; border-radius: 999px; background: var(--talk-tint); color: var(--talk-accent-dark); white-space: nowrap;
}
.talk-tag--neutral { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.talk-event { margin: .4rem 0 0; font-size: .88rem; color: var(--text); }
.talk-host {
  display: flex; align-items: flex-start; gap: .35rem; margin: .3rem 0 0; font-size: .84rem; color: var(--text-muted);
}
.talk-host::before {
  content: ''; width: 13px; height: 13px; flex-shrink: 0; margin-top: .22em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .talk-year-label { top: 56px; }
}
@media (max-width: 700px) {
  .talk-timeline { padding-left: 0; }
  .talk-timeline::before, .talk-year-label::before, .talk-card::after { display: none; }
  .talk-card { grid-template-columns: 50px minmax(0, 1fr); gap: .8rem; padding: .9rem 1rem .9rem .9rem; }
  .talk-day { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-card, .talk-card::before, .talk-filter-btn { transition: none; }
  .talk-card:hover { transform: none; }
}

/* ---------- Footer ---------- */
.page-footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 56px; left: 0; height: calc(100vh - 56px); width: 82%;
    max-width: 300px; transform: translateX(-100%); transition: transform .25s ease; z-index: 50;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  .mobile-topbar { display: flex; }
  .main-content { padding: 1.6rem 1.2rem 3rem; }
  .hero { flex-direction: column; text-align: center; }
  .project-meta { grid-template-columns: 90px 1fr; }
}

/* ---------- Desktop sidebar toggle (button added by main.js) ---------- */
/* html.sidebar-collapsed is set before first paint by the one-line script in each page's <head>.
   html.sidebar-anim is added just after load, so the slide plays on a click but not on every page load. */
.sidebar-toggle { display: none; }
@media (min-width: 901px) {
  .sidebar-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 1rem; left: calc(var(--sidebar-w) + .55rem); z-index: 60;
    width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow);
    cursor: pointer;
  }
  /* three-line menu icon */
  .sidebar-toggle span, .sidebar-toggle span::before, .sidebar-toggle span::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text-muted);
  }
  .sidebar-toggle span { position: relative; }
  .sidebar-toggle span::before, .sidebar-toggle span::after { content: ''; position: absolute; left: 0; }
  .sidebar-toggle span::before { top: -5px; }
  .sidebar-toggle span::after { top: 5px; }
  .sidebar-toggle:hover { border-color: #c7d2fe; box-shadow: var(--shadow-md); }
  .sidebar-toggle:hover span, .sidebar-toggle:hover span::before, .sidebar-toggle:hover span::after { background: var(--primary); }
  .sidebar-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

  /* The sidebar keeps its width and slides out to the left while its grid column closes behind it. */
  .sidebar { width: var(--sidebar-w); }
  html.sidebar-collapsed .site-shell { grid-template-columns: 0px 1fr; }
  html.sidebar-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
  html.sidebar-collapsed .sidebar-toggle { left: .55rem; }

  html.sidebar-anim .site-shell { transition: grid-template-columns .32s cubic-bezier(.4, 0, .2, 1); }
  html.sidebar-anim .sidebar { transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s; }
  html.sidebar-anim.sidebar-collapsed .sidebar { transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s; }
  html.sidebar-anim .sidebar-toggle { transition: left .32s cubic-bezier(.4, 0, .2, 1), border-color .2s ease, box-shadow .2s ease; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  html.sidebar-anim .site-shell, html.sidebar-anim .sidebar, html.sidebar-anim .sidebar-toggle { transition: none; }
}

@media print {
  .sidebar-toggle { display: none; }
  .sidebar, .mobile-topbar { display: none; }
  .site-shell { display: block; }
  .main-content { max-width: 100%; padding: 0; }
}
