/* ==========================================================================
   Bursa pe Scurt — arhiva edițiilor (v4.75.0)
   Doar pe /editii/, după style.css și mobil.css.
   ========================================================================== */

.pagina-editii {
  --ed-raport:   var(--bvb-turcoaz);
  --ed-dividend: var(--bvb-pozitiv);
  --ed-calendar: #d29922;
  --ed-mix:      #a371f7;
  --ed-gol:      rgba(139, 148, 158, .14);
}

/* Culoarea tipului, folosită de pătrățele, bara din stânga și pastile. */
.ed-t-raport   { --ed-c: var(--ed-raport); }
.ed-t-dividend { --ed-c: var(--ed-dividend); }
.ed-t-calendar { --ed-c: var(--ed-calendar); }
.ed-t-mix      { --ed-c: var(--ed-mix); }
.ed-t-gol      { --ed-c: var(--ed-gol); }

.ed-patrat {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  border-radius: 3px;
  background: var(--ed-c);
  flex: 0 0 auto;
}

/* --- Antet ---------------------------------------------------------------- */
.ed-antet {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.ed-antet-text { max-width: 44rem; }
.ed-antet-actiuni .btn { white-space: nowrap; }

/* --- Cifre + hartă -------------------------------------------------------- */
/* Desktop: cifrele (2×2) în stânga, harta în dreapta — un singur rând. */
/* minmax(0, 1fr): fără el, lățimea minimă a hărții lărgea toată pagina pe mobil. */
.ed-sus { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 0 0 1.25rem; }
@media (min-width: 1000px) {
  .ed-sus { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .ed-sus .ed-harta { max-width: 760px; }
  .ed-sus .ed-cifre { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
  .ed-sus .ed-harta { margin: 0; }
}

.ed-cifre {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1rem;
  padding: 0;
}
.ed-cifre li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .8rem 1rem;
  background: var(--bvb-card);
  border: 1px solid var(--bvb-bordura);
  border-radius: var(--bvb-radius);
}
.ed-cifre strong {
  font-family: var(--bvb-font-brand);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--bvb-text);
  font-variant-numeric: tabular-nums;
}
.ed-cifre li:first-child strong { color: var(--bvb-turcoaz); }
.ed-cifre span { font-size: .78rem; color: var(--bvb-text-secundar); }

/* --- Harta de activitate -------------------------------------------------- */
.ed-harta {
  position: relative;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bvb-card);
  border: 1px solid var(--bvb-bordura);
  border-radius: var(--bvb-radius);
}
.ed-harta-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: .75rem;
}
.ed-harta-cap h2 {
  margin: 0;
  font-size: .95rem;
  font-family: var(--bvb-font-text);
  font-weight: 600;
}
/* Legenda sub hartă: cardul ia lățimea hărții, nu a unui rând lung de legendă. */
.ed-harta-legenda {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  margin: .75rem 0 0;
  max-width: 34rem;
  padding: 0;
  font-size: .76rem;
  color: var(--bvb-text-secundar);
}
.ed-harta-legenda li,
.ed-harta-legenda a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: inherit;
}
.ed-harta-legenda a:hover { color: var(--bvb-text); text-decoration: none; }

/* Coloane = săptămâni. Căsuțe PĂTRATE, de mărime fixă: harta își ia lățimea
   din numărul de săptămâni, nu se întinde pe tot cardul (dreptunghiurile
   lățite arătau înghesuit). */
.ed-harta {
  --ed-cel: 18px;
  --ed-spatiu: 4px;
  overflow: hidden;
}
.ed-harta-grila {
  display: flex;
  gap: var(--ed-spatiu);
}
.ed-harta-zile,
.ed-harta-sapt {
  display: grid;
  grid-template-rows: 1rem repeat(7, var(--ed-cel));
  gap: var(--ed-spatiu);
  flex: 0 0 auto;
}
.ed-harta-zile { width: 1rem; margin-right: 2px; }
.ed-harta-sapt { width: var(--ed-cel); }
/* Un mic spațiu în plus la început de lună: lunile se citesc ca blocuri. */
.ed-harta-sapt.ed-luna-noua:not(:nth-child(2)) { margin-left: 4px; }

.ed-harta-luna {
  font-size: .68rem;
  line-height: 1rem;
  color: var(--bvb-text-secundar);
  white-space: nowrap;
  overflow: visible;
}
.ed-harta-zi-et {
  font-size: .64rem;
  color: var(--bvb-text-secundar);
  display: flex;
  align-items: center;
  line-height: 1;
}
.ed-harta-zi-et.ed-weekend { opacity: .55; }

