/* ==========================================================================
   Usama Jamal — personal academic website
   Theme: refined academic-modern. Light/dark via CSS custom properties.
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --bg-tint: #f1efe9;
  --surface: #ffffff;
  --ink: #1c2433;
  --ink-soft: #4b5565;
  --ink-faint: #8a93a3;
  --accent: #1e63c8;
  --accent-strong: #0f4aa0;
  --accent-soft: rgba(30, 99, 200, 0.1);
  --gold: #b98a2f;
  --gold-soft: rgba(185, 138, 47, 0.12);
  /* darkened so white text on a solid gold fill clears WCAG AA (4.9:1) */
  --gold-strong: #8f6a24;
  --border: #e4e1d8;
  --shadow: 0 1px 3px rgba(28, 36, 51, 0.06), 0 8px 24px rgba(28, 36, 51, 0.07);
  --shadow-lift: 0 4px 12px rgba(28, 36, 51, 0.1), 0 16px 40px rgba(28, 36, 51, 0.12);
  --header-bg: rgba(250, 249, 246, 0.85);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1522;
  --bg-tint: #131b2c;
  --surface: #182135;
  --ink: #e8ebf1;
  --ink-soft: #aeb6c5;
  --ink-faint: #707a8d;
  --accent: #6aa6f5;
  --accent-strong: #93c0ff;
  --accent-soft: rgba(106, 166, 245, 0.14);
  --gold: #d4a948;
  --gold-soft: rgba(212, 169, 72, 0.14);
  /* on dark, the base gold is already bright enough to carry dark text (8.2:1) */
  --gold-strong: #d4a948;
  --border: #273350;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(15, 21, 34, 0.85);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-strong); }

/* inline text links get an animated underline */
p a, .paper-authors a, .bg-body a, .teach-inst a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
  padding-bottom: 1px;
}
p a:hover, .paper-authors a:hover, .bg-body a:hover, .teach-inst a:hover {
  background-size: 100% 1.5px;
}

.icon { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; }
.icon-sm { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--accent-soft); }

/* ---------- scroll progress bar ---------- */

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 1001;
}

/* ---------- sticky header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.35s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px;
  transition: transform 0.25s ease;
}
[data-theme="dark"] .brand-mark { color: #0f1522; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }

.nav-menu { display: flex; align-items: center; gap: 6px; }

.nav-link {
  position: relative;
  padding: 8px 13px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--accent-soft); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cv { color: var(--accent); font-weight: 600; }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-left: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.35s ease;
}
.theme-toggle:hover { transform: scale(1.08); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.blob-1 {
  width: 480px; height: 480px; top: -140px; right: -100px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  background-color: var(--accent-soft);
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 380px; height: 380px; bottom: -160px; left: -120px;
  background-color: var(--gold-soft);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.15); }
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center;
}

.hero-greeting {
  color: var(--accent); font-weight: 600; font-size: 1rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero-role { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 26px; font-weight: 500; }

.hero-bio { color: var(--ink-soft); max-width: 56ch; margin-bottom: 16px; }
.hero-bio strong { color: var(--ink); font-weight: 600; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip {
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; box-shadow: var(--shadow);
}
[data-theme="dark"] .btn-primary { color: #0f1522; }
.btn-primary:hover { box-shadow: var(--shadow-lift); color: #fff; }
[data-theme="dark"] .btn-primary:hover { color: #0f1522; }

.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-quicklinks { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-quicklinks a {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-faint);
  transition: color 0.2s ease, transform 0.2s ease;
}
.hero-quicklinks a:hover { color: var(--accent); }

.hero-photo { display: flex; justify-content: center; }

/* round photo with a gradient ring */
.photo-ring {
  padding: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: var(--shadow-lift);
  transition: box-shadow 0.35s ease;
}
.photo-ring img {
  display: block; width: 300px; height: 300px;
  object-fit: cover; border-radius: 50%;
  border: 4px solid var(--surface);
}

/* (legacy) rectangular frame, kept in case it's used elsewhere */
.photo-frame {
  padding: 4px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: var(--shadow-lift);
  transition: box-shadow 0.35s ease;
}
.photo-frame img {
  display: block; width: 300px; height: auto; border-radius: 14px;
}

/* ---------- sections ---------- */

.section { padding: 90px 0; }
.section-tinted { background: var(--bg-tint); transition: background 0.35s ease; }

.section-title {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700; margin-bottom: 46px; line-height: 1.2;
}
.section-kicker {
  display: block; font-family: var(--sans);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}

/* ---------- background timeline ---------- */

.bg-timeline { list-style: none; max-width: 720px; }
.bg-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 18px 0 18px 28px; position: relative;
  border-left: 2px solid var(--border);
}
.bg-item::before {
  content: ""; position: absolute; left: -7px; top: 28px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-tint); border: 3px solid var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}
.bg-item:hover::before { background: var(--accent); transform: scale(1.2); }
.bg-year { font-weight: 700; font-size: 0.92rem; color: var(--accent); padding-top: 2px; white-space: nowrap; }
.bg-body { color: var(--ink-soft); }
.bg-body strong { color: var(--ink); }

/* ---------- research ---------- */

.research-group {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); margin: 44px 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.research-group::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.research-group:first-of-type { margin-top: 0; }

.paper-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.35s ease;
}
.paper-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent); }

.paper-featured {
  border: 1.5px solid var(--accent);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--gold)) border-box;
  border-color: transparent;
}

