/*
Theme Name: Choose Science
Theme URI: https://choose-science.eu
Author: NCDIEL
Description: Custom WordPress theme for the Choose Science! (GreenStars, MSCA) public website. Ports the partner-approved wireframe chrome verbatim.
Version: 1.1.10
License: Unlicense
Text Domain: choose-science
*/

:root{
  --navy:#233F6C; --green:#4C6B61; --gold:#EECA73; --paper:#F1F0F1;
  --ink:#22314e; --line:#c9ccd4;
  --font:Arial,"Helvetica Neue",Helvetica,Verdana,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);background:var(--paper);color:var(--ink);font-size:16px;line-height:1.5}
a{color:var(--navy);cursor:pointer}
.wrap{max-width:1100px;margin:0 auto;padding:40px 24px}
/* wireframe furniture */
.plate{border:2px dashed var(--green);background:#fff;display:flex;align-items:center;justify-content:center;
  color:var(--green);font-size:13px;font-weight:bold;text-transform:uppercase;letter-spacing:.08em;
  text-align:center;padding:12px;min-height:64px}
.kicker{font-weight:bold;text-transform:uppercase;letter-spacing:.18em;font-size:22px;color:var(--green)}
h2.sect{color:var(--navy);font-size:28px;margin:4px 0 18px}
.btn{display:inline-block;background:var(--navy);color:#fff;font-weight:bold;padding:12px 22px;border:0;
  cursor:pointer;font-family:var(--font);font-size:15px}
