/* dalbertma.com - one stylesheet for every page */

/* Base */
body { margin: 0; background: #ffffff; }
a { color: #1d5fa6; text-decoration: none; }
a:hover { color: #134478; text-decoration: underline; }
.page {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1c1f23;
  background: #ffffff;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Two-column layout: sidebar + content (stacks on a phone) */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.sidebar { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 20px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

/* Sidebar */
.photo { width: 200px; height: 200px; border-radius: 8px; object-fit: cover; display: block; }
.identity { display: flex; flex-direction: column; gap: 8px; }
.name { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.tag {
  margin: 4px 0 0;
  align-self: flex-start;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: #134478;
  background: #eaf2fb;
  border-radius: 999px;
  padding: 6px 12px;
}
.side-block { display: flex; flex-direction: column; border-top: 1px solid #e3e6ea; padding-top: 8px; }
.nav-link { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; }
.nav-link.current { font-weight: 700; color: #1c1f23; }
.contact-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }

/* Sections */
.stack { display: flex; flex-direction: column; }
.stack-12 { gap: 12px; }
.stack-14 { gap: 14px; }
.stack-16 { gap: 16px; }
.stack-18 { gap: 18px; }
.section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e6ea;
}
.body { margin: 0; font-size: 15px; line-height: 1.65; }
.body-sm { margin: 0; font-size: 15px; line-height: 1.65; }
.label { font-weight: 600; }
.meta { margin: 0; font-size: 14px; line-height: 1.5; color: #5b6470; }
.jump-nav { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 0; font-size: 14px; font-weight: 500; }
.jump-link { display: flex; align-items: center; min-height: 44px; }

/* Papers and cases */
.item { display: flex; flex-direction: column; gap: 4px; }
.item-spaced { margin-top: 12px; } /* extra air between entries that have no Abstract toggle */
.item-title { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.awards { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #1c1f23; }
.toggle { cursor: pointer; font-size: 14px; font-weight: 500; color: #1d5fa6; padding: 11px 0; }
.toggle:hover { color: #134478; }
.abstract { margin: 0 0 8px 18px; font-size: 15px; line-height: 1.65; color: #3a4048; }
.group { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.group-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6470;
}
.list { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }
.list.list-sm { font-size: 15px; line-height: 1.75; }

/* Teaching rows: course on the left, years on the right */
.row { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 24px; row-gap: 2px; }
.row-main { margin: 0; font-size: 16px; line-height: 1.5; }
.row-year { margin: 0; font-size: 15px; line-height: 1.6; color: #5b6470; }

/* Phones */
@media (max-width: 640px) {
  .wrap { padding: 32px 20px; gap: 32px; }
  .sidebar { max-width: none; display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; row-gap: 10px; align-items: center; } .photo { width: 88px; height: 88px; } .identity { gap: 4px; } .name { font-size: 22px; } .side-block { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; column-gap: 22px; padding-top: 2px; } .nav-link, .contact-link { min-height: 40px; }
}
