/* Danube Limes theme — the LIMES logo's palette (off-white, near-black, teal) and type, layered over Bootstrap 5.3 */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* only for the labels drawn over the printed maps, which are set in a serif */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette of the LIMES logo: off-white, near-black and the logo's teal; large surfaces stay light */
  --limes-teal: #80bcb4;          /* the logo's teal: bands, buttons and lines, always with near-black on top (too light for text) */
  --limes-symbol: #4a9188;        /* site symbols on the maps: between the logo's teal and the hover color */
  --limes-accent: #2a6a63;        /* dark teal: accents in text, active states, link hover; white text on it is fine */
  --limes-accent-hover: #1f4f4a;  /* darker teal: pressed states */
  --limes-link: #25605a;          /* links, focus outline */
  --limes-heading: #231f20;       /* the logo's near-black: headings, menu text */
  --limes-text: #3a3637;          /* body text */
  --limes-gold: var(--limes-teal);/* decorative lines only, never text */
  --limes-cream: #f8f7f6;         /* page background (the logo's off-white) */
  --limes-sand: #e8f1ef;          /* sections, page-header band (pale teal tint) */
  --limes-sand-dark: var(--limes-teal); /* utility bar, footer bottom strip, mobile menu box */
  --limes-footer: #eef3f2;        /* footer */
  --limes-apricot: #cfe6e2;       /* ::selection */
  --limes-line: #d3dad8;          /* borders, dividers */
  /* the logo's wavy line (the Danube), used under headings: .wave */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4C3 0 9 0 12 4S21 8 24 4' fill='none' stroke='%23231f20' stroke-width='1.7'/%3E%3C/svg%3E");

  --font-heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;   /* condensed capitals, after the LIMES wordmark */
  --font-label: "Jost", "Atkinson Hyperlegible Next", system-ui, sans-serif; /* wide-spaced small capitals, after the logo's subtitle */
  --font-map: "Cormorant Garamond", Georgia, serif;
  --bs-font-sans-serif: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--limes-text);
  --bs-body-bg: var(--limes-cream);
  --bs-body-font-size: 1.0625rem;
  --bs-primary: var(--limes-accent);
  --bs-primary-rgb: 42, 106, 99;
  --bs-link-color: var(--limes-link);
  --bs-link-color-rgb: 37, 96, 90;
  --bs-link-hover-color: var(--limes-heading);
  --bs-link-hover-color-rgb: 35, 31, 32;
  --bs-border-color: var(--limes-line);
  --bs-heading-color: var(--limes-heading);
}

::selection */
  --limes-line: #bccadb;          /* borders, dividers */

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bs-font-sans-serif: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--limes-text);
  --bs-body-bg: var(--limes-cream);
  --bs-body-font-size: 1.0625rem;
  --bs-primary: var(--limes-accent);
  --bs-primary-rgb: 104, 45, 89;
  --bs-link-color: var(--limes-link);
  --bs-link-color-rgb: 84, 36, 94;
  --bs-link-hover-color: var(--limes-accent);
  --bs-link-hover-color-rgb: 104, 45, 89;
  --bs-border-color: var(--limes-line);
  --bs-heading-color: var(--limes-heading);
}

::selection { background: var(--limes-apricot); color: var(--limes-heading); }
:focus-visible { outline: 2px dotted var(--limes-link); outline-offset: 2px; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
main:focus { outline: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; }
h3 { font-size: 1.6rem; }
.wave { display: block; width: 6.5rem; height: .6rem; background: var(--wave) left center / auto 100% repeat-x; }
.eyebrow { font-family: var(--font-label); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--limes-accent); margin: 0 0 .5rem; }
.section-title, .footer-title, .offcanvas-title, .modal-title { font-family: var(--bs-font-sans-serif); }

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* buttons: the logo's teal with near-black text; near-black on hover */
.btn-primary {
  --bs-btn-color: var(--limes-heading);
  --bs-btn-bg: var(--limes-teal);
  --bs-btn-border-color: var(--limes-teal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--limes-heading);
  --bs-btn-hover-border-color: var(--limes-heading);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--limes-heading);
  --bs-btn-active-border-color: var(--limes-heading);
}
/* on a teal surface */
.btn-ink {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--limes-heading);
  --bs-btn-border-color: var(--limes-heading);
  --bs-btn-hover-color: var(--limes-heading);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--limes-heading);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
}
.btn-primary, .btn-ink { --bs-btn-border-radius: 0; --bs-btn-font-size: .85rem; --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .55rem; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.btn-primary.btn-lg, .btn-ink.btn-lg { --bs-btn-font-size: .95rem; --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .8rem; }
.btn-primary.btn-sm { --bs-btn-font-size: .75rem; --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .35rem; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 2000;
  background: #fff; color: var(--limes-heading); padding: .5rem 1rem; border-radius: .25rem;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 2px 8px rgb(23 38 61 / .06); }

.utility-bar { background: var(--limes-sand-dark); font-size: .875rem; }
.utility-bar .container { min-height: 2.25rem; }
.utility-link, .lang-switch a { color: var(--limes-heading); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.utility-link:hover, .lang-switch a:hover { color: var(--limes-heading); text-decoration: underline; }
.lang-switch img { border: 1px solid rgb(0 0 0 / .15); border-radius: 2px; }
.lang-switch a { opacity: .75; }
.lang-switch a.active { opacity: 1; font-weight: 700; }

.main-bar { padding-block: .75rem; background: #fff; border-bottom: 3px solid var(--limes-gold); }
.brand { display: flex; align-items: center; margin-right: 1rem; padding-block: .25rem; }
/* the horizontal logo: complete from 1400px, without its last block (wave lines) below that */
.brand-logo { height: 28px; width: auto; flex-shrink: 0; }   /* phones: tower + wordmark + search + menu on one line */
/* the logo's tower (roof and block) on the left of the wordmark, as tall as it */
.brand-mark { height: 28px; width: auto; flex-shrink: 0; margin-right: .5rem; }
@media (max-width: 374.98px) { .brand-logo, .brand-mark { height: 23px; } .brand-mark { margin-right: .4rem; } }   /* smallest phones */
/* phones: tower + compact logo + search + menu buttons on one line.
   tower (1.8:1) + gap + compact logo (5.2:1) = 7.0 × height + 8px, in the width left of the search (~46px) and menu (~68px) buttons */
@media (max-width: 575.98px) {
  .brand { margin-right: 0; min-width: 0; }
  .brand-logo, .brand-mark { height: min(40px, calc((100vw - 24px - 68px - 46px - 8px) / 7.0)); }
  .brand-mark { margin-right: 8px; }
}
@media (min-width: 576px) { .brand-logo, .brand-mark { height: 42px; } .brand-mark { margin-right: .7rem; } }
/* phones and tablets (collapsed menu): LIMES + the segment block, without "Frontierele Imperiului Roman" (limes-m-*); desktop: the full logo */
.brand-logo-full { display: none; }
@media (min-width: 992px) { .brand-logo-compact { display: none; } .brand-logo-full { display: block; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .brand-logo, .brand-mark { height: 35px; } .brand-mark { margin-right: .5rem; } }   /* full logo + menu + search */
@media (min-width: 1400px) { .brand-logo, .brand-mark { height: 46px; } }

.btn-icon { font-size: 1.25rem; color: var(--limes-heading); border: 0; padding: .5rem .65rem; }
.btn-icon:hover { color: var(--limes-accent); }
.navbar-toggler { border: 0; }

.main-bar .nav-link {
  font-family: var(--font-label); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--limes-heading);
  padding: .5rem .7rem !important;
  border-bottom: 3px solid transparent;
}
.main-bar .nav-link:hover, .main-bar .nav-link:focus-visible { color: var(--limes-accent); }
.main-bar .nav-link.active { color: var(--limes-heading); border-bottom-color: var(--limes-teal); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--limes-accent); --bs-dropdown-link-hover-color: var(--limes-accent); --bs-dropdown-link-hover-bg: var(--limes-sand); border-radius: 0; border-top: 3px solid var(--limes-accent); }
.dropdown-item { color: var(--limes-heading); }

@media (min-width: 992px) { .main-bar .nav-link { white-space: nowrap; } }
/* 992–1199px: the menu needs the room */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-logo, .brand-mark { height: 32px; }
  .brand-mark { margin-right: .5rem; }
  .brand { margin-right: .25rem; }
  .main-bar .nav-link { font-size: .74rem; letter-spacing: .05em; padding: .5rem .4rem !important; }
}
@media (min-width: 992px) {
  /* desktop: submenus also open on hover */
  @media (hover: hover) {
    .main-bar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  }
}

@media (max-width: 991.98px) {
  .main-bar .nav-link { font-size: .95rem; }
  .main-bar .nav-link { border-bottom: 1px solid var(--limes-line); }
  .main-bar .nav-link.active { border-bottom-color: var(--limes-line); border-left: 4px solid var(--limes-teal); padding-left: .75rem !important; }
  .main-bar .dropdown-menu { border: 0; padding-left: 1rem; background: transparent; }
  .offcanvas-extra { margin-top: 1.5rem; padding: 1rem; background: var(--limes-sand-dark); display: flex; flex-direction: column; gap: .75rem; }
}

/* ---------- Content ---------- */
.page-header { background: var(--limes-sand); padding: 1.5rem 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--limes-line); }
.page-header h1 { margin: 0; font-size: calc(2.2rem + 1.6vw); }
.page-header h1::after { content: ""; display: block; width: 6.5rem; height: .6rem; margin-top: .7rem; background: var(--wave) left center / auto 100% repeat-x; }
.breadcrumb { font-size: .875rem; margin-bottom: .5rem; }
.breadcrumb a { text-decoration: none; }
.section { padding-block: 2rem 3rem; }
.section-beige { background: var(--limes-sand); }
.section-lg { padding-block: 4rem; }
/* centred section heading: small label, large title, the wave */
.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-head h2 { font-size: calc(1.6rem + 1vw); margin: 0; }   /* same size as the map heading (.section-head-start h2) */
.section-head .wave { margin: .9rem auto 0; }
.section-title { font-family: var(--font-label); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--limes-accent); margin-bottom: 1.5rem; }

