/* ═══════════════════════════════════════════════════════════════════════════
   digital cultures and arts — main stylesheet
   Porto Rocha light mode aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Font ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('/assets/fonts/ABCDiatypeEdu-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(14px, 1.15vw, 22px); overflow-y: scroll; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─── Design tokens ────────────────────────────────────────────────────── */
:root {
  --c-text:   #000;
  --c-muted:  rgba(0,0,0,.5);
  --c-bg:     #fff;
  --c-card:   rgba(0,0,0,.05);
  --c-hover:  rgba(0,0,0,.09);
  --c-border: rgba(0,0,0,.08);
  --pd:  1.14rem;
  --pd2: 0.57rem;
  --br:  0.71rem;
  --br2: 0.43rem;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: 'ABCDiatype', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--pd);
  width: 100%;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .5; transition: opacity .5s; }
p + p { margin-top: .75em; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header { padding: var(--pd) 0 0; }
.site-header .inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pd);
  padding-bottom: 0;
}
.site-title {
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  transition: opacity .5s;
}
.site-nav a:hover { opacity: .5; }

/* language switcher */
.lang-sw {
  display: flex;
  gap: 4px;
  font-size: 1.35rem;
  color: var(--c-muted);
  align-items: center;
}
.lang-sw a { text-decoration: none; font-size: 1.35rem; font-weight: 600; color: var(--c-muted); transition: opacity .5s; }
.lang-sw a.active { color: var(--c-text); }
.lang-sw span { color: var(--c-muted); }

/* ─── Site intro ─────────────────────────────────────────────────────────── */
.site-intro {
  padding: var(--pd2) 0 var(--pd);
  max-width: 50%;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-text);
}
.site-intro a { text-decoration: underline; }

/* ─── Section separator ──────────────────────────────────────────────────── */
.sep { display: none; }

/* ─── Category helpers ───────────────────────────────────────────────────── */
.cat-dot { display: none; }

.cat-label {
  display: inline-block;
  font-size: 0.857rem;
  font-weight: 400;
  color: var(--c-muted);
  padding: 4px 8px;
  border-radius: var(--br2);
  background: var(--c-card);
  text-decoration: none;
  text-transform: capitalize;
}
a.cat-label:hover { opacity: .5; }

