/* Parody of a Leiden University staff profile page.
   Hand-written; design tokens measured from the original. No third-party assets. */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/source-sans-3-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/source-sans-3-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/source-sans-3-400-italic.woff2) format("woff2"); }
@font-face { font-family: Merriweather; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/merriweather-400-normal.woff2) format("woff2"); }
@font-face { font-family: Merriweather; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/merriweather-700-normal.woff2) format("woff2"); }
@font-face { font-family: Merriweather; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/merriweather-400-italic.woff2) format("woff2"); }

/* Vestula is Leiden's licensed typeface: hot-linked from their server, not copied here.
   If it ever fails to load, the stack falls back to the self-hosted Source Sans 3. */
@font-face { font-family: Vestula; font-weight: 400; font-style: normal; font-display: swap; src: url(https://www.universiteitleiden.nl/en/design-1.0/assets/fonts/vestulapro/vestulapro-regular.woff2) format("woff2"); }
@font-face { font-family: Vestula; font-weight: 700; font-style: normal; font-display: swap; src: url(https://www.universiteitleiden.nl/en/design-1.0/assets/fonts/vestulapro/vestulapro-semibold.woff2) format("woff2"); }
@font-face { font-family: Vestula; font-weight: 400; font-style: italic; font-display: swap; src: url(https://www.universiteitleiden.nl/en/design-1.0/assets/fonts/vestulapro/vestulapro-regularitalic.woff2) format("woff2"); }
@font-face { font-family: Vestula; font-weight: 700; font-style: italic; font-display: swap; src: url(https://www.universiteitleiden.nl/en/design-1.0/assets/fonts/vestulapro/vestulapro-semibolditalic.woff2) format("woff2"); }

:root {
  --navy: #001158;
  --navy-hover: #68769c;
  --navy-line: #253b85;
  --link-orange: #a60;
  --grey-bg: #f5f5f5;
  --grey-text: #707070;
  --grey-border: #949494;
  --text: #333;
  --sans: Vestula, "Source Sans 3", arial, sans-serif;
  --serif: Merriweather, georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 1rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grey-bg); color: var(--text); font-family: var(--serif); font-size: 100%; line-height: 1.375; }
h1 { font-size: 2em; margin: .67em 0; color: var(--navy); }
h2, h3 { color: var(--navy); }
img { border: 0; max-width: 100%; }
a { color: var(--link-orange); background-color: transparent; }
address { font-style: normal; }
ul { padding-left: 1.5em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--navy-hover); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; }
.wrapper { clear: both; margin: 0 auto; max-width: 1180px; position: relative; }
.clearfix::after { content: ""; display: table; clear: both; }
.skiplink { position: absolute; left: -9999px; }
.skiplink:focus { left: 8px; top: 8px; background: #fff; padding: 4px 8px; z-index: 10000; }

/* ---------- top utility bar ---------- */
.top-nav-section { background: var(--grey-bg); }
.top-nav { font-family: var(--sans); font-size: .75rem; line-height: 3.2; }
.top-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 0 10px 5px; row-gap: 10px; }
.top-nav li { display: inline-block; height: 1rem; margin-top: .625rem; white-space: nowrap; }
.top-nav li:not(:last-child) { border-right: 1px solid #ccc; }
.top-nav a { display: block; margin-top: -.625rem; padding: 0 5px; color: var(--text); text-decoration: none; }
.top-nav a:hover { color: var(--navy); }
.top-nav a.active { color: var(--navy); font-weight: 700; position: relative; }
.top-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 5px; width: calc(100% - 10px); height: 4px; background: var(--navy); }

/* ---------- header ---------- */
.header-container { background: #fff; }
.header-container header { height: 104px; position: relative; }
.logo { position: absolute; left: 0; top: 20px; margin: 0; z-index: 2; font-size: inherit; }
.logo a { display: block; }
.logo svg { display: block; width: 151px; height: 64px; }
#search { position: absolute; left: 23.3%; top: 32px; width: 51.27%; }
#search fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; }
#search legend, #search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
#search input { flex: 1; min-width: 0; height: 32px; padding: 1px 5px 1px 16px; border: 1px solid var(--grey-border); border-right: 0; border-radius: 16px 0 0 16px; background: var(--grey-bg); color: var(--text); font: 400 .875rem/2 var(--sans); }
#search input::placeholder { color: #656565; opacity: 1; }
#search .submit { width: 48px; height: 32px; padding: 0; border: 1px solid var(--grey-border); border-left: 0; border-radius: 0 16px 16px 0; background: var(--grey-bg); cursor: pointer; color: #767676; }
#search .submit:hover { background: var(--navy-hover); color: #fff; }
#search .submit svg { width: 14px; height: 14px; vertical-align: middle; }
.language-btn-group { position: absolute; right: 0; top: 32px; z-index: 2; display: flex; column-gap: 4px; height: 32px; padding: 4px; border-radius: 16px; background: var(--grey-bg); font-family: var(--sans); }
.language-btn-group .btn { display: block; height: 24px; padding: 0 10px; border-radius: 12px; color: var(--text); font-size: .875rem; font-weight: 700; line-height: 24px; text-decoration: none; text-align: center; }
.language-btn-group .btn.active { background: #fff; border: 1px solid var(--grey-border); line-height: 22px; }
.language-btn-group a.btn:hover { background: var(--navy-hover); color: #fff; }
.language-btn-group abbr { font-size: 0; text-decoration: none; }
.language-btn-group abbr::after { content: attr(title); font-size: .875rem; }
.toggle-nav { display: none; }

/* ---------- main nav ---------- */
.main-nav { background: var(--navy); height: 2.5rem; overflow: hidden; }
.main-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 0 16px; color: #fff; font: 700 1rem/2.5 var(--sans); text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--navy-hover); }
.main-nav a.home svg { width: 20px; height: 20px; vertical-align: -4px; fill: #fff; }

/* ---------- breadcrumb ---------- */
.main-container { background: var(--grey-bg); }
.breadcrumb { font: .75rem/1.33 var(--sans); padding: 0 3px; margin-left: -3px; }
.breadcrumb ol { display: flex; list-style: none; margin: 0; padding: .375rem 0; }
.breadcrumb li { padding-block: .375rem; white-space: nowrap; }
.breadcrumb li:not(:last-child)::after { content: "\203A"; color: var(--grey-text); margin-inline: 8px; }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- article ---------- */
.left--detail__layout { display: grid; grid-template-columns: 1fr 298px; }
.article-header { grid-column: 1; display: grid; grid-template-columns: 1fr 200px; column-gap: 24px; padding: 16px 40px 0 40px; background: #fff; }
.article-header h1 { margin: 0; padding-top: 16px; color: var(--text); font: 700 2.75rem/1.2 var(--sans); }
.basics .context { margin: .25rem 0 0; font: 700 1.125rem/1.5 var(--sans); color: var(--text); }
dl.facts { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; margin: 0 0 16px; padding-top: 24px; }
dl.facts dt { margin: 0 0 6px; color: #767676; font: italic .8125rem/1.7 var(--serif); }
dl.facts dd { margin: 0 0 6px; font: 700 1rem/1.69 var(--sans); color: var(--text); }
dl.facts dd:last-of-type { margin-bottom: 0; }
dl.facts dd a { color: var(--link-orange); text-underline-offset: 5px; text-decoration-color: transparent; }
dl.facts dd a:hover { text-decoration: underline; text-underline-offset: 2px; }
.photo { position: relative; margin: 0; padding-top: 16px; text-align: right; }
.photo img { display: block; margin-left: auto; width: 200px; height: 250px; object-fit: cover; }
.zoom-button { position: absolute; right: 8px; top: 24px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 17, 88, .85); color: #fff; cursor: pointer; }
.zoom-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.zoom-button:hover { background: var(--navy-hover); }
.article-main-content { grid-column: 1; padding: 0 40px 32px 40px; background: #fff; }
.left--detail__layout aside { grid-column: 2; grid-row: 2; margin: 0 0 0 24px; padding-top: 44px; }

/* tabs */
.tabs { clear: both; list-style: none; margin: 2.75rem 0 2.0625rem; padding: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.tabs li { width: auto; }
.tabs button { display: block; margin: 0; padding: .5rem 16px; border: 1px solid var(--grey-border); border-radius: 3px; background: var(--grey-bg); color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; cursor: pointer; text-align: center; }
.tabs button:hover { background: var(--navy-hover); color: #fff; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab[aria-hidden="true"] { display: none; }
.tab-link { font-family: var(--sans); font-weight: 700; }

/* boxes */
.box { position: relative; margin-bottom: 30px; background: #fff; overflow: hidden; }
aside .box { background: transparent; }
aside .box .box-header h2 { margin: 0 0 4px; padding: 0; background: transparent; color: var(--navy); font: 700 1rem/1.375 var(--serif); }
aside .box .box-header h2::after { display: none; }
.box .box-header h2 { position: relative; margin: 0 0 10px; padding: .34375rem 20px; background: var(--navy); color: #fff; font: 700 1rem/1.375 var(--sans); }
.box .box-header h2::after { content: ""; position: absolute; left: 20px; bottom: -8px; border: solid; border-width: 8px 8px 0; border-color: var(--navy) transparent transparent; }
.box .box-content { font: .875rem/1.29 var(--sans); }
aside .box .box-content > ul { margin: 0; padding: 0; list-style: none; }
aside .box .box-content > ul > li { margin: 0; padding: 0; border: 0; }
aside .box .box-content a { color: #707070; font-weight: 700; text-decoration: none; }
aside .box .box-content a:hover { text-decoration: underline; }
aside .box .box-content ul.bulleted { list-style: disc; padding-left: 20px; color: #9a9a9a; }
.box .box-content .meta { display: block; color: var(--grey-text); font-size: .75rem; margin: 0; }

.box-row { display: grid; gap: 32px; clear: both; }
.box-row.threes { grid-template-columns: repeat(3, 1fr); }
.box-row.full { grid-template-columns: 1fr; }
.box-row .box { margin: 0; background: transparent; overflow: visible; }
.box-row .box .box-header h2 { margin: 0 0 .5rem; padding: .34375rem 0; background: transparent; color: var(--navy); font: 700 1rem/1.375 var(--sans); }
.box-row .box .box-header h2::after { display: none; }
.box-row .box .box-content > ul { margin: 0; padding: 0; list-style: none; }
.box-row .box .box-content > ul > li { padding: 10px 0; border: 0; }
.box-row .box .box-content > ul > li > a { display: block; overflow: hidden; color: var(--text); text-decoration: none; }
.box-row .box .box-content > ul > li > a:hover strong { text-decoration: underline; }
.box-row .box .box-content > ul > li > a > .tile,
.box-row .box .box-content > ul > li > a > img { float: left; width: 64px; height: 64px; }
.box-row .box .box-content > ul > li > a > .tile + div,
.box-row .box .box-content > ul > li > a > img + div { margin-left: 76px; }
.box-row .box .box-content { font-size: 1rem; line-height: 1.375; }
.box-row .box .box-content > ul > li strong { font-weight: 700; display: block; }
.box-row .box .box-content .meta { font-size: .875rem; }
.box-row .box .box-content .meta { color: #767676; }
.tile { display: flex; align-items: center; justify-content: center; font-size: 1.75rem; line-height: 1; background: var(--navy-hover); }
.t1 { background: #68769c; } .t2 { background: #be4500; } .t3 { background: #007679; } .t4 { background: #a41467; } .t5 { background: #4d781f; }
.box-row.full .box-content ul { list-style: none; padding: 0; }
.pubs { font-family: var(--sans); margin: 0 0 0 0; padding: 0; list-style: none; }
.pubs li { padding: 8px 0; border-top: 1px dotted #ccc; }
.pubs li:first-child { border-top: 0; }
.pubs .meta { display: block; color: #767676; font-size: .75rem; }

/* contact tab */
.role { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font: .875rem/1.57 var(--sans); }
.role h2, .role h3 { margin: 0 0 .3em; font-size: 1rem; line-height: 1.375; }
.role h3:not(:first-child) { margin-top: 1.375rem; }
.role ul { list-style: none; margin: 0 0 1em; padding: 0; }
.role a { color: var(--link-orange); }

/* share */
.share { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; clear: both; }
.article-main-content .share { margin-top: 24px; border-top: 1px dotted #ccc; }
.share a { position: relative; display: inline-block; width: 32px; height: 32px; border-radius: 50%; background: #9a9a9a; color: #fff; text-decoration: none; font: 700 .8rem/32px var(--sans); text-align: center; }
.share a:hover { background: var(--navy); }
.share .facebook { background: #1877f2; } .share .bluesky { background: #1185fe; } .share .linkedin { background: #0a66c2; }
.share .whatsapp { background: #07a944; } .share .mastodon { background: #6364ff; } .share .youtube { background: #b00; } .share .instagram { background: #c13584; }
.share a::before { content: attr(data-i); }

/* ---------- footer ---------- */
.footer-container { background: #e3e3e3; padding: 30px 0; }
.footer-container footer { display: grid; grid-template-columns: repeat(4, 1fr); }
footer section { padding: 0 20px 0 0; }
footer h2 { margin: 0 0 .46rem; color: #555; font: 700 1.125rem/1.22 var(--sans); }
footer ul { margin: 0 0 1.375rem; padding: 0; list-style: none; font: .875rem/1.57 var(--sans); }
footer li { margin: 0 0 .46rem; }
footer a { color: #5e5e5e; text-decoration: none; }
footer a:hover { color: #000; text-decoration: underline; }
footer .share a { background: #9a9a9a; }
footer .share a:hover { background: var(--navy); }
.parody { margin: 0; padding: 10px 20px 0; text-align: center; font: italic .75rem/1.4 var(--sans); color: #555; }

/* ---------- cookie banner ---------- */
.cookies { position: fixed; left: 0; bottom: 0; width: 100%; z-index: 9999; padding: .6875rem 0; background: rgba(104, 118, 156, .9); color: #fff; font: .875rem/1.57 var(--sans); }
.cookies[hidden] { display: none; }
.cookies .wrapper { padding: 0 20px; }
.cookies a { color: #fff; text-decoration: underline; white-space: nowrap; }
.cookies form { display: inline; }
.cookies button { margin-left: 8px; padding: 5px 20px; border: 0; border-radius: 3px; background: transparent; color: #fff; font: 700 .875rem/1.57 var(--sans); cursor: pointer; }
.cookies button.accept { background: rgba(255, 255, 255, .9); color: #404d82; margin-right: 15px; }
.cookies button.accept:hover { background: #fff; }
.cookies button.reject:hover { text-decoration: underline; }

/* ---------- zoom dialog ---------- */
dialog.zoom { padding: 0; border: 0; background: #fff; max-width: min(90vw, 560px); }
dialog.zoom::backdrop { background: rgba(0, 0, 0, .7); }
dialog.zoom img { display: block; width: 100%; height: auto; }
dialog.zoom form { position: absolute; top: 8px; right: 8px; }
dialog.zoom button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 17, 88, .85); color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .wrapper { padding-inline: 0; }
  .header-container header { height: 64px; margin: 4px 0; }
  .logo { left: 60px; top: 50%; transform: translateY(-50%); }
  .logo svg { height: 36px; width: 85px; }
  #search { left: 190px; right: 150px; top: 50%; width: auto; transform: translateY(-50%); }
  .language-btn-group { top: 50%; transform: translateY(-50%); right: 8px; }
  .toggle-nav { display: block; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 24px; border: 0; background: transparent; color: #767676; padding: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; }
  .toggle-nav .toggle-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
  .toggle-nav::before { content: "\2630"; }
  .main-nav { height: auto; }
  .main-nav:not(.open) { display: none; }
  .main-nav ul { flex-direction: column; }
  .left--detail__layout { grid-template-columns: 1fr; }
  .article-header { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .photo { grid-row: 1; text-align: left; padding-top: 0; }
  .article-main-content { padding: 0 16px 24px; }
  .left--detail__layout aside { grid-column: 1; grid-row: auto; margin: 0 16px 16px; padding-top: 0; }
  .box-row.threes { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .footer-container footer { grid-template-columns: 1fr 1fr; }
  footer section { padding: 0 16px; }
  .breadcrumb { padding-inline: 16px; margin-left: 0; }
  .left--detail__layout aside { margin: 0 16px 16px; }
}
@media (max-width: 560px) {
  #search { display: none; }
  .footer-container footer { grid-template-columns: 1fr; }
}