/* home hero: a stone wall above a bend of the Danube (raw/hero/danube.jpeg, cropped to the river and the wall). From
   768px the photo fills the right 70% and fades into the page background on its left edge, behind the text (large
   surfaces stay light). On phones the photo is a band above the text. */
.hero { position: relative; overflow: hidden; color: var(--limes-text); background: var(--limes-cream); border-bottom: 1px solid var(--limes-line); }
.hero-photo { display: block; width: 100%; height: 6.5rem; object-fit: cover; object-position: 30% 50%; }   /* half height (user's choice); the wall and the river stay in view */
.hero .container { position: relative; padding-block: 1.5rem 1.75rem; }
.hero h1 { color: var(--limes-heading); font-size: calc(2.4rem + 2.4vw); max-width: 18ch; }
.hero .lead { max-width: 34rem; }
@media (min-width: 768px) {
  .hero { display: flex; align-items: center; min-height: min(34vh, 18rem); }
  .hero-photo { position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%; object-position: 50% 45%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(248 247 246 / .9) 0%, rgb(248 247 246 / .8) 40%, rgb(248 247 246 / 0) 58%); }
  .hero .container { z-index: 2; padding-block: 1.5rem; }
}

.teaser-card { border: 1px solid var(--limes-line); border-radius: 0; height: 100%; background: #fff; border-bottom: 3px solid var(--limes-gold); box-shadow: 0 2px 10px rgb(23 38 61 / .06); transition: transform .15s; }
.teaser-card:hover { transform: translateY(-3px); }
.teaser-card .card-img-top { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 9; background: var(--limes-sand); display: flex; align-items: center; justify-content: center; color: var(--limes-accent); font-size: 3rem; border-radius: 0; }
.teaser-card .card-title { font-size: 1.7rem; }
.teaser-card .card-title a { text-decoration: none; color: var(--limes-heading); }
.teaser-card .card-title a::after { content: ""; position: absolute; inset: 0; }
.teaser-card:hover .card-title a { color: var(--limes-accent); }
.teaser-card:has(.card-title a:focus-visible) { outline: 3px solid var(--limes-accent); outline-offset: 3px; }

/* home page: hero link, map heading with the list link, sites carousel (ancient name), reading guide, project intro */
.hero-actions, .home-intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1rem 0 0; }
.not-found .lead { max-width: 46rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero-link { font-family: var(--font-label); font-weight: 600; color: var(--limes-link); text-decoration: underline; text-underline-offset: .2em; }
.hero-link:hover { color: var(--limes-accent-hover); text-decoration-thickness: 2px; }
#harta { scroll-margin-top: calc(var(--header-h) + 2.5rem); }   /* the eyebrow above the heading stays in view too */
.home-map-section { padding-top: 1.5rem; }   /* close under the hero, so more of the map shows on arrival */
@media (min-width: 768px) { .home-map-section { padding-top: 2rem; } }
.home-map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1rem; }
.home-map-head .section-head { margin: 0; }
.home-map-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
@media (max-width: 575.98px) { .home-map-links { gap: .5rem; } .home-map-links .btn { --bs-btn-font-size: .78rem; --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .45rem; } }
.site-slide .g3d-name small { display: block; margin-top: .15rem; font-family: var(--bs-font-sans-serif); font-size: .85rem; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.reading-guide { display: grid; gap: 1.5rem 2.5rem; max-width: 62rem; margin: 0 auto; }
@media (min-width: 768px) { .reading-guide { grid-template-columns: 1fr 1fr; } }
.reading-guide li { border-left: 3px solid var(--limes-gold); padding: .2rem 0 .2rem 1.25rem; }
.reading-guide h3 { margin-bottom: .5rem; font-size: 1.5rem; }
.reading-guide h3 a { color: var(--limes-heading); text-decoration: underline; text-decoration-color: var(--limes-gold); text-underline-offset: .2em; }
.reading-guide h3 a:hover { color: var(--limes-accent); text-decoration-color: currentColor; }
.reading-guide p { margin: 0; }
.reading-guide h3 small { font-family: var(--bs-font-sans-serif); font-size: .85rem; font-weight: 400; text-transform: none; letter-spacing: 0; }   /* "(in Romanian)" on the EN page */
.home-intro { max-width: 46rem; margin: 0 auto; text-align: center; }
.home-intro h2 { font-size: calc(1.6rem + 1vw); margin: 0; }
.home-intro .wave { margin: .9rem auto 1.5rem; }
.home-intro-links { justify-content: center; margin-top: 1.5rem; }

.sitemap-tree, .sitemap-tree ul { list-style: none; padding-left: 1.25rem; border-left: 2px solid var(--limes-line); }
.sitemap-tree { padding-left: 0; border: 0; }
.sitemap-tree li { padding: .25rem 0; }

/* ---------- Archaeological sites: list ---------- */
/* label and search box share one line; the box wraps under the label when there is not enough room */
/* interactive sites map: printed map + SVG overlay (build.mjs sitesMap, popup in main.js) */
/* sites page: the map sits right under the title band, without the usual gap */
main:has(> .section > :is(.sites-map, .osm-map):first-child) > .page-header { margin-bottom: 0; }
.section:has(> :is(.sites-map, .osm-map, .sites-filter):first-child) { padding-top: 1.5rem; }
.sites-map { position: relative; margin: 0 0 2rem; background: #f5f5f5; border: 1px solid var(--limes-line); }
.sites-map > img, .sites-map > picture > img { display: block; width: 100%; height: auto; }
.sites-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-site { cursor: pointer; outline: none; text-decoration: none; }
.map-hit { fill: transparent; }
.map-label { font-family: var(--font-map); font-weight: 700; font-variant-caps: small-caps; letter-spacing: .02em; fill: #262626; }
.map-symbol { fill: #c1c1c1; stroke: #333; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .12s, fill .12s; }
.map-label-bg { fill: #f6f6f6; opacity: 0; }
/* sites printed on the map: symbol and label only appear on hover, over the printed ones */
.is-printed .map-label { opacity: 0; }
.is-printed .map-symbol, .has-printed-symbol .map-symbol { fill: transparent; stroke: transparent; }
.map-site:hover .map-label, .map-site:focus-visible .map-label, .map-site.is-active .map-label, .map-site.is-linked .map-label { opacity: 1; fill: var(--limes-accent); text-decoration: underline; text-decoration-thickness: 2px; }
.map-site:hover .map-label-bg, .map-site:focus-visible .map-label-bg, .map-site.is-active .map-label-bg, .map-site.is-linked .map-label-bg { opacity: .95; }
.map-site:hover .map-symbol, .map-site:focus-visible .map-symbol, .map-site.is-active .map-symbol, .map-site.is-linked .map-symbol { fill: var(--limes-accent); stroke: #fff; stroke-width: 3; transform: scale(1.4); }
.map-site:focus-visible .map-label-bg { stroke: var(--limes-link); stroke-width: 3; }
/* vector map (home): the Limes places in plum, the names always shown; places without a page are not links */
.is-vector .map-symbol { fill: none; stroke: none; }   /* the marker of the interactive map (.osm-symbol) */
.map-symbol-ring { fill: var(--limes-heading); transition: fill .12s; }
.map-symbol-core { fill: var(--limes-symbol); stroke: #fff; transition: fill .12s; }
.is-vector .map-label { fill: #1a1a1a; }
.is-vector .map-site:hover .map-symbol, .is-vector .map-site:focus-visible .map-symbol, .is-vector .map-site.is-active .map-symbol { fill: none; stroke: none; transform: scale(1.4); }
.map-site:hover .map-symbol-core, .map-site:focus-visible .map-symbol-core, .map-site.is-active .map-symbol-core { fill: var(--limes-accent); }
.map-site:hover .map-symbol-ring, .map-site:focus-visible .map-symbol-ring, .map-site.is-active .map-symbol-ring { fill: var(--limes-heading); }
.map-place { pointer-events: none; }
.map-popup { position: absolute; z-index: 5; width: 15rem; max-width: calc(100% - 1rem); display: block; background: #fff; border: 1px solid var(--limes-line); border-top: 3px solid var(--limes-accent); box-shadow: 0 6px 22px rgb(23 38 61 / .18); color: var(--limes-text); text-decoration: none; pointer-events: none; }
.map-popup.is-touch { pointer-events: auto; }
.map-popup img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--limes-sand); }
.map-popup-body { display: block; padding: .5rem .75rem .6rem; font-size: .8rem; line-height: 1.4; }
.map-popup strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.1; color: var(--limes-heading); }
.map-popup em { display: block; color: var(--limes-accent); margin-bottom: .3rem; }
.map-popup em:empty { display: none; }
.map-popup-text { display: block; }
.map-popup-more { display: none; margin-top: .4rem; color: var(--limes-link); font-weight: 700; text-decoration: underline; }
.map-popup.is-touch .map-popup-more { display: block; }
@media (max-width: 575.98px) { .map-popup { width: 12rem; } .map-popup-text { display: none; } }
/* from 576px: the photo on the left, the text on the right; the photo is as tall as the text */
@media (min-width: 576px) {
  .map-popup { width: 27rem; }
  .map-popup:not([hidden]) { display: flex; flex-direction: row; align-items: stretch; }
  .map-popup img { flex: 0 0 44%; width: 44%; height: auto; min-height: 8.5rem; aspect-ratio: auto; contain: size; }   /* the text sets the height */
  .map-popup-body { flex: 1 1 auto; min-width: 0; padding: .6rem .8rem .7rem; }
}

/* interactive map page: Leaflet + OpenStreetMap (build.mjs osmMap, markers and label placement in main.js) */
.osm-map { position: relative; margin: 0 0 1.5rem; border: 1px solid var(--limes-line); background: var(--limes-sand); }
.osm-map-list { columns: 12rem; margin: 0; padding: 1rem 1rem 1rem 2.25rem; }   /* shown until / unless the map loads */
.osm-map-canvas { height: min(74vh, 46rem); min-height: 22rem; font: inherit; background: var(--limes-sand); }
.osm-map .leaflet-tile-pane { filter: saturate(.55); }
.osm-marker { background: none; border: 0; }
.leaflet-container a.osm-site { position: absolute; left: 0; top: 0; width: 0; height: 0; color: #1d1d1d; text-decoration: none; outline: none; pointer-events: auto; }
.osm-symbol { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; box-sizing: border-box; background: var(--limes-symbol); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--limes-heading); transition: transform .12s, background-color .12s; }
.is-square .osm-symbol { border-radius: 0; }
.osm-symbol::before { content: ""; position: absolute; inset: -11px; }   /* larger target for fingers */
.osm-label { position: absolute; padding: 0 .2rem; white-space: nowrap; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 4px #fff, 0 0 6px #fff; }
.lbl-right .osm-label, .no-label .osm-label { left: 9px; top: 0; transform: translateY(-54%); }
.lbl-left .osm-label { right: 9px; top: 0; transform: translateY(-54%); }
.lbl-top .osm-label { left: 0; bottom: 8px; transform: translateX(-50%); }
.lbl-bottom .osm-label { left: 0; top: 8px; transform: translateX(-50%); }
.no-label .osm-label { opacity: 0; pointer-events: none; }
.osm-site:hover .osm-label, .osm-site:focus-visible .osm-label, .osm-site.is-active .osm-label { opacity: 1; color: var(--limes-accent); text-decoration: underline; text-decoration-thickness: 2px; text-shadow: none; background: rgb(255 255 255 / .92); border-radius: 3px; }
.osm-site:hover .osm-symbol, .osm-site:focus-visible .osm-symbol, .osm-site.is-active .osm-symbol { background: var(--limes-accent); box-shadow: 0 0 0 1.5px var(--limes-heading); transform: scale(1.4); }
.osm-site:focus-visible .osm-label { outline: 2px solid var(--limes-link); }
.osm-map .map-popup { z-index: 1100; }
.osm-tools { margin-top: 10px; }
.leaflet-bar a.osm-btn { display: flex; align-items: center; justify-content: center; color: var(--limes-heading); }
.osm-btn svg { width: 16px; height: 16px; fill: currentColor; }
.leaflet-bar a.osm-btn:hover { color: var(--limes-accent); }
.osm-msg { position: absolute; z-index: 1100; left: 50%; bottom: 2.25rem; transform: translateX(-50%); margin: 0; padding: .45rem .9rem; max-width: calc(100% - 2rem); background: var(--limes-heading); color: #fff; font-size: .9rem; border-radius: 3px; }
.osm-map.is-fullscreen { position: fixed; inset: 0; z-index: 2000; margin: 0; border: 0; }
.osm-map.is-fullscreen .osm-map-canvas { height: 100%; }
html.osm-fullscreen { overflow: hidden; }
@media (max-width: 575.98px) { .osm-map-canvas { height: 68vh; } .osm-map .map-popup-text { display: block; } }

/* sites page: the filter bar opens the page, right under the title band */
main:has(> .section > .sites-filter:first-child) > .page-header { margin-bottom: 0; }   /* with the padding rule below */
/* sites page filter bar: search, region chips and the map link on one line from 1200px; below that the
   search and the map link share the first line and the chips take the second (scrolling sideways on phones) */
.sites-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.25rem; }
.sites-filter .form-control { flex: 1 1 10rem; min-width: 0; order: 1; }
.sites-filter .region-chips { order: 3; flex: 1 1 100%; margin: 0; }
.sites-filter-map { order: 2; flex: 0 0 auto; white-space: nowrap; }
.sites-count { order: 4; flex-basis: 100%; font-size: .875rem; color: var(--limes-text); margin: 0; min-height: 1.3em; }
@media (min-width: 1200px) {
  .sites-filter .form-control { flex: 0 1 19rem; }
  .sites-filter .region-chips { order: 2; flex: 1 1 auto; }
  .sites-filter-map { order: 3; margin-left: auto; }
}
@media (max-width: 575.98px) {
  .sites-filter { column-gap: .5rem; }
  .sites-filter-map { padding-inline: .75rem; font-size: .8rem; }
  .sites-filter .region-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); }
  .sites-filter .region-chips::-webkit-scrollbar { display: none; }
  .region-chip { flex: 0 0 auto; white-space: nowrap; }
}
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 1.25rem; }
.site-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--limes-line); border-bottom: 3px solid var(--limes-gold); text-decoration: none; color: var(--limes-heading); transition: transform .15s, box-shadow .15s; }
.site-card a:hover, .site-card a.is-linked { transform: translateY(-3px); box-shadow: 0 4px 14px rgb(74 52 40 / .12); color: var(--limes-accent); }
.site-card img, .site-card-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--limes-sand); }
.site-card-label { padding: .75rem .9rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.site-card-label small { display: block; font-family: var(--bs-font-sans-serif); font-weight: 400; font-style: italic; font-size: .85rem; color: var(--limes-text); margin-top: .2rem; }
.sites-empty { margin-top: 1rem; font-style: italic; }

/* ---------- About Limes: hub page ---------- */
.limes-intro { margin-bottom: 2.5rem; }
/* two chapter cards side by side, the wide sites-map card below them; one column on phones */
.limes-hub { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .limes-hub { grid-template-columns: 1fr 1fr; } .hub-card-wide { grid-column: 1 / -1; } }
.hub-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--limes-line); border-bottom: 3px solid var(--limes-gold); text-decoration: none; color: var(--limes-heading); transition: transform .15s, box-shadow .15s; }
.hub-card a:hover, .hub-card a:focus-visible { transform: translateY(-3px); box-shadow: 0 4px 14px rgb(0 0 0 / .12); color: var(--limes-accent); }
.hub-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--limes-sand); }
.hub-card-wide img { aspect-ratio: auto; object-fit: contain; }
.hub-card-label { padding: 1rem 1.15rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.hub-card-label small { display: block; font-family: var(--bs-font-sans-serif); font-weight: 400; font-style: italic; font-size: .85rem; color: var(--limes-text); margin-top: .3rem; }
.hub-card-wide .hub-card-label { font-size: 1.6rem; }

/* ---------- About Limes: chapter pages (text from the publication) ---------- */
.chapter-source { font-size: .9rem; font-style: italic; color: var(--limes-text); border-left: 3px solid var(--limes-gold); padding-left: .9rem; margin-bottom: 2rem; }
.chapter h2 { font-family: var(--bs-font-sans-serif); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--limes-accent); margin: 2.5rem 0 1rem; }
.chapter p { line-height: 1.7; }
.chapter-figure { max-width: 56rem; margin: 2rem auto; }
.chapter-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--limes-line); background: #fff; }
.chapter-figure-narrow { max-width: 24rem; margin-inline: auto; }
.chapter-figure figcaption { font-size: .875rem; color: var(--limes-text); margin-top: .6rem; text-align: center; }
.chapter-bibliography { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--limes-line); }
.chapter-bibliography ul { padding-left: 0; list-style: none; font-size: .875rem; line-height: 1.5; }
.chapter-bibliography li { margin-bottom: .5rem; padding-left: 1.25rem; text-indent: -1.25rem; overflow-wrap: anywhere; }

