
/* === PT Sans (local, for Serbian UI) === */
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/pt-sans/PTSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/pt-sans/PTSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/pt-sans/PTSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/pt-sans/PTSans-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* === PT Serif (local, for Serbian Cyrillic) === */
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/pt-serif/PTSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/pt-serif/PTSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/pt-serif/PTSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/pt-serif/PTSerif-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ===============================
   Additional Fonts
   =============================== */

@font-face {
  font-family: 'MrPalkerDadCond';
  src: url('../fonts/MrPalkerDad-Cond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NewspaperSansCTT';
  src: url('../fonts/NewspaperSansCTT-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ===============================
   Fonts
   =============================== */

@font-face {
  font-family: 'SchoolBook', Georgia, serif;
  src: url('../fonts/SchoolBook-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SchoolBook';
  src: url('../fonts/SchoolBook-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SchoolBook';
  src: url('../fonts/SchoolBook-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SchoolBook';
  src: url('../fonts/SchoolBook-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'MrPalkerDadCond';
  src: url('../fonts/MrPalkerDad-Cond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NewspaperSansCTT';
  src: url('../fonts/NewspaperSansCTT-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NewspaperSansCTT';
  src: url('../fonts/NewspaperSansCTT-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#fbf6ef;
  --bg-alt:#f7f1e8;
  --text:#1f2328;
  --muted:#616b75;
  --line:#e3d8cc;
  --accent:#c8342d; /* route red */
  --blue:#2e5fbf;
  --radius:10px;
  --container:1120px;
}

/* ===============================
   Typography system (SchoolBook tuned)
   =============================== */

:root{
  /* Type scale */
  --fs-00: 12px;
  --fs-0:  13px;
  --fs-1:  16px;
  --fs-2:  18px;
  --fs-3:  20px;
  --fs-4:  26px;
  --fs-5:  34px;
  --fs-6:  44px;

  /* Line-heights */
  --lh-tight: 1.15;
  --lh-snug:  1.25;
  --lh-body:  1.65;
  --lh-loose: 1.85;

  /* Tracking */
  --trk-0: 0;
  --trk-1: 0.01em;
  --trk-2: 0.02em;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size: var(--fs-1);
  line-height: var(--lh-body);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }

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

.site-header{
  position:sticky;
  top:0;
  background:color-mix(in srgb, var(--bg) 92%, white 8%);
  border-bottom:1px solid var(--line);
  z-index:20;
  backdrop-filter:saturate(140%) blur(8px);
}

.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Mobile navigation toggle */
.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.25);
  cursor:pointer;
  font-family: 'NewspaperSansCTT', system-ui, sans-serif;
}
.nav-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.nav-toggle__label{ font-size: var(--fs-0); color: var(--muted); }
.nav-toggle__bar{
  width:18px;
  height:2px;
  background: color-mix(in srgb, var(--text) 80%, var(--accent) 20%);
  display:block;
  border-radius:2px;
}
.nav-toggle__bar + .nav-toggle__bar{ margin-top:3px; }

.site-header__panel{
  display:flex;
  align-items:center;
  gap:18px;
}

.site-header.is-open .nav-toggle{ border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%); }

@media (max-width: 920px){
  .nav-toggle{ display:inline-flex; }
  .site-header__inner{ gap:12px; }
  .site-header__panel{
    position:fixed;
    left:0;
    right:0;
    top:var(--header-h, 64px);
    padding:16px 18px 18px;
    background: color-mix(in srgb, var(--bg) 92%, white 8%);
    border-bottom:1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.10);
    z-index:25;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    max-height: calc(100vh - var(--header-h, 64px));
    overflow:auto;
  }
  .site-header.is-open .site-header__panel{ display:flex; }
  .menu{ flex-direction:column; align-items:stretch; gap:8px; }
  .menu a{ padding:10px 12px; border-radius:12px; background: rgba(255,255,255,.25); }
  .site-tools{ justify-content:space-between; }
  .pochtovoe-lab-lang__name{ display:none; } /* keep flag-only to save space */
}

.custom-logo{
  max-height:var(--partners-logo-h, 56px);
  width:auto;
}

.menu{ list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
.menu a{ padding:6px 8px; border-radius:8px; }
.menu a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.site-tools{ display:flex; align-items:center; gap:12px; }

/* Social icons */
.social__list{ list-style:none; margin:0; padding:0; display:flex; gap:8px; align-items:center; }
.social__link{
  width:34px; height:34px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.25);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.social__link:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  background: rgba(255,255,255,.4);
  text-decoration:none;
}
.social__link svg{ width:18px; height:18px; fill: color-mix(in srgb, var(--text) 80%, var(--accent) 20%); }

.pochtovoe-lab-lang__list{ list-style:none; margin:0; padding:0; display:flex; gap:10px; align-items:center; }
.pochtovoe-lab-lang__link{ display:flex; gap:6px; align-items:center; padding:6px 8px; border:1px solid transparent; border-radius:999px; }
.pochtovoe-lab-lang__item.is-current .pochtovoe-lab-lang__link{ border-color:var(--line); background:rgba(255,255,255,.35); }
.pochtovoe-lab-lang__flag{ border-radius:2px; display:block; }
.pochtovoe-lab-lang__name{ font-size:14px; color:var(--muted); }

.site-main{ padding-bottom:60px; }

.hero{
  padding:70px 0 40px;
}
.hero__inner{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.hero__logo .custom-logo{ max-height: var(--hero-logo-h, 450px); height:auto; width:auto; }
@media (max-width: 480px){
  .hero__logo .custom-logo{ max-height: min(var(--hero-logo-h, 450px), 260px); }
}
@media (max-width: 360px){
  .hero__logo .custom-logo{ max-height: min(var(--hero-logo-h, 450px), 220px); }
}

.hero__rule{
  width:min(520px, 92vw);
  height:2px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top:6px;
}
.hero__subtitle{
  font-size:20px;
  color:var(--muted);
  margin-top:6px;
}
.hero__lead{
  max-width:760px;
  margin:0;
  font-size:20px;
  color:color-mix(in srgb, var(--text) 72%, var(--muted) 28%);
}
.hero__actions{
  display:flex;
  gap:14px;
  margin-top:18px;
  flex-wrap:wrap;
  justify-content:center;
}

.btn{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.35);
  transition:transform .12s ease, border-color .12s ease, background .12s ease;
  font-weight:600;
}
.btn:hover{ transform:translateY(-1px); border-color:color-mix(in srgb, var(--accent) 35%, var(--line) 65%); text-decoration:none; }
.btn--primary span, .btn--ghost span, .btn--accent span{ color:var(--accent); }

.btn--accent{
  border-color:color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  background:color-mix(in srgb, var(--bg) 70%, white 30%);
}

.section{ padding:54px 0; border-top:1px solid var(--line); }
.section--alt{ background:var(--bg-alt); }

.section__head{ margin-bottom:18px; }
.section__head--split{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
}


.grid{ display:grid; gap:18px; }
.grid--3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.grid--cards{ grid-template-columns:repeat(3, minmax(0, 1fr)); }

/* Vertical list container (used on blog/search results) */
.stack{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.card{
  background:rgba(255,255,255,.42);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}
.card--station{ position:relative; padding-top:22px; }
.station-dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--accent);
  position:absolute; top:18px; left:18px;
}
.card__title a{ text-decoration:none; }
.card__title a:hover{ text-decoration:underline; text-decoration-color:var(--accent); }
.card__excerpt{ color:var(--muted); }

.link{ color:var(--muted); text-decoration:none; }
.link:hover{ color:var(--text); text-decoration:underline; text-decoration-color:var(--accent); }

.timeline{
  display:flex;
  flex-direction:column;
  gap:16px;
  position:relative;
  padding-left:22px;
}
.timeline:before{
  content:"";
  position:absolute;
  left:8px;
  top:0;
  bottom:0;
  width:2px;
  background:var(--line);
}
.timeline__item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.timeline__dot{
  width:10px; height:10px;
  border-radius:50%;
  background:var(--accent);
  margin-top:6px;
  flex:0 0 auto;
}
.timeline__title a{ font-weight:650; text-decoration:none; }
.timeline__title a:hover{ text-decoration:underline; text-decoration-color:var(--accent); }

.meta{ font-size:13px; color:var(--muted); }

.content{ padding:44px 0; }
.prose h1{ font-size:38px; letter-spacing:-0.03em; margin:0 0 10px; }
.prose p{ max-width:72ch; }

.figure img{ width:100%; height:auto; border-radius:16px; border:1px solid var(--line); }

.cta{ text-align:center; }
.cta__inner{ display:flex; flex-direction:column; align-items:center; gap:14px; }

.site-footer{
  border-top:1px solid var(--line);
  background:var(--bg-alt);
  padding:34px 0;
}
.site-footer__inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1.2fr .8fr;
  gap:18px;
}
.site-footer__title{ font-weight:700; margin-bottom:8px; }
.site-footer__desc{ color:var(--muted); }

.site-footer__title,
.site-footer__desc{
  font-family: 'SchoolBook', 'Noto Serif', Georgia, serif !important;
}


.site-footer__col--widgets{
  /* Footer widgets (NOT the menu): keep typography consistent with headings */
  font-family: 'MrPalkerDadCond', system-ui, sans-serif;
}
.site-footer__col--widgets *{
  font-family: inherit;
}

.site-footer__widgets{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.footer-widget{ margin:0; }
.footer-widget__title{ font-weight:700; margin:0 0 8px; }
.footer-widget ul{ list-style:none; padding:0; margin:0; }
.footer-widget li{ margin:0 0 6px; }
.footer-widget a{ color:var(--text); text-decoration:none; }
.footer-widget a:hover{ text-decoration:underline; text-underline-offset:2px; }

.muted{ color:var(--muted); }


/* Headings scale */
.prose h1, .h1{ font-size: var(--fs-6); line-height: var(--lh-tight); margin: 0 0 14px; letter-spacing: var(--trk-1); }
.prose h2, .h2{ font-size: var(--fs-5); line-height: var(--lh-tight); margin: 0 0 12px; letter-spacing: var(--trk-1); }
.prose h3, .h3{ font-size: var(--fs-4); line-height: var(--lh-snug);  margin: 0 0 10px; letter-spacing: var(--trk-0); }
.prose h4, .h4{ font-size: var(--fs-3); line-height: var(--lh-snug);  margin: 0 0 8px;  letter-spacing: var(--trk-0); }
.prose h5, .h5{ font-size: var(--fs-2); line-height: var(--lh-snug);  margin: 0 0 6px;  letter-spacing: var(--trk-0); }
.prose h6, .h6{ font-size: var(--fs-1); line-height: var(--lh-snug);  margin: 0 0 6px;  letter-spacing: var(--trk-2); text-transform: uppercase; }

/* Body text rhythm */
.prose p{ margin: 0 0 14px; max-width: 72ch; }
.prose ul, .prose ol{ margin: 0 0 14px 1.1em; padding:0; max-width: 72ch; }
.prose li{ margin: 0 0 6px; }
.prose a{ text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong{ font-weight: 700; }

/* Quotes */
.prose blockquote{
  margin: 18px 0;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.35);
  border-radius: 14px;
  max-width: 72ch;
}
.prose blockquote p{ margin: 0; line-height: var(--lh-loose); }
.prose cite{
  display:block;
  margin-top: 10px;
  font-style: normal;
  color: var(--muted);
  font-size: var(--fs-0);
}

/* Captions */
.figure figcaption,
.wp-caption-text,
.prose .caption,
.caption{
  margin-top: 8px;
  font-size: var(--fs-0);
  line-height: 1.5;
  color: var(--muted);
  font-family: 'NewspaperSansCTT', 'Inter', sans-serif;
}



/* Serbian Cyrillic tuning
   - Cyrillic often appears visually denser: reduce tracking
   - Provide robust fallbacks for Cyrillic coverage if custom fonts miss glyphs
*/
html[lang^="sr"] body{
  font-feature-settings: "kern" 1, "liga" 1;
}
html[lang^="sr"] .hero__logo,
html[lang^="sr"] .hero__title,
html[lang^="sr"] .h1,
html[lang^="sr"] .h2,
html[lang^="sr"] .h3,
html[lang^="sr"] .h4,
html[lang^="sr"] .h5,
html[lang^="sr"] .h6{
  letter-spacing: 0; /* avoid over-tracking Cyrillic */
}

/* Fallback stacks: if your paid fonts lack SR glyphs, these cover Cyrillic well */
html[lang^="sr"] body{
  font-family: 'SchoolBook', 'Noto Serif', Georgia, serif;
}
html[lang^="sr"] .site-header,
html[lang^="sr"] .menu,
html[lang^="sr"] .pochtovoe-lab-lang__name,
html[lang^="sr"] .meta{
  font-family: 'NewspaperSansCTT', 'Noto Sans', system-ui, sans-serif;
}



/* ===============================
   Language-specific typography
   =============================== */

/* Cyrillic (RU, SR) */
html[lang^="ru"] body,
html[lang^="sr"] body {
  font-family: 'SchoolBook', 'Noto Serif', Georgia, serif;
}

/* Latin (EN, PT-BR) */
html[lang^="en"] body,
html[lang^="pt"] body {
  font-family: 'SchoolBook', 'Georgia', serif;
}

/* UI / Navigation */
.site-header,
.menu,
.meta,
.pochtovoe-lab-lang__name {
  font-family: 'NewspaperSansCTT', system-ui, sans-serif;
}

/* Display / Hero */
.hero__logo,
.hero__title,
.h1, .h2, .h3 {
  font-family: 'MrPalkerDadCond', system-ui, sans-serif;
}



/* ===============================
   Long words / overflow handling
   =============================== */

.prose,
.card,
.timeline__title,
.card__title,
.h1, .h2, .h3, .h4, .h5, .h6 {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}



/* Direction card optional image */
.card__media{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}



/* Language dropdown (Polylang) */
.lang-dd{ position: relative; }
.lang-dd[open] .lang-dd__summary{ border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%); }
.lang-dd__summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.25);
  user-select:none;
  font-family: 'NewspaperSansCTT', system-ui, sans-serif;
}
.lang-dd__summary::-webkit-details-marker{ display:none; }
.lang-dd__panel{
  position:absolute;
  right:0;
  margin-top:8px;
  min-width: 180px;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  padding:8px;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.lang-dd__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.lang-dd__link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  color: var(--text);
  text-decoration:none;
  white-space: normal;
  overflow-wrap:anywhere;
}
.lang-dd__link:hover{ background: rgba(0,0,0,.04); }
.lang-dd__item.is-current .lang-dd__link{ background: rgba(0,0,0,.06); }
.lang-dd__flag{ width:18px; height:12px; border-radius:3px; object-fit:cover; }
.lang-dd__name{ font-size: var(--fs-0); line-height: 1.2; }


@media (max-width: 920px){
  .grid--3, .grid--cards{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .site-footer__inner{ grid-template-columns:1fr; }
  .site-header__inner{ flex-wrap:wrap; }
}
@media (max-width: 560px){
  .site-footer__widgets{ grid-template-columns:1fr; }

  :root{
    --fs-2: 17px;
    --fs-3: 19px;
    --fs-4: 22px;
    --fs-5: 28px;
    --fs-6: 36px;
  }
  .container{ padding:0 16px; }
  .grid--3, .grid--cards{ grid-template-columns:1fr; }
  .hero{ padding:46px 0 26px; }
  .hero__lead{ font-size:18px; }
  .h2{ font-size:24px; }
  .hero__actions{ gap:10px; }
  .btn{ width:100%; }
}


.site-header,
.menu,
.pochtovoe-lab-lang__name,
.meta {
  font-family: 'NewspaperSansCTT', 'Inter', sans-serif;
}

.hero__logo,
.hero__title,
.h1,
.h2,
.h3 {
  font-family: 'MrPalkerDadCond', 'Inter Tight', sans-serif;
  letter-spacing: 0.01em;
}


.menu--footer{ flex-direction:column; align-items:flex-start; gap:10px; }
.menu--footer a{ white-space:normal; overflow-wrap:anywhere; word-break:break-word; hyphens:auto; }


.site-footer__bar{ margin-top:18px; border-top:1px solid var(--line); padding:16px 0; }
.site-footer__copyright{ color:var(--muted); font-size: var(--fs-0); font-family: 'NewspaperSansCTT', system-ui, sans-serif; overflow-wrap:anywhere; }

/* ===============================
   Direction switcher (Education / Research / Volunteering)
   =============================== */

.dir-switcher{ margin: 22px 0 18px; }
.dir-switcher__list{ display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:0; list-style:none; }
.dir-switcher__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 999px;
  text-decoration:none;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 85%, #fff 15%);
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}
.dir-switcher__btn:hover{ transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%); }
.dir-switcher__btn.is-active{
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg) 86%);
}

