/* DABI site styles — shared by all pages */

:root {
  --cherry: #a41e35;
  --cherry-dark: #861829;
  --link: #cc3366;
  --header-bg: #222222;
  --footer-bg: #0e1014;
  --beige: #f2efe8;
  --white: #ffffff;
  --text: #313131;
  --heading: #303030;
  --muted: #7a7a7a;

  --font-heading: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Roboto", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-brand: Georgia, "Times New Roman", serif;

  --content: 1110px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
}
h1 a, h2 a, h3 a { color: inherit; }

.container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cherry);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header { background: var(--header-bg); color: var(--white); }

.site-header .bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 0 30px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--white);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  background: var(--cherry);
  width: 113px;
  height: 113px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-logo img { width: 82px; height: 82px; }

.brand-text { padding-top: 6px; }
.brand-college {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
}
.brand-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 32px;
  line-height: 1;
  margin-top: 14px;
}

.nav-toggle {
  display: none;
  align-self: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

.main-nav { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  padding: 14px 15px 16px;
}
.main-nav > ul > li:first-child > a { padding-left: 14px; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #e0e0e0; text-decoration: none; }

.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  vertical-align: middle;
}
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--header-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 20;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }
.sub-menu a { padding: 10px 16px; font-size: 16px; }
.sub-menu a:hover { background: #333; }

/* ---------- Page title band ---------- */

.page-title { background: var(--beige); padding: 36px 0 32px; }
.page-title .container { padding: 0 60px; max-width: 1280px; }
.page-title h1 { font-size: clamp(36px, 5vw, 59px); }
.breadcrumb {
  margin: 20px 0 0;
  font-family: var(--font-ui);
  color: var(--text);
}
.breadcrumb a { color: var(--link); }
.breadcrumb span[aria-hidden] { margin: 0 4px; }

/* ---------- Faculty sub-navigation ---------- */

.subnav { padding: 40px 0; }
.subnav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 40px;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.subnav a {
  display: block;
  text-align: center;
  background: var(--cherry);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  padding: 10px 8px;
  transition: background 0.15s;
}
.subnav a:hover { background: var(--cherry-dark); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--cherry-dark); }

/* ---------- Sections ---------- */

.section { padding: 48px 0 56px; }
.section--beige { background: var(--beige); }
.section-title { font-size: 38px; color: #474646; margin-bottom: 48px; }
.section-title--center { text-align: center; font-size: clamp(32px, 4vw, 45px); color: var(--heading); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  font-family: var(--font-ui);
  padding: 30px 0;
}
.site-footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1fr 1.1fr;
  gap: 32px;
}
.site-footer a { color: var(--white); }

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand:hover { text-decoration: none; }
.footer-brand .brand-logo { width: 76px; height: 76px; }
.footer-brand .brand-logo img { width: 56px; height: 56px; }
.footer-brand span {
  font-family: var(--font-brand);
  font-size: 32px;
  line-height: 1;
}
.footer-legal { font-size: 13px; margin: 24px 0 0; line-height: 1.5; }
.footer-legal a { color: var(--link); }

