/* concurs — pagina unei serii (design nou, noiembrie 2026)
   Structură: .chead (antet cu afiș ca imagine) → .cpage (două coloane: .cpage__main fapte/noutăți/despre/ediții, .cpage__side panoul fix)
   → .similar. Comune: .panel (base.css), .tag / .btn / .share / .ev (components.css), .ed-panel (edițiile desfăcute, components.css). */

.main:has(.cpage) { padding-top: 24px; }

/* ── Antet: afișul în stânga, textul în dreapta ─────────── */
.chead { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; margin-bottom: 24px; }
.chead__pic { display: flex; align-items: center; justify-content: center; }
.chead__poster { width: 100%; max-height: 340px; object-fit: contain; border-radius: var(--r); box-shadow: 0 10px 24px rgba(17, 24, 39, .14); background: #fff; }
.chead__sym { width: 100%; aspect-ratio: 1; max-width: 220px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--acc, #7c3aed) 12%, #fff); display: grid; place-items: center; overflow: hidden; }
.chead__sym img { width: 58%; height: 58%; object-fit: contain; }
.chead__sym--col { grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px; }
.chead__sym--col img { width: 100%; height: 100%; }
.chead__sym--ini { font-size: 56px; font-weight: 800; color: var(--acc, #7c3aed); }
.chead__crumbs { font-size: 13.5px; color: var(--mute); margin: 0 0 10px; }
.chead__crumbs a { color: var(--soft); font-weight: 500; }
.chead__crumbs a:hover { color: var(--ink); text-decoration: underline; }
.chead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chead__cat { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.chead__cat:hover { color: #fff; opacity: .9; }
.chead__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.chead__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--soft); font-size: 15px; }
.chead__meta li { display: inline-flex; align-items: center; gap: 7px; }
.chead__meta svg { width: 18px; height: 18px; color: var(--mute); flex: none; }
.chead__meta a { color: var(--ink); text-decoration: underline dotted; text-decoration-color: var(--g300); text-underline-offset: 3px; }
.chead__verif { margin: 14px 0 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
.chead__verif a { color: inherit; text-decoration: underline; }

/* ── Două coloane ───────────────────────────────────────── */
.cpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cpage__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cpage__main > * { margin: 0; }
.cpage__side { position: sticky; top: calc(var(--nav-h) + 16px); }
.cpage .panel { padding: 24px 28px; }
.cpage .panel + .panel { margin-top: 0; }

/* ── Pe scurt: rânduri mari cu iconiță ──────────────────── */
.facts__h { font-size: 18px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 24px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; min-width: 0; }
.fact__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--lav-bg); color: var(--lav); display: grid; place-items: center; }
.fact__ico svg { width: 20px; height: 20px; }
.fact__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fact__value { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.fact__value a { color: inherit; }
.fact__value .date-link { text-decoration: underline dotted; text-decoration-color: var(--g300); text-underline-offset: 3px; }
.fact__sub { font-size: 13.5px; color: var(--soft); }
.fact__sub.info-row__st--open, .fact__sub.info-row__st--live { color: var(--ok); font-weight: 600; }
.fact__sub.info-row__st--urgent { color: var(--bad); font-weight: 600; }
.fact__sub.info-row__st--cmp, .fact__sub.info-row__st--soon { color: var(--info); font-weight: 600; }
.fact__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fact:has(.fact__chips) { grid-column: 1 / -1; }   /* secțiunile pe toată lățimea, să nu se îngrămădească */
.fact.is-changed { outline: 2px solid var(--bad); outline-offset: 4px; border-radius: var(--r-sm); }
.facts__foot { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--g100); font-size: 13px; color: var(--mute); line-height: 1.55; }

/* ── Despre ─────────────────────────────────────────────── */
.rich { font-size: 15.5px; line-height: 1.75; color: var(--g700); }
.rich__lead { font-size: 17px; color: var(--g800); margin: 0 0 12px; }
.rich p:last-child { margin-bottom: 0; }

/* ── Ediții: un rând pe ediție, detalii la click ────────── */
.eds__n { font-size: 13px; font-weight: 600; color: var(--mute); background: var(--tint); border-radius: var(--r-pill); padding: 2px 10px; }
.eds__list { display: flex; flex-direction: column; gap: 8px; }
.ed { border: 1px solid var(--g100); border-radius: var(--r); background: var(--card); overflow: hidden; }
.ed--open, .ed--urgent { border-color: #a7f3d0; background: #f6fffa; }
.ed--past { opacity: .85; }
.ed__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.ed__row::-webkit-details-marker { display: none; }
.ed__row:hover { background: var(--g50); }
.ed__year { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 52px; border-radius: 10px; background: var(--lav-bg); color: var(--lav); line-height: 1; }
.ed__year b { font-size: 17px; }
.ed__year small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.ed--past .ed__year { background: var(--tint); color: var(--soft); }
.ed__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.ed__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--soft); }
.ed__m { display: inline-flex; align-items: center; gap: 5px; }
.ed__meta svg { width: 15px; height: 15px; color: var(--mute); flex: none; }
.ed__side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ed__chev { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; transition: transform .2s; }
.ed__chev svg { width: 14px; height: 14px; }
.ed[open] .ed__chev { transform: rotate(180deg); }
.ed__body { padding: 4px 14px 16px 92px; border-top: 1px dashed var(--g100); }
.ed__body .ed-panel { padding-top: 12px; }

/* ── Panoul din dreapta: termen, numărătoare, butoane ───── */
.act { display: flex; flex-direction: column; gap: 14px; }
.act__ed { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.act__edlink { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.act__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--mute); }
.act__title svg { width: 18px; height: 18px; color: var(--lav); }
.act__date { margin: -8px 0 0; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.act__count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act__count span { display: flex; flex-direction: column; align-items: center; padding: 12px 6px 10px; border-radius: 12px; background: var(--lav-bg); color: var(--lav); }
.act__count b { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.act__count small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; font-weight: 600; color: #7c3aed; opacity: .8; }
.act--deadline.act--soon .act__count span { background: #fef2f2; color: var(--bad); }
.act--deadline.act--soon .act__count small { color: var(--bad); }
.act--live .act__date { color: var(--info); }
.act--finished .act__date { color: var(--soft); }
.act__note { margin: -4px 0 0; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.act__cta { justify-content: center; min-height: 52px; font-size: 16px; font-weight: 700; border-radius: var(--r); }
.act__cta svg { width: 18px; height: 18px; }
.act__mine { border-top: 1px solid var(--g100); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.act__who { margin: 0; font-size: 13px; color: var(--mute); }
.act__who b { color: var(--lav); }
.act__who a { margin-right: 4px; }
.act__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act__btns .btn, .act__btns .tag { min-height: 46px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); color: var(--g700); font-size: 14px; font-weight: 600; justify-content: center; display: inline-flex; align-items: center; }
.act__btns .btn:hover { border-color: #4ade80; background: #f0fdf4; color: var(--ink); opacity: 1; }
.act__btns .btn--primary { border-color: transparent; background: var(--grad); color: #fff; }
.act__btns .btn--primary:hover { border-color: transparent; background: var(--grad); color: #fff; opacity: .9; }
.act__btns .tag--ok { background: var(--ok-bg); border-color: #a7f3d0; color: var(--ok); }
.act__login { margin: 0; font-size: 13.5px; color: var(--soft); line-height: 1.5; border-top: 1px solid var(--g100); padding-top: 14px; }
.act__links { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--g100); padding-top: 14px; }
.act__links .btn { justify-content: center; min-height: 44px; }
.act .share { margin: 0; border-top: 1px solid var(--g100); padding-top: 14px; }
.act__admin { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px dashed var(--g200); padding-top: 12px; }
.act .is-changed { outline: 2px solid var(--bad); outline-offset: 3px; border-radius: var(--r-sm); }

/* ── Concursuri asemănătoare (bandă albă pe toată lățimea) ─ */
.similar { margin: 48px 0 -64px; padding: 48px 0 56px; background: var(--card); box-shadow: 0 0 0 100vmax var(--card); clip-path: inset(0 -100vmax); }
.main:has(.similar) + .site-foot { margin-top: 0; }
.similar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.similar__head h2 { font-size: 24px; margin: 0; }
.similar__head a { font-weight: 500; font-size: 15px; }
.similar .ev { border-color: var(--g100); box-shadow: none; }
.similar .ev:hover { box-shadow: var(--shadow-lg); }

/* ── Ecrane mici ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cpage { grid-template-columns: 1fr; }
  .cpage__side { position: static; order: -1; }   /* termenul și butonul de înscriere vin primele */
}
@media (max-width: 760px) {
  .chead { grid-template-columns: 1fr; gap: 16px; padding: 18px; text-align: left; }
  .chead__pic { justify-content: flex-start; }
  .chead__poster { max-height: 240px; width: auto; max-width: 100%; }
  .chead__sym { max-width: 140px; }
  .cpage .panel { padding: 18px; }
  .facts__list { grid-template-columns: 1fr; gap: 10px; }
  .ed__row { grid-template-columns: 52px minmax(0, 1fr); }
  .ed__year { width: 52px; height: 46px; }
  .ed__side { grid-column: 1 / -1; justify-content: flex-start; }
  .ed__body { padding-left: 14px; }
  .act__date { font-size: 22px; }
  .similar { margin-bottom: -96px; padding-bottom: 40px; }
}

/* legătura spre ghidul practic al concursului (includes/guides.php), sub antet */
.cguide { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--lav-bg); border: 1px solid #e4dcfb; color: var(--ink); text-decoration: none; }
.cguide:hover { border-color: var(--lav); color: var(--ink); }
.cguide__ico { font-size: 26px; line-height: 1; flex: none; }
.cguide small { display: block; font-size: 12px; font-weight: 700; color: var(--lav); text-transform: uppercase; letter-spacing: .04em; }
.cguide b { font-size: 15px; }
.cguide__go { margin-left: auto; flex: none; font-weight: 700; font-size: 14px; color: var(--lav); }
@media (max-width: 640px) { .cguide__go { display: none; } }
