/* Layout: Jon Barron academic template — one centered 980px column, centered name,
   bio beside a photo, then flat sections of image-left / text-right rows. */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --link: #1772d0;
  --link-hover: #f09228;
  --venue: #000080;
  --highlight: #ffffd0;
  --thumb-bg: transparent;
  --font: 'Lato', Verdana, Helvetica, sans-serif;
  --text: 16px;
  --h2: 25px;
  --name: 36px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text);
  line-height: normal;
}
.page {
  max-width: 980px;
  margin: 0 auto;
  padding-block: 8px;
  padding-left: 16px;
  padding-right: 16px;
}
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
strong, b { letter-spacing: 0.2px; }
p { margin: 14px 0; }

.name {
  margin: 0;
  padding-top: 20px;
  font-size: var(--name);
  font-weight: 400;
  text-align: center;
}
h2 {
  margin: 0;
  font-size: var(--h2);
  font-weight: 400;
}
.section { margin-top: 34px; }

/* Hero */
.hero { display: flex; align-items: flex-start; }
.hero-text { flex: 1 1 0; min-width: 0; padding: 6px 8px 0 20px; }
.hero-text ul { margin: 14px 0; padding-left: 40px; }
.hero-photo { flex: 0 0 26.6%; padding: 21px 20px 0 8px; box-sizing: border-box; }
.hero-photo img { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto; }
.links { text-align: center; }

/* Highlights */
/* Seven lines fit without scrolling; an eighth item makes the box scroll */
.highlights-scroll { max-height: 9.6em; margin-top: 10px; overflow-y: auto; }
.highlights-scroll ul { margin: 0; padding-left: 40px; }
.highlights-scroll li { line-height: 1.35em; }

/* Image-left rows: experiences and publications */
.rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.item { display: flex; align-items: center; min-height: 100px; }
.item.pub { min-height: 120px; }
.item.selected { background: var(--highlight); }
.item-thumb { box-sizing: border-box; padding: 10px; display: flex; align-items: center; justify-content: center; }
.item-info { box-sizing: border-box; padding: 10px; min-width: 0; }
.exp .item-thumb { flex: 0 0 20%; }
.exp .item-info { flex: 0 0 80%; }
.pub .item-thumb { flex: 0 0 22%; }
.pub .item-info { flex: 0 0 78%; }
.item-thumb img { display: block; max-width: 100%; max-height: 150px; height: auto; object-fit: contain; background: var(--thumb-bg); }
.item-info p { margin: 10px 0 0; }
.papertitle { text-wrap: pretty; }
.papertitle { font-weight: 700; }
.venue { color: var(--venue); font-weight: 700; font-style: italic; }
.legend { margin: 10px 0 0; font-size: 14px; }
.legend .mark { background: var(--highlight); }

.plain-list { margin: 14px 0 0; padding-left: 40px; }
footer { margin-top: 34px; padding-bottom: 20px; text-align: center; font-size: small; }

@media (max-width: 600px) {
  .hero-text { padding-left: 0; }
  .hero-text ul { padding-left: 24px; }
  .hero-photo { flex-basis: 34%; padding-right: 0; }
  .highlights-scroll ul, .plain-list { padding-left: 24px; }
  .exp .item-thumb { flex-basis: 30%; padding-left: 4px; }
  .exp .item-info { flex-basis: 70%; padding-right: 4px; }
  .pub .item-thumb { flex-basis: 24%; padding: 6px; }
  .pub .item-info { flex-basis: 76%; padding: 8px 6px; }
}