/* ─── Category filter bar ────────────────────────────────────────────────── */
.cat-filter {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: var(--pd) 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
}
.cat-filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-text) !important;
  opacity: 1;
  transition: opacity .5s;
}
.cat-filter-item:hover { color: var(--c-text) !important; opacity: 1 !important; }
.cat-filter:has(.cat-filter-item.active) .cat-filter-item:not(.active):hover { opacity: 1 !important; }
.cat-filter:has(.cat-filter-item.active) .cat-filter-item:not(.active) { opacity: 0.4; transition: opacity .5s; }
.cat-filter:has(.cat-filter-item.active) .cat-filter-item:not(.active):hover { opacity: 1; }
.cat-square {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  background: var(--c-muted);
}
.cat-square-event { background: #52C2FD; }
.cat-square-news { background: #823D3D; }
.cat-square-publication { background: #3a4d5f; }
.cat-square-teaching { background: #B0AA95; }
.cat-square-research, .cat-square-phd { background: var(--c-text); }
.cat-filter--research .cat-filter-item { color: var(--c-muted); }
.cat-filter--research .cat-filter-item .cat-square { opacity: 0.5; transition: opacity .5s; }
.cat-filter--research .cat-filter-item:hover,
.cat-filter--research .cat-filter-item.active { color: var(--c-text); }
.cat-filter--research .cat-filter-item:hover .cat-square,
.cat-filter--research .cat-filter-item.active .cat-square { opacity: 1; }

.view-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
  border-radius: var(--br2);
  transition: color .5s, background .5s;
  padding: 0;
}
.view-btn:hover { color: var(--c-text); background: var(--c-card); }
.view-btn.active { color: var(--c-text); }
.ppc-grid.home-grid { display: none; }

/* ─── Post list (homepage) ───────────────────────────────────────────────── */
.post-list { list-style: none; }

.post-item {
  display: grid;
  grid-template-columns: 1fr 14rem 12rem 1fr;
  gap: 0 var(--pd);
  align-items: start;
  padding: var(--pd) 0;
  border-bottom: 1px solid var(--c-border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.post-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.post-item:last-child { border-bottom: none; }

.post-title-area { padding-right: var(--pd2); }
.post-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.post-title a { text-decoration: none; }
.post-title a:hover { opacity: .5; }
.post-date {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-text);
}

.post-thumb-wrap { overflow: hidden; }
.post-thumb {
  width: 100%;
  height: auto;
  display: block;
  filter: url(#dither);
}
.post-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-card);
}

/* Duotone tints removed — images shown in full color */
.post-thumb-tint {
  position: relative;
  display: block;
  line-height: 0;
}

.post-cat-col {
  display: flex;
  align-items: flex-start;
}
.post-cat-label {
  font-size: 1rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--c-text);
}

.post-excerpt {
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.25;
  color: var(--c-text);
  overflow: hidden;
}

/* ─── Grid view (shared) ────────────────────────────────────────────────── */
.ppc-heading {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 0;
  color: var(--c-text);
}
.ppc-grid {
  position: relative;
  margin-top: var(--pd);
  max-width: 100%;
  overflow: visible;
  padding: var(--pd2) 0;
}
.ppc-item {
  display: block;
  text-decoration: none;
  color: var(--c-text);
  padding: var(--pd2);
  border-radius: var(--br);
  transition: background .5s;
}
.ppc-item:hover { background: var(--c-card); opacity: 1; }
.ppc-grid .ppc-item {
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, background .5s;
}
.ppc-grid .ppc-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ppc-item.ppc-hidden { opacity: 0; }
.ppc-item.ppc-visible { opacity: 1; }
.ppc-item.ppc-visible:hover { opacity: 1; background: var(--c-card); }
.ppc-thumb { overflow: hidden; margin-bottom: var(--pd2); }
.ppc-thumb img { width: 100%; height: auto; display: block; filter: url(#dither); }
.dither-event .post-thumb, .ppc-thumb.dither-event img { filter: url(#dither-event); }
.dither-news .post-thumb, .ppc-thumb.dither-news img { filter: url(#dither-news); }
.dither-publication .post-thumb, .ppc-thumb.dither-publication img { filter: url(#dither-publication); }
.dither-teaching .post-thumb, .ppc-thumb.dither-teaching img { filter: url(#dither-teaching); }
.ppc-thumb.dither-team-wrap img { filter: url(#dither-team); }
.ppc-meta {
  display: flex;
  align-items: center;
  gap: var(--pd2);
  margin-bottom: 4px;
}
.ppc-date {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-text);
}
.ppc-title { font-size: 1.3rem; font-weight: 600; line-height: 1.15; color: var(--c-text); }
.ppc-cat {
  display: inline-block;
  font-size: 0.857rem;
  font-weight: 400;
  padding: 2px 6px;
  background: var(--c-card);
  border-radius: 4px;
  color: var(--c-muted);
  text-transform: capitalize;
}

/* ─── Team grid ──────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pd);
  padding-top: var(--pd);
}
.team-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--pd2);
  border-radius: var(--br);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, background .5s;
}
.team-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.team-card.is-visible:hover { opacity: 0.7; }
.team-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--pd2);
}
.team-card-photo {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center;
  margin-bottom: var(--pd2);
}
.team-card-photo-ph {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--c-card);
  margin-bottom: var(--pd2);
}
.team-card-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  margin-top: var(--pd2);
  margin-bottom: var(--pd2);
  text-transform: lowercase;
}
.team-card-bio {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}

/* ─── Person detail ──────────────────────────────────────────────────────── */
.person-page {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 32px;
  padding-top: var(--pd);
}
.person-info { max-width: 38.5rem; }
.person-photo img {
  width: 100%;
  display: block;
}
.person-photo-wrap { position: relative; }
.person-photo-credit {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 0.786rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.person-photo-wrap:hover .person-photo-credit { opacity: 1; }
.person-card-role {
  display: block;
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 4px;
  text-transform: capitalize;
}
.person-info-card { margin-top: 12px; }
.person-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--pd);
  line-height: 1.15;
}
.person-sep { display: none; }
.person-social {
  display: flex;
  gap: var(--pd2);
  margin-bottom: var(--pd);
}
.person-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-text);
  color: var(--c-bg);
  text-decoration: none;
  font-size: 0.786rem;
  transition: opacity .5s;
}
.person-social a:hover { opacity: .5; }
.person-bio {
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.35;
  margin-bottom: 24px;
}
.person-pubs { margin-top: 32px; }
.person-pubs h2 {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-text);
  margin-bottom: var(--pd);
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
details.pub-section {
  border-bottom: 1px solid var(--c-border);
}
details.pub-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd2);
  padding: 12px 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
  user-select: none;
  transition: opacity .3s;
}
details.pub-section summary::-webkit-details-marker { display: none; }
details.pub-section summary::before { display: none; }
details.pub-section summary::after {
  content: '+';
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-muted);
  transition: transform .3s;
}
details.pub-section[open] summary::after {
  content: '−';
}
details.pub-section summary:hover { opacity: 0.6; }
.pub-content {
  padding: 4px 0 20px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--c-text);
}
.pub-content ul,
.pub-content ol { list-style: none; padding-left: 0; margin: 0; }
.pub-content li {
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  margin-bottom: 0.9em;
}
.pub-content li:last-child { margin-bottom: 0; }
.pub-content li strong,
.pub-content li b {
  font-weight: 600;
}
.pub-content li em,
.pub-content li i {
  font-style: italic;
}
.pub-content a {
  text-decoration: underline;
  color: var(--c-text);
}
.pub-content a:hover { opacity: .6; }
.pub-entry-link-wrap {
  white-space: nowrap;
  margin-left: 6px;
  display: inline-block;
  text-indent: 0;
}
.pub-content .pub-entry-link {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--c-text);
  opacity: .55;
}
.pub-content .pub-entry-link:hover { opacity: 1 !important; }
.pub-content .pub-entry-link svg {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -1px;
}
.pub-content p {
  margin-bottom: 0.9em;
}
.pub-content p:last-child { margin-bottom: 0; }

/* ─── Research page ──────────────────────────────────────────────────────── */
.research-project {
  display: grid;
  grid-template-columns: 22rem 1fr 27rem;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
  border-top: 1px solid var(--c-border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  scroll-margin-top: 100px;
}
.cat-filter + .research-project { border-top: none; }
.research-project.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.research-title {
  display: flex;
  flex-direction: column;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.research-title a { text-decoration: none; }
.research-people {
  display: flex;
  flex-direction: column;
  margin-top: var(--pd2);
  background: var(--c-card);
  border-radius: var(--br2);
  overflow: hidden;
}
.person-pill {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-muted);
  white-space: nowrap;
  padding: 8px 12px;
  position: relative;
  transition: opacity .5s;
}
.research-funding { margin-top: 6px; font-weight: 500; }
.person-pill + .person-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--c-border);
}
.person-pill:hover { opacity: .5; }
.research-body {
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.2;
  color: var(--c-text);
}
.research-body p { margin: 0 0 12px; }
.research-body p:last-child { margin-bottom: 0; }
.research-sidebar { }
.research-image { margin-bottom: var(--pd); }
.research-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.research-image-mobile { display: none; }

.activities-head {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--pd);
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.activity-item {
  display: flex;
  gap: var(--pd2);
  margin-bottom: 12px;
  align-items: flex-start;
}
.activity-thumb-wrap {
  flex-shrink: 0;
  width: 5rem;
  overflow: hidden;
}
.activity-thumb {
  width: 100%;
  height: auto;
  display: block;
  filter: url(#dither);
}
.dither-event .activity-thumb { filter: url(#dither-event); }
.dither-news .activity-thumb { filter: url(#dither-news); }
.dither-publication .activity-thumb { filter: url(#dither-publication); }
.dither-teaching .activity-thumb { filter: url(#dither-teaching); }
.activity-thumb-ph {
  width: 5rem; height: 3.75rem;
  background: var(--c-card);
  flex-shrink: 0;
}
.activity-info { display: flex; flex-direction: column; align-items: flex-start; }
.activity-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  text-decoration: none;
  transition: opacity .5s;
}
.activity-title:hover { opacity: .5; }
.activity-cat {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: lowercase;
  color: var(--c-text);
}

/* ─── Network page ───────────────────────────────────────────────────────── */
.network-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-top: var(--pd);
}
.network-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.network-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.network-section h2 {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: var(--pd);
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.network-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pd2);
}
.network-card {
  background: var(--c-card);
  border-radius: var(--br2);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: var(--pd2);
  text-decoration: none;
  color: var(--c-text);
  transition: background .5s;
}
a.network-card:hover { background: var(--c-hover); opacity: 1; }
.network-card.full { grid-column: 1 / -1; }
.network-card-body { flex: 1; }
.network-card-name {
  font-size: 1.1rem;
  font-weight: 550;
  line-height: 1.3;
  display: block;
}
.network-card-arrow { flex-shrink: 0; color: var(--c-muted); align-self: flex-start; }
.network-card-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-text);
  border-top: 1px solid var(--c-border);
  margin-top: 6px;
  padding-top: 6px;
}

.network-contact-section { grid-column: 1; }
.network-contact { font-size: 1.1rem; font-weight: 500; line-height: 1.25; color: var(--c-text); }
.network-contact p:first-child { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.75em; }
.network-contact p { margin: 0 0 8px; }
.network-contact a { text-decoration: underline; }

/* ─── Single post page ───────────────────────────────────────────────────── */
.post-page {
  display: grid;
  grid-template-columns: 26rem 1fr;
  gap: 0 32px;
  padding-top: var(--pd);
  align-items: start;
}
.post-page-image-col { grid-column: 1; grid-row: 1; }
.post-page-right { grid-column: 2; grid-row: 1; max-width: 32rem; }
.post-page-content-col { padding-top: 0; }
.post-page-img-wrap { position: relative; }

/* Post page entrance animations */
.post-page-image-col,
.post-page-title,
.post-page-title--mobile,
.post-page-content-col {
  opacity: 0;
  transition: opacity .5s ease;
}
.post-page-image-col.is-visible,
.post-page-title.is-visible,
.post-page-title--mobile.is-visible,
.post-page-content-col.is-visible {
  opacity: 1;
}
.post-page-date-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.post-page-date-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.post-page-main-img { width: 100%; display: block; }
.post-page-img-credit {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 0.786rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.post-page-img-wrap:hover .post-page-img-credit { opacity: 1; }
.post-page-image-empty {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-card);
  border-radius: var(--br2);
}
.post-page-date-card {
  margin-top: var(--pd2);
  padding: 10px 12px;
  background: var(--c-card);
  border-radius: var(--br2);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.4;
}
.post-page-date-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid var(--c-border);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.4;
  text-decoration: none;
}
a.post-page-date-location { transition: opacity .5s; }
a.post-page-date-location:hover { color: var(--c-muted); opacity: .5; }
.post-page-cal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid var(--c-border);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  transition: opacity .5s;
}
.post-page-cal-link:hover { opacity: .5; }
.post-page-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--pd2);
  padding: 10px 12px;
  background: var(--c-card);
  border-radius: var(--br2);
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.4;
  text-decoration: none;
}
a.post-page-location { transition: opacity .5s; }
a.post-page-location:hover { opacity: .5; }
.post-page-oa-btn { gap: 0; padding: 0; overflow: hidden; display: flex; align-items: stretch; }
a.post-page-oa-more { transition: opacity .5s; text-decoration: none; }
a.post-page-oa-more:hover { opacity: .5; }
.post-page-oa-label {
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--c-muted);
}
.post-page-oa-divider {
  width: 1px;
  align-self: stretch;
  background: var(--c-border);
  flex-shrink: 0;
}
.post-page-oa-more {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--c-muted);
  white-space: nowrap;
}
.post-page-authors-in-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid var(--c-border);
}
.post-page-authors-label {
  font-size: 0.786rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.post-page-lecturer-card { align-items: flex-start; }
.post-page-lecturer-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-page-lecturer-name {
  font-size: 1rem;
  color: var(--c-muted);
  text-decoration: none;
}
a.post-page-lecturer-name:hover { opacity: .5; }
.post-page-author-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: var(--c-muted);
  text-decoration: none;
}
a.post-page-author-item { transition: opacity .5s; }
a.post-page-author-item:hover { opacity: .5; }
.post-page-doi {
  position: relative;
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid var(--c-border);
  font-size: 1.1rem;
  color: var(--c-muted);
  line-height: 1.4;
  cursor: pointer;
  transition: opacity .5s;
  word-break: break-all;
}
.post-page-doi:hover { opacity: .5; }
.post-page-doi.copied { opacity: .3; }
.post-page-doi::after {
  content: 'Copied!';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.786rem;
  color: var(--c-muted);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.post-page-doi.copied::after { opacity: 1; }
.post-page-date-bib {
  position: relative;
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid var(--c-border);
  font-size: 0.857rem;
  color: var(--c-muted);
  line-height: 1.3;
  cursor: pointer;
  transition: opacity .5s;
  user-select: none;
}
.post-page-date-bib:hover { opacity: .5; }
.post-page-date-bib.copied { opacity: .3; }
.post-page-date-bib::after {
  content: 'Copied!';
  position: absolute;
  inset: 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.786rem;
  color: var(--c-text);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.post-page-date-bib.copied::after { opacity: 1; }
.post-page-bib-icon {
  position: absolute;
  top: calc(50% + 3px);
  right: 0;
  transform: translateY(-50%);
  opacity: .35;
  transition: opacity .5s;
}
.post-page-date-bib:hover .post-page-bib-icon { opacity: .6; }
.post-page-date-bib.copied .post-page-bib-icon { opacity: 0; }
.post-page-cat { margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.post-page-title--mobile { display: none; }
.post-page-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--pd);
}
.post-page-meta {
  font-size: 1rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.post-page-oa-badge {
  display: inline-block;
  font-size: 0.857rem;
  font-weight: 400;
  padding: 4px 8px;
  background: var(--c-card);
  border-radius: var(--br2);
  color: var(--c-muted);
  margin-bottom: var(--pd);
}
.post-page-content {
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.4;
}
.yt-card {
  position: relative;
  padding-top: 56.25%;
  background: var(--c-card);
  border-radius: var(--br2);
  overflow: hidden;
  margin: var(--pd) 0;
}
.yt-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-insert-btn {
  font-size: 0.857rem;
  font-weight: 400;
  color: var(--c-muted);
  background: var(--c-card);
  border: none;
  border-radius: var(--br2);
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .5s;
}
.yt-insert-btn:hover { background: var(--c-hover); }
.post-page-content p {
  margin: 0 0 .7em;
}
.post-page-content hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 1em 0;
}
.post-page-content h2, .post-page-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.6em 0 .5em;
}
.post-page-content ul, .post-page-content ol {
  margin: .8em 0 .8em 1.4em;
}
.post-page-content li { margin-bottom: .3em; }
.post-page-content a { text-decoration: underline; }
.post-page-embed { margin-top: 24px; padding: 0; }
.post-page-embed iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  border: none;
  margin: 0;
  padding: 0;
}
.post-page-bib-display {
  margin-top: 24px;
  padding: 16px;
  background: var(--c-card);
  border-radius: var(--br2);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-muted);
}
.cancelled-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-card);
  border-radius: var(--br2);
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: var(--pd);
  color: var(--c-muted);
  font-weight: 400;
}

