/*
 * Site-ul public — identitatea vizuală din design/DESIGN.md: luminos, proaspăt, „digital”.
 * Antet alb, bannere deschise cu ilustrațiile tematice (assets/img/teme/) sau fotografii,
 * accente colorate pe teme. Fără suprafețe mari închise.
 * Culorile vin din paleta.css (generată din Config\Theme): brand verde + albastru-cer, culoarea temei (.tema-*).
 * Textul scris de editori are foaia lui, continut.css (`.prose`), comună cu editorul din admin.
 */
:root {
  --ink: #16181D;
  --muted: #545B64;
  --line: #D8DEE6;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --accent: var(--brand, #0E5A3A);
  --accent-dark: #0A432B;
  --accent-soft: var(--brand-soft, #E6F0EA);
  --accent-2: var(--brand-2, #0369A1);
  --accent-2-soft: var(--brand-2-soft, #E0F2FE);
  --warn: #A15C07;
  /* bleumarin: doar pentru text și accente mici, nu pentru suprafețe mari */
  --deep: var(--night, #0B1A2E);
  --on-dark: #FFFFFF;
  --sky: #0284C7;
  --sky-soft: #BAE6FD;
  --gradient: linear-gradient(90deg, var(--brand, #0E5A3A), var(--brand-2, #0369A1));
  /* culoarea temei (zonă, departament, program); .tema-* din paleta.css o schimbă */
  --tema: var(--brand, #0E5A3A);
  --tema-soft: var(--brand-soft, #E6F0EA);
  /* tipografie și formă */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --radius: 4px;
  --radius-lg: 10px;
  --gutter: 24px;
  --nav-h: 48px;
  --shadow: 0 1px 2px rgba(11, 26, 46, .05), 0 8px 24px rgba(11, 26, 46, .06);
  --shadow-hover: 0 2px 4px rgba(11, 26, 46, .06), 0 16px 40px rgba(3, 105, 161, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.22; color: var(--ink); }
h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--accent); color: var(--on-dark);
  border-radius: 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

/* Eticheta „digitală” de deasupra titlurilor, în culoarea temei. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--tema);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: linear-gradient(90deg, var(--tema), var(--accent-2)); border-radius: 2px; }

/* ---------- Antet (alb) ---------- */
.site-header { position: relative; z-index: 5; background: var(--surface); color: var(--ink); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gradient); }
.header-grid {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand tools" "nav nav";
  align-items: center; column-gap: 24px;
}
.brand {
  grid-area: brand; justify-self: start;
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 0;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 52px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-faculty { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.brand-university { color: var(--muted); font-size: 14px; }

.header-panel { display: contents; }
.header-tools { grid-area: tools; display: flex; align-items: center; gap: 16px; }
.search { display: flex; align-items: stretch; }
.search input {
  width: 240px; min-width: 0; padding: 8px 14px;
  border: 1px solid var(--line); border-right: 0; border-radius: 0;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); }
.search button {
  display: grid; place-items: center; width: 44px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--bg); color: var(--accent-2); cursor: pointer;
}
.search button:hover { background: var(--accent-2-soft); }
.languages { display: flex; gap: 4px; font-size: 14px; }
.languages a { padding: 4px 6px; text-decoration: none; color: var(--muted); border-radius: var(--radius); }
.languages a[aria-current] { color: var(--ink); font-weight: 600; }

.main-nav { grid-area: nav; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 32px; }
.main-nav a {
  position: relative; display: block; padding: 12px 0 13px;
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--gradient); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { color: var(--accent-2); }
.main-nav a:hover::after { transform: scaleX(.5); }
.main-nav a[aria-current] { color: var(--accent); font-weight: 600; }
.main-nav a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (min-width: 900px) {
  .site-header { background: linear-gradient(var(--line), var(--line)) 0 calc(100% - var(--nav-h)) / 100% 1px no-repeat, var(--surface); }
}

/* ---------- Hero și bannere (deschise, cu ilustrație sau fotografie în dreapta) ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(115deg, #FFFFFF 0%, #FFFFFF 35%, var(--tema-soft) 100%);
  color: var(--ink);
}
.banner-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; display: block; }
.banner-media.is-photo img { object-position: 50% 40%; }
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--tema), var(--accent-2));
}
.banner-inner { position: relative; padding-block: 32px 56px; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner h1 { max-width: 22ch; }
.banner .lead { color: var(--muted); max-width: 54ch; }
.banner .crumbs { margin-bottom: auto; padding-bottom: 32px; }
.banner a:not(.btn) { color: var(--accent-2); }
.banner .crumbs a { color: var(--muted); }
.banner .crumbs a:hover { color: var(--accent-2); }

.hero { background: radial-gradient(1200px 600px at 85% 20%, var(--accent-2-soft), transparent 60%), radial-gradient(900px 500px at 70% 100%, var(--accent-soft), transparent 60%), #FFFFFF; }
.hero .banner-media { width: 66%; }
.hero .banner-inner { min-height: 620px; padding-block: 80px 56px; justify-content: center; }
.hero h1 { font-size: 56px; line-height: 1.08; max-width: 22ch; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 20px; max-width: 48ch; margin-top: 20px; }

/* Plăci translucide peste ilustrație (hero, fapte). */
.glass {
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(216, 222, 230, .9);
  border-radius: var(--radius-lg); backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero-links { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; }
.hero-link {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  padding: 12px; color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hero-link:hover { border-color: var(--tema); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.hero-link img { width: 72px; height: 54px; object-fit: cover; object-position: 75% 50%; border-radius: var(--radius); display: block; background: var(--tema-soft); }
.hero-link strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.hero-link span { display: block; font-size: 13px; color: var(--muted); }

.facts-strip {
  display: inline-flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; padding: 4px 8px; list-style: none;
  background: rgba(255, 255, 255, .82); border: 1px solid var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(8px);
}
.facts-strip > div, .facts-strip > li { padding: 10px 18px; border-right: 1px solid var(--line); }
.facts-strip > :last-child { border-right: 0; }
.facts-strip dt, .facts-strip .label { display: block; font-family: var(--mono); font-size: 12px; color: var(--tema); }
.facts-strip dd, .facts-strip .value { display: block; margin: 2px 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Butoane ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: 0;
  background: var(--brand); color: var(--on-dark);
  font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.3;
  transition: background .15s;
}
/* Butoanele sunt plate: o singură culoare, fără gradient sau strălucire. */
.btn:hover { background: color-mix(in srgb, var(--brand) 82%, #000); color: var(--on-dark); }
.btn-outline { background: var(--surface); color: var(--accent-2); border-color: var(--accent-2); }
.btn-outline:hover { background: var(--accent-2-soft); color: var(--accent-2); box-shadow: none; }
.btn-small { padding: 6px 14px; font-size: 14px; white-space: nowrap; }
/* Fără opacitate: textul mic din buton trebuie să păstreze contrastul (WCAG 1.4.3). */
.btn-note { font-weight: 400; }

/* ---------- Blocuri de conținut ---------- */
.block { padding: 72px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block.tinted { background: var(--bg); border-top: 0; }
.block.tinted + .block { border-top: 0; }
.dots {
  background-image: radial-gradient(rgba(3, 105, 161, .14) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.block-head h2 { font-size: 32px; }
.block-head .note { font-size: 14px; color: var(--muted); font-family: var(--mono); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* Anunțuri: panouri compacte, cu termenul evidențiat. */
.panels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.panel {
  position: relative; display: flex; flex-direction: column; padding: 22px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.panel h3 { font-size: 18px; margin: 6px 0 8px; }
.panel h3 a { color: inherit; text-decoration: none; }
.panel h3 a::after { content: ""; position: absolute; inset: 0; }
.panel:hover { box-shadow: var(--shadow-hover); }
.panel:hover h3 a { color: var(--accent); text-decoration: underline; }
.panel p { margin: 0; font-size: 15px; color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--warn); }

/* ---------- Carduri cu imagine (știri, programe, secțiuni) ---------- */
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.media-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: rgba(3, 105, 161, .4); }
.media-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tema-soft); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.media-thumb img.is-theme { object-position: 72% 50%; }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.media-badge {
  position: absolute; left: 12px; top: 12px;
  padding: 3px 10px; border-radius: 0;
  background: rgba(255, 255, 255, .92); color: var(--tema); box-shadow: 0 1px 3px rgba(11, 26, 46, .12);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.media-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.media-date { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.media-card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.media-card h3 a { color: var(--ink); text-decoration: none; }
.media-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.media-card:hover h3 a { color: var(--accent); }
.media-card p { margin: 0; font-size: 15px; color: var(--muted); }
.media-meta { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--muted); }

/* Știrea principală: imagine mare și text alături. */
.feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
  background: linear-gradient(120deg, var(--surface) 30%, var(--tema-soft)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.feature .media-thumb { aspect-ratio: auto; min-height: 360px; }

.feature-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.feature .media-date { color: var(--tema); }
.feature p { color: var(--muted); margin: 0; }
.feature:hover .media-thumb img { transform: scale(1.03); }

/* Plăci cu imagine de fundal și titlul deasupra (zone, subsecțiuni, departamente). */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 50%; background: var(--tema-soft); border-bottom: 3px solid var(--tema); transition: transform .6s; }
.tile-title, .tile p { padding: 0 20px; }
.tile-title { padding-top: 16px; }
.tile p:last-child, .tile-title:last-child { padding-bottom: 18px; }
.tile.is-photo img { object-position: 50% 40%; }

.tile:hover { color: var(--ink); box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--tema); }
.tile:hover .tile-title { color: var(--tema); }
.tile-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; }
.tile-title::after { content: "→"; flex: none; font-family: var(--sans); color: var(--tema); transition: transform .2s; }
/* Casetă spre alt site (blocul „Casete cu link”): săgeata oblică în locul celei obișnuite. */
.tile.is-external .tile-title::after { content: "↗"; }
/* Patru (sau opt) casete: câte patru pe rând, ca să nu rămână una singură. */
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile:hover .tile-title::after { transform: translateX(4px); }
.tile p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.tiles.large .tile img { aspect-ratio: 16 / 10; }
.tiles.large .tile-title { font-size: 20px; }
.tiles.compact .tile img { aspect-ratio: 21 / 9; }
.tiles.compact .tile-title { font-size: 18px; }

/* Lista de programe din pagina de start. */
.program-group + .program-group { margin-top: 40px; }
.level-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--tema);
}
.level-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Carduri generice (titlu, o frază, săgeată). */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  display: block; height: 100%; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { border-color: rgba(3, 105, 161, .4); box-shadow: var(--shadow-hover); color: var(--ink); }
.card-title { display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; }
.card-title::after { content: "→"; color: var(--accent); font-family: var(--sans); font-weight: 400; }
.card:hover .card-title { color: var(--accent); }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.cards.compact .card { padding: 16px 20px; }
.cards.compact .card-title { font-size: 18px; }

/* ---------- Pagini interioare ---------- */
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.lead { margin: 16px 0 0; max-width: 62ch; font-size: 19px; color: var(--muted); }
.page-meta { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 56px var(--gutter) 80px; }
.layout.single { grid-template-columns: minmax(0, 1fr); }
.content > * + * { margin-top: 56px; }
.content > .prose + .prose { margin-top: 24px; }
.content-section > h2 { margin-bottom: 20px; }
.content-section > .intro { margin: -8px 0 20px; font-size: 15px; color: var(--muted); }

.subnav { align-self: start; position: sticky; top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.subnav h2 { font-size: 18px; margin-bottom: 8px; }
.subnav h2 a { color: var(--ink); text-decoration: none; }
.subnav h2 a:hover { color: var(--accent); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li { border-bottom: 1px solid var(--line); }
.subnav li:last-child { border-bottom: 0; }
.subnav ul ul { margin: 0 0 8px 12px; }
.subnav ul ul li { border: 0; }
.subnav a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.subnav ul ul a { padding: 4px 0; font-size: 14px; color: var(--muted); }
.subnav a:hover { color: var(--accent); text-decoration: underline; }
.subnav a[aria-current] { color: var(--accent); font-weight: 600; }
.subnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--tema); padding-left: 10px; }

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

/* Listă de noutăți (pe paginile de secțiune și în arhivă). */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 160px 1fr; gap: 4px 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list > li:first-child .news-item { padding-top: 0; }
.news-item time, .news-item .date { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; }
.news-item :is(h2, h3, h4) { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.news-item :is(h2, h3, h4) a { color: var(--ink); text-decoration: none; }
.news-item :is(h2, h3, h4) a:hover { color: var(--accent); text-decoration: underline; }
.news-item p { margin: 0; font-size: 15px; color: var(--muted); }
.news-item .tag { margin-top: 8px; }
.news-item.has-image { grid-template-columns: 112px 1fr; }
.news-thumb { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--tema-soft); }
.news-thumb.is-theme { object-position: 72% 50%; }

/* Documente: pictogramă, titlu, tip și mărime, an universitar. */
.doc-category + .doc-category { margin-top: 32px; }
.doc-category h3 { font-size: 20px; margin-bottom: 8px; }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 14px; align-items: start; padding: 12px 6px; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.doc:hover { background: var(--bg); }
.doc:hover .doc-title { color: var(--accent); text-decoration: underline; }
.doc-icon { width: 28px; height: 34px; margin-top: 2px; color: var(--accent-2); }
.doc-title { display: block; line-height: 1.45; }
.doc-meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 0;
  background: var(--tema-soft); color: var(--tema);
  font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* Grila de persoane cu fotografie (pagina departamentului). */
.staff-group + .staff-group { margin-top: 40px; }
.staff-group > h3 { font-size: 20px; margin-bottom: 16px; }
.staff-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.staff-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.staff-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.staff-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.staff-photo.no-photo { background: linear-gradient(140deg, var(--tema-soft), var(--accent-2-soft)); }
.staff-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--tema);
}
.staff-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.person-rank { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.person-name { display: block; margin-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
/* Funcția (director, responsabil…) e o etichetă sub nume, în culoarea temei. */
.person-role {
  display: inline-block; align-self: flex-start; margin-top: 8px; padding: 3px 8px;
  background: var(--tema-soft); color: var(--tema); font-size: 12px; font-weight: 600; line-height: 1.35;
}
.expertise { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 10px 0 0; padding: 0; }
.expertise li { padding: 2px 8px; border-radius: 0; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.person-contact { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.person-contact span { display: block; }
.person-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.person-links a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 0; font-size: 13px; font-weight: 600; text-decoration: none; }
.person-links a:hover { border-color: var(--accent-2); background: var(--accent-2-soft); }
/* În listele compacte (Consiliu, rândul de profesori al programului): linkuri mici, în dreptul numelui. */
.names .person-links { display: inline-flex; gap: 4px; margin: 0 0 0 8px; padding: 0; vertical-align: 1px; }
.names .person-links a, .people-row .person-links a { padding: 1px 6px; font-size: 12px; }
.people-row .person-links { padding-top: 6px; }
.person-bio { margin-top: 10px; font-size: 14px; }
.person-bio summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.person-bio p { margin: 8px 0 0; color: var(--muted); }

/* Rândul de cadre didactice (pagina programului). */
/* Profesorii programului: grilă care se rearanjează pe lățime, fără derulare laterală. */
.people-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
.people-row a { display: block; color: var(--ink); text-decoration: none; }
.people-row .staff-photo { border-radius: var(--radius-lg); }
.people-row .staff-initials { font-size: 36px; }
.people-row .person-name { font-size: 15px; }
.people-row a:hover .person-name { color: var(--accent); text-decoration: underline; }

/* Persoane fără fotografie: listă pe două coloane (Consiliul). */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.names { columns: 2 280px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.names li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.names .person-role { display: inline; margin: 0 0 0 4px; padding: 0; background: none; color: var(--muted); font-size: inherit; font-weight: 400; }

/* Fișa programului. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 24px; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Contact. */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p, .contact-card ul { margin: 0 0 8px; font-size: 15px; }
.contact-card ul { padding-left: 20px; color: var(--muted); }

/* Pagina unui anunț. */
.article { max-width: 820px; }
.article-image { margin: 0 0 40px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--tema-soft), var(--accent-2-soft)); box-shadow: var(--shadow); }
.article-image img { display: block; margin: 0 auto; max-height: 620px; width: auto; border-radius: var(--radius); }
.notice { padding: 12px 16px; border-left: 3px solid var(--warn); border-radius: var(--radius); background: #FBF4EA; font-size: 15px; }
.attachments { display: flex; flex-direction: column; gap: 8px; }

/* Ghidul studentului. */
.guide-intro { margin-top: 20px; }
.banner .prose { color: var(--ink); max-width: 62ch; }
.chips { margin-top: 24px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); font-size: 14px; color: var(--ink); text-decoration: none;
}
.chips a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.banner .chips a { background: rgba(255, 255, 255, .85); }
.anchor { scroll-margin-top: 24px; }

.doc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-card {
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.doc-card:hover { border-color: rgba(3, 105, 161, .4); box-shadow: var(--shadow-hover); }
.doc-card-title { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; }
.doc-card-title::after { content: ""; position: absolute; inset: 0; }
.doc-card:hover .doc-card-title { color: var(--accent); text-decoration: underline; }
.doc-card .doc-meta { margin-top: 4px; }
.doc-card.featured {
  grid-column: 1 / -1; grid-template-columns: 28px 1fr auto; align-items: center; padding: 22px 26px;
  background: linear-gradient(110deg, var(--accent-soft) 0%, var(--accent-2-soft) 100%); border-color: transparent;
}
.doc-card.featured .doc-card-title { font-family: var(--serif); font-size: 20px; }
.doc-card.featured .btn { position: relative; z-index: 1; }

.program-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.level-title + .program-cards { margin-top: 0; }
.program-cards + .level-title { margin-top: 32px; }
.program-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.program-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.program-card h4 { font-size: 19px; line-height: 1.3; }
.program-card h4 a { color: var(--ink); text-decoration: none; }
.program-card h4 a:hover { color: var(--accent); text-decoration: underline; }
.program-card-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.year-rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.year-rows li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.year-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.year-label { font-weight: 600; }
.year-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; }
.doc-pair { display: inline-flex; align-items: baseline; gap: 8px; }
.doc-pair .tag { padding: 0 6px; font-size: 11px; font-weight: 400; }

/* Limitatorul „Mai mult”: fragmentul din liste și linkul spre anunț. Marcajul <hr> nu se vede niciodată. */
.announcement-body hr, .teaser hr { display: none; }
.prose.teaser { max-width: none; font-size: 15px; line-height: 1.55; color: var(--muted); }
.prose.teaser p { margin: 0 0 8px; }
.prose.teaser > :last-child { margin-bottom: 0; }
.feature .prose.teaser { font-size: 16px; }
.read-more {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.read-more:hover { text-decoration: underline; }
.feature .read-more { margin-top: 20px; }
.media-body .read-more { margin-top: auto; padding-top: 12px; }
.news-item .read-more { margin-top: 6px; font-size: 14px; }

/* Variante ale cardurilor cu imagine. */
.media-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid.stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.media-card :is(h2, h3, h4) { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.media-card :is(h2, h3, h4) a { color: var(--ink); text-decoration: none; }
.media-card :is(h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.media-card:hover :is(h2, h3, h4) a { color: var(--accent); }
.feature :is(h2, h3) { font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.feature :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.feature :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.feature:hover :is(h2, h3) a { color: var(--accent); text-decoration: underline; }
.news-item .media-date { display: block; padding: 0; margin-bottom: 2px; }
.archive-link { margin: 40px 0 0; }
.related h2 { font-size: 20px; margin-bottom: 16px; }
.related .media-thumb { aspect-ratio: 2 / 1; }
.related .media-card :is(h2, h3) { font-size: 16px; }

/* Cardul bogat al unui program. */
.program-rich-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.program-rich {
  position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s;
}
.program-rich:hover { box-shadow: var(--shadow-hover); border-color: rgba(3, 105, 161, .4); }
.program-rich-media { position: relative; background: var(--tema-soft); min-height: 200px; }
.program-rich-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-rich-media img.is-theme { object-position: 75% 50%; }
.program-rich-body { display: flex; flex-direction: column; padding: 20px 24px; }
.program-rich :is(h2, h3, h4) { font-size: 22px; margin: 8px 0 4px; }
.program-rich :is(h2, h3, h4) a { color: var(--ink); text-decoration: none; }
.program-rich :is(h2, h3, h4) a:hover { color: var(--accent); text-decoration: underline; }
.program-dept { margin: 0; font-size: 14px; color: var(--muted); }
.program-facts { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--tema); }
.program-summary { margin: 10px 0 0; font-size: 15px; color: var(--ink); }
.program-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { padding: 2px 10px; border-radius: 0; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.badges li.ok { background: var(--tema-soft); border-color: transparent; color: var(--tema); }
.doc-chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 0; font-size: 14px; font-weight: 600; text-decoration: none;
}
.doc-chip svg { width: 14px; height: 17px; }
.doc-chip span { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.doc-chip:hover { border-color: var(--accent-2); background: var(--accent-2-soft); }
.diploma { margin: 0; padding: 14px 18px; border-left: 3px solid var(--tema); border-radius: var(--radius); background: var(--bg); font-family: var(--serif); font-size: 19px; }
.diploma span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list li { position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 15px; background: var(--surface); }
.check-list li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 14px; height: 8px; border-left: 2px solid var(--tema); border-bottom: 2px solid var(--tema); transform: rotate(-45deg); }

/* Conducerea departamentului și filtrele pe grade. */
/* Compartiment cu site propriu (IFR): sigla și butonul spre site. */
.external-site {
  display: flex; align-items: center; gap: 28px; margin-bottom: 40px; padding: 24px 28px;
  border: 1px solid var(--line); border-left: 4px solid var(--tema); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.external-site img { flex: 0 0 140px; width: 140px; height: 140px; object-fit: contain; }
.external-site h2 { margin: 0 0 6px; }
.external-site p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 640px) { .external-site { flex-direction: column; align-items: flex-start; } }
.tile.is-logo img { object-fit: contain; padding: 16px; background: #fff; }

/* Conducerea: fotografia mare deasupra, apoi gradul, numele și funcția ca etichetă. */
.leader-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.leader-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.leader-card .staff-photo { border-bottom: 3px solid var(--tema); }
.leader-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 16px; }
.leader-card .person-name { font-size: 18px; }
.leader-card .person-contact { margin-top: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips button {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface);
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
}
.filter-chips button span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 2px; }
.filter-chips button:hover { border-color: var(--accent); }
.filter-chips button[aria-pressed="true"] { background: var(--tema); border-color: var(--tema); color: var(--on-dark); }
.filter-chips button[aria-pressed="true"] span { color: var(--on-dark); }
.staff-card[hidden] { display: none; }
.contact-card.accent { background: linear-gradient(140deg, var(--accent-soft), var(--accent-2-soft)); border-color: transparent; }

/* Arhivă. */
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.year-nav a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 0; font-family: var(--mono); font-size: 13px; text-decoration: none; }
.year-nav a:hover { border-color: var(--accent-2); background: var(--accent-2-soft); }
.archive-year { scroll-margin-top: 16px; }
.archive-year > h2 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.archive-year > h3 { margin: 32px 0 8px; font-size: 19px; }
.archive-year > h4 { margin: 20px 0 6px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }

/* Paginare. */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; list-style: none; padding: 0; }
.pagination > li > a, .pagination > li > span {
  display: inline-block; min-width: 40px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 0; text-align: center; text-decoration: none; font-size: 15px;
}
.pagination a:hover { border-color: var(--accent); }
.pagination > li > [aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-dark); font-weight: 600; }
.pagination > li > span[aria-hidden] { border-color: transparent; min-width: 0; padding: 6px 4px; }

/* Căutare. */
.search-page { display: flex; max-width: 620px; margin-top: 24px; }
.search-page input { flex: 1; width: auto; padding: 12px 14px; font-size: 17px; }
.search-page button { width: auto; padding: 0 22px; background: var(--brand); border-color: transparent; color: var(--on-dark); font: inherit; font-weight: 600; }
.search-page button:hover { background: color-mix(in srgb, var(--brand) 82%, #000); }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.result-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-list p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Subsol (luminos, cu nuanța brandului) ---------- */
.site-footer {
  position: relative; color: var(--muted); font-size: 15px;
  background: radial-gradient(800px 300px at 90% 0%, var(--accent-2-soft), transparent 70%), radial-gradient(700px 300px at 0% 100%, var(--accent-soft), transparent 70%), var(--bg);
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 64px var(--gutter) 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--ink); }
.footer-brand .plate { display: grid; place-items: center; width: 56px; height: 48px; flex: none; }
.footer-brand img { width: 44px; height: auto; display: block; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.footer-brand span { display: block; font-size: 14px; color: var(--muted); }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer address .strong { color: var(--ink); }
.site-footer h2 { margin-bottom: 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer li a { color: var(--ink); }
.site-footer li a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--gutter) 28px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-family: var(--mono); font-size: 12px;
}

/* ---------- Tabletă ---------- */
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .subnav { position: static; }
  .panels, .cards, .media-grid, .media-grid.cols-4, .tiles, .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature .media-thumb { min-height: 0; aspect-ratio: 16 / 9; }

  .hero-links { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Meniul de pe telefon ---------- */
@media (max-width: 899px) {
  .header-grid { grid-template-areas: "brand toggle" "panel panel"; }
  .brand { padding: 14px 0; }
  .brand img { width: 44px; }
  .brand-faculty { font-size: 18px; }
  .brand-university { font-size: 13px; }
  .menu-toggle {
    grid-area: toggle; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .header-panel { grid-area: panel; display: block; padding: 0 0 16px; border-top: 1px solid var(--line); }
  .js .header-panel:not(.is-open) { display: none; }
  .header-tools { flex-direction: column; align-items: stretch; padding-top: 16px; }
  .search input { flex: 1; width: auto; font-size: 16px; padding: 10px 12px; }
  .search button { width: 48px; }
  .main-nav ul { flex-direction: column; gap: 0; margin-top: 8px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 12px 0; font-size: 17px; }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 639px) {
  :root { --gutter: 16px; }
  h1 { font-size: 34px; }
  h2, .block-head h2 { font-size: 24px; }
  .hero h1 { font-size: 40px; }
  .hero .banner-inner { min-height: 0; padding-block: 8px 40px; }
  .hero .lead, .lead { font-size: 17px; }
  .banner-inner { min-height: 0; padding-block: 0 32px; }
  .banner .crumbs { padding-bottom: 16px; }
  .facts-strip { display: flex; }
  .banner-media, .hero .banner-media { position: relative; width: 100%; height: 170px; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%); }
  .banner-media img { object-position: 70% 50%; }
  .block { padding: 48px 0; }
  .layout { padding-top: 36px; padding-bottom: 56px; }
  .panels, .cards, .media-grid, .media-grid.cols-4, .media-grid.stack, .tiles, .tiles.cols-4, .doc-cards, .check-list { grid-template-columns: minmax(0, 1fr); }
  .program-rich { grid-template-columns: 1fr; }
  .program-rich-media { min-height: 0; aspect-ratio: 16 / 9; }
  .feature :is(h2, h3) { font-size: 24px; }
  .feature-body { padding: 24px; }
  .news-item, .news-item.has-image { grid-template-columns: 1fr; padding: 16px 0; }
  .news-thumb { display: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .staff-body { padding: 12px; }
  .person-name { font-size: 16px; }
  .facts-strip > div, .facts-strip > li { padding: 8px 12px; }
  .doc { grid-template-columns: 28px 1fr; }
  .doc .tag { grid-column: 2; justify-self: start; }
  .doc-card.featured { grid-template-columns: 28px 1fr; }
  .doc-card.featured .btn { grid-column: 2; justify-self: start; }
  .program-card-head { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}

/* ---------- Constructorul de pagini: benzi (pb-band), grila de 12 (pb-grid), blocuri (pb-block) ---------- */
.pb-band { padding: 64px 0; }
.pb-alb + .pb-alb { border-top: 1px solid var(--line); }
.pb-gri { background: var(--bg); }
.pb-soft { background: var(--tema-soft); }
/* Benzile închise: textul, titlurile și linkurile devin albe prin variabile; cardurile își păstrează culorile. */
.pb-plin, .pb-noapte { --ink: #FFFFFF; --muted: rgba(255, 255, 255, .84); --accent: #FFFFFF; --accent-2: #FFFFFF; --line: rgba(255, 255, 255, .22); color: var(--ink); }
.pb-plin { background: var(--tema); }
.pb-noapte { background: var(--deep); }
.pb-plin :is(.pb-feature, .pb-quote, .pb-carousel__item, .pb-slider-btn, .tile, .media-card, .panel, .staff-card, .news-item, .doc-category),
.pb-noapte :is(.pb-feature, .pb-quote, .pb-carousel__item, .pb-slider-btn, .tile, .media-card, .panel, .staff-card) { --ink: #16181D; --muted: #545B64; --accent: var(--brand, #0E5A3A); --accent-2: var(--brand-2, #0369A1); --line: #D8DEE6; }
.pb-plin :is(.news-item, .doc-category), .pb-noapte :is(.news-item, .doc-category) { color: var(--ink); }
:is(.pb-plin, .pb-noapte) .eyebrow::before { background: #FFFFFF; }
:is(.pb-plin, .pb-noapte) > .wrap > .pb-grid .btn { background: #FFFFFF; color: var(--tema); border-color: #FFFFFF; }
.pb-noapte > .wrap > .pb-grid .btn { color: var(--deep); }
:is(.pb-plin, .pb-noapte) > .wrap > .pb-grid .btn-outline { background: transparent; color: #FFFFFF; }
.wrap.pb-narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* Benzile în coloana de conținut (navigația zonei rămâne în dreapta): benzile colorate devin casete,
   cele albe rămân text simplu; grilele de 3–4 coloane trec pe 2. */
.pb-inline .pb-band { padding: 32px; border-radius: var(--radius-lg); }
.pb-inline .pb-alb { padding: 0; }
.pb-inline .pb-band + .pb-band { margin-top: 32px; }
.pb-inline .pb-alb + .pb-alb { padding-top: 32px; }
.pb-inline .pb-band > .wrap { max-width: none; padding: 0; }
.pb-inline .pb-span-3, .pb-inline .pb-span-4 { grid-column: span 6; }
.pb-inline .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content > .pb-inline + * { margin-top: 48px; }
/* Blocul „Navigația secțiunii”: fără lipire la derulare (stă într-o bandă). */
.pb .subnav { position: static; }

.pb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pb-span-3 { grid-column: span 3; }
.pb-span-4 { grid-column: span 4; }
.pb-span-6 { grid-column: span 6; }
.pb-span-8 { grid-column: span 8; }
.pb-span-12 { grid-column: span 12; }
.pb-block + .pb-block { margin-top: 28px; }
.pb-block > .doc-category + .doc-category { margin-top: 24px; }

.pb-figure { margin: 0; }
.pb-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.pb-ratio-4-3 img { aspect-ratio: 4 / 3; }
.pb-ratio-1-1 img { aspect-ratio: 1 / 1; }
.pb-ratio-3-4 img { aspect-ratio: 3 / 4; }
.pb-ratio-21-9 img { aspect-ratio: 21 / 9; }
.pb-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.pb-actions { margin: 0; }
.btn .ms { font-size: 1.25em; vertical-align: -.22em; }

.pb-feature { height: 100%; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tema); color: var(--ink); }
.pb-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--tema-soft); color: var(--tema); }
.pb-feature-icon .ms { font-size: 32px; font-variation-settings: "FILL" 1; }
.pb-feature h3 { margin: 18px 0 8px; font-size: 20px; }
.pb-feature h3 a { color: inherit; text-decoration: none; }
.pb-feature h3 a:hover { color: var(--accent); text-decoration: underline; }
.pb-feature p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }

/* Grilele de carduri în coloanele înguste ale benzilor. */
:is(.pb-span-3, .pb-span-4) :is(.media-grid, .tiles, .tiles.cols-4, .staff-grid, .panels) { grid-template-columns: minmax(0, 1fr); }
:is(.pb-span-6, .pb-span-8) :is(.media-grid, .tiles, .tiles.cols-4, .staff-grid, .panels) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pb-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; }
.pb-stats li { padding: 2px 0 2px 18px; border-left: 3px solid var(--tema); }
.pb-stats strong { display: block; font: 600 clamp(36px, 4vw, 52px)/1.05 var(--serif); color: var(--tema); }
.pb-stats span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
:is(.pb-plin, .pb-noapte) .pb-stats li { border-left-color: rgba(255, 255, 255, .6); }
:is(.pb-plin, .pb-noapte) .pb-stats strong { color: #FFFFFF; }

.pb-quote { position: relative; margin: 0; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tema); color: var(--ink); }
.pb-quote blockquote { margin: 0; }
.pb-quote blockquote::before { content: "\201C"; display: block; height: 30px; font: 600 72px/1 var(--serif); color: var(--tema); }
.pb-quote p { margin: 0; font: 400 20px/1.55 var(--serif); }
.pb-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 15px; }
.pb-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pb-quote figcaption > span > * { display: block; }
.pb-quote figcaption > span > span { color: var(--muted); }

.pb-faq details { border-bottom: 1px solid var(--line); }
.pb-faq details:first-child { border-top: 1px solid var(--line); }
.pb-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font: 600 18px/1.35 var(--serif); cursor: pointer; list-style: none; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--sans); color: var(--tema); transition: transform .2s; }
:is(.pb-plin, .pb-noapte) .pb-faq summary::after { color: #FFFFFF; }
.pb-faq details[open] summary::after { transform: rotate(45deg); }
.pb-faq details > div { padding: 0 0 18px; color: var(--muted); }
.pb-faq details > div p { margin: 0; }

.pb-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--radius-lg); }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Până la acordul vizitatorului: un panou cu explicația și butonul, în locul iframe-ului. */
.pb-video__consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 24px; background: var(--deep); color: var(--on-dark); font-size: 15px;
}
.pb-video__consent p { margin: 0; max-width: 52ch; }
.pb-video__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pb-video__consent a { color: var(--on-dark); }

/* Caseta de cookie-uri: jos, fără să acopere pagina; cele două alegeri au aceeași greutate. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 3px solid var(--accent-2); box-shadow: 0 -8px 24px rgba(11, 26, 46, .12);
}
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 18px var(--gutter); }
.consent-inner > div:first-child { flex: 1 1 420px; }
.consent h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.consent p { margin: 0; font-size: 15px; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn-outline { color: var(--accent); border-color: var(--accent); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.btn[hidden], .link-button[hidden] { display: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; color: var(--accent-2); }

/* Minutele Consiliului: casete cu data ședinței în evidență și butonul „Vizualizare”. */
.minute-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.minute-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tema); border-radius: var(--radius-lg); }
.minute-date { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 6px; align-items: baseline; color: var(--ink); }
.minute-day { grid-column: 1 / -1; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--tema); }
.minute-month { font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.minute-year { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.minute-title { margin: 4px 0 0; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.minute-meta { margin: 0; font-size: 13px; color: var(--muted); }
.minute-view { align-self: flex-start; margin-top: auto; }
.minute-all { margin-top: 24px; }
.minute-summary { color: var(--muted); }
.minute-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.minute-years a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 14px; text-decoration: none; color: var(--ink); }
.minute-years a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.minute-year-group { scroll-margin-top: 16px; }
.minute-year-count { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }

/* Blocurile unei coloane pe rând („asezare” a benzii): cu trecere pe rândul următor sau cu derulare. */
.pb-flow-rand, .pb-flow-derulare { display: flex; gap: 24px; align-items: center; }
.pb-flow-rand { flex-wrap: wrap; }
.pb-flow-derulare { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; }
:is(.pb-flow-rand, .pb-flow-derulare) > .pb-block { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
:is(.pb-flow-rand, .pb-flow-derulare) > .pb-block:not(.pb-sponsor) { width: min(320px, 85%); }
.pb-flow-derulare:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }

/* Sigla unui sponsor sau partener: fundal alb (siglele au transparență), aceeași înălțime pe un rând. */
.pb-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; text-align: center; font-size: 14px; }
.pb-logo img { display: block; height: 96px; width: auto; max-width: 100%; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); object-fit: contain; }
.pb-logo.pb-ratio-1-1 img { height: 110px; }
a.pb-logo:hover img { border-color: var(--accent-2); }
a.pb-logo:hover span { text-decoration: underline; }

/* Carusel și slideshow: o pistă derulabilă (scroll-snap), cu săgeți adăugate de site.js. */
.pb-slider-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; border-radius: var(--radius-lg); }
.pb-slider-track:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
.pb-slider-track > ul { display: flex; margin: 0; padding: 0; list-style: none; }
.pb-carousel__list { gap: 20px; padding-bottom: 12px !important; }
.pb-carousel__item { flex: 0 0 min(300px, 82%); scroll-snap-align: start; padding: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); }
.pb-carousel__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pb-carousel__item img.pb-ratio-16-9 { aspect-ratio: 16 / 9; }
.pb-carousel__item img.pb-ratio-1-1 { aspect-ratio: 1 / 1; }
.pb-carousel__item img.pb-ratio-3-4 { aspect-ratio: 3 / 4; }
.pb-carousel__item h3 { margin: 14px 16px 6px; font-size: 18px; }
.pb-carousel__item h3 a { color: inherit; }
.pb-carousel__item p { margin: 0 16px; font-size: 15px; color: var(--muted); }
.pb-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pb-slide figure { margin: 0; }
.pb-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pb-slide img.pb-ratio-21-9 { aspect-ratio: 21 / 9; }
.pb-slide img.pb-ratio-4-3 { aspect-ratio: 4 / 3; }
.pb-slide figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pb-slider-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pb-slider-nav[hidden] { display: none; }
.pb-slider-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.pb-slider-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.pb-slider-btn:disabled { opacity: .4; cursor: default; }
.pb-slider-dots { display: inline-flex; gap: 4px; margin: 0 auto 0 0; }
.pb-slider-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.pb-slider-dot::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: var(--line); border: 1px solid var(--muted); }
.pb-slider-dot[aria-current="true"]::before { background: var(--accent-2); border-color: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { .pb-slider-track { scroll-behavior: auto; } }

/* Previzualizarea ciornei (doar pentru conturile din panou). */
.pb-draft-flag { position: sticky; top: 0; z-index: 50; padding: 8px var(--gutter); background: #FEF3C7; color: #78350F; font: 600 14px/1.4 var(--sans); text-align: center; border-bottom: 1px solid #F59E0B; }

@media (max-width: 1023px) {
  .pb-span-3 { grid-column: span 6; }
  .pb-span-4, .pb-span-8 { grid-column: span 12; }
}
@media (max-width: 639px) {
  .pb-band { padding: 44px 0; }
  .pb-grid { gap: 24px; }
  .pb-grid > .pb-col { grid-column: span 12; }
  .pb-grid > .pb-col:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .media-card:hover, .tile:hover, .staff-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .subnav, .skip-link, .banner-media, .consent { display: none; }
  .banner { background: none; }
}