.paper-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
}
.badge-jmp { background: var(--gold-soft); color: var(--gold); }
.badge-wp  { background: var(--accent-soft); color: var(--accent); }
.badge-wip { background: var(--accent-soft); color: var(--ink-faint); }
.badge-status { background: var(--gold-soft); color: var(--gold); }

.paper-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 8px;
}
.paper-authors { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 4px; }

.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn-paper {
  background: var(--accent-soft); color: var(--accent);
  padding: 8px 16px; font-size: 0.88rem;
}
.btn-paper:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-paper:hover { color: #0f1522; }

.btn-abstract {
  background: transparent; color: var(--ink-soft);
  border-color: var(--border); padding: 8px 16px; font-size: 0.88rem;
}
.btn-abstract:hover { color: var(--accent); border-color: var(--accent); }
.btn-abstract .chevron { transition: transform 0.3s ease; }
.btn-abstract[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.abstract-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}
.abstract-panel > p {
  overflow: hidden;
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7;
  text-align: justify;
}
.abstract-panel.open { grid-template-rows: 1fr; margin-top: 16px; }
.abstract-panel.open > p {
  padding: 16px 18px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
}

/* ---------- presentations timeline ---------- */

.timeline { max-width: 760px; }

.timeline-year { margin: 34px 0 14px; }
.timeline-year:first-child { margin-top: 0; }
.timeline-year span {
  display: inline-block; font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  padding-bottom: 4px; border-bottom: 3px solid var(--accent);
}

.timeline-list { list-style: none; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline-item {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  padding: 10px 0 10px 26px;
}
.timeline-item::before {
  content: ""; position: absolute; left: -6px; top: 19px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.timeline-item:hover::before { transform: scale(1.5); opacity: 1; }
.tl-when { font-weight: 600; font-size: 0.88rem; color: var(--ink-faint); min-width: 130px; padding-top: 2px; }
.tl-what { color: var(--ink); font-weight: 500; flex: 1; min-width: 240px; }
/* solid fill, one tier above the gold-soft badges, so the award reads as the peak */
.tl-award {
  display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--gold-strong); color: var(--bg);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase;
  white-space: nowrap; vertical-align: 2px;
}

/* highlighted timeline rows (NBER, award-winning talks) */
.timeline-item.is-highlight {
  background: var(--gold-soft);
  border-radius: 0 10px 10px 0;
  padding-right: 14px;
}
.timeline-item.is-highlight::before { background: var(--gold); opacity: 1; }
.timeline-item.is-highlight .tl-what { font-weight: 600; }

/* ---------- teaching ---------- */

.teaching-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.teach-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.teach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.teach-inst {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.teach-inst a { color: var(--ink); }
.teach-inst a:hover { color: var(--accent); }

.teach-role {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin: 18px 0 8px;
}
.teach-list { list-style: none; }

/* plain (non-clickable) course rows, if any remain */
.teach-list > li:not(.teach-item) {
  padding: 7px 0 7px 18px; position: relative;
  color: var(--ink); font-weight: 500;
}
.teach-list > li:not(.teach-item)::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); opacity: 0.55; transform: rotate(45deg);
}
.teach-meta { color: var(--ink-faint); font-weight: 400; font-size: 0.88rem; }

/* clickable course rows with expandable detail */
.teach-item { position: relative; }
.teach-toggle {
  width: 100%; display: flex; align-items: baseline; gap: 10px;
  justify-content: space-between; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 8px 0 8px 18px; position: relative;
  color: var(--ink); font-weight: 500; font-size: 1rem;
  font-family: inherit;
}
.teach-toggle::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); opacity: 0.55; transform: rotate(45deg);
  transition: opacity 0.2s ease;
}
.teach-toggle:hover { color: var(--accent); }
.teach-toggle:hover::before { opacity: 1; }
.teach-course { flex: 1; }
.teach-toggle .chevron {
  width: 18px; height: 18px; flex-shrink: 0; fill: var(--accent);
  transition: transform 0.3s ease; margin-top: 3px;
}
.teach-item.open .teach-toggle .chevron { transform: rotate(180deg); }

.teach-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, margin 0.35s ease;
  margin: 0 0 0 18px;
}
.teach-detail > p { overflow: hidden; margin: 0;
  color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }
.teach-item.open .teach-detail { grid-template-rows: 1fr; margin: 4px 0 10px 18px; }
.teach-item.open .teach-detail > p {
  padding: 12px 14px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
}

/* publication badge */
.badge-pub { background: var(--gold-soft); color: var(--gold-strong); }

/* ---------- footer ---------- */

.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  transition: background 0.35s ease;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: start; padding-bottom: 44px;
}
.footer-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.footer-about p { color: var(--ink-soft); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft); font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px; text-align: center;
  color: var(--ink-faint); font-size: 0.88rem;
}

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--accent-strong); box-shadow: var(--shadow-lift); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .photo-frame img { width: 220px; }
  .teaching-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .brand-name { display: none; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 18px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: 1.05rem; }
  .nav-link.active::after { display: none; }
  .theme-toggle { margin: 8px 0 0 14px; }

  .bg-item { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 64px 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .back-to-top, .progress-bar, .hero-bg, .theme-toggle { display: none; }
  .abstract-panel { grid-template-rows: 1fr; margin-top: 12px; }
  .section { padding: 24px 0; }
}