/* ---------- Archaeological sites: detail ---------- */
.page-subtitle { font-family: var(--font-label); font-weight: 500; font-size: 1rem; text-transform: uppercase; letter-spacing: .18em; color: var(--limes-accent); margin: .75rem 0 0; }
.site-cover { margin: 0 0 1.75rem; }
.site-subheading { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.site-coords { font-size: .9rem; color: var(--limes-accent); font-variant-numeric: tabular-nums; margin-bottom: .25rem; }
.site-cover img { width: 100%; height: auto; display: block; }
.site-cover figcaption, .site-figure figcaption { font-size: .85rem; color: var(--limes-text); margin-top: .4rem; line-height: 1.35; }
.site-text { margin-top: 2rem; display: flow-root; }
.site-text .site-subheading { clear: both; }
/* plans and photos placed in the text, next to the passage they accompany in the book */
.site-inline, .site-inline-wide, .site-inline-group { margin: .5rem 0 1.5rem; }
.site-inline-group { display: flex; flex-direction: column; gap: 1.25rem; clear: both; }
@media (min-width: 576px) {
  .site-inline-group { flex-direction: row; align-items: flex-start; }
  .site-inline-group > .site-figure { flex: var(--ar, 1) 1 0; min-width: 0; }
}
.site-inline-wide { clear: both; }
@media (min-width: 768px) {
  .site-inline { clear: both; }
  .site-inline-landscape { width: 46%; }
  .site-inline-portrait { width: 32%; }
  .site-inline-tall { width: 24%; }
  .site-inline-end { float: right; margin-left: 2rem; }
  .site-inline-start { float: left; margin-right: 2rem; }
}
.site-facts { background: var(--limes-sand); border-top: 3px solid var(--limes-accent); padding: 1.25rem 1.25rem .5rem; margin-bottom: 1.5rem; }
.site-facts dl { margin: 0; }
.site-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--limes-accent); }
.site-facts dd { margin: 0 0 .9rem; }
.site-facts-links { list-style: none; margin: 0; padding: 0; }
.site-facts-links li + li { margin-top: .2rem; }
.site-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--limes-line); }
.site-section h2 { margin-bottom: 1.25rem; }
.site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.site-figure { margin: 0; }
.site-figure img { width: 100%; height: auto; display: block; background: var(--limes-sand); }
.site-figure-link { display: block; cursor: zoom-in; }
.site-figure-link:hover img { opacity: .9; }
.site-figure-map { background: #fff; border: 1px solid var(--limes-line); padding: .5rem; }
.site-bibliography { font-size: .9rem; padding-left: 1.1rem; }
.site-bibliography li { margin-bottom: .4rem; }
.site-today { background: var(--limes-sand); margin-inline: calc(var(--bs-gutter-x) * -.5); padding: 2rem calc(var(--bs-gutter-x) * .5); border-top: 0; }
.site-credit { margin-top: 2.5rem; font-size: .85rem; color: var(--limes-text); border-top: 1px solid var(--limes-line); padding-top: 1rem; }

/* image viewer (main.js) */
.lightbox .modal-content { background: #1f1814; color: #f3e9da; border: 0; }
.lightbox .modal-body { display: flex; flex-direction: column; align-items: center; padding: 3rem 3.5rem 1.25rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; }
.lightbox figcaption { margin-top: .75rem; font-size: .9rem; text-align: center; max-width: 48rem; }
.lightbox .btn-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.lightbox-nav:hover { background: var(--limes-accent); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--limes-footer); color: var(--limes-text); margin-top: 3rem; border-top: 3px solid var(--limes-gold); }
.site-footer a { color: var(--limes-link); }
.site-footer a:hover { color: var(--limes-accent); text-decoration-thickness: 2px; }
.footer-main { padding-block: 3rem; }
.footer-logo { display: block; width: 132px; height: auto; }
.footer-title { font-family: var(--font-label); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .16em; color: var(--limes-heading); border-bottom: 2px solid var(--limes-gold); display: inline-block; padding-bottom: .35rem; margin-bottom: 1rem; }
.footer-links li { padding: .2rem 0; }
.footer-ext::after { content: " ↗"; }
.social-links a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--limes-accent); border-radius: 50%; font-size: 1.1rem; color: var(--limes-accent); background: #fff; }
.social-links a:hover { background: var(--limes-accent); color: #fff; }
.footer-bottom { background: var(--limes-sand-dark); color: var(--limes-heading); font-size: .875rem; padding-block: 1rem; }
.site-footer .footer-bottom a, .site-footer .footer-bottom a:hover { color: var(--limes-heading); }

/* ---------- Search (Pagefind UI) ---------- */
#search {
  --pagefind-ui-primary: var(--limes-accent);
  --pagefind-ui-text: var(--limes-text);
  --pagefind-ui-border: var(--bs-border-color);
  --pagefind-ui-tag: var(--limes-sand);
  --pagefind-ui-font: var(--bs-font-sans-serif);
}

