/* ═══════════════════════════════════════════════════════════
   informs - arhetipul de listare
   Bara de filtre, grila de rezultate, stare goală, încărcare.
   Scris ca să fie refolosit de Industrii și Cariere.
   ═══════════════════════════════════════════════════════════ */

/* hero mai scurt decât pe paginile de detaliu */
.phero--compact { padding-block: calc(var(--hdr-h) + 52px) 52px; }
.phero--compact .phero__title { font-size: 46px; line-height: 54px; max-width: 20ch; }

/* ── Articol featured ─────────────────────────────────────── */
.sect--feat { padding-block: var(--sect-sm) 0; }

.feat {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 0;
  border-radius: var(--card-r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: border-color .25s var(--ease);
}
.feat:hover { border-color: var(--line-str); }

.feat__art { min-height: 300px; }
.feat__body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat__flag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 26px;
  padding-inline: 12px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgb(6 90 247 / .22);
  color: #8FB6FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feat__title {
  font-size: 32px;
  line-height: 41px;
  letter-spacing: -.7px;
  font-weight: 400;
  margin-bottom: 16px;
  max-width: 22ch;
}
.feat__lead {
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 26px;
}
.feat__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: auto;
}

/* ── Bara de filtre ───────────────────────────────────────── */
.lbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 0, 50, .9);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
  margin-top: var(--sect-md);
}
.lbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
}

/* căutare */
.lsearch { position: relative; flex: 0 0 280px; }
.lsearch svg {
  position: absolute;
  left: 14px; top: 50%;
  translate: 0 -50%;
  width: 16px; height: 16px;
  color: var(--muted-3);
  pointer-events: none;
}
.lsearch input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  border-radius: 21px;
  border: 1px solid var(--line-str);
  background: rgba(255,255,255,.05);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 15px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lsearch input::placeholder { color: var(--muted-3); }
.lsearch input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,.08);
}
.lsearch__clear {
  position: absolute;
  right: 8px; top: 50%;
  translate: 0 -50%;
  width: 26px; height: 26px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
}
.lsearch__clear svg { position: static; translate: none; width: 12px; height: 12px; color: inherit; }
.lsearch__clear:hover { background: rgba(255,255,255,.12); color: var(--white); }
.lsearch.has-value .lsearch__clear { display: grid; }

/* chipsuri de tip */
.fchips {
  display: flex;
  gap: 8px;
  /* Baza 0, nu auto. Într-un container cu `wrap`, împărțirea pe rânduri
     se face după dimensiunea ipotetică a itemilor, înainte de shrink:
     cu bază `auto` cele 8 chipsuri intră în calcul cu ~900px și împing
     sortarea pe al doilea rând, oricât de mult ar putea ele să scadă.
     Cu bază 0 rămân toate pe un rând, apoi cresc în spațiul liber. */
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 4px;
}
.fchips::-webkit-scrollbar { display: none; }

.fchip {
  flex: none;
  height: 36px;
  padding-inline: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-str);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.fchip:hover { color: var(--white); border-color: var(--white); }
.fchip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.fchip__n { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* sortare */
.lsort { position: relative; flex: none; }
.lsort select {
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  padding: 0 38px 0 16px;
  border-radius: 21px;
  border: 1px solid var(--line-str);
  background: rgba(255,255,255,.05);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lsort select:focus { outline: none; border-color: var(--blue); }
.lsort select option { background: var(--navy-700); color: var(--white); }
.lsort::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.6px solid var(--muted-2);
  border-bottom: 1.6px solid var(--muted-2);
  transform: rotate(45deg);
  pointer-events: none;
}

/* ── Rezultate ────────────────────────────────────────────── */
.lcount {
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 26px;
}
.lcount strong { color: var(--white); font-weight: 600; }

.lgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* ascunse de filtru, nu doar invizibile: ies din grilă */
.lgrid .wcard[hidden] { display: none; }

.wcard__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted-3);
}
/* .wcard .lnk are margin-top:auto din components.css, ca sa se lipeasca
   de baza cardului; in randul de meta ar strica alinierea verticala */
.wcard__meta .lnk {
  font-size: 15px;
  margin-top: 0;
  margin-left: auto;
  align-self: center;
}
.wcard__date { font-variant-numeric: tabular-nums; }

/* ── Stare goală ──────────────────────────────────────────── */
.lempty {
  display: none;
  padding: 72px 32px;
  text-align: center;
  border: 1px dashed var(--line-str);
  border-radius: var(--card-r);
}
.lempty.is-on { display: block; }
.lempty h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}
.lempty p { color: var(--muted); margin-bottom: 24px; }

/* ── Încă rezultate ───────────────────────────────────────── */
.lmore {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.lmore[hidden] { display: none; }

/* ── Newsletter ───────────────────────────────────────────── */
.nlt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 52px 56px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(6,90,247,.34), rgba(12,0,50,0) 68%),
    linear-gradient(150deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line);
}
.nlt__title { font-size: 30px; line-height: 39px; letter-spacing: -.7px; }
.nlt__lead { margin-top: 12px; font-size: 16px; line-height: 25px; color: var(--muted); max-width: 46ch; }

.nlt__form { display: flex; gap: 10px; }
.nlt__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--btn-h);
  padding-inline: 20px;
  border-radius: var(--btn-r);
  border: 1px solid var(--line-str);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
}
.nlt__form input::placeholder { color: var(--muted-3); }
.nlt__form input:focus { outline: none; border-color: var(--blue); }
.nlt__note { margin-top: 12px; font-size: 13px; color: var(--muted-3); }

/* ══════════ Breakpoints ══════════ */

@media (max-width: 1200px) {
  .feat { grid-template-columns: 340px minmax(0, 1fr); }
  .feat__body { padding: 36px 38px; }
  .feat__title { font-size: 28px; line-height: 36px; }
  .nlt { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 44px 40px; }
}

@media (max-width: 1023px) {
  .phero--compact { padding-block: calc(var(--hdr-h) + 36px) 40px; }
  .phero--compact .phero__title { font-size: 34px; line-height: 42px; }

  .feat { grid-template-columns: 1fr; }
  .feat__art { min-height: 0; aspect-ratio: 16 / 7; }
  .feat__body { padding: 30px 26px 34px; }

  .lbar__inner { min-height: 0; padding-block: 14px; gap: 12px; }
  .lsearch { flex: 1 1 100%; }
  .fchips { flex: 1 1 auto; order: 3; }
  .lsort { order: 2; }

  .lgrid { grid-template-columns: repeat(2, 1fr); }

  .nlt { grid-template-columns: 1fr; gap: 28px; padding: 38px 28px; }
  .nlt__title { font-size: 26px; line-height: 34px; }
}

@media (max-width: 640px) {
  .feat__title { font-size: 23px; line-height: 31px; }
  .feat__lead { font-size: 16px; line-height: 25px; }

  .lgrid { grid-template-columns: 1fr; }

  .lsort { flex: 1 1 100%; }
  .lsort select { width: 100%; }

  .nlt { padding: 30px 22px; border-radius: 22px; }
  .nlt__form { flex-direction: column; }
  .nlt__form .btn { width: 100%; }
  .lempty { padding: 48px 20px; }
}
