:root {
  /* Light theme defaults */
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel2: #f1f3f7;
  --text: #0b0c0f;
  --muted: #4b5565;
  --border: rgba(0, 0, 0, 0.10);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  --radius: 16px;
  --container: 1100px;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-strong: rgba(0, 0, 0, 0.06);
  --scrollbar-track: rgba(0, 0, 0, 0.06);
  --scrollbar-thumb: rgba(0, 0, 0, 0.18);


  /* Accent stays the same */
  --link: rgba(93, 127, 255, 0.95);
  --link-hover: rgba(93, 127, 255, 1);
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --panel: #11131a;
  --panel2: #0f1117;
  --text: #e9ecf1;
  --muted: #aab2c0;
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* If user has not chosen a theme, follow OS/browser preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b0c0f;
    --panel: #11131a;
    --panel2: #0f1117;
    --text: #e9ecf1;
    --muted: #aab2c0;
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}


.site-header .container {
  text-align: center;
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(93, 127, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(0, 212, 255, 0.06), transparent 50%),
    var(--bg);

  color: var(--text);
  line-height: 1.55;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(93, 127, 255, 0.20), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(0, 212, 255, 0.10), transparent 50%),
    var(--bg);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --scrollbar-track: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(255, 255, 255, 0.18);
}


a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: underline;
  text-underline-offset: 3px;
}




.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
}

.header-bar {
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;

  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.92rem;
}

:root[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(93, 127, 255, 0.85);
  outline-offset: 2px;
  border-radius: 12px;
}


.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.25rem;
}
h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.section { padding: 30px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px 18px; }
.prose li { margin: 6px 0; }

.muted { color: var(--muted); }

.highlight-red {
  color: #aa0000;
  font-weight: 700;
}


.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .grid-3x3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-3x3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;

  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start; /* important: do not stretch the image column when content grows */
  min-height: 160px;
}

/* Replace the existing .avatar rule with this */
.avatar {
  width: 110px;       /* fixed width */
  height: 140px;      /* fixed height so expansion does not change it */
  object-fit: cover;
  background: var(--panel2);
  display: block;
}


.card-body {
  padding: 14px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0;
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
}
.name-link:focus-visible,
.bio-btn:focus-visible {
  outline: 2px solid rgba(93, 127, 255, 0.85);
  outline-offset: 2px;
  border-radius: 8px;
}

.affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.3;

  height: calc(2 * 1.3em); /* reserve space for 2 lines */
  overflow: hidden;
}



.bio-btn {
  margin-top: auto;

  width: fit-content;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}


.bio {
  border-top: 1px solid var(--border);
  padding-top: 10px;

  max-height: 250px;     /* cap expansion */
  overflow: auto;        /* scroll inside the card */
  padding-right: 6px;    /* space for scrollbar */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

.bio p {
  margin: 0;
  /* color: var(--text);   theme-aware */
  color: color-mix(in srgb, var(--text) 92%, transparent);
  font-size: 0.95rem;
}


/* Optional: nicer scrollbar (works in Chromium/Safari) */
.bio::-webkit-scrollbar { width: 10px; }
.bio::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}
.bio::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}


.site-footer {
  padding: 18px 0 36px;
  border-top: 1px solid var(--border);
}

.callout {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.callout-quote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 10px;
}


.callout-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.section-divider-top {
  border-top: 1px solid var(--border);
}

/* Remove indent for the top-level list in the Topics section */
.prose > ul {
  margin-left: 0;
  padding-left: 0;
  list-style-position: inside; /* keeps bullets aligned with text */
}

/* Keep nested lists indented */
.prose ul ul {
  margin-left: 18px;
  padding-left: 18px;
  list-style-position: outside;
}

@media print {
  @page {
    margin: 18mm;
  }

  body::before {
    content: "https://bassamlab.github.io/itsc2026-invited-session/";
    display: block;
    font-size: 10pt;
    color: #444;
    margin-bottom: 10mm;
  }

  /* Force clean white background */
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Remove decorative backgrounds that print as gray blocks */
  .section-alt,
  .callout,
  .card {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Simplify borders for print */
  .card,
  .section-alt,
  .section-divider-top,
  .site-header,
  .site-footer,
  .callout {
    border-color: rgba(0, 0, 0, 0.15) !important;
  }

  /* Optional: hide the theme toggle button in print */
  .theme-toggle {
    display: none !important;
  }
}