@media (max-width: 560px){
  .dir-switcher__list{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  .dir-switcher__btn{ white-space:nowrap; flex:0 0 auto; }
}

.dir-panels{ margin-top: 16px; }
.dir-panel{ display:none; }
.dir-panel.is-active{ display:block; }
.dir-panel__head{ margin-bottom: 14px; }

/* ===============================
   Header search (drawer)
   =============================== */

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.search-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.search-toggle:hover{
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%);
}
.search-toggle__icon{ display:block; }

.search-drawer{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.search-drawer.is-open{ display:block; }
.search-drawer__backdrop{
  position:absolute;
  inset:0;
  background: color-mix(in srgb, #000 35%, transparent 65%);
}
.search-drawer__panel{
  position:relative;
  margin: 10vh auto 0;
  max-width: min(720px, calc(100% - 28px));
  background: var(--bg);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.search-drawer__form{ display:flex; gap:10px; align-items:center; }
.search-drawer__input{
  flex:1;
  min-width: 0;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}
.search-drawer__submit{
  padding: 12px 14px;
  border:1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor:pointer;
}
.search-drawer__submit:hover{ border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%); }
.search-drawer__close{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  line-height: 1;
  font-size: 22px;
}
.search-drawer__close:hover{ border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%); }


/* ===============================
   Project external links
   =============================== */

.ext-links{ margin-top: 26px; }
.ext-links__list{ list-style:none; padding:0; margin: 10px 0 0; display:flex; flex-direction:column; gap:6px; }
.ext-links__item{ padding: 6px 0; border-bottom: 1px solid var(--line); }
.ext-links__a{ display:flex; align-items:baseline; gap:14px; text-decoration:none; color: var(--text); }
.ext-links__a:hover .ext-links__label{ text-decoration: underline; text-underline-offset: 3px; }
.ext-links__label{ font-weight: 600; }
.ext-links__arrow{ opacity: .55; white-space:nowrap; margin-left:auto; }


/* Homepage mode: Image (cover / “obraz”) */
.hero--image{
  position:relative;
  padding:0;
  min-height: calc(var(--hero-min-vh, 100) * 1vh);
  display:flex;
  align-items:flex-end;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.62) 100%);
  pointer-events:none;
}
.hero__inner--image{
  position:relative;
  z-index:1;
  text-align:left;
  align-items:flex-start;
  padding: clamp(24px, 6vw, 64px) 0;
  gap:12px;
}
.hero__subtitle--image{
  color: rgba(255,255,255,.86);
}
.hero__h1{
  margin:0;
  font-size: clamp(34px, 5vw, 64px);
  line-height:1.05;
  letter-spacing:-0.02em;
  color:#fff;
}
.hero__lead--image{
  color: rgba(255,255,255,.86);
  max-width: 52ch;
}
.site-title--ghost{
  width:1px;
  height:1px;
  overflow:hidden;
  display:block;
}

/* Optional: make header sit nicer on image mode */
.site-header--home-image{
  backdrop-filter: saturate(1.2) blur(6px);
}


/* Partners section */
.partners .section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
}

.partners__cta{
  text-decoration:none;
  border-bottom:1px solid transparent;
  font-size:14px;
  color:var(--text);
  opacity:.85;
  white-space:nowrap;
}
.partners__cta:hover{ border-bottom-color: currentColor; opacity:1; }