/* ─── Impressum ──────────────────────────────────────────────────────────── */
.impressum-page { padding-top: var(--pd); max-width: 45rem; }
.impressum-page h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: var(--pd); color: var(--c-text); }
.impressum-page h2 { font-size: 1.2rem; font-weight: 600; margin: 1.5em 0 .5em; color: var(--c-text); }
.impressum-page p, .impressum-page address {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  font-style: normal;
  color: var(--c-text);
}

/* ─── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  padding: 32px 0;
  color: var(--c-muted);
  font-size: 1rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  padding: var(--pd) 0;
  font-size: 1.2rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd);
  flex-wrap: wrap;
}
.site-footer a { color: var(--c-text); text-decoration: none; transition: opacity .5s; }
.site-footer a:hover { opacity: .5; }
.site-footer-left { display: flex; align-items: center; }
.site-footer-social { display: flex; align-items: center; gap: 18px; }
.site-footer-social a { display: flex; align-items: center; }
.site-footer-social svg { width: 1.3rem; height: 1.3rem; }
.site-footer-sep { color: var(--c-muted); }
.site-footer-logos { display: flex; align-items: center; gap: var(--pd); }
.footer-logo { height: 26px; width: auto; display: block; opacity: .5; transition: opacity .5s; }
.footer-logo:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   Admin styles
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-body {
  background: #efefef;
  min-height: 100vh;
  font-family: 'ABCDiatype', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: .9rem;
  color: #1a1a1a;
}
.admin-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
}
.admin-header a { color: #1a1a1a; text-decoration: none; }
.admin-logo { font-weight: 700; font-size: .875rem; color: #1a1a1a; flex-shrink: 0; }
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.admin-nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
}
.admin-nav-list a {
  font-size: .83rem;
  color: #bbb;
  padding: 6px 10px;
  border-radius: 4px;
}
.admin-nav-list a:hover { background: none; color: #666; }
.admin-nav-list a.active {
  background: none;
  color: #1a1a1a;
  font-weight: 600;
}
.admin-nav-list a.active::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #1a1a1a;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.admin-header-meta { display: flex; gap: 12px; font-size: .8rem; }
.admin-header-meta a { color: #888; }
.admin-header-meta a:hover { color: #1a1a1a; }

.admin-main {
  width: 100%;
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.admin-page-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}
.admin-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.admin-card-title {
  font-size: .75rem;
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid #e8e8e8;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #888;
  background: #fafafa;
}
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.admin-actions span { color: #888; font-size: .83rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.btn-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn-primary:hover { background: #333; opacity: 1; }
.btn-secondary { background: #fff; color: #1a1a1a; border-color: #d0d0d0; }
.btn-secondary:hover { background: #f5f5f5; opacity: 1; }
.btn-danger { background: #fff; color: #c0392b; border-color: #e8c0bd; }
.btn-danger:hover { background: #fdf0ef; opacity: 1; }
.btn-cancel { background: #fdf0ef; color: #c0392b; border-color: #e8c0bd; }
.btn-cancel:hover { background: #fae4e2; opacity: 1; }
.btn:hover { opacity: 1; }
.btn-sm { padding: 5px 10px; font-size: .78rem; }
.btn-link { background: none; border: none; color: #666; padding: 0; font-weight: 400; text-decoration: underline; }

/* table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 10px 18px;
  background: #fafafa;
  font-weight: 700;
  color: #999;
  border-bottom: 1px solid #e8e8e8;
}
.admin-table td {
  padding: 13px 18px;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
  line-height: 1.4;
}
.admin-table td a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.admin-table td a:hover { text-decoration: underline; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .actions { display: flex; gap: 8px; }

/* three-dots row menu */
.row-menu-cell { width: 40px; text-align: right; }
.row-menu { position: relative; display: inline-block; }
.row-menu-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 2px 8px; border-radius: 4px;
  color: #888; line-height: 1; letter-spacing: 1px;
}
.row-menu-btn:hover { background: #eee; color: #111; }
.row-menu-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid #ddd; border-radius: 6px;
  min-width: 150px; z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
}
.row-menu-dropdown.open { display: block; }
.row-menu-dropdown a,
.row-menu-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; font-size: .875rem;
  background: none; border: none; cursor: pointer;
  color: #111; text-decoration: none;
}
.row-menu-dropdown a:hover,
.row-menu-dropdown button:hover { background: #f5f5f5; }
.row-menu-dropdown button.danger { color: #c0392b; }
.row-menu-dropdown button.danger:hover { background: #fdf0ef; }
.row-menu-dropdown form { margin: 0; }

/* card inner wrapper for form content */
.admin-card-inner { padding: 18px 18px 4px; }

/* forms */
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #666;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
  color: #555;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: .88rem;
  font-family: inherit;
  background: #fff;
}
.form-control:focus { outline: none; border-color: #999; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: .72rem; color: #888; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* lang tabs */
.admin-card > .lang-tabs { border-radius: 0; border-left: none; border-right: none; border-bottom: none; margin-bottom: 0; }
.lang-tabs { border: 1px solid #ddd; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.lang-tab-header { display: flex; background: #f5f5f5; border-bottom: 1px solid #ddd; }
.lang-tab-btn {
  padding: 9px 20px;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #888;
}
.lang-tab-btn.active { background: #fff; border-bottom-color: #111; color: #111; }
.lang-tab-panel { padding: 20px; display: none; }
.lang-tab-panel.active { display: block; }

/* alerts */
.alert {
  padding: 11px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: .85rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

/* login */
.admin-login-wrap {
  max-width: 380px;
  margin: 100px auto;
  padding: 0 24px;
}
.admin-login-wrap h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }

/* category badges in admin */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}
.badge.event       { background: #6bbde0; color: #111; }
.badge.news        { background: #b5413a; }
.badge.publication { background: #3a4d5f; }
.badge.teaching    { background: #a89252; }

/* status badges */
.status-badge {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.status-badge.published { background: #d4edda; color: #1a6633; }
.status-badge.draft     { background: #e9ecef; color: #555; }
.status-badge.scheduled { background: #fff3cd; color: #856404; cursor: default; }

/* dashboard stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
a.stat-card:hover { background: #fafafa; border-color: #ccc; }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: #1a1a1a; }
.stat-card .stat-label { font-size: .75rem; color: #999; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-item { grid-template-columns: 1fr 12rem 9rem 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .research-project { grid-template-columns: 180px 1fr 240px; }
}
@media (max-width: 900px) {
  .post-item { grid-template-columns: 1fr 10rem 7rem 1fr; }
  .person-page { grid-template-columns: 180px 1fr; gap: 24px; }
  .post-page { grid-template-columns: 200px 1fr; gap: 0 24px; }
  .research-project { grid-template-columns: 1fr 1fr; }
  .research-title { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .container { padding: 12px 20px 24px; }
  .post-item {
    grid-template-columns: 40% 1fr;
    gap: 0 12px;
    align-items: start;
  }
  .post-thumb-wrap { order: 1; }
  .post-title-area { order: 2; }
  .post-excerpt { display: none; }
  .post-cat-col { display: none; }
  .cat-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    padding: 16px 20px 24px;
    margin: 0 -20px;
    position: sticky;
    top: var(--header-h, 88px);
    z-index: 99;
    background: var(--c-bg);
    border: 0;
  }
  .cat-filter::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    border-bottom: 1px solid var(--c-border);
  }
  .cat-filter-item { font-size: 1.2rem; }
  .cat-square { width: 0.9rem; height: 0.9rem; }
  .site-intro { padding: 12px 0 8px; max-width: 100%; font-size: 1.3rem; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .person-page { grid-template-columns: 1fr; }
  .post-page { grid-template-columns: 1fr; gap: 16px 0; padding-top: 32px; }
  .post-page-content { font-size: 1.2rem; }
  .post-page-image-col, .post-page-right { grid-column: 1; grid-row: auto; }
  .post-page-title--mobile { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1.05; margin-bottom: 16px; }
  .post-page-right .post-page-title { display: none; }
  .research-project { grid-template-columns: 1fr; padding: 16px 0; gap: 12px; }
  .research-title { padding-top: 0; }
  .research-image-mobile { display: block; margin-top: 12px; }
  .research-sidebar .research-image { display: none; }
  .research-image-mobile + .research-people { margin-top: 12px; }
  .research-image-mobile ~ .research-funding { margin-top: 12px; }
  .research-title + .research-body { margin-top: 8px; }
  .activities-head { padding-top: 16px; }
  .network-layout { grid-template-columns: 1fr; }
  .network-cards { grid-template-columns: 1fr; }
  .ppc-grid {
    display: block !important;
    position: static !important;
    height: auto !important;
    padding: 0 !important;
  }
  .ppc-grid .ppc-item {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 12px;
    align-items: start;
    padding: var(--pd) 0;
    margin: 0;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }
  .ppc-grid .ppc-item:last-child { border-bottom: none; }
  .ppc-thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
  .ppc-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 6px;
    align-self: start;
  }
  .ppc-meta {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
    align-self: start;
  }
  .ppc-heading { text-align: left; margin-top: 32px; }
  .site-nav { gap: 12px; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-bg);
    padding: 0 20px;
    margin: -12px -20px 0;
  }
  .site-header .inner {
    border-bottom: 1px solid var(--c-border);
  }
  .site-header .inner {
    flex-wrap: wrap;
    padding: 0;
    gap: 0;
    padding-top: 14px;
    padding-bottom: 0;
  }
  .site-title {
    width: 100%;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--c-border);
    font-size: 1.35rem;
    line-height: 1;
  }
  .site-header nav {
    flex: 1;
    padding: 8px 0;
    line-height: 1;
  }
  .site-header nav .site-nav {
    flex-wrap: nowrap;
    line-height: 1;
  }
  .site-header nav .site-nav a {
    line-height: 1;
  }
  .site-header .lang-sw {
    padding: 8px 0;
    line-height: 1;
  }
  .site-nav li:last-child {
    margin-left: auto;
  }
  .cat-filter--research { display: flex; flex-direction: row; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Admin responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    padding: 12px 16px;
    align-items: flex-start;
  }
  .admin-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .admin-nav-list { flex-direction: column; align-items: flex-end; gap: 0; }
  .admin-nav-list li { display: block; }
  .admin-nav-list a { font-size: .85rem; padding: 5px 0; display: block; border-radius: 4px; }
  .admin-header-meta { flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 6px; text-align: right; }
  .admin-header-right nav { width: 100%; }
  .admin-main { padding: 0 14px; margin: 14px auto; }
  .admin-page-title { font-size: 1.05rem; margin-bottom: 12px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-actions { flex-wrap: wrap; gap: 8px; }
  .lang-tab-header { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lang-tab-btn { white-space: nowrap; flex-shrink: 0; }
  .lang-tabs { overflow: visible; }
  .lang-tab-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { white-space: nowrap; }
  .admin-table td a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
  }
}