picture { display: contents; }
/* names set in the heading font outside real headings */
.site-card-label, .hub-card-label, .site-pager-link strong, .map-popup strong { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.site-card-label small { text-transform: none; letter-spacing: 0; }

/* sites list: region chips next to the name filter */
.region-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 .25rem; }
.region-chip { border: 1px solid var(--limes-line); background: #fff; color: var(--limes-heading); padding: .3rem .85rem; border-radius: 2rem; font-size: .9rem; line-height: 1.4; }
.region-chip:hover { border-color: var(--limes-accent); color: var(--limes-accent); }
.region-chip.active { background: var(--limes-accent); border-color: var(--limes-accent); color: #fff; }

/* site pages: the site's photo as a very faint watermark behind the whole page, fixed while scrolling;
   it fades out towards the bottom and stays under all content */
.site-watermark { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-size: cover; background-position: center; opacity: .09; filter: grayscale(.4) sepia(.15);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
main:has(> .site-watermark) { position: relative; isolation: isolate; }
/* the title band of a site page: the photo on the right half, fading into the band towards the title */
.page-header.has-watermark { position: relative; overflow: hidden; isolation: isolate; }
.page-header.has-watermark::before { content: ""; position: absolute; inset: 0 0 0 35%; z-index: -1; pointer-events: none; background: var(--site-wm) var(--site-wm-pos, center) / cover no-repeat; opacity: .35; filter: grayscale(.3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
@media print { .site-watermark { display: none; } }
/* site pages: sticky bar with the page's sections, previous / next site at the end */
:root { --header-h: 5rem; }
.site-detail [id], .site-detail { scroll-margin-top: calc(var(--header-h) + 4rem); }
.page-header:has(+ .site-subnav) { margin-bottom: 0; }
.site-subnav { position: sticky; top: var(--header-h); z-index: 1020; background: #fff; border-bottom: 1px solid var(--limes-line); box-shadow: 0 2px 6px rgb(23 38 61 / .05); font-size: .95rem; }
.site-subnav ul { display: flex; gap: .25rem 1.5rem; margin: 0; overflow-x: auto; white-space: nowrap; }
.site-subnav a { display: block; padding: .65rem 0; color: var(--limes-heading); text-decoration: none; border-bottom: 3px solid transparent; }
.site-subnav a:hover, .site-subnav a:focus-visible { color: var(--limes-accent); border-bottom-color: var(--limes-accent); }
.site-subnav .icon { margin-right: .35rem; font-size: .9em; }
.site-subnav a[aria-current="page"] { color: var(--limes-accent); font-weight: 700; border-bottom-color: var(--limes-accent); }
.site-subnav-map { margin-left: auto; }
.site-subnav-map a { color: var(--limes-link); font-weight: 700; }
.site-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; margin-block: 0 3rem; }
.site-pager-link { display: flex; flex-direction: column; justify-content: center; padding: .9rem 1.1rem; text-decoration: none; color: var(--limes-heading); }
a.site-pager-link { background: #fff; border: 1px solid var(--limes-line); border-bottom: 3px solid var(--limes-gold); }
a.site-pager-link:hover, a.site-pager-link:focus-visible { color: var(--limes-accent); border-bottom-color: var(--limes-accent); }
.site-pager-link span { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--limes-text); }
.site-pager-link strong { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.15; }
.site-pager-link.is-prev span::before { content: "\2190\00a0"; }
.site-pager-link.is-next { text-align: right; }
.site-pager-link.is-next span::after { content: "\00a0\2192"; }
.site-pager-all { align-self: center; padding: .5rem .75rem; font-weight: 700; text-align: center; }
@media (max-width: 575.98px) {
  .site-pager { grid-template-columns: 1fr 1fr; }
  .site-pager-all { grid-column: 1 / -1; grid-row: 2; }
  .site-pager-link strong { font-size: 1.15rem; }
}

/* ---------- Team: list, person page, CV page ---------- */
/* team cards ("Despre proiect", section Echipa): the portrait on the left and the text beside it */
/* business-card layout: 1 per row on phones, 2 from 768px, 3 from 1400px */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 34rem; margin: 1.5rem auto 0; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (min-width: 1400px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .team-card a { grid-template-columns: 8rem minmax(0, 1fr); align-items: start; }
  .team-card img, .team-card-noimg { width: 8rem; }
  .team-card-body { padding: .9rem 1.1rem; }
  .team-card-name { font-size: 1.45rem; }
  .team-card-title { font-size: .92rem; }
  .team-card-inst { font-size: .85rem; }
  .team-card-spec span { font-size: .78rem; padding: .15rem .6rem; }
}
/* portrait | name, title, institution, specializations */
.team-card a { display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; height: 100%; border: 1px solid var(--limes-line); text-decoration: none; color: var(--limes-text); }
.team-card a:focus-visible { outline: 3px solid var(--limes-accent); outline-offset: 3px; }
.team-card img, .team-card-noimg { display: block; width: 9rem; height: auto; align-self: start; aspect-ratio: 4 / 5; object-fit: cover; background: var(--limes-sand); }
.team-card-body { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; gap: .3rem; padding: 1rem 1.4rem; overflow-wrap: normal; hyphens: manual; }
.team-card-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--limes-heading); }
.team-card-role { font-size: .85rem; font-weight: 700; color: var(--limes-accent); }
.team-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--limes-text); }
.team-card-inst { font-size: .92rem; line-height: 1.35; color: color-mix(in srgb, var(--limes-text) 75%, #fff); }
/* explicit cells, so nothing else inside the link (the <picture> wrapper, pseudo-elements) shifts them */
.team-card a > picture > img, .team-card a > img, .team-card a > .team-card-noimg { grid-column: 1; grid-row: 1; }
.team-card-body { grid-column: 2; grid-row: 1; }
.team-card-spec-label { margin-top: .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--limes-accent); }
.team-card-spec { display: flex; flex-wrap: wrap; gap: .35rem .4rem; }
.team-card-spec span { padding: .2rem .7rem; background: var(--limes-sand); border: 1px solid var(--limes-line); border-radius: 1rem; font-size: .82rem; line-height: 1.35; color: var(--limes-heading); }
.team-card a:hover .team-card-name, .team-card a:focus-visible .team-card-name { color: var(--limes-accent); }
@media (max-width: 575.98px) { .team-card a { grid-template-columns: 6.5rem minmax(0, 1fr); } .team-card img, .team-card-noimg { width: 6.5rem; } .team-card-spec span { font-size: .75rem; padding: .15rem .55rem; } .team-card-name { font-size: 1.25rem; } .team-card-body { padding: .6rem .8rem; gap: .2rem; } .team-card-title { font-size: .85rem; } .team-card-inst { font-size: .8rem; } }
@media (max-width: 359.98px) { .team-card a { grid-template-columns: 5.5rem minmax(0, 1fr); } .team-card img, .team-card-noimg { width: 5.5rem; } }
/* the portrait sits at the top left of the card, the same distance from the top and the left edge */
.team-card a { align-items: start; }
.team-card img, .team-card-noimg { align-self: start; margin: .9rem 0 .9rem .9rem; }
.team-card a { grid-template-columns: calc(9rem + .9rem) minmax(0, 1fr); }
@media (min-width: 768px) { .team-card a { grid-template-columns: calc(8rem + .9rem) minmax(0, 1fr); } .team-card img, .team-card-noimg { width: 8rem; } }
@media (max-width: 575.98px) { .team-card a { grid-template-columns: calc(6.5rem + .7rem) minmax(0, 1fr); } .team-card img, .team-card-noimg { width: 6.5rem; margin: .7rem 0 .7rem .7rem; } }
@media (max-width: 359.98px) { .team-card a { grid-template-columns: calc(5.5rem + .6rem) minmax(0, 1fr); } .team-card img, .team-card-noimg { width: 5.5rem; margin: .6rem 0 .6rem .6rem; } }
/* wide screens: the cards use a little more than the text column, centred on the page */
@media (min-width: 1400px) { .team-grid { width: min(calc(100vw - 4rem), 90rem); margin-left: 50%; transform: translateX(-50%); } }

.person-top { display: flow-root; }
/* phones: the photo (with the CV button under it) floats beside the name and details, the description runs
   full width below */
.person-side { float: left; width: 7.5rem; margin: 0 1.1rem .75rem 0; }
.person-side .btn { display: block; margin-top: .75rem; padding: .35rem .25rem; font-size: .8rem; }
.person-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--limes-sand); border-bottom: 3px solid var(--limes-gold); }
.person-institution { font-family: var(--font-label); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--limes-accent); margin: 0 0 .2rem; }
.person-name { font-size: clamp(2.1rem, 6vw, 4rem); line-height: .98; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.person-role { font-family: var(--font-label); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; color: var(--limes-accent); margin: 0 0 .5rem; }
.person-title { font-weight: 700; color: var(--limes-heading); margin: 0; }
/* specialization: one tag per field (the profile separates them with " · ") */
.person-spec { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .7rem 0 0; }
.person-spec li { padding: .2rem .7rem; background: var(--limes-sand); border: 1px solid var(--limes-line); border-radius: 1rem; font-size: .85rem; line-height: 1.35; color: var(--limes-heading); }
.person-text { clear: both; padding-top: .75rem; max-width: 60rem; }
.person-text p { line-height: 1.7; }
.person-text > :last-child { margin-bottom: 0; }
@media (min-width: 576px) {
  .person-top { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; align-items: start; }
  .person-side { float: none; width: auto; margin: 0; }
  .person-side .btn { margin-top: 1rem; padding: .5rem .75rem; font-size: 1rem; }
  .person-id { min-width: 0; }
  .person-text { padding-top: 1.25rem; }
}
@media (min-width: 992px) { .person-top { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; } }
/* the person's name is the page title: the band above keeps only the breadcrumb */
.page-header:not(:has(h1)) { padding-block: .9rem; }
.page-header:not(:has(h1)) .breadcrumb { margin-bottom: 0; }
.pub-heading { font-family: var(--bs-font-sans-serif); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--limes-accent); margin: 2rem 0 .9rem; }
.pub-count { font-weight: 400; color: var(--limes-text); margin-left: .25rem; }
.pub-count::before { content: "("; }
.pub-count::after { content: ")"; }
.pub-list { list-style: none; padding: 0; margin: 0; max-width: 60rem; }
.pub-list li { padding: .55rem 0 .55rem 1rem; border-left: 3px solid var(--limes-line); margin-bottom: .5rem; line-height: 1.5; overflow-wrap: anywhere; }
.pub-rest summary { display: inline-block; cursor: pointer; margin: .5rem 0 1rem; padding: .35rem .9rem; border: 1px solid var(--limes-accent); border-radius: var(--bs-border-radius); color: var(--limes-accent); font-weight: 700; list-style: none; }
.pub-rest summary::-webkit-details-marker { display: none; }
.pub-rest summary:hover { background: var(--limes-accent); color: #fff; }
.pub-rest[open] summary { display: none; }
.pub-sources { padding-left: 1.1rem; }
.pub-sources li { margin-bottom: .35rem; }
.person-back { margin: 3rem 0 0; font-weight: 700; }

.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.cv-back { font-weight: 700; }
.cv-pages { max-width: 62rem; margin: 0 auto; }
.cv-pages li { margin-bottom: 1.25rem; }
.cv-pages img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--limes-line); box-shadow: 0 2px 10px rgb(23 38 61 / .08); }
@media (max-width: 575.98px) { .cv .container, .container.cv { padding-inline: .5rem; } .cv-pages li { margin-bottom: .6rem; } }

