:root {
  --ink: #14243a;
  --muted: #52647a;
  --blue: #155a97;
  --blue-deep: #0d3765;
  --blue-light: #eff6fd;
  --blue-line: #d6e5f4;
  --white: #fff;
  --shadow: 0 18px 45px rgba(20, 56, 94, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 Arial, Helvetica, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
a:focus-visible { outline: 3px solid #ed9f4b; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.17; }
h1, h2, h3, .institution-text strong { font-family: Georgia, 'Times New Roman', serif; }
h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.3vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.42rem; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: -100px; left: 20px; padding: 10px 16px; background: #fff; color: var(--blue-deep); }
.skip-link:focus { top: 10px; }

/* Identity and navigation */
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid #d9e1e9; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; padding-block: 10px; }
.institution { display: flex; align-items: center; gap: 14px; flex: 0 1 610px; min-width: 0; color: var(--ink); line-height: 1.25; text-decoration: none; }
.institution:hover { color: var(--ink); }
.institution img { display: block; flex: 0 0 auto; width: 105px; height: auto; }
.institution-rule { align-self: stretch; flex: 0 0 6px; width: 6px; background: var(--blue); }
.institution-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.institution-text strong { font-size: 1rem; white-space: nowrap; }
.institution-text small { color: var(--muted); font-size: .75rem; line-height: 1.35; white-space: nowrap; }
.main-nav { display: flex; flex: 1; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 3px; white-space: nowrap; }
.main-nav a { display: block; padding: 12px 13px; border-radius: 5px; color: #31465e; font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--blue-light); color: var(--blue-deep); }

/* Profile introduction */
.home-main { padding-top: 26px; padding-bottom: 78px; }
.profile-intro { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 48px; padding: 34px 43px; border: 1px solid var(--blue-line); border-top: 4px solid var(--blue); background: linear-gradient(115deg, #f6faff, #edf5fc); }
.profile-photo { display: block; width: 240px; height: 240px; object-fit: cover; object-position: center; border: 1px solid #b9d1e5; background: #e6f1fa; box-shadow: 0 8px 24px rgba(20, 56, 94, .12); }
.profile-photo-oana { object-position: center 22%; }
.profile-photo-monica { object-position: center; }
.profile-intro-text h1 { max-width: 100%; margin: 0 0 15px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -.015em; white-space: nowrap; }
.profile-intro-text > p:last-child { margin: 0; color: #4f6479; font-size: .95rem; }
.eyebrow { margin-bottom: 9px; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

/* Shared sections */
.section { padding-block: 78px; }
.section-tinted { background: #f3f8fd; border-block: 1px solid #e8f0f9; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 23px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 425px; margin-bottom: 0; color: var(--muted); }
.section-heading.compact { align-items: center; }
.home-sections { padding-top: 31px; }
.home-sections .section-heading h2 { font-size: 1.62rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.feature-card { min-height: 134px; padding: 18px 23px; border: 1px solid var(--blue-line); border-top: 4px solid var(--blue); background: var(--blue-light); box-shadow: 0 6px 18px rgba(15, 63, 105, .03); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.feature-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.feature-number { color: var(--blue); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-card h3 { margin: 22px 0 0; font-size: 1.38rem; }
.card-arrow { flex: 0 0 auto; color: var(--blue); font-family: Arial, Helvetica, sans-serif; font-size: 1.25rem; line-height: 1; }
.lead { color: var(--muted); font-size: 1.06rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); font-size: .9rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Interior pages */
.page-banner { padding-block: 31px 57px; background: linear-gradient(180deg, #f6faff 0%, #edf5fc 100%); border-bottom: 1px solid var(--blue-line); }
.page-banner h1 { margin: 7px 0 15px; font-size: clamp(2.7rem, 4.4vw, 4.2rem); }
.page-lead { max-width: 760px; margin-bottom: 0; color: #435a73; font-size: 1.08rem; }
.compact-banner { padding-block: 27px 39px; }
.compact-banner h1 { margin-bottom: 10px; font-size: clamp(1.85rem, 2.8vw, 2.45rem); }
.compact-banner .page-lead { font-size: .95rem; }
.compact-banner .breadcrumbs { margin-bottom: 26px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 43px; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #8aa5bb; }
.teaching-section { padding-top: 31px; }
.year-list { border: 1px solid var(--blue-line); border-top: 4px solid var(--blue); background: #fff; }
.year-entry + .year-entry { border-top: 1px solid var(--blue-line); }
.year-entry summary { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 25px; padding: 20px 25px; color: var(--blue-deep); cursor: pointer; list-style: none; }
.year-entry summary::-webkit-details-marker { display: none; }
.year-entry summary::marker { content: ""; }
.year-entry summary:hover, .year-entry[open] summary { background: var(--blue-light); }
.year-entry summary strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.year-entry summary > span:nth-child(2) { color: var(--muted); font-size: .86rem; }
.year-chevron { color: var(--blue); font-size: 1.5rem; line-height: 1; text-align: right; transition: transform .2s ease; }
.year-entry[open] .year-chevron { transform: rotate(180deg); }
.year-courses { padding: 6px 25px 13px; background: #fbfdff; border-top: 1px solid var(--blue-line); }
.year-courses a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 3px; border-bottom: 1px solid #e3edf6; color: var(--ink); font-weight: 700; text-decoration: none; }
.year-courses a:last-child { border-bottom: 0; }
.year-courses a:hover { color: var(--blue); }
.year-courses small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.year-courses a > span:last-child { color: var(--blue); font-size: 1.25rem; }
.reexam-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 19px; padding: 20px 27px; border: 1px solid var(--blue-line); background: var(--blue-light); color: var(--ink); text-decoration: none; }
.reexam-link:hover { background: #e4f0fb; color: var(--ink); }
.reexam-link small, .reexam-link strong { display: block; }
.reexam-link small { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.reexam-link strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.24rem; }
.reexam-link > span:last-child { color: var(--blue); font-size: 1.3rem; }
.older-materials-note { max-width: 900px; margin: 26px 0 0; padding-left: 17px; border-left: 3px solid var(--blue-line); color: var(--muted); font-size: .9rem; }
.older-materials-note a { overflow-wrap: anywhere; }
.course-index { border: 1px solid var(--blue-line); border-top: 4px solid var(--blue); background: #fbfdff; }
.course-index a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 27px; border-bottom: 1px solid #e3edf6; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.course-index a:last-child { border-bottom: 0; }
.course-index a:hover { background: var(--blue-light); color: var(--blue-deep); }
.course-index small { display: block; margin-top: 3px; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: .78rem; font-weight: 400; }
.course-index a > span:last-child { color: var(--blue); font-family: Arial, Helvetica, sans-serif; font-size: 1.25rem; }

/* Course page */
.course-banner { background: linear-gradient(125deg, #f4f9fe 0%, #e6f1fa 100%); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.course-meta span { padding: 5px 11px; border: 1px solid #cbdff0; border-radius: 50px; background: #fff; color: #31536f; font-size: .77rem; font-weight: 700; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 55px; padding-block: 50px 88px; }
.course-layout-empty { grid-template-columns: 1fr; max-width: 760px; }
.course-layout-empty .course-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.course-layout-empty .aside-card { margin-bottom: 0; }
.content-section { margin-top: 48px; }
.course-content > .content-section:first-child { margin-top: 0; }
.content-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 18px; }
.content-section-heading h2 { margin: 0; font-size: 2rem; }
.information-panel { padding: 23px 27px; border: 1px solid var(--blue-line); border-left: 4px solid var(--blue); background: var(--blue-light); }
.information-panel h3 { margin: 0 0 11px; color: var(--blue-deep); font-size: 1.14rem; }
.information-panel h3:not(:first-child) { padding-top: 21px; margin-top: 22px; border-top: 1px solid var(--blue-line); }
.information-panel p { margin: 0 0 10px; color: #334c64; font-size: .91rem; }
.information-panel p:last-child { margin-bottom: 0; }
.resource-group { margin-top: 29px; }
.resource-group h3 { padding-bottom: 10px; margin-bottom: 0; border-bottom: 2px solid var(--blue); font-size: 1.26rem; }
.resource-list { padding: 0; margin: 0; list-style: none; }
.resource-list li { padding: 13px 3px; border-bottom: 1px solid #e0e9f1; color: #263e55; font-size: .91rem; }
.resource-list a { color: var(--blue-deep); font-weight: 700; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }
.course-empty { margin: 0; padding: 18px 20px; border: 1px solid var(--blue-line); background: var(--blue-light); color: var(--muted); font-size: .91rem; }
.course-aside { padding-top: 0; }
.aside-card { padding: 23px; margin-bottom: 17px; background: #f7fbff; border: 1px solid var(--blue-line); }
.aside-card h2 { margin-bottom: 19px; font-size: 1.34rem; }
.course-facts { margin: 0; }
.course-facts div { padding: 11px 0; border-top: 1px solid var(--blue-line); }
.course-facts dt { color: var(--muted); font-size: .74rem; }
.course-facts dd { margin: 1px 0 0; font-size: .87rem; font-weight: 700; }
.archive-aside .text-link { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--blue-line); }
.reexam-content { max-width: 840px; min-height: 440px; }
.reexam-content h2 { max-width: 680px; margin-bottom: 28px; font-size: clamp(1.55rem, 2.6vw, 2.25rem); }

/* Research and contact */
.research-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 60px; align-items: start; }
.research-layout.section { padding-top: 46px; }
.research-layout-single { grid-template-columns: minmax(0, 900px); }
.research-main h2 { margin-bottom: 25px; font-size: clamp(1.85rem, 2.8vw, 2.45rem); }
.publication-list { padding: 0; margin: 0; list-style: none; }
.publication-list li, .thesis-card { display: grid; grid-template-columns: 82px 1fr; gap: 19px; padding: 24px 0; border-top: 1px solid var(--blue-line); }
.publication-list li:last-child { border-bottom: 1px solid var(--blue-line); }
.publication-year { color: var(--blue); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.publication-list h3, .thesis-card h3 { margin-bottom: 8px; font-size: 1.23rem; }
.publication-list p, .thesis-card p { margin-bottom: 9px; color: var(--muted); font-size: .86rem; }
.subsection-title { margin-top: 50px; }
.research-aside .aside-card a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--blue-line); color: var(--blue-deep); font-size: .89rem; font-weight: 700; text-decoration: none; }
.research-aside .aside-card a:hover { text-decoration: underline; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 70px; min-height: 440px; }
.contact-primary { padding: 36px 38px; align-self: start; border-top: 4px solid var(--blue); background: var(--blue-light); }
.contact-primary .email-link { margin-top: 5px; }
.contact-primary > p:last-child { margin: 28px 0 0; color: var(--muted); font-size: .88rem; }
.email-link { display: inline-flex; flex-wrap: wrap; gap: 9px; color: var(--blue-deep); font-size: clamp(1rem, 1.55vw, 1.24rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-details > div { display: flex; flex-direction: column; gap: 3px; padding: 19px 0; border-bottom: 1px solid var(--blue-line); }
.contact-details > div:first-child { padding-top: 0; }
.contact-details strong { font-size: .97rem; }
.contact-details a, .contact-details div > span:last-child { color: var(--blue); font-size: .87rem; }
.detail-label { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Footer */
.site-footer { padding-block: 30px; background: var(--blue-deep); color: #e7eef5; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.footer-inner strong { font-family: Georgia, serif; }
.footer-inner span { color: #c3d3e3; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #e7eef5; font-size: .8rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 1030px) {
  .header-inner { flex-wrap: wrap; gap: 10px 20px; padding-block: 12px; }
  .institution { flex: 1 1 100%; }
  .main-nav { flex-basis: 100%; justify-content: flex-start; }
  .main-nav a { padding-inline: 11px; }
  .profile-intro-text h1 { white-space: normal; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 34px, 1180px); }
  .header-inner { align-items: flex-start; }
  .main-nav { justify-content: flex-start; overflow-x: auto; }
  .profile-intro { grid-template-columns: 185px minmax(0, 1fr); gap: 25px; padding: 26px; }
  .profile-photo { width: 185px; height: 185px; }
  .profile-intro-text h1 { font-size: 1.9rem; }
  .section { padding-block: 57px; }
  .teaching-section { padding-top: 27px; }
  .section-heading, .archive-layout, .research-layout, .contact-layout, .course-layout { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 13px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 116px; }
  .breadcrumbs { margin-bottom: 27px; }
  .page-banner { padding-bottom: 43px; }
  .course-layout { padding-block: 39px 60px; }
  .course-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .course-layout-empty .course-aside { gap: 15px; }
  .aside-card { margin: 0; }
  .contact-layout { min-height: auto; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 540px) {
  .institution { gap: 10px; }
  .institution img { width: 88px; }
  .institution-rule { flex-basis: 5px; width: 5px; }
  .institution-text strong { font-size: .78rem; white-space: normal; }
  .institution-text small { font-size: .62rem; white-space: normal; }
  .main-nav a { font-size: .8rem; }
  .profile-intro { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .profile-photo { width: min(220px, 100%); height: auto; aspect-ratio: 1; margin-inline: auto; }
  .profile-intro-text { text-align: center; }
  .profile-intro-text h1 { font-size: 1.7rem; }
  .year-entry summary { grid-template-columns: 1fr auto 22px; gap: 10px; padding: 17px; }
  .year-entry summary strong { font-size: 1.16rem; }
  .year-entry summary > span:nth-child(2) { font-size: .73rem; }
  .year-courses { padding-inline: 17px; }
  .section-heading h2 { font-size: 2rem; }
  .course-aside { grid-template-columns: 1fr; }
  .course-layout-empty .course-aside { grid-template-columns: 1fr; }
  .course-meta { gap: 5px; }
  .course-meta span { font-size: .69rem; }
  .publication-list li, .thesis-card { grid-template-columns: 1fr; gap: 5px; }
  .contact-primary { padding: 25px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
