/* DeepSearch @ WSDM 2027 — workshop website.
   Layout and look follow the al-folio style used by the AgentIR workshop sites. */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #000;
  --text-light: #747373;
  --theme: #00ab37;
  --hover: #2698ba;
  --divider: rgba(0, 0, 0, .1);
  --stripe: rgba(0, 0, 0, .05);
  --table-border: #dee2e6;
  --nav-h: 57px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 9px);
}

body {
  margin: 0;
  padding-bottom: 70px;
  background: #fff;
  color: var(--text);
  font-family: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--theme); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: var(--hover); text-decoration: underline; }
strong, b { font-weight: 500; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 40px; }
ul ul { margin-bottom: 0; }
code { font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .875em; color: #b509ac; }

h1, h2 { margin: 0 0 .5rem; font-weight: 300; line-height: 1.2; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }

hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--divider); }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--divider);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}
.navbar-brand {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.navbar-brand:hover { color: var(--text); text-decoration: none; }
.navbar-brand .short { display: none; }
.nav-links { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px; color: var(--text); font-weight: 400; }
.nav-links a:hover { color: var(--hover); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--theme); }

/* ---------- Page ---------- */
.page { padding-top: 112px; }

.logo img { display: block; width: 30%; height: auto; margin: 8px auto 0; }

.note { color: var(--text-light); }

/* Person cards: photo on the left, name and affiliation right-aligned. */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  align-items: center;
  padding: 8px 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
  transition: box-shadow .2s ease;
}
a.card:hover {
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
}
/* Photos keep their own proportions and are never cropped: fixed height, width follows the photo. */
.card-img {
  flex: none;
  display: block;
  width: auto;
  height: 170px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 128px;
  background: #eef2f0;
  color: #8a958f;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: .02em;
}
.card-body { flex: 1; min-width: 0; padding: 20px; text-align: right; }
.card-title { display: block; margin: 0 0 12px; font-size: 1.25rem; font-weight: 400; line-height: 1.2; }
.card-text { display: block; color: var(--text-light); font-size: .9rem; font-weight: 400; line-height: 1.5; }

/* Tables (a Markdown table renders like the Bootstrap .table.table-striped of the AgentIR site). */
table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
th, td {
  padding: 1.1rem .75rem 1rem;
  border-top: 1px solid var(--table-border);
  text-align: left;
  vertical-align: top;
}
thead th {
  border-top: 0;
  border-bottom: 2px solid var(--table-border);
  font-size: 1.25rem;
  font-weight: 500;
  vertical-align: bottom;
}
tbody tr:nth-of-type(odd) { background: var(--stripe); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .navbar-brand .full { display: none; }
  .navbar-brand .short { display: inline; }
}

@media (max-width: 767px) {
  .page { padding-top: 48px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  ul { padding-left: 24px; }
  .logo img { width: 60%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  table { display: block; overflow-x: auto; }
  th, td { padding: .75rem .5rem; }
  thead th { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .navbar .container { gap: 8px; }
  .navbar-brand { font-size: 1.05rem; }
  .nav-links a { padding: 8px 6px; }
}

@media (max-width: 420px) {
  .card-img { height: 136px; }
  .avatar { width: 100px; font-size: 32px; }
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .navbar { position: static; }
  .card, tr { break-inside: avoid; }
  h2 { break-after: avoid; }
}