.partners__grid{
  display:grid;
  grid-template-columns:repeat(var(--partners-cols, 6), minmax(0, 1fr));
  gap:18px;
  align-items:center;
}
@media (max-width: 980px){
  .partners__grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .partners__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
.partners__item{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(var(--partners-logo-h, 56px) + 28px);
}
.partners__link, .partners__nolink{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:calc(var(--partners-logo-h, 56px) + 28px);
  padding:10px;
  border-radius:10px;
  position:relative;
}

.partners__hover{
  position:absolute;
  left:50%;
  top:100%;
  transform:translate(-50%, 8px);
  max-width: 220px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-align:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
}

.partners__link:hover .partners__hover,
.partners__link:focus .partners__hover,
.partners__link:focus-within .partners__hover,
.partners__nolink:hover .partners__hover,
.partners__nolink:focus-within .partners__hover{
  opacity:1;
  transform:translate(-50%, 4px);
}
.partners__logo{
  height:var(--partners-logo-h, 56px);
  width:auto;
  max-width:100%;
  object-fit:contain;
  filter:grayscale(1) contrast(.95) opacity(.72);
  transition:filter .18s ease, opacity .18s ease;
}
.partners__link:hover .partners__logo,
.partners__link:focus .partners__logo{
  filter:grayscale(0) contrast(1) opacity(1);
}
.partners__text{
  font-size:14px;
  color:var(--muted);
  text-align:center;
}

/* Partners carousel (progressive enhancement)
   - Desktop: 6 logos visible + arrows
   - Mobile: fixed 2x2 (4 logos) + arrows, page-by-page
   Falls back to the simple grid when JS is disabled.
*/
.js .partners--carousel .partners__carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.js .partners--carousel .partners__viewport{
  flex:1 1 auto;
  overflow:hidden;
}

.js .partners--carousel .partners__track{
  display:flex;
  will-change: transform;
  transition: transform .25s ease;
}

.js .partners--carousel .partners__page{
  flex:0 0 100%;
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:18px;
  align-items:center;
}

@media (max-width: 980px){
  .js .partners--carousel .partners__page{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  /* Hard 2x2 on mobile */
  .js .partners--carousel .partners__page{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.js .partners--carousel .partners__nav{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.js .partners--carousel .partners__nav[disabled]{
  opacity:.35;
  cursor:default;
}

.js .partners--carousel .partners__nav svg{ width:18px; height:18px; display:block; }


/* Directions: убрать красные точки в карточках */
.dir-panel .content ul{list-style:none;padding-left:0}
.dir-panel .content li{padding-left:0}
.dir-panel .content li::before{content:none !important}


/* Polylang: hide menu language switcher in primary menu (use header dropdown instead) */
.menu--primary .lang-item,
.menu--primary .menu-item-language {
  display: none !important;
}

/* Ensure Polylang flag images inside dropdown look consistent */
.lang-dd__flag img {
  display: block;
  width: 18px;
  height: 12px;
}


/* Directions cards: remove list markers (red dots) */
.dir-panel ul,
.dir-card ul,
.directions ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.dir-panel li::before,
.dir-card li::before,
.directions li::before {
  content: none !important;
}


/* Directions cards: force-remove any custom red bullets */
.dir-panel li,
.dir-card li,
.directions li {
  list-style: none !important;
}

.dir-panel li::before,
.dir-panel li::marker,
.dir-card li::before,
.dir-card li::marker,
.directions li::before,
.directions li::marker {
  content: none !important;
  display: none !important;
}


/* Directions cards: remove decorative red dot before title */
.dir-panel h2::before,
.dir-panel h3::before,
.dir-card h2::before,
.dir-card h3::before,
.directions h2::before,
.directions h3::before {
  content: none !important;
  display: none !important;
}


/* Directions cards: remove station red dot element */
.card--station .station-dot {
  display: none !important;
}


/* Results section */
.results__item,
.results__card {
  position: relative;
}

.results__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.results__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.results__metrics {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.results__metric .results__n {
  font-size: 28px;
  font-weight: 700;
}

.results__sep {
  opacity: .45;
  padding: 0 2px;
}

.results__caption {
  margin: 8px 0 0;
  opacity: .85;
}

.results--page .results__card {
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
}


/* Results section (enhanced) */
.results .grid {
  gap: 18px;
}

.results__item,
.results__card {
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
}

.section--alt.results .results__item {
  background: rgba(255,255,255,.85);
}

.results__item:hover,
.results__card:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

.results__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.results__icon img {
  width: 28px;
  height: 28px;
}

.results__metrics {
  margin: 2px 0 0;
}

.results__metric {
  white-space: nowrap;
}

.results__metric .results__l {
  font-size: 14px;
  font-weight: 500;
  opacity: .78;
}

.results__metric .results__n {
  letter-spacing: -0.02em;
}

.results__caption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.results a.link {
  display: inline-flex;
  margin-top: 10px;
}

.results--page .section__head .h2 {
  margin-bottom: 8px;
}

.results--page .results__desc p {
  margin: 0 0 10px;
}

@media (max-width: 780px) {
  /* Mobile: keep metrics in a strict 2×N grid so numbers align */
  .results__metrics {
    font-size: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 16px;
    align-items: start;
  }

  .results__metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
  }

  .results__metric .results__n {
    font-size: 24px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
  }

  .results__metric .results__l {
    margin-top: 6px;
    line-height: 1.25;
  }

  .results__item,
  .results__card {
    padding: 16px;
    border-radius: 14px;
  }
}

/* Results cards: pin 'Подробнее' to bottom-left in metrics cards */
.results__item--metrics {
  display: flex;
  flex-direction: column;
}

.results__item--metrics a.link {
  margin-top: auto;
  align-self: flex-start;
}

/* End Results section (enhanced) */


/* Results section (enhanced) */
.results .grid {
  gap: 18px;
}

.results__item,
.results__card {
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
}

.section--alt.results .results__item {
  background: rgba(255,255,255,.85);
}

.results__item:hover,
.results__card:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Horizontal header: icon + metrics */
.results__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.results__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.results__icon img {
  width: 28px;
  height: 28px;
}

.results__metrics {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.results__metric {
  white-space: nowrap;
}

.results__metric .results__l {
  font-size: 14px;
  font-weight: 500;
  opacity: .78;
}

.results__metric .results__n {
  letter-spacing: -0.02em;
}

.results__caption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.results a.link {
  display: inline-flex;
  margin-top: 10px;
}

@media (max-width: 780px) {
  .results__item,
  .results__card {
    padding: 16px;
    border-radius: 14px;
  }
  .results__head {
    gap: 12px;
  }
}
/* End Results section (enhanced) */
/* Results: very narrow screens */
@media (max-width: 420px) {
  .results__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .results__metrics {
    gap: 6px;
  }
  .results__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-basis: 44px;
  }
  .results__icon img {
    width: 26px;
    height: 26px;
  }
}

/* ===============================
   Directions (template-direction.php)
   Variant 1: Outline
   Variant 2: Sidebar navigation
   =============================== */

.dir-layout{ margin-top: 18px; }

/* Variant 1 — Outline */
.dir-toc{ margin: 18px 0 22px; }
.dir-toc__list{ list-style: none; padding: 0; margin: 0; display:flex; flex-wrap:wrap; gap: 10px 18px; }
.dir-toc__link{ text-decoration: none; border-bottom: 1px solid transparent; }
.dir-toc__link:hover{ border-bottom-color: currentColor; }

.dir-outline__section{ padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.dir-outline__title{ margin: 0; }
.dir-outline__head .meta{ margin-top: 6px; }

/* Variant 2 — Sidebar */
.dir-layout--sidebar{ display:grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items:start; }
@media (max-width: 900px){
  .dir-layout--sidebar{ grid-template-columns: 1fr; }
}

.dir-nav__list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 10px; }
.dir-nav__link{ text-decoration:none; display:inline; border-bottom: 1px solid transparent; }
.dir-nav__link:hover{ border-bottom-color: currentColor; }
.dir-nav__link.is-active{ border-bottom-color: currentColor; font-weight: 600; }

.dir-layout--sidebar .dir-panels{ margin-top: 0; }
.dir-layout--sidebar .dir-panel{ display:none; }
.dir-layout--sidebar .dir-panel.is-active{ display:block; }

/* ===============================
   Table of contents (H2)
   =============================== */

.toc{ margin: 18px 0 20px; padding: 0; }
.toc__title{ font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.65; margin-bottom: 8px; }
.toc__list{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap: 8px 18px; }
.toc__link{ text-decoration:none; border-bottom: 1px solid transparent; }
.toc__link:hover{ border-bottom-color: currentColor; }

.article-with-toc{ display:block; }
@media (min-width: 960px){
  .article-with-toc{ display:grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items:start; }
  .article-with-toc .toc{ margin-top: 6px; }
}
.article-with-toc__content{ min-width: 0; }

/* ===============================
   Related note (small footnote-like block)
   =============================== */

.related-note{ margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.related-note__title{ font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.related-note__list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 6px; }
.related-note__link{ text-decoration:none; border-bottom: 1px solid transparent; }
.related-note__link:hover{ border-bottom-color: currentColor; }

/* ===============================
   Team (About — Team)
   =============================== */

.team-list{ margin-top: 26px; }
.team-group{ margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.team-group:first-child{ margin-top: 0; padding-top: 0; border-top: 0; }
.team-group__title{ margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.team-member{ margin: 0 0 18px; }
.team-member:last-child{ margin-bottom: 0; }
.team-member__name{ margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.team-member__role{ margin: 0 0 8px; font-size: 14px; opacity: .75; }
.team-member__bio{ margin-top: 0; }


/* === Serbian (Cyrillic) overrides === */
html[lang^="sr"] {
  font-synthesis: none;
}

html[lang^="sr"] body {
  font-family: 'PT Serif', serif;
}


/* Serbian UI & headings */
html[lang^="sr"] .site-header,
html[lang^="sr"] .menu,
html[lang^="sr"] .pochtovoe-lab-lang__name,
html[lang^="sr"] .meta,
html[lang^="sr"] .footer,
html[lang^="sr"] .hero__title,
html[lang^="sr"] .h1,
html[lang^="sr"] .h2,
html[lang^="sr"] .h3 {
  font-family: 'PT Sans', sans-serif;
}

/* Keep decorative logo */
html[lang^="sr"] .hero__logo {
  font-family: 'MrPalkerDadCond', sans-serif;
}




/* Recognition + Media blocks */
.results__item--list{
  grid-column: span 1;
}

.results__h3{
  margin:0 0 8px 0;
  font-size:18px;
}

.results__links{
  list-style:none;
  padding:0;
  margin:8px 0 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.results__links a{
  text-decoration:none;
}

/* Second row: center 2 blocks */
.results__item--list:nth-of-type(4){
  grid-column: 1 / span 2;
}
.results__item--list:nth-of-type(5){
  grid-column: 2 / span 2;
}

@media (max-width: 1024px){
  .results__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results__item--list:nth-of-type(4),
  .results__item--list:nth-of-type(5){
    grid-column: span 1;
  }
}

@media (max-width: 640px){
  .results__grid{
    grid-template-columns: 1fr;
  }
}


/* 2nd row blocks */
.results__item--list:nth-of-type(4){ grid-column: 1 / span 2; }
.results__item--list:nth-of-type(5){ grid-column: 2 / span 2; }

.results__h3{ margin:0 0 10px 0; font-size:18px; }

/* Logos grid inside Recognition / Media */
.results__logos{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
}
.results__logo{
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  text-align:center;
}
.results__logo-img{
  width:100%;
  aspect-ratio: 1 / 1;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.results__logo-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  /* Like Partners: monochrome by default, original on hover */
  filter:grayscale(1) contrast(.95) opacity(.72);
  transition:filter .18s ease, opacity .18s ease;
}

.results__logo:hover .results__logo-img img,
.results__logo:focus .results__logo-img img,
.results__logo:focus-within .results__logo-img img{
  filter:grayscale(0) contrast(1) opacity(1);
}
.results__logo-txt{
  font-size:12px;
  line-height:1.2;
  opacity:.95;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(12px * 1.2 * 2);
}

.results__empty{ margin:10px 0 14px; opacity:.8; }

@media (max-width: 1100px){
  .results__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results__item--list:nth-of-type(4),
  .results__item--list:nth-of-type(5){ grid-column: span 1; }
  .results__logos{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .results__grid{ grid-template-columns: 1fr; }
  .results__logos{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* First row: 3 metric blocks */
.results__item:nth-of-type(1){ grid-column: span 1; }
.results__item:nth-of-type(2){ grid-column: span 1; }
.results__item:nth-of-type(3){ grid-column: span 1; }

/* Make metrics visually equal width by spanning 1 column but padding handles balance */

/* Second row: Recognition + Media side by side */
.results__item:nth-of-type(4){ grid-column: span 2; }
.results__item:nth-of-type(5){ grid-column: span 2; }

.results__item{
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:18px;
}

.results__item--metrics .results__h3{ margin:0 0 10px 0; font-size:18px; }
.results__item--metrics .results__head{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.results__tiles{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-left:auto;
}

/* Logos grid */
.results__logos{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 1100px){
  .results__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results__item:nth-of-type(1),
  .results__item:nth-of-type(2),
  .results__item:nth-of-type(3),
  .results__item:nth-of-type(4),
  .results__item:nth-of-type(5){ grid-column: span 1; }
  .results__logos{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px){
  .results__grid{ grid-template-columns: 1fr; }
  .results__logos{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* === Home Results layout (3 top + 2 bottom) === */
.results__grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:24px;
}

/* Top row: 3 metric blocks */
.results__item:nth-of-type(1),
.results__item:nth-of-type(2),
.results__item:nth-of-type(3){
  grid-column: span 2;
}

/* Bottom row: Recognition + Media */
.results__item:nth-of-type(4),
.results__item:nth-of-type(5){
  grid-column: span 3;
}

.results__item{
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
}

/* Keep "Подробнее" links aligned to the bottom-left inside each Results card */
.results__item > .link{
  margin-top:auto;
  align-self:flex-start;
}

.results__item--metrics .results__h3{
  margin:0 0 10px 0;
  font-size:18px;
}
.results__item--metrics .results__head{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.results__tiles{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-left:auto;
}

/* Logos grid inside bottom blocks */
.results__logos{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
}

/* Tablet */
@media (max-width: 1100px){
  .results__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results__item:nth-of-type(1),
  .results__item:nth-of-type(2),
  .results__item:nth-of-type(3),
  .results__item:nth-of-type(4),
  .results__item:nth-of-type(5){
    grid-column: span 1;
  }
  .results__logos{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 680px){
  .results__grid{
    grid-template-columns: 1fr;
  }
  .results__logos{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Results section — visual hierarchy (variant 1) */
.results__metric .results__n{
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.results__metric .results__l{
  font-size: 13px;
  font-weight: 500;
  opacity: .68;
}

.results__caption{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .72;
}

.results__desc{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .78;
}

.results__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
  flex: 0 0 44px;
}

.results__icon img{
  width: 24px;
  height: 24px;
}

@media (max-width: 780px){
  .results__metric .results__n{ font-size: 30px; }
  .results__caption{ font-size: 13.5px; }
}
/* End Results section — visual hierarchy (variant 1) */


/* ------------------------------------------------------------
   Results (top 3 metric cards): align typography with theme
   Digits = hero, caption = calmer, description = lighter
------------------------------------------------------------ */
.results .results__item--metrics:nth-of-type(-n+3){
  background: rgba(255,255,255,.42);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.results .results__item--metrics:nth-of-type(-n+3) .results__metrics{
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.results .results__item--metrics:nth-of-type(-n+3) .results__metric .results__n{
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.results .results__item--metrics:nth-of-type(-n+3) .results__metric .results__l{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: .9;
}

.results .results__item--metrics:nth-of-type(-n+3) .results__caption{
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  opacity: .75;
}

/* Keep separator subtle */
.results .results__item--metrics:nth-of-type(-n+3) .results__sep{
  opacity: .35;
}

@media (max-width: 780px){
  .results .results__item--metrics:nth-of-type(-n+3) .results__metric .results__n{
    font-size: 30px;
  }
}


/* =====================================================================
   Results: unify card rhythm + bring bottom cards to base template style
   (v1.8.97)
   Requirements:
   - No HTML changes (CSS only)
   - Bottom cards (4–5): remove top-card accent; base card style
   - Unified vertical rhythm for all cards
   - Use :nth-child selectors and theme vars (var(--text), var(--muted), var(--line))
   - "Подробнее" pinned bottom-left via flex
   ===================================================================== */

.results .results__grid > .results__item{
  /* Base card style (template-like) */
  background: rgba(255,255,255,.42);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;

  /* Unified structure */
  display: flex;
  flex-direction: column;
  color: var(--text);
}

/* Disable old hover accent/shadows so cards read as one block */
.results .results__grid > .results__item:hover{
  box-shadow: none;
  transform: none;
}

/* Unified hierarchy: title / content / button */
.results .results__grid > .results__item .results__h3{
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.results .results__grid > .results__item .results__head{
  margin: 0 0 12px 0;
}

.results .results__grid > .results__item .results__caption{
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  opacity: .85;
}

/* Bottom cards (4–5): ensure they stay strictly "base" (no accent leakage) */
.results .results__grid > .results__item:nth-child(n+4){
  background: rgba(255,255,255,.42);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* If any legacy styles add shadows/strong borders to bottom cards, neutralize them */
.results .results__grid > .results__item:nth-child(n+4),
.results .results__grid > .results__item:nth-child(n+4):hover{
  box-shadow: none !important;
  transform: none !important;
}

/* Pin "Подробнее" bottom-left in ALL cards */
.results .results__grid > .results__item > .link,
.results .results__grid > .results__item a.link{
  margin-top: auto;
  align-self: flex-start;
}

/* Metrics tiles: make number/label rhythm explicit and consistent */
.results .results__tiles{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-left: 0;
  justify-items: start;
}

.results .results__tile{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.results .results__tile-n{
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.results .results__tile-l{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: .9;
}

/* Keep top cards accent, but only by level (not structure) */
.results .results__grid > .results__item:nth-child(-n+3){
  background: rgba(255,255,255,.58);
}

/* Home Results grid layout: prefer nth-child (stable to class changes) */
.results__grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.results .results__grid > .results__item:nth-child(-n+3){
  grid-column: span 2;
}

.results .results__grid > .results__item:nth-child(n+4){
  grid-column: span 3;
}

/* Logos grid spacing rhythm (bottom cards) */
.results .results__logos{
  margin: 0 0 12px 0;
}

@media (max-width: 1100px){
  .results__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results .results__grid > .results__item{
    grid-column: span 1;
  }
  .results .results__logos{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px){
  .results__grid{
    grid-template-columns: 1fr;
  }
  .results .results__logos{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px){
  .results .results__tile-n{ font-size: 30px; }
}

/* ===================================================================== */
/* About — Tabs (like Initiatives)                                        */
/* ===================================================================== */

.about-layout{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 900px){
  .about-layout{ grid-template-columns: 1fr; }
}

.about-nav{ position: sticky; top: calc(var(--header-h, 72px) + 18px); }
@media (max-width: 900px){
  .about-nav{ position: static; }
}

.about-nav__list{ list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.about-nav__item + .about-nav__item{ border-top: 1px solid var(--line); }

.about-nav__link{
  display: block;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.about-nav__link:hover{ text-decoration: underline; text-underline-offset: 2px; }
.about-nav__link.is-active{ background: rgba(0,0,0,.04); font-weight: 600; }

.about-panel{ display: none; }
.about-panel.is-active{ display: block; }
.about-panel__head{ margin-bottom: 12px; }
.about-panel__title{ margin: 0; font-size: clamp(22px, 3vw, 30px); }

/* Team inside panels (cards grid like archives) */
.about-team-grid{ margin-top: 10px; }
.about-team-grid .card--person{ text-align: center; }
.about-team-grid .card__avatar{
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
  display: grid;
  place-items: center;
}
.about-team-grid .card__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-team-grid .card__avatar-link{ display: block; width: 100%; height: 100%; }
.about-team-grid .card__avatar-placeholder{
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.04);
}
.about-team-grid .card--person .card__title{ margin-bottom: 6px; }
.about-team-grid .card--person .card__title a{ text-decoration: none; }
.about-team-grid .card--person .card__title a:hover{ text-decoration: underline; text-underline-offset: 2px; }
.about-team-grid .card--person .card__role{ margin-top: 0; font-size: 14px; line-height: 1.3; }
.card--person .card__excerpt{ margin-top: 10px; }

@media (max-width: 640px){
  .about-team-grid .card__avatar{ width: 84px; height: 84px; margin-bottom: 10px; }
}

/* Achievements: grid of thumbnail + title, styled like base cards */
.about-achievements-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 1024px){
  .about-achievements-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 640px){
  .about-achievements-grid{ grid-template-columns: 1fr; gap: 12px; }
}

.about-achievement-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-achievement-card__media{ display: block; }
.about-achievement-card__media img{ display: block; width: 100%; height: 180px; object-fit: cover; }
.about-achievement-card__placeholder{ display: block; width: 100%; height: 180px; background: rgba(0,0,0,.05); }

.about-achievement-card__title{
  display: block;
  padding: 12px 14px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

@media (hover:hover){
  .about-achievement-card:hover{ border-color: var(--text); }
  .about-achievement-card:hover .about-achievement-card__title{ text-decoration: underline; text-underline-offset: 2px; }
}

/* Media: list */
.about-media-list{ margin-top: 10px; border-top: 1px solid var(--line); }
.about-media-item{ padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-media-item__title{ margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.about-media-item__title a{ color: var(--text); text-decoration: none; }
.about-media-item__title a:hover{ text-decoration: underline; text-underline-offset: 2px; }


/* ==========================================================
   Results (Home): Mobile metrics alignment (force centered)
   Fix: some cards used left-aligned metric columns on mobile.
   ========================================================== */
@media (max-width: 780px) {
  .results .results__metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 22px !important;
    row-gap: 16px !important;
    align-items: start !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .results .results__metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .results .results__metric .results__n {
    font-variant-numeric: tabular-nums;
  }

  .results .results__metric .results__l {
    text-align: center !important;
  }
}


/* =========================================================
   Header (mobile): исправление бургер-меню
   - Приводит «бургер» к ровному виду (три полоски по центру)
   - Скрывает видимую подпись "Menu" (оставляет для screen readers)
   ========================================================= */
@media (max-width: 920px){
  .nav-toggle{
    position:relative;
    width:44px;
    height:44px;
    padding:0;
    gap:0;
    justify-content:center;
  }
  .nav-toggle__label{
    position:absolute !important;
    width:1px; height:1px;
    padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0);
    white-space:nowrap; border:0;
  }
  .nav-toggle__bar{
    position:absolute;
    left:50%;
    margin-top:0 !important;
    transform:translateX(-50%);
  }
  .nav-toggle__bar:nth-child(1){ top: calc(50% - 6px); }
  .nav-toggle__bar:nth-child(2){ top: 50%; }
  .nav-toggle__bar:nth-child(3){ top: calc(50% + 6px); }
}



/* =========================================================
   Typography parity (RU): header/footer menus
   Цель: вернуть «контентный» NewspaperSansCTT для русской версии
   в меню хедера и футера, как в ранних версиях темы.
   Важно: бургер/кнопку меню НЕ трогаем.
   ========================================================= */
html[lang^="ru"] .site-header nav,
html[lang^="ru"] .site-header .menu,
html[lang^="ru"] .site-header .menu a,
html[lang^="ru"] .site-footer nav,
html[lang^="ru"] .site-footer .menu,
html[lang^="ru"] .site-footer .menu a{
  font-family: 'NewspaperSansCTT', system-ui, sans-serif !important;
  font-weight: 400;
}


/* =========================================================
   RU типографика меню (header/footer): вернуть NewspaperSansCTT
   - Только для русскоязычной версии (html[lang^="ru"])
   - Не затрагивает бургер и прочие компоненты
   ========================================================= */
html[lang^="ru"] .site-header,
html[lang^="ru"] .site-header a,
html[lang^="ru"] .site-header nav,
html[lang^="ru"] .site-header nav a,
html[lang^="ru"] .site-footer,
html[lang^="ru"] .site-footer a,
html[lang^="ru"] .site-footer nav,
html[lang^="ru"] .site-footer nav a{
  font-family: 'NewspaperSansCTT', system-ui, sans-serif !important;
}


/* =========================================================
   RU: меню в хедере и футере — принудительно NewspaperSansCTT
   (фикс каскада/специфичности; бургер не трогаем)
   ========================================================= */
html[lang^="ru"] .site-header .site-nav,
html[lang^="ru"] .site-header .menu,
html[lang^="ru"] .site-header .menu a,
html[lang^="ru"] .site-header__panel,
html[lang^="ru"] .site-header__panel a,
html[lang^="ru"] .site-footer .menu,
html[lang^="ru"] .site-footer .menu a,
html[lang^="ru"] .site-footer nav,
html[lang^="ru"] .site-footer nav a{
  font-family: 'NewspaperSansCTT' !important;
  font-weight: 400;
  font-synthesis: weight style;
}


/* =========================================================
   Latin UI typography (EN/PT): меню в хедере и футере
   - В RU меню остаётся NewspaperSansCTT (см. отдельный блок)
   - Для EN/PT делаем «латинский» UI-стек
   ========================================================= */
html[lang^="en"] .site-header .site-nav,
html[lang^="en"] .site-header .menu,
html[lang^="en"] .site-header .menu a,
html[lang^="en"] .site-header__panel,
html[lang^="en"] .site-header__panel a,
html[lang^="en"] .site-footer .menu,
html[lang^="en"] .site-footer .menu a,
html[lang^="en"] .site-footer nav,
html[lang^="en"] .site-footer nav a,
html[lang^="pt"] .site-header .site-nav,
html[lang^="pt"] .site-header .menu,
html[lang^="pt"] .site-header .menu a,
html[lang^="pt"] .site-header__panel,
html[lang^="pt"] .site-header__panel a,
html[lang^="pt"] .site-footer .menu,
html[lang^="pt"] .site-footer .menu a,
html[lang^="pt"] .site-footer nav,
html[lang^="pt"] .site-footer nav a{
  font-family: 'PT Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 400;
  font-synthesis: weight style;
}


/* =========================================================
   Cyrillic (SR): меню в хедере и футере
   - Сербский (кириллица) использует кириллический контентный стек
   ========================================================= */
html[lang^="sr"] .site-header .site-nav,
html[lang^="sr"] .site-header .menu,
html[lang^="sr"] .site-header .menu a,
html[lang^="sr"] .site-header__panel,
html[lang^="sr"] .site-header__panel a,
html[lang^="sr"] .site-footer .menu,
html[lang^="sr"] .site-footer .menu a,
html[lang^="sr"] .site-footer nav,
html[lang^="sr"] .site-footer nav a{
  font-family: 'NewspaperSansCTT', system-ui, sans-serif !important;
  font-weight: 400;
  font-synthesis: weight style;
}


/* =========================================================
   SR (кириллица): меню в хедере и футере — принудительно NewspaperSansCTT
   Усилен селектор: учитывает lang атрибут и классы Polylang на body.
   ========================================================= */
html[lang^="sr"] .site-header .site-nav .menu a,
html[lang^="sr"] .site-header .menu a,
html[lang^="sr"] .site-header__panel .menu a,
html[lang^="sr"] .site-footer .menu a,
body[class*="lang-sr"] .site-header .site-nav .menu a,
body[class*="lang-sr"] .site-header .menu a,
body[class*="lang-sr"] .site-header__panel .menu a,
body[class*="lang-sr"] .site-footer .menu a,
body[class*="pll-lang-sr"] .site-header .site-nav .menu a,
body[class*="pll-lang-sr"] .site-header .menu a,
body[class*="pll-lang-sr"] .site-header__panel .menu a,
body[class*="pll-lang-sr"] .site-footer .menu a{
  font-family: 'NewspaperSansCTT' !important;
  font-weight: 400 !important;
  font-synthesis: weight style;
}


/* =========================================================
   Language-specific menu typography (Polylang real locales)
   ========================================================= */

/* Serbian Cyrillic: sr_RS */
html[lang="sr-RS"] .site-header .menu a,
html[lang="sr_RS"] .site-header .menu a,
body[class*="lang-sr"] .site-header .menu a,
body[class*="pll-lang-sr"] .site-header .menu a,
html[lang="sr-RS"] .site-footer .menu a,
html[lang="sr_RS"] .site-footer .menu a,
body[class*="lang-sr"] .site-footer .menu a,
body[class*="pll-lang-sr"] .site-footer .menu a{
  font-family: 'NewspaperSansCTT' !important;
  font-weight: 400;
}


/* =========================================================
   Menu typography by language (final)
   ========================================================= */

/* English (en_GB): NewspaperSansCTT (latin) */
html[lang="en-GB"] .site-header .menu a,
html[lang="en_GB"] .site-header .menu a,
body[class*="lang-en"] .site-header .menu a,
body[class*="pll-lang-en"] .site-header .menu a,
html[lang="en-GB"] .site-footer .menu a,
html[lang="en_GB"] .site-footer .menu a,
body[class*="lang-en"] .site-footer .menu a,
body[class*="pll-lang-en"] .site-footer .menu a{
  font-family: 'NewspaperSansCTT' !important;
  font-weight: 400;
}

/* Portuguese (pt_BR): PT Sans */
html[lang="pt-BR"] .site-header .menu a,
html[lang="pt_BR"] .site-header .menu a,
body[class*="lang-pt"] .site-header .menu a,
body[class*="pll-lang-pt"] .site-header .menu a,
html[lang="pt-BR"] .site-footer .menu a,
html[lang="pt_BR"] .site-footer .menu a,
body[class*="lang-pt"] .site-footer .menu a,
body[class*="pll-lang-pt"] .site-footer .menu a{
  font-family: 'PT Sans', Arial, sans-serif !important;
  font-weight: 400;
}



/* Exhibitions (Virtual exhibitions) */
.exhibitions__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}

@media (max-width: 900px){
  .exhibitions__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .exhibitions__grid{ grid-template-columns: 1fr; }
}

.exhibitions__item{
  position:relative;
  display:block;
  border-radius:16px;
  overflow:hidden;
  min-height:170px;
  background: color-mix(in srgb, var(--bg) 92%, #000 8%);
  border:1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.exhibitions__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:grayscale(1) contrast(.95) opacity(.85);
  transition:filter .18s ease, opacity .18s ease, transform .18s ease;
  transform:scale(1.02);
}

.exhibitions__item:hover .exhibitions__img,
.exhibitions__item:focus .exhibitions__img{
  filter:grayscale(0) contrast(1) opacity(1);
  transform:scale(1.04);
}

.exhibitions__title{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,.55);
  color:#fff;
  font-weight:600;
  font-size:16px;
  line-height:1.2;
  backdrop-filter: blur(4px);
}

/* Exhibitions carousel (progressive enhancement)
   - Desktop: 3 cards visible + arrows
   - Mobile: 1 card + arrows
*/
.js .exhibitions--carousel .exhibitions__carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.js .exhibitions--carousel .exhibitions__viewport{
  flex:1 1 auto;
  overflow:hidden;
}

.js .exhibitions--carousel .exhibitions__track{
  display:flex;
  will-change: transform;
  transition: transform .25s ease;
}

.js .exhibitions--carousel .exhibitions__page{
  flex:0 0 100%;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

@media (max-width: 640px){
  .js .exhibitions--carousel .exhibitions__page{
    grid-template-columns: 1fr;
  }
}

.js .exhibitions--carousel .exhibitions__nav{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, #fff 8%);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.js .exhibitions--carousel .exhibitions__nav:hover{
  transform: translateY(-1px);
}

.js .exhibitions--carousel .exhibitions__nav:disabled{
  opacity:.35;
  cursor: default;
  transform:none;
}

.js .exhibitions--carousel .exhibitions__nav svg{
  width:20px;
  height:20px;
}

/* Exhibitions archive (/exhibitions): list layout */
.exhibitions-archive__header{
  margin: 10px 0 20px;
}

/* Archive uses the same card grid as homepage, but a bit tighter. */
.exhibitions-archive__grid .exhibitions__item{
  min-height: 180px;
}

.exhibitions-archive__list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.exhibitions-card{
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg) 96%, #fff 4%);
  transition: transform .12s ease, box-shadow .12s ease;
}

.exhibitions-card:hover,
.exhibitions-card:focus{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}

.exhibitions-card__media{
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 85%, #000 15%);
}

.exhibitions-card__img{
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter .18s ease;
}

.exhibitions-card:hover .exhibitions-card__img,
.exhibitions-card:focus .exhibitions-card__img{
  filter: grayscale(0);
}

.exhibitions-card__title{
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

@media (max-width: 860px){
  .exhibitions-card{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Event typography hybrid fallback (v1.9.67)
   Keep the original NewspaperSansCTT / SchoolBook look for
   basic Latin + Cyrillic, but use local PT fonts only for
   extended Latin glyphs (ã, ç, í, õ, etc.).
   ========================================================= */
@font-face {
  font-family: 'PochtovoeEventSansHybrid';
  src: url('../fonts/NewspaperSansCTT-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0400-052F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-22FF, U+2500-25FF;
}
@font-face {
  font-family: 'PochtovoeEventSansHybrid';
  src: url('../fonts/pt-sans/PTSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-024F, U+0300-036F, U+1E00-1EFF;
}
@font-face {
  font-family: 'PochtovoeEventSansHybrid';
  src: url('../fonts/pt-sans/PTSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-024F, U+0300-036F, U+1E00-1EFF;
}
@font-face {
  font-family: 'PochtovoeEventSerifHybrid';
  src: url('../fonts/SchoolBook-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0400-052F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-22FF, U+2500-25FF;
}
@font-face {
  font-family: 'PochtovoeEventSerifHybrid';
  src: url('../fonts/SchoolBook-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0400-052F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-22FF, U+2500-25FF;
}
@font-face {
  font-family: 'PochtovoeEventSerifHybrid';
  src: url('../fonts/pt-serif/PTSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-024F, U+0300-036F, U+1E00-1EFF;
}
@font-face {
  font-family: 'PochtovoeEventSerifHybrid';
  src: url('../fonts/pt-serif/PTSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-024F, U+0300-036F, U+1E00-1EFF;
}

/* Event archive: preserve the existing serif/sans roles, replacing only
   problematic extended-Latin glyphs with the local PT family. */
.events-archive,
body.single-event .content .prose {
  font-family: 'PochtovoeEventSerifHybrid', 'SchoolBook', Georgia, serif;
}
.events-archive .events-featured__meta,
.events-archive .events-timeline__meta,
.events-archive .events-timeline__date,
.events-archive .events-timeline__month-group,
.events-archive .events-results__summary,
.events-archive .events-map-status,
.events-archive .events-map-note,
.events-archive .events-map-popup__event,
.events-archive .events-filter,
.events-archive .events-period-tabs,
.events-archive .events-view-switch,
.events-archive .event-calendar,
body.single-event .content .prose > .meta {
  font-family: 'PochtovoeEventSansHybrid', 'NewspaperSansCTT', system-ui, sans-serif;
}


/* =========================================================
   Event location font fix (v1.9.68)
   Use one complete Unicode-capable face for geographic text.
   Do not mix fallback glyphs inside Portuguese words.
   ========================================================= */
.events-archive .events-timeline__location,
.events-archive .events-featured__location,
.events-archive .events-map-popup__event span,
body.single-event .content .prose > .event-location {
  font-family: 'PT Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0;
}

/* Event attendance: prominent key information directly below event title */
.event-attendance-hero{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 18px}
.event-attendance-hero .event-attendance-badge{display:inline-flex;align-items:center;min-height:36px;padding:7px 14px;border:2px solid currentColor;border-radius:999px;font-size:15px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.035em}
.event-attendance-hero .event-attendance-badge--offline{background:#f6f7f7}
.event-attendance-hero .event-attendance-badge--online{background:#eef7ff}
.event-attendance-hero .event-attendance-badge--hybrid{background:#f7f2ff}
.event-attendance-join{font-weight:700}

/* v1.9.88 registration status beside attendance mode */
.event-attendance-hero .event-registration-badge{text-decoration:none}
.event-attendance-hero .event-registration-badge--open{background:#eef8f0}
.event-attendance-hero a.event-registration-badge--open:hover{filter:brightness(.97);text-decoration:none}
.event-attendance-hero .event-registration-badge--closed{background:#f6f7f7;opacity:.72;cursor:default}

/* v2.0.8 — project social links */
.poc-social-links{display:flex;align-items:center;flex-wrap:wrap;gap:.85rem;margin:1.5rem 0}
.poc-social-link{width:3.35rem;height:3.35rem;border:1.5px solid currentColor;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;color:var(--ink,currentColor);text-decoration:none!important;background:transparent;opacity:.82;transition:transform .16s ease,opacity .16s ease,background-color .16s ease,color .16s ease}
.poc-social-link:hover,.poc-social-link:focus-visible{transform:translateY(-2px);opacity:1;background:var(--ink,#222);color:var(--paper,#fff)}
.poc-social-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.poc-social-link__icon{display:inline-flex;width:1.72rem;height:1.72rem;flex:0 0 auto}
.poc-social-link__icon svg{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.poc-social-link__icon .poc-social-ring{fill:none;stroke:currentColor;stroke-width:2}
.poc-social-link__icon .poc-social-mark{fill:currentColor;stroke:none;font-size:7.4px;font-family:Arial,sans-serif;font-weight:800}
.poc-social-link__icon rect,.poc-social-link__icon circle:not(.poc-social-ring):not(.poc-social-dot){fill:none;stroke:currentColor;stroke-width:2}
.poc-social-link__icon .poc-social-dot{fill:currentColor;stroke:none}
.poc-social-link__icon .poc-social-hole{fill:var(--paper,#fff)}
.poc-social-link:hover .poc-social-hole,.poc-social-link:focus-visible .poc-social-hole{fill:var(--ink,#222)}
.poc-social-links--large .poc-social-link{width:4rem;height:4rem}.poc-social-links--large .poc-social-link__icon{width:2.05rem;height:2.05rem}
.poc-social-links--labels .poc-social-link{width:auto;min-width:2.75rem;padding:0 .9rem}.poc-social-link__label{font-size:.9rem;line-height:1;white-space:nowrap}
@media(max-width:640px){.poc-social-links{gap:.65rem}.poc-social-link{width:3rem;height:3rem}.poc-social-link__icon{width:1.55rem;height:1.55rem}.poc-social-links--labels .poc-social-link{width:auto;min-width:3rem;padding:0 .8rem}}

/* v2.0.9 — social service restriction footnotes */
.poc-social-link-wrap{position:relative;display:inline-flex}
.poc-social-restriction-star{position:absolute;top:-.42rem;right:-.28rem;min-width:1rem;height:1rem;line-height:1rem;text-align:center;font-weight:700;font-size:1rem;color:var(--ink,currentColor);text-decoration:none!important;z-index:2}
.poc-social-links--labels .poc-social-restriction-star{right:.05rem}
.poc-social-restriction-star:hover,.poc-social-restriction-star:focus-visible{text-decoration:underline!important}
.poc-social-restriction-notes{max-width:var(--content-width,1200px);margin:1.35rem auto .8rem;padding:0 1rem;font-size:.8rem;line-height:1.45;opacity:.72}
.poc-social-restriction-note-front{margin:.25rem 0}
.poc-social-restriction-note-star{font-weight:700}
.poc-social-restriction-note-front:target{opacity:1}


/* ==========================================================
   Projects archive v2.0.16
   Dedicated layout for /projects/ only.
   ========================================================== */
.projects-archive{
  padding:56px 0 72px;
}
.projects-archive__hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:36px;
  margin-bottom:34px;
  padding-bottom:28px;
  border-bottom:1px solid var(--line);
}
.projects-archive__hero-copy{
  max-width:780px;
}
.projects-archive__eyebrow{
  margin-bottom:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.projects-archive__title{
  margin:0;
  font-size:clamp(42px,6vw,72px);
  line-height:.98;
  letter-spacing:-.045em;
}
.projects-archive__intro{
  max-width:700px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}
.projects-archive__count{
  flex:0 0 auto;
  min-width:108px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  text-align:center;
  background:rgba(255,255,255,.28);
}
.projects-archive__count strong{
  display:block;
  font-family:var(--font-serif, Georgia, serif);
  font-size:30px;
  line-height:1;
}
.projects-archive__count span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

.projects-archive__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
.project-card{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.36);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.project-card:hover{
  transform:translateY(-4px);
  border-color:color-mix(in srgb,var(--accent) 38%,var(--line) 62%);
  background:rgba(255,255,255,.52);
  box-shadow:0 14px 34px rgba(35,31,28,.06);
}
.project-card__media{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:var(--bg-alt);
}
.project-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1.001);
  transition:transform .35s ease;
}
.project-card:hover .project-card__media img{
  transform:scale(1.035);
}
.project-card__media--placeholder{
  display:grid;
  place-items:center;
  text-decoration:none;
  background:
    radial-gradient(circle at 28% 30%,color-mix(in srgb,var(--accent) 11%,transparent),transparent 36%),
    linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04));
}
.project-card__media--placeholder span{
  color:color-mix(in srgb,var(--text) 24%,transparent);
  font-family:var(--font-serif,Georgia,serif);
  font-size:clamp(54px,7vw,92px);
  line-height:1;
}
.project-card__body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:21px 22px 22px;
}
.project-card__topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  color:var(--muted);
  font-size:12px;
}
.project-card__period{
  font-variant-numeric:tabular-nums;
}
.project-card__status{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  white-space:nowrap;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.project-card__status--active{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line) 55%);
}
.project-card__status--active:before{
  content:"";
  width:6px;
  height:6px;
  margin-right:6px;
  border-radius:50%;
  background:var(--accent);
}
.project-card__status--completed{
  opacity:.72;
}
.project-card__title{
  margin:0;
  font-size:clamp(22px,2vw,28px);
  line-height:1.18;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.project-card__title a{
  color:var(--text);
  text-decoration:none;
}
.project-card__title a:hover{
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.project-card__excerpt{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  margin:15px 0 20px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}
.project-card__more{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  margin-top:auto;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.project-card__more:hover{
  color:var(--accent);
  text-decoration:none;
}
.project-card__arrow{
  display:inline-block;
  transition:transform .16s ease;
}
.project-card__more:hover .project-card__arrow{
  transform:translateX(4px);
}
.projects-archive__pagination{
  margin-top:36px;
}
.projects-archive__pagination .nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}
.projects-archive__pagination .page-numbers{
  min-width:38px;
  height:38px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  text-decoration:none;
}
.projects-archive__pagination .page-numbers.current,
.projects-archive__pagination a.page-numbers:hover{
  border-color:var(--accent);
}
.projects-archive__empty{
  padding:46px 24px;
  border:1px dashed var(--line);
  border-radius:20px;
  text-align:center;
  color:var(--muted);
}

@media(max-width:1020px){
  .projects-archive__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .projects-archive{padding:38px 0 52px;}
  .projects-archive__hero{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:24px;padding-bottom:22px;}
  .projects-archive__title{font-size:44px;}
  .projects-archive__intro{margin-top:13px;font-size:15px;}
  .projects-archive__count{min-width:0;text-align:left;display:flex;align-items:baseline;gap:7px;padding:10px 13px;}
  .projects-archive__count strong{font-size:22px;}
  .projects-archive__count span{margin:0;}
  .projects-archive__grid{grid-template-columns:1fr;gap:17px;}
  .project-card__body{padding:18px;}
  .project-card__title{font-size:24px;}
}


/* v2.0.17 — homepage projects use the same visual system as /projects/ */
.home-projects__head{align-items:flex-end;margin-bottom:24px}
.home-projects__eyebrow{margin-bottom:7px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.home-projects__head .h2{margin-bottom:0}.home-projects__all{white-space:nowrap}
.home-projects__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.project-card--home .project-card__media{aspect-ratio:16/10}
.project-card--home .project-card__body{padding:19px 20px 20px}
.project-card--home .project-card__title{font-size:clamp(21px,1.8vw,26px)}
.project-card--home .project-card__excerpt{-webkit-line-clamp:4;margin-bottom:18px}
@media(max-width:1020px){.home-projects__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.home-projects__head{align-items:flex-start;gap:12px}.home-projects__grid{grid-template-columns:1fr;gap:17px}.project-card--home .project-card__media{aspect-ratio:16/9}}


/* ==========================================================
   v2.0.22 — unified search
   ========================================================== */
.global-search-page{padding:52px 0 70px}
.global-search-page__header h1{margin:0 0 24px;font-size:clamp(38px,5vw,62px);letter-spacing:-.035em}
.global-search-form{padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.35)}
.global-search-form__query{display:grid;grid-template-columns:1fr auto;gap:10px}
.global-search-form__query input{min-width:0;height:50px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.global-search-form__query button{padding:0 22px;border:1px solid var(--text);border-radius:12px;background:var(--text);color:var(--bg);font-weight:700;cursor:pointer}
.global-search-form__filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px}
.global-search-form__filters label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}
.global-search-form__filters select{min-width:180px;height:40px;padding:0 34px 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text)}
.global-search-form__reset{margin-left:auto;padding-bottom:9px;color:var(--muted);font-size:13px}
.global-search-page__summary{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:32px 0 18px}
.global-search-page__summary h2{margin:0;font-size:24px}.global-search-page__summary span{color:var(--muted)}
.global-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.global-search-result{display:grid;grid-template-columns:120px 1fr;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.28)}
.global-search-result__image{display:block;min-height:150px;background:var(--bg-alt)}
.global-search-result__image img{width:100%;height:100%;object-fit:cover}
.global-search-result__body{min-width:0;padding:16px 17px}
.global-search-result__badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}
.global-search-result__badges span{padding:3px 7px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.global-search-result h3{margin:0;font-size:20px;line-height:1.2}.global-search-result h3 a{color:var(--text);text-decoration:none}.global-search-result h3 a:hover{text-decoration:underline}
.global-search-result__meta{margin-top:7px;color:var(--muted);font-size:12px}.global-search-result p{margin:9px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.global-search-empty{padding:44px 20px;border:1px dashed var(--line);border-radius:16px;text-align:center;color:var(--muted)}
.global-search-pagination{margin-top:28px}.global-search-pagination .nav-links{display:flex;justify-content:center;gap:7px}
.global-search-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--text)}
.search-drawer__filters{display:flex;gap:8px;align-items:center}
.search-drawer__filters select{height:44px;max-width:190px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);padding:0 28px 0 9px}

/* ==========================================================
   v2.0.22 — project/entity relations
   ========================================================== */
.entity-relations{margin-top:42px;padding-top:28px;border-top:1px solid var(--line)}
.entity-relations__title{margin:0 0 17px;font-size:clamp(25px,3vw,34px);letter-spacing:-.025em}
.entity-relations__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.relation-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.3)}
.relation-card__image{display:block;aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid var(--line);background:var(--bg-alt)}
.relation-card__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.relation-card:hover .relation-card__image img{transform:scale(1.025)}
.relation-card__body{padding:14px 15px}.relation-card__meta{margin-bottom:6px;color:var(--muted);font-size:11px}
.relation-card__title{margin:0;font-size:17px;line-height:1.25}.relation-card__title a{color:var(--text);text-decoration:none}.relation-card__title a:hover{text-decoration:underline}

@media(max-width:900px){
  .global-search-results{grid-template-columns:1fr}
  .entity-relations__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .global-search-page{padding:34px 0 50px}
  .global-search-form__query{grid-template-columns:1fr}.global-search-form__query button{height:46px}
  .global-search-form__filters{align-items:stretch}.global-search-form__filters label{width:100%}.global-search-form__filters select{width:100%}.global-search-form__reset{margin-left:0}
  .global-search-result{grid-template-columns:84px 1fr}.global-search-result__image{min-height:120px}
  .search-drawer__filters{display:none}
  .entity-relations__grid{grid-template-columns:1fr}
}


/* v2.0.35 — project badge beside attendance and registration */
.event-attendance-hero .event-project-badge{
  background:#f7f7f4;
  color:var(--text);
  text-decoration:none;
  text-transform:none;
  letter-spacing:0;
}
.event-attendance-hero .event-project-badge--first{
  margin-left:8px;
}
.event-attendance-hero .event-project-badge:hover,
.event-attendance-hero .event-project-badge:focus-visible{
  background:#efefe9;
  text-decoration:none;
}
@media(max-width:650px){
  .event-attendance-hero .event-project-badge--first{margin-left:0}
}


/* v2.0.36 — rich project page */
.project-detail-page{padding:48px 0 72px}.project-detail-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:34px;align-items:center;margin-bottom:28px}.project-detail-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}.project-detail-hero h1{font-size:clamp(42px,6vw,76px);line-height:.98;letter-spacing:-.045em;margin:0}.project-detail-lead{font-size:18px;line-height:1.55;color:var(--muted);max-width:720px}.project-detail-hero__image img{width:100%;height:auto;display:block;border-radius:18px}.project-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:30px 0 44px}.project-fact{border:1px solid var(--line);border-radius:15px;padding:17px;background:rgba(255,255,255,.28)}.project-fact>span{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px}.project-fact p{margin:.25em 0}.project-page-section{margin:44px 0}.project-page-section>h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.03em;margin:0 0 17px}.project-page-section--intro{max-width:900px}.project-results-block{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--bg-alt)}.project-people-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.project-person-card{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid var(--line);border-radius:13px;color:var(--text);text-decoration:none}.project-person-card__image{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden}.project-person-card__image img{width:100%;height:100%;object-fit:cover}.project-person-card:hover{text-decoration:underline}.project-publications{display:grid;gap:8px}.project-publications a{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;color:var(--text);text-decoration:none}.project-publications a:hover{text-decoration:underline}.project-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.project-gallery a{display:block;overflow:hidden;border-radius:13px;aspect-ratio:4/3}.project-gallery img{width:100%;height:100%;object-fit:cover;display:block}.project-detail-page .entity-relations{margin-top:44px}.project-detail-page .entity-relations__title{font-size:clamp(28px,4vw,42px)}
@media(max-width:900px){.project-detail-hero{grid-template-columns:1fr}.project-facts{grid-template-columns:1fr 1fr}.project-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.project-detail-page{padding-top:30px}.project-facts{grid-template-columns:1fr}.project-people-grid,.project-gallery{grid-template-columns:1fr 1fr}.project-detail-hero h1{font-size:42px}}

/* v2.0.40 — Resources archive */
.resources-archive{padding:54px 0 72px;background:linear-gradient(180deg,rgba(245,242,233,.55),rgba(255,255,255,0) 280px)}
.resources-archive__hero{display:flex;justify-content:space-between;align-items:flex-end;gap:34px;margin-bottom:26px;padding-bottom:27px;border-bottom:1px solid var(--line)}
.resources-archive__hero-copy{max-width:780px}
.resources-archive__eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.resources-archive__title{margin:8px 0 0;font-size:clamp(44px,6vw,76px);line-height:.96;letter-spacing:-.035em}
.resources-archive__intro{max-width:700px;margin:17px 0 0;color:var(--muted);font-size:17px;line-height:1.6}
.resources-archive__count{min-width:116px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.7);text-align:center}
.resources-archive__count strong{display:block;font-size:30px;line-height:1}
.resources-archive__count span{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.resources-filter{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(170px,.8fr) minmax(130px,.55fr) auto;gap:12px;align-items:end;margin:0 0 28px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.resources-filter__field{display:flex;flex-direction:column;gap:6px}
.resources-filter__field>span{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.resources-filter input,.resources-filter select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 11px;color:var(--text);font:inherit}
.resources-filter input:focus,.resources-filter select:focus{outline:2px solid currentColor;outline-offset:1px}
.resources-filter__actions{display:flex;align-items:center;gap:10px;min-height:42px}
.resources-filter__submit{min-height:42px;padding:8px 18px;border:0;border-radius:10px;background:var(--text);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.resources-filter__reset{font-size:13px;color:var(--muted)}
.resources-archive__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.resource-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}
.resource-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.07)}
.resource-card__media{display:block;aspect-ratio:16/9;overflow:hidden;background:#ebe8df}
.resource-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.resource-card:hover .resource-card__media img{transform:scale(1.025)}
.resource-card__media--placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#ece8dc,#f8f6f0);text-decoration:none}
.resource-card__media--placeholder span{font-size:64px;line-height:1;font-weight:700;opacity:.24}
.resource-card__body{display:flex;flex:1;flex-direction:column;padding:19px 20px 20px}
.resource-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin-bottom:10px;color:var(--muted);font-size:11px}
.resource-card__type{display:inline-flex;padding:3px 7px;border:1px solid var(--line);border-radius:999px;background:#faf9f6;color:var(--text)}
.resource-card__title{margin:0;font-size:24px;line-height:1.12;letter-spacing:-.02em}
.resource-card__title a{color:inherit;text-decoration:none}
.resource-card__title a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.resource-card__excerpt{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;margin:12px 0 17px;color:var(--muted);font-size:14px;line-height:1.55}
.resource-card__projects{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;margin:auto 0 14px;padding-top:4px;font-size:12px}
.resource-card__projects-label{color:var(--muted);font-weight:700}
.resource-card__projects a{padding:3px 7px;border-radius:999px;background:#f4f2eb;color:var(--text);text-decoration:none}
.resource-card__projects a:hover{text-decoration:underline}
.resource-card__more{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:13px;border-top:1px solid var(--line);color:var(--text);font-size:13px;font-weight:700;text-decoration:none}
.resource-card__more span:last-child{transition:transform .18s ease}.resource-card__more:hover span:last-child{transform:translateX(3px)}
.resources-archive__pagination{margin-top:32px}.resources-archive__pagination .nav-links{display:flex;flex-wrap:wrap;gap:7px}.resources-archive__pagination .page-numbers{display:grid;min-width:38px;height:38px;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);text-decoration:none}.resources-archive__pagination .current,.resources-archive__pagination a.page-numbers:hover{background:var(--text);color:#fff}
.resources-archive__empty{padding:38px;border:1px dashed var(--line);border-radius:16px;background:#fff;text-align:center;color:var(--muted)}
@media(max-width:1050px){.resources-archive__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resources-filter{grid-template-columns:1fr 1fr}.resources-filter__field--search{grid-column:1/-1}}
@media(max-width:700px){.resources-archive{padding:38px 0 52px}.resources-archive__hero{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:20px;padding-bottom:22px}.resources-archive__title{font-size:44px}.resources-archive__intro{font-size:15px}.resources-archive__count{display:flex;min-width:0;align-items:baseline;gap:7px;padding:9px 12px}.resources-archive__count strong{font-size:22px}.resources-archive__count span{margin:0}.resources-filter{grid-template-columns:1fr;padding:13px}.resources-filter__field--search{grid-column:auto}.resources-filter__actions{justify-content:space-between}.resources-archive__grid{grid-template-columns:1fr;gap:17px}.resource-card__title{font-size:22px}}


/* v2.0.43 — equal resource cards on homepage */
.home-resources{overflow:hidden}
.home-resources__head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:25px}
.home-resources__head>div{max-width:760px}
.home-resources__eyebrow{margin-bottom:7px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.home-resources__title{margin:0}
.home-resources__intro{max-width:650px;margin:10px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.home-resources__all{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;color:var(--text);font-size:13px;font-weight:700;text-decoration:none;background:rgba(255,255,255,.55)}
.home-resources__all:hover{background:#fff}

.home-resources__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-resource-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}
.home-resource-card__media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;overflow:hidden;background:#f3f0e8;padding:10px}
.home-resource-card__media img{width:100%;height:100%;object-fit:contain;display:block}
.home-resource-card__media--placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e9e4d7,#f7f4ec);text-decoration:none}
.home-resource-card__media--placeholder span{font-size:70px;font-weight:700;line-height:1;opacity:.18}

.home-resource-card__body{display:flex;flex:1;flex-direction:column;padding:18px}
.home-resource-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin-bottom:9px;color:var(--muted);font-size:11px}
.home-resource-card__meta span{padding:2px 6px;border:1px solid var(--line);border-radius:999px;color:var(--text);background:#faf9f6}
.home-resource-card__title{margin:0;font-size:22px;line-height:1.15;letter-spacing:-.02em}
.home-resource-card__title a{color:inherit;text-decoration:none}
.home-resource-card__title a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.home-resource-card__excerpt{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;margin:11px 0 15px;color:var(--muted);font-size:13px;line-height:1.55}
.home-resource-card__projects{display:flex;flex-wrap:wrap;gap:5px 7px;align-items:center;margin:auto 0 13px;font-size:11px}
.home-resource-card__projects>span{color:var(--muted);font-weight:700}
.home-resource-card__projects a{padding:3px 7px;border-radius:999px;background:#f2f0e9;color:var(--text);text-decoration:none}
.home-resource-card__projects a:hover{text-decoration:underline}
.home-resource-card__more{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;border-top:1px solid var(--line);color:var(--text);font-size:12px;font-weight:800;text-decoration:none}
.home-resource-card__more span{transition:transform .18s ease}
.home-resource-card__more:hover span{transform:translateX(3px)}

@media(max-width:1050px){
  .home-resources__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .home-resources__head{align-items:flex-start;flex-direction:column;gap:15px}
  .home-resources__grid{grid-template-columns:1fr}
}


/* v2.0.45 — media resource detail */
.media-resource-detail{margin:18px 0 34px}
.media-resource-detail__head{display:flex;align-items:center;gap:22px;padding:20px 0 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.media-resource-detail__logo{display:flex;flex:0 0 150px;align-items:center;justify-content:center;min-height:80px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff}
.media-resource-detail__logo img{display:block;max-width:130px;max-height:72px;width:auto;height:auto;object-fit:contain}
.media-resource-detail__head-copy{min-width:0;flex:1}
.media-resource-detail__publication{margin-bottom:5px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.media-resource-detail__title{margin:0 0 12px;font-size:clamp(25px,3vw,38px);line-height:1.08;letter-spacing:-.025em}
.media-resource-detail__facts{display:flex;flex-wrap:wrap;gap:7px 14px;color:var(--muted);font-size:13px}
.media-resource-detail__facts b{color:var(--text)}
.media-resource-detail__image{margin:24px 0;border:1px solid var(--line);border-radius:16px;background:#f4f1e9;padding:12px;text-align:center}
.media-resource-detail__image img{display:block;max-width:100%;max-height:680px;width:auto;height:auto;margin:auto;object-fit:contain}
.media-resource-detail__description{max-width:860px;margin:28px 0}
.media-resource-detail__description h2{margin:0 0 12px;font-size:24px}
.media-resource-detail__quote{max-width:820px;margin:26px 0;padding:18px 22px;border-left:4px solid var(--text);background:var(--bg-alt);font-size:18px;line-height:1.55}
.media-resource-detail__quote p:first-child{margin-top:0}.media-resource-detail__quote p:last-child{margin-bottom:0}
.media-resource-detail__actions{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0}
.media-resource-detail__extra{margin-top:30px;padding-top:26px;border-top:1px solid var(--line)}
@media(max-width:650px){.media-resource-detail__head{align-items:flex-start;flex-direction:column}.media-resource-detail__logo{flex-basis:auto;width:100%;justify-content:flex-start}.media-resource-detail__facts{flex-direction:column;gap:5px}.media-resource-detail__actions .btn{width:100%;justify-content:center}}

/* v2.1.0 project hub navigation */
.project-section-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 28px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fff);position:sticky;top:10px;z-index:5}.project-section-nav a{display:inline-flex;padding:7px 10px;border-radius:999px;text-decoration:none;background:rgba(0,0,0,.035);font-size:14px}.project-section-nav a:hover{text-decoration:underline}@media(max-width:700px){.project-section-nav{position:static}}

/* Project prominent action links — v2.1.1 */
.project-action-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:8px 0 28px}
.project-action-link{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border:2px solid var(--text);border-radius:16px;background:var(--text);color:var(--paper,#fff);text-decoration:none;font-size:clamp(17px,2vw,21px);font-weight:800;line-height:1.15;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
.project-action-link b{font-size:24px;font-weight:500;flex:0 0 auto}
.project-action-link:hover,.project-action-link:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.12);text-decoration:none}
.project-action-link:focus-visible{outline:3px solid currentColor;outline-offset:3px}
@media(max-width:620px){.project-action-links{grid-template-columns:1fr}.project-action-link{min-height:64px;padding:16px 18px}}


/* About → Media: latest publications + Media Center CTA — v2.1.2 */
.about-media-all{display:flex;justify-content:flex-start;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.about-media-all__button{min-width:min(100%,280px);justify-content:space-between;font-size:17px;font-weight:800}
@media(max-width:650px){.about-media-all__button{width:100%}}


/* Explicit superscript and subscript typography */
.prose sup,
.prose sub {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.prose sup {
  top: -0.5em;
}

.prose sub {
  bottom: -0.22em;
}


/* Portuguese content typography: use the complete PT Serif glyph set.
   SchoolBook contains incorrect glyph designs for Latin-1 accented letters
   (for example ã, õ, ç and ª). Keep this override limited to Portuguese
   article content; all other languages and site components retain their fonts. */
html[lang^="pt"] .prose {
  font-family: 'PT Serif', Georgia, serif !important;
}
