/* Academic website template: single stylesheet.
   Breakpoints (same as the original template): xl >= 1200, lg 992-1199, md 768-991, sm 576-767, xs <= 575. */

/* Fonts hosted on the site (no requests to Google): Open Sans, Oswald and Roboto, SIL Open Font License 1.1
   (fonts/OFL-*.txt); latin, latin-ext and greek subsets of the Google Fonts files. */
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-italic-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-italic-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-normal-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/open-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-normal-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/open-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/oswald-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/oswald-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/oswald-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/oswald-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/roboto-normal-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/roboto-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/roboto-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: #b8383e;
  --accent-hover: #9f3036;
  --accent-on-dark: #f18f94;
  --dark: #333333;
  --text: #111111;
  --light-bg: #f2f2f2;
}

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

html { font-size: 16px; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
img { max-width: 100%; }

.container { width: 1140px; margin-left: auto; margin-right: auto; }
/* keep the margins of headings/paragraphs inside their coloured sections */
.site-footer, .bio .container, .phd .container, .course-body .container { display: flow-root; }

/* ---------------------------------------------------------------- header and menu */
.site-header { background: var(--dark); color: #ffffff; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; min-height: 77px; }

.site-title {
  margin-left: 21px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  text-decoration: none;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 1rem;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-on-dark); }

.menu-toggle, .menu-close, .nav-overlay { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #ffffff; text-align: center; }
.site-footer p {
  width: 417px;
  max-width: calc(100% - 20px);
  margin: 49px auto;
  font-size: 0.875rem;
  font-style: italic;
}

/* ---------------------------------------------------------------- home: photo and contacts */
.hero { background: var(--light-bg); }
.hero .container { display: grid; grid-template-columns: 1fr 862px; padding: 56px 0; }

/* the photo is as tall as the text next to it, from the name to the buttons (contain: size keeps it
   from stretching the row), with a red accent on its left side */
.hero-photo { justify-self: end; align-self: stretch; aspect-ratio: 4 / 5; max-width: calc(100% - 16px); margin-right: 16px; contain: size; }
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  border-left: 6px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-text { padding: 0 30px 0 25px; }
.hero h1 { font-family: Oswald, sans-serif; font-weight: 700; font-size: 3rem; line-height: 1.1; }
.hero .role { margin-top: 17px; font-family: Roboto, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.hero .contacts { margin-top: 17px; font-size: 1.125rem; }
.hero .contacts a { color: #000000; text-decoration: underline; }
.hero .contacts a:hover { color: var(--accent); }
.hero .contacts a.dept { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- home: direct links and selected papers */
.profile-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.profile-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 30px; padding: 4px 9px; border: 1px solid #bdbdbd; border-radius: 4px;
  color: var(--dark); background: #ffffff; font-size: 0.78rem; font-weight: 400; line-height: 1.4; text-decoration: none;
}
.profile-link-primary { background: var(--dark); border-color: var(--dark); color: #ffffff; }
.profile-link:hover { border-color: var(--dark); background: #e7e7e7; }
.profile-link-primary:hover { background: #111111; color: #ffffff; }
.link-format { font-size: 0.7em; letter-spacing: 0.04em; opacity: 0.8; }
.profile-link:focus-visible, .selected-papers a:focus-visible { outline: 3px solid #9f3036; outline-offset: 4px; }
.selected-papers { padding: 60px 0; }
.selected-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.selected-heading h2 { font-family: Oswald, sans-serif; font-size: 2.25rem; line-height: 1.2; }
.all-publications { color: var(--dark); font-size: 0.95rem; text-underline-offset: 4px; }
.all-publications:hover { color: #9f3036; }
.selected-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 22px; }
.selected-list.is-auto-scrolling { scroll-snap-type: none; scroll-behavior: auto; }
.selected-list:focus-visible { outline: 3px solid #9f3036; outline-offset: 4px; }
.selected-paper { min-width: 0; }
.paper-preview { margin: 0; }
.paper-thumbnail { display: block; aspect-ratio: 17 / 22; background: #f5f5f5; border: 1px solid #d8d8d8; box-shadow: 0 3px 9px #0000000a; transition: border-color 0.15s, box-shadow 0.15s; }
.paper-thumbnail:hover { border-color: #999999; box-shadow: 0 5px 14px #00000014; }
.paper-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.paper-thumbnail-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 14px; color: #555555; text-align: center; font-family: Oswald, sans-serif; font-size: 1.25rem; }
.thumbnail-pending { max-width: 130px; font-family: 'Open Sans', sans-serif; font-size: 0.75rem; color: #777777; }
.selected-paper-body { padding-top: 14px; }
.paper-meta { font-size: 0.75rem; color: #606060; }
.selected-paper h3 { margin-top: 6px; font-size: 0.95rem; font-weight: 700; line-height: 1.5; }
.selected-paper h3 a { color: var(--text); text-decoration: none; }
.selected-paper h3 a:hover { color: #9f3036; text-decoration: underline; text-underline-offset: 3px; }
.paper-authors { margin-top: 8px; font-size: 0.75rem; line-height: 1.6; color: #444444; }
.paper-authors .me { text-decoration: underline; }
.paper-authors .coauthor { color: inherit; text-decoration: none; }
.paper-authors .coauthor:hover, .paper-authors .coauthor:focus-visible { color: #9f3036; }
.selected-paper .paper-actions { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 10px; }
.selected-paper .mat.paper-actions a, .selected-paper .mat.paper-actions .bib-btn,
.selected-paper .mat.paper-actions .abs-btn { padding: 0.15em 0.5em; font-size: 0.75rem; }
.thumbnail-credits { margin-top: 22px; font-size: 0.7rem; color: #606060; }
.thumbnail-credits summary { width: fit-content; padding: 5px 0; cursor: pointer; }
.thumbnail-credits p { margin-top: 8px; }
.thumbnail-credits a { color: inherit; }
.thumbnail-credits ul { margin: 8px 0 0; padding-left: 20px; }
@media (max-width: 991px) {
  .selected-list { grid-template-columns: repeat(5, minmax(175px, 1fr)); gap: 18px; overflow-x: auto; padding: 3px 3px 15px; scroll-snap-type: x proximity; }
  .selected-paper { scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .selected-papers { padding: 38px 0; }
  .selected-heading h2 { font-size: 1.875rem; }
}

/* ---------------------------------------------------------------- news: home (six most recent) and archive (News.html) */
.news { padding: 60px 0 0; }
.news-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.news-heading h2 { font-family: Oswald, sans-serif; font-size: 2.25rem; line-height: 1.2; }
.all-news { color: var(--dark); font-size: 0.95rem; text-underline-offset: 4px; }
.all-news:hover { color: #9f3036; }
.news-archive { padding: 44px 0 60px; }
.news-archive h1 { margin-bottom: 28px; font-family: Oswald, sans-serif; font-size: 2.75rem; }
.news-list.is-archive { grid-template-columns: minmax(0, 820px); gap: 24px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; margin: 0; padding: 0; list-style: none; }
.news-list li { padding-left: 14px; border-left: 3px solid var(--accent); }
.news-list time { display: block; font-family: Oswald, sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.news-list p { margin-top: 2px; font-size: 0.95rem; line-height: 1.6; }
.news-list a { color: var(--accent); text-underline-offset: 3px; }
.news-list a:hover { color: var(--accent-hover); }
.news-list a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
@media (max-width: 767px) {
  .news { padding-top: 38px; }
  .news-heading h2 { font-size: 1.875rem; }
  .news-archive h1 { font-size: 2.25rem; }
  .news-list { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------------------------------------------------------------- home: research interests */
.areas { background: var(--light-bg); }
.areas .container { display: grid; grid-template-columns: 1fr 1fr; padding: 60px 0; min-height: 413px; }
.areas .col { padding: 30px; text-align: center; }
.areas h2 { font-family: Oswald, sans-serif; font-size: 2.25rem; line-height: 1.2; }
.areas p { margin-top: 20px; font-size: 1.125rem; }

/* ---------------------------------------------------------------- biography */
.bio .container { padding-top: 44px; padding-bottom: 44px; }
.bio h1 { margin-bottom: 24px; font-family: Oswald, sans-serif; font-size: 2.75rem; }
.bio-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid #e3e3e3; }
.bio-section h2 { font-family: Oswald, sans-serif; font-size: 1.5rem; line-height: 1.35; }
.bio p, .bio li, .bio-dates { font-size: 1.0625rem; }
.bio ul { margin: 12px 0 0; padding-left: 22px; }
.bio li + li { margin-top: 7px; }
.bio-dates { margin: 16px 0 0; }
.bio-dates > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; margin-top: 8px; }
.bio-dates dt { font-weight: 700; }
.bio-dates dd { margin: 0; }
.bio-content h3 { margin-top: 24px; font-family: Oswald, sans-serif; font-size: 1.25rem; }
.bio-content h3:first-child { margin-top: 0; }
.bio-list { margin-top: 10px; }
.bio-list > div { grid-template-columns: 100px minmax(0, 1fr); margin-top: 16px; }
.bio-content a { color: var(--accent); text-underline-offset: 3px; }
.bio-content a:hover { color: var(--accent-hover); }
.bio-content a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
@media (max-width: 767px) {
  .bio-section { grid-template-columns: 1fr; gap: 12px; }
  .bio h1 { font-size: 2.25rem; }
}
@media (max-width: 575px) {
  .bio-list > div { grid-template-columns: 1fr; gap: 2px; }  /* year above the entry on phones */
}

/* ---------------------------------------------------------------- red banners (publication categories, courses) */
.banner { background: var(--accent); color: #ffffff; }
.banner .container { display: flex; align-items: center; min-height: 92px; }
.banner h2 {
  margin: 20px 0;
  font-family: Oswald, sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- publications */
.phd .container { min-height: 344px; }
.phd h2 { margin-top: 43px; font-family: Roboto, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.phd p { margin: 27px 0 43px; font-size: 1.125rem; }
.phd .award { color: var(--accent); font-weight: 700; }

.pub {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 47fr) minmax(0, 10fr);
  min-height: 233px;
  padding-top: 15px;
}
.pub-label {
  padding: 30px 0;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}
.pub-body { padding: 30px; }
.pub-title {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.pub-title a { color: #000000; text-decoration: none; }
.pub-info { margin-top: 10px; font-size: 1.125rem; line-height: 2.2; }
.pub-info .me { text-decoration: underline; }
/* co-authors linked to their personal/academic page (coauthors.json) */
.pub-info a.coauthor { color: inherit; text-decoration: none; }
.pub-info a.coauthor:hover, .pub-info a.coauthor:focus-visible { color: var(--accent); }
.course-body a { color: #000000; font-style: italic; text-decoration: none; }
.course-body .sep { margin: 0 0.9em; }
/* material links rendered as buttons: side by side, wrapping to the left edge */
.pub-info .mat, .phd .mat { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.3em 0; }
.pub-info .mat a, .phd .mat a, .selected-paper .mat a, .mat .bib-btn, .mat .abs-btn {
  display: inline-block; padding: 0.15em 0.85em;
  font-size: 0.95rem; line-height: 1.6; color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 4px; background: #ffffff;
  transition: background-color 0.15s, color 0.15s;
}
.pub-info .mat a:hover, .pub-info .mat a:focus-visible,
.phd .mat a:hover, .phd .mat a:focus-visible,
.selected-paper .mat a:hover, .selected-paper .mat a:focus-visible { background: var(--accent); color: #ffffff; }
.mat .bib-btn { font-family: inherit; cursor: pointer; background: var(--accent); color: #ffffff; }
.mat .bib-btn:hover, .mat .bib-btn:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }
.mat .abs-btn { font-family: inherit; cursor: pointer; }  /* looks like the material links */
.mat .abs-btn:hover, .mat .abs-btn:focus-visible { background: var(--accent); color: #ffffff; }
.pub-info .xref { color: inherit; text-decoration: underline; }
.pub-title a:hover, .course-body a:hover, .pub-info .xref:hover { color: var(--accent); }
.pub-logo { padding: 30px 0; }
.pub-logo img { display: block; width: 100%; height: auto; aspect-ratio: 190 / 105; object-fit: cover; }

.pub-sep { height: 3px; margin: 7px auto; border: 0; background: var(--accent); }
@media (min-width: 1200px) {
  .pub-sep.container { width: 1200px; }  /* the divider is 30px wider than the text on each side */
}
/* papers, banners and dividers hidden by the publication filters */
.pub[hidden], .banner[hidden], .pub-sep[hidden] { display: none; }

/* ---------------------------------------------------------------- teachings */
.course-body .container { min-height: 105px; }
.course-body p { margin: 38px 0; font-size: 1.125rem; }
.course-body .label { margin-right: 1.2em; }
.course-body .course-description { margin: 24px 0 0; }
.course-body .course-description + p { margin: 12px 0 28px; }

/* ================================================================ lg: 992-1199 */
@media (max-width: 1199px) {
  .container { width: 940px; }
  .hero .container { grid-template-columns: 1fr 653px; }
  .hero h1 { font-size: 2.75rem; }
  .hero .role { font-size: 1.375rem; }
  .hero .contacts { font-size: 1rem; }
  .areas .container { min-height: 396px; }
  .areas h2 { font-size: 2.125rem; }
  .areas p { font-size: 1rem; }
  .bio p { font-size: 1rem; }
  .banner h2 { margin: 15px 0; font-size: 2.75rem; }
  .phd h2 { font-size: 1.375rem; }
  .phd p { font-size: 1rem; }
  .pub { min-height: 195px; }
  .pub-label { font-size: 1.375rem; }
  .pub-title { font-size: 1.375rem; }
  .pub-info { font-size: 1rem; }
  .course-body p { font-size: 1rem; }
}

/* ================================================================ md: 768-991 (menu becomes a side panel) */
@media (max-width: 991px) {
  .container { width: 720px; }
  .header-inner { min-height: 76px; }

  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #ffffff;
    cursor: pointer;
  }
  .menu-toggle svg { display: block; width: 24px; height: 24px; fill: currentColor; }
  .menu-toggle:hover { color: var(--accent-on-dark); }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: 250px;
    margin: 0;
    padding-top: 80px;
    background: rgba(0, 0, 0, 0.95);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .menu-open .site-nav { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; text-align: center; }
  .site-nav a { padding: 10px 20px; font-size: 1.25rem; line-height: 1.6; }
  .menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }
  .menu-close:hover { color: var(--accent-on-dark); }
  .nav-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.7); }
  .menu-open .nav-overlay { display: block; }

  .hero .container { grid-template-columns: 1fr 441px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .role { margin-top: 9px; font-size: 1.25rem; }
  .hero .contacts { margin-top: 25px; }
  .areas .container { min-height: 423px; }
  .areas h2 { font-size: 2rem; }
  .banner .container { min-height: 85px; }
  .banner h2 { margin: 21px 0; font-size: 2.5rem; }
  .phd h2 { margin-top: 56px; font-size: 1.25rem; }
  .phd p { margin: 28px 0 57px; }
  .pub { min-height: 230px; padding-top: 14px; }
  .pub-title { font-size: 1.25rem; }
}

/* ================================================================ sm: 576-767 (one column, photo on top) */
@media (max-width: 767px) {
  .container { width: 540px; }
  .site-title { font-size: 1rem; }

  .hero .container { display: flow-root; padding: 30px 0 40px; }
  .hero-photo { width: 168px; height: 210px; max-width: none; margin: 0 auto; aspect-ratio: auto; contain: none; }
  .hero-text { padding: 25px 10px 0; }
  .hero h1 { font-size: 2.25rem; }
  .hero .role { margin-top: 10px; font-size: 1.125rem; }

  .areas .container { display: block; padding: 1px 0; min-height: 0; }
  .areas .col { padding: 30px 10px 15px; }
  .areas h2 { font-size: 1.875rem; }

  .phd h2 { font-size: 1.125rem; }
  .pub { grid-template-columns: minmax(0, 5fr) minmax(0, 54fr) minmax(0, 1fr); }
  .pub-logo { display: none; }
  .pub-info { line-height: 1.7; }
}

/* ================================================================ xs: <= 575 */
@media (max-width: 575px) {
  .container { width: min(340px, calc(100% - 20px)); }
  .hero h1 { font-size: 2rem; }
  .hero .role { font-size: 1rem; }
  .areas h2 { font-size: 1.75rem; }
  .bio .container { min-height: 0; }
  .banner h2 { font-size: 1.875rem; }
  .pub { grid-template-columns: minmax(0, 7fr) minmax(0, 52fr) minmax(0, 1fr); }
  .course-body p { margin: 30px 0; }
}

/* BibTeX popup */
.bib-dialog {
  width: min(640px, calc(100% - 32px)); max-width: none; padding: 24px; border: 0; border-radius: 12px;
  color: var(--text); background: #ffffff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.bib-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.bib-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bib-dialog h2 { margin: 0; font-size: 1.25rem; }
/* Abstract popup: same frame as the BibTeX one */
.abs-dialog { width: min(760px, calc(100% - 32px)); }
.abs-dialog .bib-dialog-head { align-items: flex-start; gap: 16px; }
.abs-label { display: block; font-family: Oswald, sans-serif; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.abs-dialog h2 { margin-top: 2px; font-size: 1.2rem; line-height: 1.4; }
.abs-dialog p { max-height: 60vh; overflow: auto; font-size: 1rem; line-height: 1.7; }
.abs-dialog p:focus { outline: none; }
.bib-close { padding: 0 6px; font-size: 1.6rem; line-height: 1; color: #555555; background: none; border: 0; cursor: pointer; }
.bib-close:hover { color: var(--accent); }
.bib-dialog pre {
  max-height: 60vh; margin: 0 0 20px; padding: 16px; overflow: auto;
  font-family: Consolas, Menlo, monospace; font-size: 0.875rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: #f5f5f7; border: 1px solid #e3e3e3; border-radius: 8px;
}
.bib-dialog pre:focus { outline: none; }
.bib-copy {
  padding: 0.6em 1.2em; font-family: inherit; font-size: 1rem; font-weight: 700; color: #ffffff;
  background: var(--accent); border: 0; border-radius: 6px; cursor: pointer;
}
.bib-copy:hover, .bib-copy:focus-visible { background: var(--accent-hover); }

/* Material popup: manuscripts, slides and posters (desktop only) and videos, see site.js */
.pdf-dialog {
  display: none; width: min(1200px, calc(100% - 48px)); max-width: none; height: calc(100% - 48px); max-height: none;
  padding: 0; overflow: hidden; border: 0; border-radius: 12px;
  color: var(--text); background: #ffffff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.pdf-dialog-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 24px; border-bottom: 1px solid #e3e3e3; }
.pdf-dialog h2 { margin: 0 auto 0 0; font-size: 1.125rem; }
.pdf-action {
  padding: 0.15em 0.85em; font-size: 0.95rem; line-height: 1.6; color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 4px; transition: background-color 0.15s, color 0.15s;
}
.pdf-action:hover, .pdf-action:focus-visible { background: var(--accent); color: #ffffff; }
.pdf-dialog iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.pdf-dialog.is-video { width: min(1100px, calc(100% - 32px), (100vh - 140px) * 16 / 9); height: fit-content; }
.pdf-dialog.is-video iframe { flex: none; aspect-ratio: 16 / 9; background: #000000; }
.pdf-action[hidden] { display: none; }
@media (max-width: 575px) {
  .pdf-dialog-head { padding-left: 16px; }
  .pdf-dialog h2 { font-size: 1rem; }
}

/* Publication filters: dropdown menus side by side (built by site.js) */
.pub-filter { background: var(--light-bg); }
.filter-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 20px; }
.filter-search label { font-family: Roboto, sans-serif; font-weight: 700; font-size: 1.125rem; }
.filter-search input { flex: 1 1 300px; min-width: 0; padding: 10px 12px; font: inherit; color: var(--text); background: #ffffff; border: 1px solid #c8c8c8; border-radius: 6px; }
.filter-search input:focus-visible { outline: 2px solid #9f3036; outline-offset: 2px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 18px 0; }
.filter-title { margin-right: 6px; font-family: Roboto, sans-serif; font-weight: 700; font-size: 1.125rem; }
.filter-dd { position: relative; }
.filter-dd summary {
  display: flex; align-items: center; gap: 0.4em; min-width: 150px; padding: 0.4em 0.8em;
  font-size: 0.95rem; line-height: 1.6; list-style: none; cursor: pointer; user-select: none;
  background: #ffffff; border: 1px solid #c8c8c8; border-radius: 6px;
}
.filter-dd summary::-webkit-details-marker { display: none; }
.filter-dd summary::after {  /* chevron */
  content: ''; flex: none; width: 0.45em; height: 0.45em; margin: -0.2em 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.filter-dd[open] summary::after { margin-top: 0.25em; transform: rotate(-135deg); }
.filter-dd summary:hover, .filter-dd[open] summary { border-color: var(--accent); }
.filter-dd.is-active summary { color: var(--accent); border-color: var(--accent); }
.filter-name { font-weight: 700; }
.filter-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.filter-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 100%; max-height: 60vh; overflow: auto;
  padding: 6px 0; background: #ffffff; border: 1px solid #e3e3e3; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.filter-group {
  padding: 8px 14px 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap; color: #777777;
}
.filter-option { display: flex; align-items: center; gap: 0.6em; padding: 5px 14px; font-size: 0.95rem; white-space: nowrap; cursor: pointer; }
.filter-option:hover { background: #f5f5f7; }
.filter-option input { margin: 0; accent-color: var(--accent); cursor: inherit; }
.filter-option .count { margin-left: auto; padding-left: 1.5em; font-size: 0.85rem; color: #888888; }
.filter-option.is-empty { color: #b0b0b0; cursor: default; }
.filter-option.is-empty:hover { background: none; }
.filter-status { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 0.95rem; color: #555555; }
.filter-reset { padding: 0; font: inherit; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.filter-empty { margin: 0; padding: 0 0 30px; font-size: 1.125rem; color: #555555; }
@media (max-width: 575px) {
  .filter-bar { column-gap: 8px; }
  .filter-title { flex-basis: 100%; }
  .filter-dd { flex: 1 1 calc(50% - 4px); min-width: 0; }  /* four menus on two rows */
  .filter-dd summary { gap: 0.3em; min-width: 0; padding: 0.4em 0.5em; font-size: 0.875rem; }
  .filter-dd:nth-of-type(even) .filter-menu { left: auto; right: 0; }
  .filter-status { flex-basis: 100%; justify-content: space-between; margin-left: 0; }
}