.lightbox-count { margin: .5rem 0 0; font-size: .8rem; opacity: .7; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1025; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--limes-accent); color: #fff; font-size: 1.1rem; box-shadow: 0 3px 10px rgb(23 38 61 / .25); }
.back-to-top:hover { background: var(--limes-accent-hover); }

.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 3px solid var(--limes-accent); box-shadow: 0 -4px 16px rgb(23 38 61 / .12); padding: .75rem 0; font-size: .9rem; }
.cookie-notice .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.cookie-notice p { margin: 0; flex: 1 1 20rem; }

/* ---- calm effects (user's choice: 1 hero, 2 reveal on scroll, 4 card hover, 6 reading progress,
   9 paper texture, 11 wave drawn); all off with prefers-reduced-motion (end of file) ---- */
/* 1. hero: the text rises once on load (the slow photo zoom was removed: user's choice) */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero .container > * { animation: rise-in .9s ease-out both; }
.hero .container > :nth-child(2) { animation-delay: .15s; }
.hero .container > :nth-child(3) { animation-delay: .3s; }
/* 2. reveal on scroll: main.js marks the elements below the fold .reveal and adds .is-in when they come into view */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease-out, transform .8s ease-out; transition-delay: var(--reveal-delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* 4. cards: the photo zooms slowly, a teal line grows over the gold one at the bottom */
.site-card a, .team-card a, .hub-card a, .teaser-card {
  position: relative; overflow: hidden; border-bottom-color: transparent;
  background: linear-gradient(var(--limes-accent), var(--limes-accent)) left bottom / 0 3px no-repeat border-box,
              linear-gradient(var(--limes-gold), var(--limes-gold)) left bottom / 100% 3px no-repeat border-box, #fff;
  transition: transform .25s ease, box-shadow .25s ease, background-size .45s ease;
}
.site-card a:hover, .site-card a.is-linked, .team-card a:hover, .team-card a:focus-visible, .hub-card a:hover, .hub-card a:focus-visible, .teaser-card:hover {
  border-bottom-color: transparent; background-size: 100% 3px, 100% 3px, auto; box-shadow: 0 8px 22px rgb(23 38 61 / .12);
}
/* site and team cards: no lift and no shadow, only the photo zoom and the line (user's choice) */
.site-card a:hover, .site-card a.is-linked, .team-card a:hover, .team-card a:focus-visible { transform: none; box-shadow: none; }
.site-card img, .team-card img, .hub-card img, .teaser-card .card-img-top { transition: transform .8s ease; }
.site-card a:hover img, .team-card a:hover img, .hub-card a:hover img, .teaser-card:hover .card-img-top { transform: scale(1.05); }
/* 6. site pages: a thin reading-progress line under the sticky section bar (main.js sets --progress) */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--limes-accent); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }
/* 9. a faint paper texture on the pale bands (inline SVG noise, nothing loaded) */
:root { --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.page-header, .section-beige { background-image: var(--paper); }
/* 11. the wave under headings draws itself from left to right (page titles on load, section heads when revealed) */
@keyframes wave-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.page-header h1::after { animation: wave-draw 1.1s ease-out .35s both; }
.reveal .wave { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s ease-out .35s; }
.reveal.is-in .wave { clip-path: inset(0); }

@media print {
  .site-header, .site-footer, .site-subnav, .site-pager, .back-to-top, .cookie-notice, .sites-filter, .osm-map, .cv-actions, .person-back, .breadcrumb, .skip-link, .lightbox, .modal { display: none !important; }
  body { display: block; background: #fff; color: #000; font-size: 11pt; }
  .container { max-width: none; }
  .page-header { background: none; border: 0; padding: 0; margin-bottom: 1rem; }
  .section { padding-block: 0 1rem; }
  figure, .site-inline-group, .site-facts { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  .teaser-card, .site-card a, .team-card a, .hub-card a, .map-symbol, .osm-symbol { transition: none; }
  .hero .container > *, .page-header h1::after { animation: none; }
  .site-card img, .team-card img, .hub-card img, .teaser-card .card-img-top { transition: none; transform: none !important; }
  .reveal, .reveal .wave { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* "Despre proiect": links to the pages under it (Echipa, Misiunea noastră), which left the main menu */
.about-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Site file ("Fișa sitului", tools/extract_fise.py) ---------- */
.fisa > * { max-width: 64rem; }
.fisa-intro { color: var(--limes-text); font-size: .95rem; border-left: 3px solid var(--limes-teal); padding-left: .9rem; margin-bottom: 2rem; }
.fisa-toc { background: var(--limes-sand); padding: 1rem 1.25rem; margin-bottom: 2.5rem; }
.fisa-toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.fisa-toc li { margin-bottom: .25rem; break-inside: avoid; }
.fisa-part { margin-bottom: 3rem; scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
.fisa-part > h2 { font-size: 1.9rem; padding-bottom: .4rem; border-bottom: 2px solid var(--limes-teal); margin-bottom: 1.5rem; }
.fisa-section-title { font-size: 1.45rem; margin: 2.25rem 0 1rem; }
.fisa-part > h2 + .fisa-section-title { margin-top: 0; }
.fisa-num { color: var(--limes-accent); }
.fisa-block { background: var(--bs-body-bg); border: 1px solid var(--limes-line); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.fisa-block > p:last-child { margin-bottom: 0; }
.fisa-label { font-family: var(--font-label); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--limes-accent); margin: 1rem 0 .5rem; }
.fisa-block > .fisa-label:first-child { margin-top: 0; }
.fisa-table-wrap { overflow-x: auto; margin: .25rem 0 .75rem; }
.fisa-table-wrap:last-child { margin-bottom: 0; }
.fisa-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fisa-table th, .fisa-table td { border: 1px solid var(--limes-line); padding: .5rem .7rem; vertical-align: top; text-align: left; }
.fisa-table thead th { background: var(--limes-sand); font-family: var(--font-label); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.fisa-table th[scope="row"] { font-weight: 600; width: 24%; min-width: 9rem; }
.fisa-table p { margin: 0; }
.fisa-table .fisa-subhead th { background: var(--limes-sand); font-weight: 600; }
.fisa-table p + p { margin-top: .4rem; }
.fisa-gallery { margin-top: 0; }
.fisa-figure-imgs { display: flex; gap: .35rem; align-items: flex-start; }
.fisa-figure-imgs > a { flex: var(--ar, 1) 1 0; min-width: 0; }
.fisa-figure.is-multi { grid-column: span 2; }
@media (max-width: 575.98px) { .fisa-figure.is-multi { grid-column: auto; } }
.fisa-back { margin-bottom: 3rem; }
.fisa-back a::before { content: "← "; }
@media (max-width: 575.98px) {
  .fisa-block { padding: .8rem .85rem; }
  .fisa-table { font-size: .86rem; }
  .fisa-table th[scope="row"] { min-width: 7rem; }
}
@media print { .fisa-block { break-inside: avoid; } }

/* ---------------------------------------------------------------- 3D gallery (page gallery3d, data/gallery3d.json) */
/* cards: the image with the name over its lower edge (on a dark gradient), separated by white space and a frame */
.g3d-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem 0 0; }
@media (min-width: 576px) { .g3d-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (min-width: 1200px) { .g3d-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
/* hover like the site and team cards: no lift and no shadow, only the photo zoom and a dark-teal line growing over the gold one */
.g3d-card a { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--limes-heading); border: 1px solid var(--limes-line); color: #fff; text-decoration: none; }
.g3d-card a::before, .g3d-card a::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 3px; background: var(--limes-gold); }
.g3d-card a::after { background: var(--limes-accent); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.g3d-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.g3d-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1rem .9rem; background: linear-gradient(to top, rgb(20 18 19 / .88), rgb(20 18 19 / .55) 55%, transparent);
  font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.g3d-badge { position: absolute; top: .75rem; right: .75rem; padding: .15rem .5rem; background: rgb(255 255 255 / .92); color: var(--limes-heading); font-family: var(--font-label); font-size: .75rem; font-weight: 600; letter-spacing: .08em; border-radius: 2px; }
/* site pages: the site's 3D models as small gallery cards (same hover effect as the gallery) */
.site-models-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; }
@media (min-width: 768px) { .site-models-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1200px) { .site-models-grid { grid-template-columns: repeat(4, 1fr); } }
.site-models-grid .g3d-name { padding: 2rem .75rem .6rem; font-size: 1.05rem; }
.site-models-grid .g3d-badge { top: .5rem; right: .5rem; font-size: .7rem; }
.g3d-card a:hover img, .g3d-card a:focus-visible img { transform: scale(1.05); }
.g3d-card a:hover::after, .g3d-card a:focus-visible::after { transform: scaleX(1); }
.g3d-card a:focus-visible { outline: 3px solid var(--limes-accent); outline-offset: 3px; }

/* model page: viewer (click to load the Sketchfab iframe) with the description beside it from 992px, below it on tablets and phones */
.g3d-viewer { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1a1b; border: 1px solid var(--limes-line); }
@media (max-width: 575.98px) { .g3d-viewer { aspect-ratio: 4 / 3; } }
.g3d-viewer img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s ease; }
.g3d-viewer:hover img { opacity: 1; }
.g3d-viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g3d-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.3rem; background: var(--limes-teal); color: var(--limes-heading);
  font-family: var(--font-label); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 16px rgb(0 0 0 / .3); transition: background-color .2s, color .2s; }
.g3d-load svg { width: 1em; height: 1em; fill: currentColor; }
.g3d-viewer:hover .g3d-load, .g3d-viewer:focus-visible .g3d-load { background: var(--limes-heading); color: #fff; }
.g3d-notice { margin: .6rem 0 0; font-size: .85rem; color: var(--limes-text); }
.g3d-viewer.is-loaded + .g3d-notice { display: none; }
.g3d-text p { line-height: 1.6; }
.g3d-facts { margin: 1.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--limes-line); }
.g3d-facts dt { font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--limes-accent); }
.g3d-facts dd { margin-bottom: .6rem; }
.g3d-ref { letter-spacing: .04em; }
/* the copy-link button looks like the "Vezi pe Sketchfab" link above it */
.g3d-copy { padding: 0; border: 0; background: none; color: var(--limes-link); font: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.g3d-copy:hover { color: var(--limes-accent-hover); }
.g3d-back { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--limes-line); text-align: center; }
.g3d-back a::before { content: "← "; }
/* home page carousel of the 3D models: scroll-snap list (1 / 2 / 3 cards at 0 / 768 / 992 px); main.js adds autoplay
   and the buttons. The padding keeps the keyboard outline of the cards inside the scrolling box. */
.g3d-carousel { --g3d-gap: 1.5rem; --g3d-per: 1; margin-top: 2rem; }
@media (min-width: 768px) { .g3d-carousel { --g3d-per: 2; } }
@media (min-width: 992px) { .g3d-carousel { --g3d-per: 3; --g3d-gap: 2rem; } }
.g3d-track { display: flex; gap: var(--g3d-gap); margin: 0 -6px; padding: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; overscroll-behavior-x: contain; overflow-anchor: none; }
.g3d-track > .g3d-card { flex: 0 0 calc((100% - (var(--g3d-per) - 1) * var(--g3d-gap)) / var(--g3d-per)); scroll-snap-align: start; }
.g3d-carousel.is-ready .g3d-track { scrollbar-width: none; }
.g3d-carousel.is-ready .g3d-track::-webkit-scrollbar { display: none; }
.g3d-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.g3d-buttons { display: flex; gap: .5rem; }
.g3d-buttons[hidden] { display: none; }
.g3d-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--limes-teal); background: #fff; color: var(--limes-heading); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.g3d-btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.g3d-btn:hover { background: var(--limes-heading); border-color: var(--limes-heading); color: #fff; }
.g3d-btn:focus-visible { outline: 3px solid var(--limes-accent); outline-offset: 2px; }
.g3d-play svg + svg, .g3d-play.is-paused svg:first-child { display: none; }
.g3d-play.is-paused svg + svg { display: block; }
@media (prefers-reduced-motion: reduce) { .g3d-card img, .g3d-card a::after, .g3d-btn { transition: none; } .g3d-card a:hover img { transform: none; } }
@media print { .g3d-load, .g3d-copy, .g3d-notice, .g3d-buttons { display: none !important; } }

/* team page: the person's description in a popup under the card (above it when there is no room below) on hover or
   keyboard focus, on devices with a mouse only; it lets the pointer through, so the cards under it stay reachable */
.team-card { position: relative; }
.team-pop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .team-pop { display: block; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .8rem); padding: 1.1rem 1.35rem 1rem; background: #fff; border: 1px solid var(--limes-line); border-top: 3px solid var(--limes-accent); box-shadow: 0 18px 40px rgb(23 31 32 / .16), 0 2px 6px rgb(23 31 32 / .07); font-size: .9rem; line-height: 1.6; color: var(--limes-text); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .team-pop::before { content: ""; position: absolute; top: -11px; left: 3.6rem; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--limes-accent); }
  .team-card.pop-up .team-pop { top: auto; bottom: calc(100% + .8rem); border-top: 1px solid var(--limes-line); border-bottom: 3px solid var(--limes-accent); transform: translateY(-8px); }
  .team-card.pop-up .team-pop::before { top: auto; bottom: -11px; border-bottom: 0; border-top: 8px solid var(--limes-accent); }
  .team-card:hover, .team-card:focus-within { z-index: 30; }
  .team-card:hover .team-pop, .team-card:focus-within .team-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease .15s, transform .2s ease .15s, visibility 0s linear .15s; }
  .team-pop p { margin: 0 0 .6rem; }
  .team-pop p:last-child { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .team-pop { transform: none !important; transition: none !important; } }
@media print { .team-pop { display: none !important; } }

/* "Despre proiect": four sections with a sticky section bar (sectionSubnav() in build.mjs) */
.about-section { scroll-margin-top: calc(var(--header-h, 80px) + 2.9rem); }
.section-head-start { text-align: left; margin-bottom: 1.75rem; }
.section-head-start h2 { font-size: calc(1.6rem + 1vw); }
.section-head-start .wave { margin: .7rem 0 0; }
.about-intro { max-width: 46rem; margin-bottom: 2rem; }
.about-section .about-links { margin-top: 1.75rem; }
.btn-outline-ink { --bs-btn-color: var(--limes-heading); --bs-btn-border-color: var(--limes-heading); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--limes-heading); --bs-btn-hover-border-color: var(--limes-heading); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--limes-heading); --bs-btn-border-radius: 0; --bs-btn-font-size: .85rem; --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .55rem; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.site-subnav[data-spy] a.is-current { color: var(--limes-accent); border-bottom-color: var(--limes-accent); }
/* legal framework: a short timeline of the acts, each with a link to its official text */
.legal-box { padding: 1.5rem 1.6rem 1.25rem; background: var(--limes-sand); border-top: 3px solid var(--limes-accent); }
.legal-box h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.legal-box-light { background: var(--bs-white); }   /* on a beige section (Comisia): white for contrast */
.about-duties { padding-left: 1.2rem; margin-bottom: 1.25rem; }
.about-duties li { padding-left: .2rem; }
.about-duties li + li { margin-top: .4rem; }
.about-duties li::marker { color: var(--limes-accent); }
.legal-list li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .1rem 1rem; padding: .85rem 0; border-top: 1px solid var(--limes-line); }
.legal-list li:first-child { border-top: 0; padding-top: 0; }
.legal-year { grid-row: span 2; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--limes-accent); }
.legal-act { font-size: .95rem; line-height: 1.5; }
.legal-act strong { display: block; color: var(--limes-heading); }
.legal-link { justify-self: start; margin-top: .25rem; font-size: .88rem; }
.legal-link::after { content: " ↗"; }
/* compact person cards (Commission, Secretariat): portrait, role, name, title, institution */
.people-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0; }
@media (min-width: 576px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.person-chip > a, .person-chip > div { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; align-items: center; height: 100%; padding: .8rem; border: 1px solid var(--limes-line); color: var(--limes-text); text-decoration: none;
  background: linear-gradient(var(--limes-accent), var(--limes-accent)) left bottom / 0 3px no-repeat border-box, linear-gradient(var(--limes-gold), var(--limes-gold)) left bottom / 100% 3px no-repeat border-box, #fff; transition: background-size .45s ease; }
.person-chip > a:hover, .person-chip > a:focus-visible { background-size: 100% 3px, 100% 3px, auto; }
.person-chip > a:focus-visible { outline: 3px solid var(--limes-accent); outline-offset: 3px; }
.person-chip img, .person-chip-initials { display: block; width: 4.75rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--limes-sand); }
.person-chip-initials { display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--limes-accent); }
/* placed explicitly: withWebp() wraps the photo in a display: contents <picture> */
.person-chip img, .person-chip-initials { grid-column: 1; grid-row: 1; }
.person-chip-body { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.person-chip-role { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--limes-accent); }
.person-chip-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--limes-heading); }
.person-chip > a:hover .person-chip-name { color: var(--limes-accent); }
.person-chip-title { font-size: .88rem; font-weight: 700; line-height: 1.35; }
.person-chip-inst { font-size: .85rem; line-height: 1.35; color: color-mix(in srgb, var(--limes-text) 75%, #fff); }
.people-empty { font-style: italic; }
/* legal summary, Commission roster label and source line */
.legal-summary { font-size: .95rem; line-height: 1.55; margin-bottom: .75rem; }
.legal-summary + .legal-list { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--limes-line); }
.about-sub { margin: 1.75rem 0 1rem; font-family: var(--font-label); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--limes-accent); }
.about-intro:has(+ .about-intro) { margin-bottom: 1rem; }
.about-sub:first-child { margin-top: 0; }
/* key facts of FRE-DLES under the Programme text (Despre proiect) */
.about-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--limes-line); }
.about-facts dt { font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--limes-accent); }
.about-facts dd { margin: .1rem 0 .85rem; }
.about-sectors { margin: 0; }
.about-sectors li + li { margin-top: .2rem; }
@media (min-width: 576px) { .about-facts { grid-template-columns: 12rem minmax(0, 1fr); } .about-facts dt { padding-top: .2rem; } .about-facts dd { margin-top: 0; } }
.about-source { margin: 1rem 0 0; font-size: .85rem; color: color-mix(in srgb, var(--limes-text) 80%, #fff); }
/* the Programme's own page: contents list beside the text (sticky from 992px) */
.program-toc-title { margin-bottom: .6rem; font-family: var(--font-label); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--limes-accent); }
.program-toc ol { margin: 0; border-left: 2px solid var(--limes-line); }
.program-toc a { display: block; margin-left: -2px; padding: .35rem 0 .35rem 1rem; border-left: 2px solid transparent; color: var(--limes-heading); text-decoration: none; }
.program-toc a:hover, .program-toc a.is-current { border-left-color: var(--limes-accent); color: var(--limes-accent); }
@media (min-width: 992px) { .program-toc { align-self: flex-start; position: sticky; top: calc(var(--header-h, 80px) + 1.5rem); } }
.program-text { max-width: 48rem; }
/* "Instituții și muzee": text first; each section a compact list, two columns from 768px, one entry per institution
   (name = the link to its official website, city label, short role) */
.inst-intro { max-width: 48rem; margin-bottom: 2.5rem; }
.inst-section { scroll-margin-top: calc(var(--header-h, 5rem) + 1rem); }
.inst-section .section-head-start { margin-bottom: 1.25rem; }
.inst-lead { max-width: 48rem; }
.inst-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .inst-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inst-item { padding: 1rem 0 1.1rem; border-top: 1px solid var(--limes-line); }
.inst-name { margin: 0; font-family: var(--bs-body-font-family); font-size: 1.08rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--limes-heading); }
.inst-link::after, .inst-source-link::after { content: " ↗"; }
.inst-city { margin: .3rem 0 0; font-family: var(--font-label); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--limes-accent); }
.inst-role { margin: .45rem 0 0; }
.inst-source { margin: .5rem 0 0; padding-top: .75rem; border-top: 1px solid var(--limes-line); font-size: .9rem; }
.program-part { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
.program-part h2 { font-size: 1.8rem; margin-bottom: .9rem; }
.program-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--limes-line); }
@media (prefers-reduced-motion: reduce) { .person-chip > a { transition: none; } }
@media print { .program-toc { display: none; } }