.ed-zi {
  display: block;
  width: var(--ed-cel);
  height: var(--ed-cel);
  border-radius: 4px;
  background: var(--ed-c, var(--ed-gol));
  transition: transform .12s ease, box-shadow .12s ease;
}
a.ed-zi:hover,
a.ed-zi:focus-visible {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--bvb-fundal), 0 0 0 3px var(--ed-c);
  outline: none;
  position: relative;
  z-index: 2;
}
/* Weekendul: aceeași mărime, mai estompat (edițiile de weekend rămân vizibile). */
.ed-zi.ed-weekend.ed-t-gol { opacity: .45; }
.ed-zi.ed-viitor { background: transparent; }
.ed-zi.ed-azi { box-shadow: 0 0 0 1.5px var(--bvb-text); }

.ed-tooltip {
  position: absolute;
  z-index: 30;
  max-width: 300px;
  padding: .4rem .6rem;
  background: #0b1015;
  border: 1px solid var(--bvb-bordura);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  color: var(--bvb-text);
  font-size: .76rem;
  line-height: 1.4;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: nowrap;
}
.ed-tooltip[hidden] { display: none; }

/* --- Filtre --------------------------------------------------------------- */
/* Nu e sticky: antetul site-ului e deja sticky și filtrele ar aluneca sub el. */
.ed-filtre {
  display: grid;
  gap: .65rem;
  margin: 0 0 1rem;
}

.ed-filtre-rand {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ed-cauta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .9rem;
  background: var(--bvb-card);
  border: 1px solid var(--bvb-bordura);
  border-radius: 999px;
  color: var(--bvb-text-secundar);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ed-cauta:focus-within {
  border-color: var(--bvb-turcoaz);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
  color: var(--bvb-turcoaz);
}
.ed-cauta input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  color: var(--bvb-text);
  font-size: .98rem;
  padding: .7rem 0;
}
/* Săgeata pe care Chrome o pune pe câmpurile cu sugestii — arăta ca un select. */
.ed-cauta input::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }

.ed-perioada select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bvb-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right .9rem center;
  border: 1px solid var(--bvb-bordura);
  border-radius: 999px;
  color: var(--bvb-text);
  font-size: .9rem;
  padding: .68rem 2.2rem .68rem 1rem;
  cursor: pointer;
}
.ed-perioada select:focus { outline: none; border-color: var(--bvb-turcoaz); }
.ed-aplica { border-radius: 999px; padding: .65rem 1.2rem; white-space: nowrap; }

.ed-tipuri {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ed-tip-pastila {
  position: relative; /* ține radio-ul ascuns în pastilă (altfel lărgea pagina pe mobil) */
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .75rem;
  background: var(--bvb-card);
  border: 1px solid var(--bvb-bordura);
  border-radius: 999px;
  color: var(--bvb-text-secundar);
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ed-tip-pastila input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.ed-tip-pastila:hover { color: var(--bvb-text); border-color: var(--ed-c, var(--bvb-turcoaz)); }
.ed-tip-pastila:focus-within { box-shadow: 0 0 0 2px var(--bvb-focus, var(--bvb-turcoaz)); }
.ed-tip-pastila.activ,
.ed-tip-pastila:has(input:checked) {
  color: var(--bvb-text);
  border-color: var(--ed-c, var(--bvb-turcoaz));
  background: color-mix(in srgb, var(--ed-c, var(--bvb-turcoaz)) 14%, var(--bvb-card));
  font-weight: 600;
}
.ed-tip-nr {
  padding: .02rem .42rem;
  border-radius: 999px;
  background: var(--bvb-fundal);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  color: var(--bvb-text-secundar);
}

.ed-active { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ed-activ {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .35rem .22rem .7rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, .12);
  border: 1px solid var(--bvb-turcoaz-inchis);
  color: var(--bvb-turcoaz);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.ed-activ span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, .18);
  font-size: .9rem;
  line-height: 1;
}
.ed-activ:hover { text-decoration: none; background: rgba(45, 212, 191, .2); }
.ed-reset { font-size: .8rem; color: var(--bvb-text-secundar); margin-left: .3rem; }
.ed-reset:hover { color: var(--bvb-negativ); }

/* Cu JS, filtrele se aplică singure; butonul rămâne doar pentru căutare. */
.ed-js .ed-aplica { padding-inline: 1rem; }

.ed-numar { margin: 0 0 .5rem; font-size: .85rem; color: var(--bvb-text-secundar); }

/* --- Lista ---------------------------------------------------------------- */
.ed-lista { display: grid; gap: 1.5rem; }
.ed-lista.se-incarca { opacity: .45; transition: opacity .15s ease; }

.ed-luna-titlu {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .6rem;
  padding: 0 .2rem;
  font-size: 1.05rem;
}
.ed-luna-nr {
  font-family: var(--bvb-font-text);
  font-size: .78rem;
  font-weight: 500;
  color: var(--bvb-text-secundar);
}
.ed-luna-nr:hover { color: var(--bvb-turcoaz); }

.ed-luna-randuri {
  display: grid;
  gap: .5rem;
}

.ed-rand {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem .85rem 0;
  background: var(--bvb-card);
  border: 1px solid var(--bvb-bordura);
  border-left: 3px solid var(--ed-c);
  border-radius: var(--bvb-radius);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.ed-rand:hover {
  background: var(--bvb-card-hover);
  border-color: color-mix(in srgb, var(--ed-c) 55%, var(--bvb-bordura));
  border-left-color: var(--ed-c);
  transform: translateX(2px);
}

.ed-data {
  display: grid;
  justify-items: center;
  line-height: 1;
  gap: .2rem;
  padding-left: .2rem;
}
.ed-data-zi {
  font-family: var(--bvb-font-brand);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--bvb-text);
  font-variant-numeric: tabular-nums;
}
.ed-data-luna {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ed-c);
  font-weight: 700;
}
.ed-data-sapt { font-size: .7rem; color: var(--bvb-text-secundar); }