.footer-address p { margin: 0 0 14px; line-height: 1.5; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--white); flex: none; }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 26px;
  row-gap: 10px;
}
.footer-nav a { font-family: var(--font-heading); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .subnav ul { grid-template-columns: repeat(3, 1fr); padding: 0 16px; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .site-header .bar { padding: 0 16px 0 0; }
  .brand { gap: 12px; }
  .brand-logo { width: 72px; height: 72px; }
  .brand-logo img { width: 52px; height: 52px; }
  .brand-college { font-size: 12px; }
  .brand-name { font-size: 18px; margin-top: 6px; }

  .nav-toggle { display: block; }
  .main-nav { display: none; padding: 0 0 8px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a { padding: 10px 16px; }
  .main-nav > ul > li:first-child > a { padding-left: 16px; }
  .sub-menu { position: static; display: block; box-shadow: none; }
  .sub-menu a { padding-left: 32px; }
  .has-sub > a::after { display: none; }

  .page-title .container { padding: 0 16px; }
  .subnav { padding: 24px 0; }
  .subnav ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .subnav a { font-size: 16px; }

  .section { padding: 36px 0 40px; }
  .section-title { font-size: 30px; margin-bottom: 32px; }

  .site-footer .inner { grid-template-columns: 1fr; padding: 0 16px; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
  max-width: var(--content);
  margin: 40px auto 40px;
  overflow: hidden;
  background: #bbbbbb;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 2.2 / 1;
  min-height: 300px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 70px 44px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
.slide-caption h2 {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 35px);
}
.slide-caption p {
  margin: 10px auto 0;
  max-width: 760px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.5); }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.carousel-dots button {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.carousel-dots button[aria-current="true"]::before { background: var(--white); }

/* ---------- PI card ---------- */

.pi {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.pi img { width: 160px; height: 200px; object-fit: cover; }
.pi-name { font-size: clamp(30px, 4vw, 41px); }
.pi-name a { color: #313131; }
.pi-role {
  margin: 18px 0 10px;
  font-family: var(--font-ui);
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.pi-email { margin: 0; font-family: var(--font-ui); }
.pi-email a { color: inherit; }

/* ---------- People cards (photo + name + email) ---------- */

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 24px;
}
.person { text-align: center; }
.person-photo,
.person-initials {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.person-photo { object-fit: cover; }
.person-initials {
  display: grid;
  place-items: center;
  background: #e2ddd2;
  color: #8b8578;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
}
.section--beige .person-initials { background: #e4dfd4; }
.person h3 { font-size: clamp(28px, 3vw, 35px); font-weight: 900; color: #000; }
.person h3 a { color: inherit; }
.person-email {
  margin: 4px 0 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1px;
}
.person-role {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ---------- Alumni lists ---------- */

.alumni {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1010px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}
.alumni h3 { font-size: clamp(28px, 3vw, 38px); }
.alumni p { margin: 18px 0 0; font-weight: 500; }

.graduates {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1010px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 88px;
}
.graduates h3 { font-size: 32px; }
.graduates ul { margin: 14px 0 0; padding-left: 40px; list-style: disc; }
.graduates li li { font-weight: 500; }

@media (max-width: 1024px) {
  .alumni { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .carousel { margin: 0 0 24px; }
  .slide { aspect-ratio: 4 / 3; min-height: 0; }
  .slide-caption { padding: 60px 16px 40px; }
  .slide-caption p { font-size: 14px; }
  .carousel-btn { display: none; }

  .pi { flex-direction: column; align-items: center; text-align: center; }

  .alumni, .graduates { grid-template-columns: 1fr; gap: 32px; }
  .alumni p { margin-top: 8px; }
  .graduates ul { padding-left: 20px; }
}

/* =========================================================================
   Site-wide components (added for the full-site rebuild)
   ========================================================================= */

.main-nav a.active { box-shadow: inset 0 -3px 0 var(--cherry); }

.container.narrow { max-width: 1110px; }
.page-subtitle { margin: 10px 0 0; font-family: var(--font-ui); color: var(--muted); font-size: 15px; }

.button {
  display: inline-block;
  background: var(--cherry);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 18px;
}
.button:hover { background: var(--cherry-dark); text-decoration: none; }

.read-more { font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--cherry); }

/* ---------- Prose (Markdown content) ---------- */

.prose { padding: 32px 0 56px; color: #3d3d3d; overflow-wrap: break-word; }
.single-main { min-width: 0; }
.prose h2 { font-size: 30px; margin: 36px 0 14px; }
.prose h3 { font-size: 24px; margin: 28px 0 12px; }
.prose h4 { font-size: 20px; margin: 22px 0 10px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 4px; }
.prose img { height: auto; border-radius: 4px; margin: 12px 0; }
.prose table { border-collapse: collapse; margin: 16px 0; }
.prose td, .prose th { border: 1px solid #ddd; padding: 6px 10px; }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 640px; border: 0; }
.prose.small { font-size: 14px; padding: 0; }
.prose li h4 { margin: 4px 0; }

/* ---------- Home ---------- */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 92px 30px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(164, 30, 53, 0.69);
}
.hero-box {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 34px 50px 30px;
}
.hero h1 {
  color: var(--white);
  font-family: "Yanone Kaffeesatz", var(--font-heading);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 90px);
  line-height: 1.2;
  max-width: 560px;
  letter-spacing: 1.9px;
}
.hero .button { margin-top: 26px; }

.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px 72px;
  padding-top: 64px;
  padding-bottom: 72px;
}
.rule-heading { font-size: 28px; margin-bottom: 26px; position: relative; }
.rule-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--cherry);
}
.home-mission .prose { padding: 0; font-size: 15px; }
.home-mission-image { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: 20px; align-self: start; }
.home-center-image { width: 100%; border-radius: 20px; margin-bottom: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.home-news-item { border-bottom: 1px solid #ddd; padding: 14px 0; }
.home-news-item h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.4; }
.home-news-item h3 a { color: var(--heading); }
.home-news-item .read-more { display: inline-block; margin-top: 8px; font-size: 13px; }

/* ---------- People ---------- */

.pill-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 28px 16px 8px; }
.pill-nav a {
  background: #e2e2e2;
  color: #333;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 3px;
}
.pill-nav a:hover, .pill-nav a[aria-current="page"] { background: #cfcfcf; text-decoration: none; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1010px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature h2 { font-size: 28px; }
.feature p { font-size: 14px; color: #555; margin: 14px 0 0; }

.section-faculty { padding-bottom: 64px; }
.faculty-featured, .faculty-grid { list-style: none; margin: 0 auto; padding: 0; }
.faculty-featured { display: flex; justify-content: center; margin-bottom: 56px; }
.faculty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; max-width: 900px; }
.faculty-card { display: flex; gap: 20px; align-items: flex-start; }
.faculty-card img { width: 130px; height: 150px; object-fit: cover; flex: none; }
.faculty-card h3 { font-size: 32px; line-height: 1.05; }
.faculty-card h3 a { color: var(--heading); }
.faculty-card.featured h3 { font-size: 38px; }
.faculty-title {
  margin: 14px 0 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.faculty-email { margin: 6px 0 0; font-family: var(--font-ui); font-size: 13px; }

.student-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  max-width: 1010px;
  margin: 0 auto;
}
.student-grid h3 { font-size: 24px; }
.student-grid h3 a { color: var(--heading); }
.student-grid p { margin: 10px 0 0; font-family: var(--font-ui); font-size: 14px; line-height: 1.55; color: #444; overflow-wrap: anywhere; }

/* ---------- Research (accordion) ---------- */

.research { padding-top: 40px; padding-bottom: 64px; }
.research-intro { font-size: 28px; margin-bottom: 18px; }
.research-person { font-size: 22px; margin: 26px 0 12px; }
.research-person a { color: var(--heading); }
.accordion { margin: 0 0 6px 28px; background: var(--beige); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 40px 12px 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: currentColor;
  transition: transform 0.15s;
}
.accordion[open] summary::after { transform: rotate(90deg); }
.accordion ul { margin: 0; padding: 4px 24px 18px 40px; font-size: 14px; background: var(--white); border: 1px solid var(--beige); }
.accordion li { margin: 8px 0; }

/* ---------- Tabs ---------- */

.tabs { margin: 18px 0 8px; }
.tab-list { display: none; flex-wrap: wrap; border-bottom: 1px solid #e3e3e3; }
.tabs.js .tab-list { display: flex; }
.tab-list button {
  background: none;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  max-width: 280px;
  text-align: left;
}
.tab-list button[aria-selected="true"] { color: var(--cherry); border-color: #e3e3e3; background: var(--white); }
.tab-panel { padding: 16px 20px; border: 1px solid #e3e3e3; border-top: 0; }
.tabs:not(.js) .tab-panel { border-top: 1px solid #e3e3e3; margin-bottom: 12px; }
.tabs.js .tab-panel[hidden] { display: none; }
.tabs.js .tab-panel-title { display: none; }
.tab-panel-title { font-size: 18px; margin: 0 0 10px; }
.tab-panel ul { margin: 0; padding-left: 22px; }

/* ---------- Publications ---------- */

.publications { padding-top: 24px; padding-bottom: 72px; }
.pub-switch { display: flex; gap: 0; font-family: var(--font-ui); font-size: 13px; margin-bottom: 26px; }
.pub-switch a { color: var(--text); padding: 4px 10px; border-left: 1px solid #ddd; }
.pub-switch a:first-child { border-left: 0; padding-left: 0; }
.pub-switch a[aria-current="page"] { color: var(--cherry); font-weight: 500; }
.pub-top { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.pub-note { font-size: 13px; color: var(--muted); margin: 0 0 20px; flex: 1 1 400px; }
.year-index { font-family: var(--font-ui); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 36px 20px; }
.year-index span { color: #555; margin-right: 6px; }
.year-index a { color: var(--text); }
.year-index a:hover { color: var(--cherry); }
.pub-year, .pub-topic { scroll-margin-top: 16px; padding-top: 18px; }
.pub-year h2 { font-size: 40px; margin-bottom: 4px; }
.pub-topic h2 { font-size: 34px; margin: 28px 0 4px; }
.pub-list { font-size: 13.5px; line-height: 1.55; }
.pub-list li { margin: 6px 0; }

/* ---------- Single post / event / project ---------- */

.single { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.sidebar { border-right: 1px solid #e6e6e6; padding-right: 20px; }
.sidebar-block { margin-bottom: 26px; }
.sidebar-block h2 { font-family: var(--font-ui); font-weight: 500; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; color: var(--heading); }
.sidebar-icons { display: flex; gap: 14px; margin: 0; }
.sidebar-icons svg { width: 20px; height: 20px; fill: var(--heading); }
.sidebar-item { border-bottom: 1px solid #e6e6e6; padding-bottom: 12px; margin-bottom: 14px; }
.sidebar-item h3 { font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.35; }
.sidebar-item h3 a { color: var(--heading); }
.sidebar-item p { font-size: 12px; color: var(--muted); margin: 6px 0; line-height: 1.5; }
.sidebar-item .read-more { font-size: 12px; }

.post-meta { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6e6e6; padding-bottom: 12px; }
.post-meta p { margin: 0; font-family: var(--font-ui); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.share { display: flex; gap: 6px; }
.share a { width: 30px; height: 30px; background: var(--cherry); display: grid; place-items: center; }
.share a:hover { background: var(--cherry-dark); }
.share svg { width: 15px; height: 15px; fill: var(--white); }
.single .prose { padding-top: 20px; padding-bottom: 24px; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; padding: 12px 0; }
.post-nav a { display: flex; flex-direction: column; max-width: 48%; color: var(--heading); }
.post-nav a:hover { text-decoration: none; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label { font-family: var(--font-ui); font-weight: 500; font-size: 12px; color: var(--cherry); text-transform: uppercase; }
.post-nav-title { font-size: 12px; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Lists, news, archives ---------- */

.post-list { padding: 28px 0 8px; }
.post-list-item { border-bottom: 1px solid #ddd; padding: 18px 0 20px; }
.post-list-item h2 { font-size: 24px; line-height: 1.3; }
.post-list-item h2 a { color: var(--heading); }
.post-list-item p { font-size: 13px; color: #555; margin: 10px 0 8px; line-height: 1.55; }

.news-heading { font-size: 26px; margin: 32px 0 18px; }
.news-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.news-card { background: var(--beige); padding: 20px 18px; }
.news-card h3 { font-size: 18px; line-height: 1.3; }
.news-card h3 a { color: var(--heading); }
.news-date { font-family: var(--font-ui); font-size: 11px; color: var(--muted); margin: 12px 0 8px; }
.news-card p:last-child { font-size: 12.5px; color: #555; margin: 0; line-height: 1.55; }

.archive { padding-top: 24px; padding-bottom: 48px; }
.archive-title { font-size: 30px; margin-bottom: 12px; }
.archive-item h2 { font-family: var(--font-ui); font-weight: 500; font-size: 22px; line-height: 1.3; margin-top: 18px; }
.archive-item p { font-size: 13px; color: #555; margin: 8px 0 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px 0 8px; font-family: var(--font-ui); font-size: 14px; }
.pagination ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pagination li a, .pagination li span { display: block; min-width: 34px; padding: 6px 8px; text-align: center; border: 1px solid #ddd; color: var(--text); }
.pagination li span[aria-current] { background: var(--cherry); border-color: var(--cherry); color: var(--white); }
.pagination li.gap { padding: 6px 2px; }
.pagination-step { color: var(--cherry); }

/* ---------- Contact ---------- */

.contact { padding-top: 32px; padding-bottom: 64px; }
.contact-top, .contact-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-top .prose { padding: 0; font-size: 14px; }
.contact-top .prose h2 { font-size: 22px; margin: 18px 0 8px; }
.contact-image { width: 100%; border-radius: 20px; }
.contact-bottom { margin-top: 40px; }
.contact-map { width: 100%; height: 300px; border: 0; }
.contact-details { padding: 0; font-size: 14px; }
.contact-details h2 { font-size: 22px; margin: 0 0 8px; }
.contact-details h2 ~ h2 { margin-top: 22px; }
.contact-people { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: center; }
.contact-people img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.contact-people h2 { font-size: 26px; }
.contact-people h2, .contact-people h2 a { color: var(--cherry); }
.contact-role { font-family: var(--font-ui); text-transform: uppercase; font-size: 15px; margin: 8px 0 14px; }
.contact-people ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-ui); font-size: 14px; }

/* ---------- Profile (Zoran Obradovic) ---------- */

.profile-head { display: flex; justify-content: center; align-items: center; gap: 32px; padding-top: 16px; padding-bottom: 32px; }
.profile-head img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-head h2 { font-size: 30px; }
.profile-affiliation { font-family: var(--font-ui); font-size: 14px; line-height: 1.6; margin-top: 10px; }
.profile-affiliation p { margin: 0; }
.profile-areas { padding: 30px 0; }
.profile-areas .container { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 24px 80px; }
.profile-areas h3 { font-size: 22px; margin-bottom: 10px; }
.checklist { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 14px; }
.checklist li { position: relative; padding-left: 22px; margin: 4px 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #222;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.profile-body { font-size: 14px; }

/* ---------- Genealogy (Heritage) ---------- */

.genealogy .prose { text-align: center; }
.genealogy .prose h2 { color: var(--cherry); font-weight: 400; font-size: 28px; }
.genealogy .prose ol { list-style: none; padding: 0; margin: 28px 0 0; font-family: var(--font-ui); font-size: 14px; }
.genealogy .prose ol li { margin: 0; }
.genealogy .prose ol li + li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 18px auto 18px;
  border: solid var(--cherry);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

/* ---------- 404 ---------- */

.not-found { padding: 72px 16px 96px; text-align: center; }
.not-found h1 { font-size: 44px; margin-bottom: 14px; }

/* ---------- Responsive (components) ---------- */

@media (max-width: 1024px) {
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  .hero { padding: 40px 16px; }
  .hero-box { padding: 24px 20px; }
  .home-grid, .feature, .contact-top, .contact-bottom, .contact-people { grid-template-columns: 1fr; gap: 28px; }
  .home-grid { padding-top: 36px; }
  .faculty-grid { grid-template-columns: 1fr; gap: 32px; }
  .faculty-card img { width: 100px; height: 120px; }
  .faculty-card h3, .faculty-card.featured h3 { font-size: 26px; }
  .student-grid { grid-template-columns: 1fr; }
  .accordion { margin-left: 0; }
  .single { grid-template-columns: minmax(0, 1fr); }
  .sidebar { order: 2; border-right: 0; border-top: 1px solid #e6e6e6; padding: 24px 0 0; }
  .news-cards { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-areas .container { grid-template-columns: 1fr; justify-items: start; }
  .pub-year h2 { font-size: 32px; }
  .year-index { margin-left: 0; }
  .tab-list button { padding: 10px 10px; }
}

/* Single posts: long titles, so a smaller heading than regular pages */
.single-post .page-title { padding: 26px 0 22px; }
.single-post .page-title h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.single-post .breadcrumb { margin-top: 12px; font-size: 14px; }

/* Category/author archives: cherry titles, as on the original */
.archive-item h2 a { color: var(--cherry); }
.archive-item h2 { font-weight: 400; font-size: 24px; }

@media (max-width: 767px) {
  .pagination { flex-wrap: wrap; gap: 10px 12px; }
  .pagination ol { order: 3; width: 100%; justify-content: center; gap: 4px; }
  .pagination li a, .pagination li span { min-width: 30px; padding: 5px 6px; }
}