.btn.gold{background:var(--gold);color:var(--navy)}
.card{background:#fff;border:1px solid var(--line);padding:24px}
.pill{display:inline-block;background:var(--paper);border:1px solid var(--green);color:var(--green);
  font-size:12px;font-weight:bold;padding:2px 10px;border-radius:99px}
.link{display:inline-block;font-weight:bold;margin-top:12px;text-decoration:underline}
.wf-table{width:100%;border-collapse:collapse;background:#fff}
.wf-table th{background:var(--navy);color:#fff;text-align:left;padding:10px 12px;font-size:14px}
.wf-table td{border:1px solid var(--line);padding:10px 12px;font-size:14px}
/* navy starfield sections */
.starfield{background:var(--navy);color:#fff;position:relative;overflow:hidden}
.starfield::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;background-image:
  radial-gradient(circle,var(--gold) 1.2px,transparent 2px),
  radial-gradient(circle,rgba(238,202,115,.55) 1px,transparent 1.6px);
  background-size:210px 180px,120px 140px;background-position:24px 30px,80px 96px}
.starfield>*{position:relative}
/* header */
.topnav{background:#fff;border-bottom:3px solid var(--navy);position:sticky;top:0;z-index:50}
/* No wrap, ever: a wrapped header (nav dropping to a second row while the
   burger stays hidden) is the one layout state this header must never show.
   A fixed pixel breakpoint can't guarantee that on its own — it only covers
   whatever content width was measured on the day it was picked, and MK nav
   labels (Task 7) will be longer than the English ones this was tuned
   against. nowrap turns a would-be wrap into an honest overflow instead,
   which site.js's initHeaderOverflow() detects at any width, in either
   language, and answers by forcing .nav-compact (below) rather than letting
   the browser reflow the row on its own. */
/* gap trimmed 18px->14px->11px across two passes closing real MK overflows.
   The 11px value was set by measuring the live bar in a browser: at the
   1100px cap the row sits EXACTLY on its min-content floor in Macedonian
   (measured nav slack: 0px), so widening any child means taking the space
   from another. See the nav-link padding and search-input notes below. */
.topnav .bar{max-width:1100px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:11px;flex-wrap:nowrap}
.topnav .logo{height:64px;width:auto;display:block;transition:opacity .15s ease;flex-shrink:0}
.topnav .bar>a:hover .logo{opacity:.82}
.topnav nav{display:flex;gap:2px;flex-wrap:nowrap;flex:1}
/* white-space:nowrap is load-bearing, not cosmetic: without it, a squeezed
   flex row doesn't overflow — the browser quietly wraps a link's OWN text
   onto two lines instead (confirmed live: "Researchers at Schools" wrapped
   inside a 100px-wide box while the row itself stayed one line). That's
   worse than the bug this fix exists to remove, and it's invisible to
   initHeaderOverflow()'s scrollWidth check, which only sees the row's
   width, not each link's. nowrap forces a real, detectable row overflow
   instead of a hidden per-link one. */
/* Horizontal padding trimmed 9px->6px. Verified live: at 2230px viewport
   width, the MK row (8 nav links, several genuinely longer than their
   English equivalents — "Истражувачи во училиштата" vs "Researchers at
   Schools", "За проектот" vs "About") measured 1166px against .bar's
   1100px cap: a real 66px overflow, not a narrow in-between case like
   English had — MK was landing in burger mode on every desktop width,
   including ultrawide, because .bar never grows past 1100px regardless of
   screen size. 3px off each side, across 7-8 links, reclaims ~42px on its
   own — spread across every link rather than squeezed entirely out of one
   element, since the actual driver is more/longer labels summed together,
   not one oversized part. Trimmed again 6px->5px to fund the wider search
   input below; measured, not guessed. For scale, the single longest MK
   label ("Истражувачи во училиштата") is 197px of the ~626px nav floor. */
.topnav nav a{font-size:13px;font-weight:bold;color:var(--navy);text-decoration:none;padding:8px 5px;
  border-bottom:3px solid transparent;white-space:nowrap}
.topnav nav a.active{border-bottom-color:var(--gold)}
.burger{display:none;background:var(--navy);color:#fff;border:0;font-size:18px;padding:6px 12px;cursor:pointer}
/* header utility cluster — search + language switcher */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.nav-utils{display:flex;align-items:center;gap:12px;margin-left:auto}
.nav-search{display:flex;align-items:center;border:1px solid var(--line);background:#fff}
/* 110px, not 170px originally. First trimmed to 145px to fit the English
   row (see prior fix); trimmed further here because Macedonian's longer
   nav labels reopened the same problem worse: MK measured a genuine 66px
   over .bar's 1100px cap on a real ultrawide screen (2230px viewport),
   meaning burger mode was permanent for MK on any desktop width, not a
   narrow in-between band. This trim plus the nav-link padding and .bar
   gap reductions above together reclaim ~89px, an 23px margin over the
   66px measured shortfall.

   Then widened 110px->124px, because 110px truncated the Macedonian
   placeholder mid-word ("Пребарај нас…"). Measured in-browser: that string
   needs 121px (101px text + 20px padding), so 124px fits it with 3px spare.
   The 14px this costs is funded by the gap and nav-padding trims above, and
   the result was verified in a live DOM simulation before shipping: the bar
   does NOT overflow at the 1100px cap, and min-content actually DROPS from
   1083px to 1077px, so the 1000-1083px band where the burger legitimately
   takes over gets slightly narrower rather than wider.

   Mobile is unaffected — the max-width:1000px block below overrides this
   to flex:1/100% anyway. */
.nav-search input{border:0;font-family:var(--font);font-size:13px;padding:7px 10px;width:124px;
  background:transparent;color:var(--ink)}
.nav-search input:focus{outline:2px solid var(--gold);outline-offset:-2px}
.nav-search button{background:var(--navy);color:#fff;border:0;cursor:pointer;padding:7px 10px;
  display:flex;align-items:center}
.nav-search button:hover{background:var(--green)}
/* language toggle */
.lang-switch{display:flex;align-items:center;border:1px solid var(--line);background:#fff}
.lang-switch .lang-opt,.lang-switch .lang-list a{font-size:12px;font-weight:bold;color:var(--green);
  text-decoration:none;padding:7px 10px;letter-spacing:.06em;text-transform:uppercase;display:block}
.lang-switch .lang-opt.lang-on,.lang-switch .lang-list .current-lang a{background:var(--navy);color:#fff}
.lang-switch .lang-opt:hover:not(.lang-on),.lang-switch .lang-list a:hover{background:var(--paper)}
/* Polylang renders an <li> list — flatten it into the header row. */
.lang-switch .lang-list{display:flex;list-style:none;margin:0;padding:0}
.lang-switch .lang-list li{margin:0}
/* about dropdown */
.dropdown{position:relative;display:flex}
.dd-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--line);
  border-top:3px solid var(--gold);min-width:190px;z-index:60;box-shadow:0 8px 20px rgba(35,63,108,.15)}
.dd-menu a{display:block;padding:10px 14px;border-bottom:0 !important}
.dropdown.open .dd-menu{display:block}
/* Hover-opens the dropdown on a genuinely wide, uncompacted header only —
   excluded while .nav-compact is forced (see below), so a technically-wide
   viewport that JS has still collapsed to the vertical/burger layout can't
   end up in the hybrid state of a hover-opening dropdown sitting inside a
   column-flow nav meant for tap interaction. */
@media (min-width:1001px){
  .topnav:not(.nav-compact) .dropdown:hover .dd-menu,
  .topnav:not(.nav-compact) .dropdown:focus-within .dd-menu{display:block}
}
@media (max-width:1000px){
  .dropdown,.dd-menu{position:static;box-shadow:none;border:0}
  .dd-menu{display:none;padding-left:16px}
  .dropdown.open .dd-menu{display:block}
  .burger{display:block}
  .topnav nav{display:none;width:100%;flex-direction:column}
  .topnav nav.open{display:flex}
  .nav-utils{width:100%;margin-left:0;order:3}
  .nav-search{flex:1}
  .nav-search input{width:100%}
}
/* Same layout as the max-width:1000px block above, but triggered by JS
   (site.js: initHeaderOverflow()) instead of viewport width. The media
   query alone can't guarantee "never wraps" — it only covers whatever
   content width was true the day its number was picked, and MK nav labels
   (Task 7) are longer than the English ones this was tuned against. JS
   measures whether the row actually fits and adds this class the instant
   it doesn't, at any width, in either language — the header is always
   either the full one-row menu or the burger, never a partial wrap. */
.topnav.nav-compact .dropdown,.topnav.nav-compact .dd-menu{position:static;box-shadow:none;border:0}
.topnav.nav-compact .dd-menu{display:none;padding-left:16px}
.topnav.nav-compact .dropdown.open .dd-menu{display:block}
.topnav.nav-compact .burger{display:block}
.topnav.nav-compact nav{display:none;width:100%;flex-direction:column}
.topnav.nav-compact nav.open{display:flex}
.topnav.nav-compact .nav-utils{width:100%;margin-left:0;order:3}
.topnav.nav-compact .nav-search{flex:1}
.topnav.nav-compact .nav-search input{width:100%}
/* footer */
.eu-footer{background:#fff;border-top:3px solid var(--navy);margin-top:48px}
.eu-footer .inner{max-width:1100px;margin:0 auto;padding:32px 24px;display:grid;gap:20px}
.eu-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.eu-emblem{height:64px;width:auto;display:block}

.disclaimer{font-size:12px;font-style:italic;color:var(--green);flex:1;min-width:220px}
.foot-strip{display:flex;gap:12px;flex-wrap:wrap}
.foot-strip .plate{min-height:44px;flex:1;font-size:10px}
.foot-contact{flex:1;min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:4px;border:1px solid var(--line);background:#fff;padding:12px 16px;font-size:13px}
.foot-contact a{color:var(--navy);font-weight:bold}
.social-links{flex:1;min-height:44px;display:flex;align-items:center;justify-content:center;gap:22px;
  border:1px solid var(--line);background:#fff}
  .social-links a{color:var(--navy);display:flex;transition:color .15s ease}
  .social-links a:hover{color:var(--gold)}
  /* home */
/* Hero artwork is a real <img>, not a CSS background: an animated GIF only
   plays as an element the browser lays out, and this also drops the hardcoded
   /wp-content/uploads/ URL that used to live here (see cs_hero_image()).

   FULL-BLEED, matching the navy .hero band below it -- width:100% with no
   max-width, so there are no white gutters at the sides.

   The height is a measured BUDGET, not a guessed percentage: the countdown
   lives in the .hero section immediately below and must stay on the first
   screen. The fixed costs around this image are 87px of header above it and
   282px from its bottom edge to the countdown's bottom edge; 400px is those
   plus breathing room. Subtracting them from the viewport means the image
   takes whatever is genuinely left over, so the countdown fits at ANY window
   height rather than only the ones a hardcoded vh value happened to suit.

   object-fit:cover is the unavoidable consequence of the two requirements
   above. Full-bleed width on a 2.125:1 illustration implies a natural height
   of viewport-width/2.125 -- 768px on a 1633px-wide window -- which would put
   the countdown far below the fold. cover fills the full width at the budgeted
   height instead and trims the illustration's top and bottom edges, taking
   from the scattered border icons rather than the centred figures. The trim
   grows on short/wide windows: full-bleed width, the whole illustration, and
   the countdown on screen are three constraints that cannot all hold at once.
   If the complete illustration matters more than full-bleed, change
   object-fit to contain and re-add max-width:min(100%,1100px). */
.hero-media{width:100%;background:#fff}
.hero-media img{display:block;width:100%;object-fit:cover;object-position:center;
  height:clamp(140px,calc(100vh - 400px),720px)}
  .hero-media .plate{border-radius:0;min-height:360px}
  .hero{padding:28px 24px 56px;text-align:center}
  .hero .hero-plate{max-width:900px;margin:0 auto 28px;height:180px;background:transparent;color:var(--gold);border-color:var(--gold)}
.hero .kicker{color:var(--gold)}
.hero h1{font-size:42px;line-height:1.15;margin:8px 0 10px}
.hero-sub{font-size:18px;font-weight:bold;margin-bottom:22px}
.countdown{display:flex;gap:10px;justify-content:center;align-items:center;margin:10px 0 6px}
.countdown .cd{background:rgba(241,240,241,.08);border:1px solid var(--gold);padding:10px 14px;min-width:82px}
.countdown .cd b{display:block;font-size:40px;color:var(--gold)}
.countdown .cd span{font-size:11px;text-transform:uppercase;letter-spacing:.14em}
.countdown i{color:var(--gold);font-weight:bold;font-style:normal;font-size:28px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.split .card:first-child .btn{margin-top:80px;font-size:18px;display:block;width:fit-content;margin-left:auto;margin-right:auto}
.event-pill{display:flex;align-items:center;gap:16px;border:2px solid var(--green);
  border-radius:16px;padding:16px 22px;margin:10px 0;text-decoration:none}
.event-pill b{color:var(--navy);flex:1 1 auto;min-width:0}
.event-pill .pill-meta{display:flex;align-items:center;gap:10px;flex:0 0 160px;justify-content:flex-end}
.event-pill .pill-meta span{font-size:13px;color:var(--green);text-align:right}
.event-pill i{color:var(--navy);font-style:normal;font-weight:bold}
@media (max-width:600px){
  .event-pill{flex-wrap:wrap}
  .event-pill .pill-meta{flex:1 1 100%;justify-content:flex-start;margin-top:4px}
}
.dash-strip{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:28px 24px;text-align:center}
.counter{min-width:120px;padding:4px 8px;text-decoration:none;color:#fff;text-align:center}
.counter b{display:block;font-size:34px;line-height:1.2;color:var(--gold)}
.counter span{font-size:12px;text-transform:uppercase;letter-spacing:.14em}
.logo-row{display:flex;gap:14px;flex-wrap:wrap}
.logo-plate{flex:1;min-width:120px;min-height:70px}
/* about & activities */
.star-list{list-style:none;margin:14px 0}
.star-list li{padding:8px 0 8px 30px;position:relative}
.star-list li::before{content:"★";position:absolute;left:0;color:var(--gold);
  text-shadow:0 0 1px var(--navy);font-size:18px}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pillar h3{color:var(--navy);font-size:20px;margin:12px 0 8px}
.pillar h3 a{color:inherit;text-decoration:underline;cursor:pointer}
.pillar ul{margin:0 0 0 18px;font-size:14px}
.pillar ul li{margin:6px 0}
/* map */
.map-layout{display:grid;grid-template-columns:260px 1fr;gap:20px}
.filterbar{display:grid;gap:10px;align-content:start}
.filterbar label{font-size:12px;font-weight:bold;color:var(--green);text-transform:uppercase;letter-spacing:.08em}
.filterbar select{font-family:var(--font);padding:8px;border:1px solid var(--line);width:100%}
.map-canvas{position:relative;min-height:520px;border:2px dashed var(--green);background:#fff;
  color:var(--green);font-weight:bold;text-transform:uppercase;font-size:13px;letter-spacing:.08em;
  display:flex;align-items:center;justify-content:center}
.marker{position:absolute;width:18px;height:18px;border-radius:50%;background:var(--gold);
  border:3px solid var(--navy);cursor:pointer}
.popup{position:absolute;top:16%;left:38%;width:300px;background:#fff;border:2px solid var(--navy);
  padding:16px;box-shadow:0 8px 24px rgba(35,63,108,.25);text-align:left;text-transform:none;
  letter-spacing:0;font-weight:normal;color:var(--ink)}
.popup h4{color:var(--navy);margin-bottom:6px;padding-right:24px}
.popup .x{position:absolute;top:6px;right:10px;background:none;border:0;font-size:18px;
  color:var(--navy);cursor:pointer;font-weight:bold}
.popup dl{font-size:13px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:8px 0}
.popup dt{font-weight:bold;color:var(--green)}
.summary-note{margin-top:14px}
/* events */
.tabbar{display:flex;gap:0;margin-bottom:22px;border-bottom:3px solid var(--navy)}
.tabbar a{padding:10px 26px;font-weight:bold;text-decoration:none;color:var(--green)}
.tabbar a.on{background:var(--navy);color:#fff}
.event-card{display:grid;grid-template-columns:110px 1fr auto;gap:16px;align-items:center;
  background:#fff;border:1px solid var(--line);padding:16px;margin-bottom:12px;cursor:pointer}
.event-card .date{border:2px solid var(--navy);color:var(--navy);font-weight:bold;text-align:center;padding:10px}
.event-card .date b{display:block;font-size:26px}
.event-card h3{color:var(--navy);font-size:18px}
.event-card .meta{font-size:13px;color:var(--green)}
/* ERN events grouped into per-city columns */
/* auto-fit, NOT repeat(4,1fr). cs_render_edition_page() renders one column per
   city that has events and SKIPS empty ones, so the column count is
   data-dependent: the cities from cs_cities() plus a trailing "Other
   locations" bucket, any of which can be absent. repeat(3,1fr) hardcoded three
   tracks while four columns were rendering, so "Other locations" wrapped to a
   second row directly beneath Skopje — visitors scrolled past every Skopje
   event to reach it. A hardcoded 4 would fix today's data and leave a dead
   track on any edition where a bucket is empty; auto-fit collapses it and
   gives the remaining columns the full width.

   COUPLED TO cs_cities(), which currently returns 3 cities => at most 4
   columns. Four tracks need 4*220 + 3*20 = 940px, and the .wrap cap gives
   1100 - 48 = 1052px, so they fit at 248px each. FIVE would need 1180px and
   would wrap again, silently — adding a city to cs_cities() means lowering
   this floor (5 columns need <=198px) or accepting the wrap. The floor is a
   tuned value, not a structural guarantee: it clears the mobile breakpoint by
   only ~13px of viewport (4 tracks need >=988px; the single-column media query
   below takes over at <=1000px), so widening the gap or .wrap's padding would
   open a real 3-column band just above 1000px. */
.events-by-city{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;align-items:start}
.city-heading{font-size:12px;font-weight:bold;text-transform:uppercase;letter-spacing:.14em;
  color:var(--green);padding-bottom:8px;margin-bottom:12px;border-bottom:2px solid var(--gold)}
.events-by-city .event-card{grid-template-columns:70px 1fr;padding:12px}
.events-by-city .event-card h3{font-size:15px}
/* Compact date box, DESKTOP COLUMNS ONLY.
   The 70px date track leaves ~62px of content width after the 2px border, and
   the base .date rules (16px text, 10px padding) then wrapped "Sep 2026" onto
   a second line, pushing the box to 111px on 68 of 69 cards — measured on both
   languages ("Сеп 2026" is the widest MK form at 66px). 11px text with 2px
   side padding fits on one line: 48px of text in a 62px box, and a 57px-tall
   box against a 60px budget.

   The min-width guard is load-bearing, not tidiness. .event-card is rendered
   in exactly ONE place (cs_render_edition_page, functions.php) and is always
   inside .events-by-city, so a bare .events-by-city .event-card .date rule
   would reach every card on every viewport — including phones, where the card
   is 327px wide with ~257px of unused room and the date has no reason to
   shrink. (The @media(max-width:760px) .event-card{grid-template-columns:1fr}
   rule further down does NOT stack these cards: it is (0,1,0) and loses to
   .events-by-city .event-card at (0,2,0) above, so the 70px track survives on
   mobile.) 1001px is the complement of the single-column query below. */
@media (min-width:1001px){
  .events-by-city .event-card .date{padding:6px 2px;font-size:11px;line-height:1.25}
  .events-by-city .event-card .date b{font-size:22px}
}
@media (max-width:1000px){.events-by-city{grid-template-columns:1fr}}
.stat-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gallery-grid .plate{min-height:110px}
.detail-head{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
/* registration */
.reg-form{background:#fff;border:1px solid var(--line);padding:24px;max-width:480px}
.reg-form .field{margin-bottom:16px}
.reg-form label{display:block;font-size:13px;font-weight:bold;color:var(--green);margin-bottom:4px}
/* Selects share the text inputs' rule so the eight-field form reads as one
   column rather than two competing control styles. border-radius:0 is
   explicit because mobile Safari and Chrome both round <select> by default
   and would otherwise make the dropdowns the odd ones out. */
.reg-form input[type=text],.reg-form input[type=email],.reg-form input[type=number],.reg-form select{
  width:100%;padding:10px;border:1px solid var(--line);font-family:var(--font);font-size:15px;
  background:#fff;color:var(--ink);border-radius:0}
.reg-form .field-hint{display:block;margin-top:4px;font-size:12px;font-weight:normal;color:var(--green)}
.reg-form .field-check label{display:flex;align-items:flex-start;gap:8px;font-weight:normal;color:var(--ink);font-size:13px}
.reg-form .field-check input{margin-top:3px}
.cs-hp-wrap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.reg-msg{margin-top:12px;font-size:14px;font-weight:bold}
.reg-msg.reg-ok{color:var(--green)}
.reg-msg.reg-err{color:#a4302a}
.reg-full{color:#a4302a;font-weight:bold}
.seats-left{font-weight:bold;color:var(--navy)}
/* event agenda */
.cs-agenda-heading{margin-top:28px}
.cs-agenda{margin-top:4px}
.cs-agenda .cs-agenda-time{width:92px;white-space:nowrap;font-weight:bold;color:var(--green);vertical-align:top}
.cs-agenda-speaker{font-size:13px;color:var(--green)}
@media (max-width:600px){.cs-agenda .cs-agenda-time{width:70px;font-size:13px}}
/* search results */
.search-count{font-size:13px;color:var(--green);font-weight:bold;margin-bottom:16px}
.search-results{display:grid;gap:12px}
.search-hit{display:block;background:#fff;border:1px solid var(--line);padding:18px 20px;
  text-decoration:none;color:var(--ink)}
.search-hit:hover{border-color:var(--navy)}
.search-kind{display:inline-block;background:var(--paper);border:1px solid var(--green);
  color:var(--green);font-size:11px;font-weight:bold;text-transform:uppercase;
  letter-spacing:.1em;padding:2px 10px;margin-bottom:8px}
.search-hit h2{color:var(--navy);font-size:19px;margin:0 0 4px}
.search-meta{font-size:13px;color:var(--green);font-weight:bold}
.search-agenda-hit{font-size:13px;margin-top:6px;padding-left:12px;border-left:3px solid var(--gold)}
.search-agenda-hit span{font-weight:bold;color:var(--green);margin-right:6px}
.search-excerpt{font-size:14px;margin-top:8px}
.search-empty{max-width:60ch}
.search-empty p{margin-bottom:12px}
.search-again{display:flex;gap:10px;flex-wrap:wrap}
.search-again input{flex:1;min-width:180px;padding:10px;border:1px solid var(--line);
  font-family:var(--font);font-size:15px}
/* follow-us — Contact Form 7 */
.interest-intro{max-width:70ch;margin-bottom:24px}
.wpcf7{max-width:520px;background:#fff;border:1px solid var(--line);padding:24px}
.wpcf7 label{display:block;font-size:13px;font-weight:bold;color:var(--green);margin-bottom:4px}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 select{
  font-family:var(--font);font-size:15px;padding:8px;border:1px solid var(--line);
  width:100%;background:#fff;color:var(--ink)}
.wpcf7 p{margin-bottom:16px}
.wpcf7 .wpcf7-acceptance label{display:flex;align-items:flex-start;gap:8px;
  font-weight:normal;color:var(--ink);font-size:13px;text-transform:none}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item{margin:0}
.wpcf7 input[type=submit]{display:inline-block;background:var(--navy);color:#fff;font-weight:bold;
  padding:12px 22px;border:0;cursor:pointer;font-family:var(--font);font-size:15px}
.wpcf7 input[type=submit]:hover{background:var(--green)}
.wpcf7 .wpcf7-not-valid-tip{color:#a4302a;font-size:12px;font-weight:bold}
.wpcf7 .wpcf7-response-output{margin:16px 0 0;padding:12px;font-size:14px;border:1px solid var(--line)}
/* directories */
.searchrow{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:10px;margin-bottom:20px}
.searchrow input,.searchrow select{font-family:var(--font);padding:10px;border:1px solid var(--line);width:100%}
.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.profile{background:#fff;border:1px solid var(--line);padding:16px;text-align:center}
.profile .plate{width:84px;height:84px;border-radius:50%;margin:0 auto 10px;min-height:0}
.profile b{color:var(--navy)}
.profile span{display:block;font-size:13px;color:var(--green)}
/* news, gallery, dashboard */
.news-item{display:grid;grid-template-columns:140px 1fr;gap:16px;background:#fff;
  border:1px solid var(--line);padding:16px;margin-bottom:12px}
.news-item h3{color:var(--navy);font-size:18px}
.news-item .meta{font-size:12px;color:var(--green);font-weight:bold}
.news-item--text{grid-template-columns:1fr}
.news-item img{width:100%;height:100%;min-height:64px;object-fit:cover;display:block}
.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 8px;padding:20px 24px 28px}
.bars{display:flex;gap:6px;align-items:flex-end;height:140px;padding:16px;background:#fff;
  border:1px solid var(--line)}
.bars i{flex:1;background:var(--green);display:block}
.bars i:nth-child(3n){background:var(--navy)}
/* responsive */
@media (max-width:760px){
  .split,.pillars,.map-layout{grid-template-columns:1fr}
  .profile-grid,.gallery-grid{grid-template-columns:repeat(2,1fr)}
  .dash-grid{grid-template-columns:repeat(2,1fr)}
  .searchrow{grid-template-columns:1fr 1fr}
  .event-card{grid-template-columns:1fr}
  .hero h1{font-size:28px}
  /* Phones keep the FULL illustration: at 375px wide a 2.125:1 image is only
     ~176px tall, so it already fits below the countdown's budget without any
     cropping. height:auto therefore beats cover here -- still edge-to-edge,
     but nothing trimmed and no upscaling. */
  .hero-media img{height:auto}
  .hero{padding:18px 24px 40px}
  .countdown .cd{min-width:60px;padding:8px}
  .countdown .cd b{font-size:26px}
  .popup{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto}
}
/* footer co-branding */
.cobrand{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.eu-left{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-right:24px}
.anni-logo{height:64px;width:auto;display:block}
.consortium-full{margin-top:4px}
.consortium-label{font-size:11px;font-weight:bold;text-transform:uppercase;letter-spacing:.14em;color:var(--green);margin-bottom:10px}
.foot-partners{display:flex;gap:14px}
.foot-cell{flex:1;height:80px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);padding:12px}
.foot-cell--ukim{padding:5px}
.foot-cell a{display:flex;align-items:center;justify-content:center;height:100%;width:100%}
.foot-cell img{max-height:100%;max-width:100%;object-fit:contain}
.foot-cell.placeholder{border-style:dashed;border-color:var(--green)}
.foot-cell.placeholder span{font-size:9px;color:var(--green);font-weight:bold;text-align:center;text-transform:uppercase;line-height:1.3}
.split-about{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media (max-width:760px){.foot-partners{flex-wrap:wrap}.foot-cell{flex:1 1 30%;height:60px}}
@media (max-width:480px){.split-about{grid-template-columns:1fr}}
.partner-list{display:grid;gap:16px}
.partner-detail{display:grid;grid-template-columns:220px 1fr;gap:24px;background:#fff;border:1px solid var(--line);padding:24px;align-items:center}
.pd-logo{display:flex;align-items:center;justify-content:center;height:110px}
.pd-logo img{max-height:100%;max-width:100%;object-fit:contain}
.pd-logo--ph{border:1px dashed var(--green)}
.pd-logo--ph span{color:var(--green);font-size:12px;font-weight:bold;text-align:center;text-transform:uppercase;line-height:1.5}
.pd-logo--ph em{font-weight:normal;text-transform:none;font-size:11px}
.pd-body h3{color:var(--navy);font-size:20px;margin-bottom:2px}
.pd-link{display:inline-block;font-size:13px;font-weight:bold;color:var(--green);margin-bottom:8px}
.pd-body p{font-size:14px}
.pd-role{margin-top:8px;color:var(--green)}
@media (max-width:760px){.partner-detail{grid-template-columns:1fr}.pd-logo{height:80px}}
/* cookie consent banner */
.cs-consent-banner{position:fixed;left:0;right:0;bottom:0;z-index:100;background:var(--navy);color:#fff;
  padding:18px 24px;display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap;
  box-shadow:0 -4px 16px rgba(0,0,0,.2)}
.cs-consent-banner p{margin:0;max-width:60ch;font-size:14px}
.cs-consent-actions{display:flex;gap:10px;flex-wrap:wrap}
.cs-cookie-settings{background:none;border:0;font:inherit;text-decoration:underline;cursor:pointer;color:inherit;padding:0}
@media (prefers-reduced-motion:no-preference){
  .cs-consent-banner{animation:cs-consent-in .25s ease-out}
}
@keyframes cs-consent-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media (max-width:760px){
  .cs-consent-banner{flex-direction:column;align-items:stretch;text-align:center}
}