.ed-corp { min-width: 0; display: grid; gap: .35rem; }

.ed-cap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .76rem;
  color: var(--bvb-text-secundar);
}
.ed-tip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: var(--ed-c);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
}
.ed-tip .ed-patrat { width: .55rem; height: .55rem; }
.ed-proaspat {
  padding: .05rem .5rem;
  border-radius: 999px;
  background: var(--bvb-turcoaz);
  color: #04211d;
  font-weight: 700;
  font-size: .68rem;
}
.ed-proaspat--ieri { background: rgba(45, 212, 191, .16); color: var(--bvb-turcoaz); }
.ed-titlu-mic { margin-left: auto; font-size: .72rem; opacity: .75; }
.ed-cap .badge-pro { font-size: .62rem; padding: .05rem .4rem; }

.ed-rezumat {
  margin: 0;
  font-family: var(--bvb-font-text);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.45;
}
.ed-link {
  color: var(--bvb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-link:hover { color: var(--bvb-turcoaz); text-decoration: none; }
/* Tot rândul e clicabil; simbolurile rămân linkuri proprii, deasupra. */
.ed-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }

.ed-companii {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.ed-simbol {
  padding: .1rem .5rem;
  border-radius: 6px;
  background: var(--bvb-fundal);
  border: 1px solid var(--bvb-bordura);
  color: var(--bvb-text-secundar);
  font-family: var(--bvb-font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .12s ease, border-color .12s ease;
}
a.ed-simbol:hover { color: var(--bvb-turcoaz); border-color: var(--bvb-turcoaz); text-decoration: none; }
.ed-simbol--mai { font-family: var(--bvb-font-text); }

.ed-sageata {
  color: var(--bvb-text-secundar);
  opacity: .5;
  transition: opacity .15s ease, transform .15s ease, color .15s ease;
}
.ed-rand:hover .ed-sageata { opacity: 1; color: var(--ed-c); transform: translateX(3px); }

/* --- Mobil ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .ed-cifre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ed-antet { align-items: flex-start; }
  .ed-cifre { gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-cifre li:nth-child(4) { display: none; }
  .ed-cifre li { padding: .6rem .75rem; }
  .ed-cifre strong { font-size: 1.2rem; }

  /* Pe telefon: căsuțe mai mici și doar ultimele 15 săptămâni — încap
     întregi, fără bară de derulare. */
  .ed-harta { padding: .8rem; --ed-cel: 15px; --ed-spatiu: 3px; }
  .ed-harta-sapt:not(:nth-last-child(-n+15)) { display: none; }
  .ed-harta-sapt.ed-luna-noua { margin-left: 0; }
  .ed-harta-sapt:nth-last-child(15):not(.ed-luna-noua) .ed-harta-luna::before { content: attr(data-luna); }
  .ed-harta-legenda { font-size: .72rem; gap: .25rem .7rem; }

  .ed-filtre-rand { flex-wrap: wrap; }
  .ed-cauta { flex-basis: 100%; }
  .ed-cauta input { font-size: 16px; padding: .6rem 0; }
  .ed-perioada { flex: 1; }
  .ed-perioada select { width: 100%; font-size: 16px; padding-block: .55rem; }
  .ed-tipuri { gap: .35rem; }
  .ed-tip-pastila { padding: .32rem .6rem; font-size: .8rem; }

  .ed-rand { grid-template-columns: 3.2rem minmax(0, 1fr); gap: .7rem; padding: .7rem .8rem .7rem 0; }
  .ed-sageata { display: none; }
  .ed-data-zi { font-size: 1.35rem; }
  .ed-titlu-mic { display: none; }
  .ed-rezumat { font-size: .92rem; }
  .ed-link { -webkit-line-clamp: 3; line-clamp: 3; }
}

@media (pointer: coarse) {
  .ed-tip-pastila { min-height: 40px; }
  .ed-simbol { padding: .25rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-rand, .ed-sageata, .ed-zi { transition: none; }
  .ed-rand:hover { transform: none; }
  a.ed-zi:hover { transform: none; }
}