/* "Contact": one centred column: intro, the form (rendered by src/php/_contact/page.php), then the public e-mail and
   the privacy note at the bottom */
.contact-column { max-width: 46rem; margin: 0 auto; }
.contact-form { padding: 1.5rem; background: #fff; border: 1px solid var(--limes-line); border-bottom: 3px solid var(--limes-gold); }
@media (min-width: 576px) { .contact-form { padding: 2rem 2.25rem; } }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-required-note { margin-bottom: 1.25rem; font-size: .9rem; }
.contact-field { margin-bottom: 1.35rem; }
.contact-field .form-label { margin-bottom: .3rem; font-weight: 700; color: var(--limes-heading); }
.contact-req { color: var(--limes-accent); }
.contact-opt { font-weight: 400; font-size: .9rem; color: color-mix(in srgb, var(--limes-text) 75%, #fff); }
.contact-hint { margin: 0 0 .4rem; font-size: .88rem; color: color-mix(in srgb, var(--limes-text) 80%, #fff); }
.contact-form .form-control, .contact-form .form-select { border-radius: 0; border-color: color-mix(in srgb, var(--limes-text) 45%, #fff); padding: .6rem .75rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--limes-accent); box-shadow: 0 0 0 3px rgb(42 106 99 / .3); }
/* errors: a dark red bar and text (the teal palette has no error colour; this one passes 4.5:1 on white) */
.contact-field.has-error { padding-left: .9rem; border-left: 4px solid #a4262c; }
.contact-error { margin: 0 0 .4rem; font-weight: 700; color: #a4262c; }
.contact-form .form-control.is-invalid, .contact-form .form-select.is-invalid { border-color: #a4262c; }
/* no Bootstrap warning icon (the message says it); the select keeps its arrow */
.contact-form .form-control.is-invalid { background-image: none; padding-right: .75rem; }
.contact-form .form-select.is-invalid:not([multiple]):not([size]) { --bs-form-select-bg-icon: none; padding-right: 2.25rem; }
.contact-summary, .contact-alert, .contact-success { margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--limes-line); border-left: 5px solid #a4262c; }
.contact-summary:focus, .contact-alert:focus, .contact-success:focus { outline: 3px solid var(--limes-accent); outline-offset: 3px; }
.contact-summary, .contact-alert, .contact-success, .contact-field { scroll-margin-top: calc(var(--header-h, 80px) + 1.5rem); }
.contact-summary h2, .contact-success h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.contact-summary ul { margin: 0; padding-left: 1.2rem; }
.contact-summary a { color: #a4262c; font-weight: 700; }
.contact-alert p { margin: 0; }
.contact-alert p + p { margin-top: .5rem; }
.contact-success { border-left-color: var(--limes-accent); }
.contact-success p:last-child { margin: 1rem 0 0; }
/* honeypot: off screen, not display: none (some bots skip hidden fields) */
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-captcha:not(:empty) { margin: .25rem 0 .5rem; min-height: 65px; }
.contact-noscript { font-size: .85rem; color: color-mix(in srgb, var(--limes-text) 80%, #fff); }
.contact-noscript { font-weight: 700; color: #a4262c; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1.25rem 0 0; }
.contact-submit.is-busy { opacity: .7; cursor: progress; }
.contact-progress { font-size: .9rem; }
.contact-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--limes-line); font-size: .92rem; }
.contact-bottom .contact-public-email { margin: 0 0 .5rem; }
.contact-public-label { font-weight: 700; }
.contact-privacy { margin: 0; }
@media print { .contact-form { display: none; } }
/* "Publicații": one full-width white card per entry (the team-card look: cover on the left at an equal margin, gold
   line at the bottom that turns teal, photo zoom); the title link is stretched over the whole card */
.pub-section + .pub-section { margin-top: 3rem; }
.pub-section { scroll-margin-top: calc(var(--header-h, 5rem) + 1rem); }
.pub-section .section-head-start { margin-bottom: 1.25rem; }
.pub-entries { display: grid; gap: 1.25rem; }
.pub-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--limes-line); border-bottom-color: transparent;
  background: linear-gradient(var(--limes-accent), var(--limes-accent)) left bottom / 0 3px no-repeat border-box,
              linear-gradient(var(--limes-gold), var(--limes-gold)) left bottom / 100% 3px no-repeat border-box, #fff;
  transition: background-size .45s ease;
}
.pub-card.is-link:hover, .pub-card.is-link:focus-within { background-size: 100% 3px, 100% 3px, auto; }
.pub-card:has(.pub-main:focus-visible) { outline: 3px solid var(--limes-accent); outline-offset: 3px; }
.pub-book { grid-template-columns: calc(11rem + 1.5rem) minmax(0, 1fr); }
.pub-cover { grid-column: 1; grid-row: 1; align-self: start; margin: 1.5rem 0 1.5rem 1.5rem; overflow: hidden; border: 1px solid var(--limes-line); box-shadow: 0 1px 2px rgb(35 31 32 / .08), 0 6px 14px rgb(35 31 32 / .10); background: #fff; }
.pub-cover img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 615; object-fit: cover; transition: transform .8s ease; }
.pub-card.is-link:hover .pub-cover img { transform: scale(1.05); }
.pub-cover-blank { display: flex; align-items: center; justify-content: center; aspect-ratio: 480 / 615; padding: .5rem; background: var(--limes-sand); font-family: var(--font-heading); font-weight: 700; font-size: .95rem; line-height: 1.1; text-align: center; text-transform: uppercase; color: var(--limes-accent); }
.pub-body { grid-column: -2; grid-row: 1; display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: 1.5rem 2rem 1.6rem; }
.pub-eyebrow { margin: 0; font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--limes-accent); }
.pub-title { margin: 0; font-size: 2rem; line-height: 1.1; text-transform: none; letter-spacing: .01em; }
.pub-main { color: var(--limes-heading); text-decoration: none; }
.pub-main::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pub-main:focus-visible { outline: none; }
.pub-card.is-link:hover .pub-main, .pub-main:focus-visible { color: var(--limes-accent); }
.pub-article .pub-title { font-size: 1.5rem; }
.pub-people { margin: 0; font-weight: 700; line-height: 1.4; color: var(--limes-text); }
.pub-desc { margin: .45rem 0 0; max-width: 48rem; color: color-mix(in srgb, var(--limes-text) 90%, #fff); }
.pub-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: auto 0 0; padding-top: 1rem; font-size: .92rem; font-weight: 700; }
.pub-link::after { content: " ↗"; }
.pub-link-int::after { content: " →"; }
.pub-empty { font-style: italic; padding: 1.25rem 1.5rem; border: 1px dashed var(--limes-line); background: #fff; }
@media (min-width: 1200px) { .pub-book { grid-template-columns: calc(12.5rem + 1.75rem) minmax(0, 1fr); } .pub-cover { margin: 1.75rem 0 1.75rem 1.75rem; } .pub-body { padding: 1.75rem 2.5rem 1.8rem; } }
@media (max-width: 767.98px) { .pub-book { grid-template-columns: calc(8rem + 1rem) minmax(0, 1fr); } .pub-cover { margin: 1rem 0 1rem 1rem; } .pub-body { padding: 1rem 1.25rem 1.1rem; } .pub-title { font-size: 1.6rem; } }
@media (max-width: 575.98px) {
  .pub-book { grid-template-columns: calc(6.5rem + .8rem) minmax(0, 1fr); }
  .pub-cover { margin: .8rem 0 .8rem .8rem; }
  .pub-body { padding: .8rem 1rem .9rem; }
  .pub-title { font-size: 1.35rem; }
  .pub-people { font-size: .9rem; }
  /* the description and links run under the cover on phones */
  .pub-book .pub-body { display: contents; }
  .pub-book .pub-eyebrow, .pub-book .pub-title, .pub-book .pub-people { grid-column: 2; padding: 0 1rem; }
  .pub-book .pub-eyebrow { grid-row: 1; align-self: end; padding-top: .8rem; }
  .pub-book .pub-title { grid-row: 2; }
  .pub-book .pub-people { grid-row: 3; align-self: start; }
  .pub-book .pub-cover { grid-row: 1 / span 3; }
  .pub-book .pub-desc, .pub-book .pub-links { grid-column: 1 / -1; padding: 0 1rem; }
  .pub-book .pub-desc { margin-top: .2rem; }
  .pub-book .pub-links { padding: .7rem 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .pub-card { transition: none; } .pub-cover img { transition: none; transform: none !important; } }
@media print { .pub-links { display: none; } .pub-cover { box-shadow: none; } .pub-card { background: none; } }

/* Cronologie / Chronology (chronology): a timeline of clickable stages (horizontal from 992px, vertical below);
   main.js opens a stage's text and images in a centred modal. Without JS the stages are listed under the timeline. */
.chrono-intro { max-width: 48rem; margin-bottom: .5rem; }
.chrono-hint { margin: 0; font-size: .95rem; color: color-mix(in srgb, var(--limes-text) 85%, #fff); }
.chrono-line { position: relative; margin: 2rem 0 0; padding: 0; }
.chrono-line::before { content: ""; position: absolute; top: 1.1rem; bottom: 1.1rem; left: calc(.75rem - 1.5px); width: 3px; border-radius: 3px; background: var(--limes-teal); }
.chrono-stop { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 1rem; padding: .6rem 0; color: var(--limes-heading); text-decoration: none; border-radius: .25rem; }
.chrono-stop:hover { color: var(--limes-heading); }
.chrono-stop:focus-visible { outline: 2px solid var(--limes-accent); outline-offset: 4px; }
.chrono-dot { position: relative; grid-row: 1 / span 2; align-self: start; width: 1.5rem; height: 1.5rem; border: 3px solid var(--limes-accent); border-radius: 50%; background: var(--limes-cream); box-shadow: 0 0 0 5px var(--limes-cream); }
.chrono-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--limes-accent); transform: scale(0); transition: transform .2s ease; }
.chrono-stop:hover .chrono-dot::after, .chrono-stop:focus-visible .chrono-dot::after, .chrono-stop.is-current .chrono-dot::after { transform: scale(1); }
.chrono-date { grid-column: 2; font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--limes-accent); line-height: 1.5rem; }
/* the bold copy (::after, invisible) reserves the bold text's size, so the label does not move when it turns bold */
.chrono-title { grid-column: 2; display: grid; font-size: 1rem; line-height: 1.35; }
.chrono-title > span, .chrono-title::after { grid-area: 1 / 1; }
.chrono-title::after { content: attr(data-text); font-weight: 700; visibility: hidden; }
@media (max-width: 991.98px) { .chrono-title::after { display: none; } }
.chrono-stop:focus-visible .chrono-title > span { font-weight: 700; }
@media (hover: hover) { .chrono-stop:hover .chrono-title > span { font-weight: 700; } }
@media (min-width: 992px) {
  .chrono-line { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 3rem; }
  .chrono-line::before { top: calc(.75rem - 1.5px); bottom: auto; left: calc(100% / 18); right: calc(100% / 18); width: auto; height: 3px; }
  .chrono-stop { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 0 .4rem .5rem; text-align: center; }
  .chrono-dot { flex: none; align-self: center; }
  .chrono-date { margin-top: .85rem; line-height: 1.3; }
  .chrono-title { margin-top: .35rem; font-size: .95rem; }
}
/* the stages: listed without JS, cloned into the modal with JS */
.chrono-stages { margin-top: 3rem; }
.chrono-stage { padding: 2rem 0; border-top: 1px solid var(--limes-line); scroll-margin-top: calc(var(--header-h, 5rem) + 1rem); }
.chrono-stage h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.chrono-stage-date { margin: 0 0 .25rem; font-family: var(--font-label); font-size: .82rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--limes-accent); }
.chrono-text p:last-child { margin-bottom: 0; }
.chrono-figure { margin: 1.5rem 0 0; }
.chrono-figure img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.chrono-figure figcaption { margin-top: .6rem; font-size: .85rem; line-height: 1.5; color: color-mix(in srgb, var(--limes-text) 85%, #fff); }
.chrono-figure-round { max-width: 18rem; }
@media (min-width: 768px) {
  .chrono-stage.has-figure { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .chrono-stage.has-figure .chrono-figure { margin-top: 2.1rem; }
  .chrono-figure-round { justify-self: center; }
}
.chrono-modal .modal-dialog { max-width: 46rem; }
.chrono-modal.has-figure .modal-dialog { max-width: 70rem; }
.chrono-modal .modal-content { border: 0; border-top: 4px solid var(--limes-teal); border-radius: 0; background: #fff; }
.chrono-modal .modal-body { padding: 2.25rem 2.5rem 1.5rem; }
.chrono-modal .chrono-stage { padding: 0; border: 0; }
.chrono-modal .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.chrono-modal .modal-footer { justify-content: space-between; gap: .75rem; padding: .75rem 2.5rem 1rem; border-top: 1px solid var(--limes-line); }
.chrono-modal .chrono-count { margin: 0; font-family: var(--font-label); font-size: .82rem; letter-spacing: .07em; color: var(--limes-accent); white-space: nowrap; }
.chrono-modal .chrono-nav { min-width: 9.5rem; }
@media (max-width: 767.98px) {
  .chrono-modal .modal-body { padding: 2.75rem 1rem 1.25rem; }
  .chrono-modal .modal-footer { padding: .6rem 1rem; }
  .chrono-modal .modal-footer { flex-wrap: nowrap; }
  .chrono-modal .chrono-nav { min-width: 0; }
}
@media (max-width: 575.98px) {
  /* phones: arrows only; the label stays for screen readers */
  .chrono-modal .chrono-nav { width: 2.75rem; height: 2.75rem; padding: 0; font-size: 1.4rem; line-height: 1; letter-spacing: 0; }
  .chrono-modal .chrono-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .chrono-dot::after { transition: none; } }
@media print { .chrono-line, .chrono-hint { display: none; } .chrono-stages[hidden] { display: block !important; } }
