/* ============================================================
   Anunțuri de deces și condoleanțe.
   Sobru: text, spațiu, o linie de alamă. Nicio culoare tare,
   nicio mișcare, niciun colț rotund ca o bulină.
   Butoanele și câmpurile vin din components.css.
   ============================================================ */

/* ─────────────────────── /anunturi ─────────────────────── */

.anunt-head { max-width: var(--maxw-text); }
.anunt-head .lead { margin-top: var(--s-4); }
.anunt-head__phone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s-4);
  font-size: var(--t-sm);
}
.anunt-head__phone .icon { color: var(--brass-600); }

.anunt-search {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  max-width: 34rem;
}
.anunt-search__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.anunt-search__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.anunt-search__row .input { flex: 1 1 14rem; min-width: 0; }

.anunt-count {
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--text-mute);
}

.anunt-list {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 900px) {
  .anunt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anunt-empty { grid-column: 1 / -1; }
}

.anunt-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--d-base) var(--ease);
}
.anunt-card:hover { border-color: var(--ink-200); }
.anunt-card:has(a:focus-visible) { border-color: var(--ink-300); }

/* Fotografie doar dacă familia a dat una: mică, tonuri reținute, colț drept. */
.anunt-card__photo {
  width: 5rem;
  height: 6.25rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: saturate(0.55) contrast(0.95);
}

.anunt-card__body { min-width: 0; }
.anunt-card__name {
  font-size: var(--t-md);
  line-height: 1.3;
}
.anunt-card__name a { color: var(--ink-900); }
.anunt-card__name a:hover { color: var(--brass-700); }
.anunt-card__years {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.anunt-card__meta {
  display: grid;
  gap: 0.3rem;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.5;
}

.anunt-empty .empty { padding-block: var(--s-8); }
.anunt-empty__art { width: min(15rem, 60%); opacity: 0.9; }

.anunt-pager { margin-top: var(--s-7); }

/* ─────────────────────── /anunturi/:slug ─────────────────────── */

.anunt__crumbs { margin-bottom: var(--s-5); }

.anunt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.anunt__photo {
  width: 8rem;
  height: 10rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: saturate(0.55) contrast(0.95);
}
.anunt__name { font-size: var(--t-xl); }
.anunt__years {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--t-md);
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.anunt__city { margin-top: 0.15rem; font-size: var(--t-sm); color: var(--text-mute); }

/* Textul familiei. Rândurile noi vin din CSS, nu din HTML injectat. */
.anunt__text {
  margin-top: var(--s-6);
  max-width: var(--maxw-text);
  white-space: pre-line;
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1.75;
  color: var(--ink-800);
}

.anunt__facts {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-6) 0 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass-500);
  border-radius: var(--r-xs);
}
.anunt__fact { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s-4); }
@media (max-width: 599px) {
  .anunt__fact { grid-template-columns: 1fr; gap: 0.2rem; }
}
.anunt__fact dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--brass-700);
  padding-top: 0.2rem;
}
.anunt__fact dd { margin: 0; color: var(--ink-800); }
.anunt__place { display: block; color: var(--text-soft); font-size: var(--t-sm); }

.anunt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.anunt__print-line { display: none; }

/* ─────────────────────── condoleanțe ─────────────────────── */

.cond__title { font-size: var(--t-lg); }
.cond__intro {
  margin-top: var(--s-3);
  max-width: var(--maxw-text);
  font-size: var(--t-sm);
  color: var(--text-soft);
}
.cond__none { margin-top: var(--s-5); font-size: var(--t-sm); }

.cond-list {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.cond-item {
  padding: var(--s-5);
  background: var(--stone-50);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
}
.cond-item__message {
  margin: 0;
  white-space: pre-line;
  color: var(--ink-800);
  overflow-wrap: anywhere;
}
.cond-item__by {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--s-3) 0 0;
  font-size: var(--t-sm);
}
.cond-item__name { font-weight: 600; color: var(--ink-700); overflow-wrap: anywhere; }
.cond-item__date { color: var(--text-mute); }

.cond-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 860px) {
  .cond-form-wrap { grid-template-columns: 12rem minmax(0, 1fr); align-items: start; }
}
.cond-form__side { display: none; }
@media (min-width: 860px) {
  .cond-form__side { display: block; }
}
.cond-form__art { width: 100%; opacity: 0.85; }

.cond-form__title { font-size: var(--t-md); margin-bottom: var(--s-4); }
.cond-form__main { min-width: 0; max-width: 38rem; }
.cond-form__done, .cond-form__alert { margin-bottom: var(--s-5); }

/* Câmpul-capcană: scos din pagină pentru om, la îndemână pentru roboți. */
.cond-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cond-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}
.cond-form__note { max-width: 22rem; }

/* ─────────────────────── tipărire ───────────────────────
   Familiile chiar tipăresc anunțul și îl duc la biserică.
   Rămâne doar anunțul: nume, ani, textul familiei, slujba, înhumarea. */

@media print {
  .anunt-search,
  .anunt-pager,
  .anunt__crumbs,
  .anunt__actions,
  .cond,
  .anunt-head__phone { display: none; }

  .section, .section--tight { padding-block: 0; }
  .wrap, .wrap--narrow { max-width: none; padding-inline: 0; }

  .anunt__head {
    border-bottom: 1px solid #000;
    padding-bottom: 12pt;
  }
  .anunt__name { font-size: 22pt; }
  .anunt__years, .anunt__city { color: #000; }
  .anunt__photo { filter: none; width: 28mm; height: 35mm; }

  .anunt__text {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    max-width: none;
  }

  .anunt__facts {
    border: 0;
    border-top: 1px solid #000;
    border-radius: 0;
    padding: 12pt 0 0;
    background: transparent;
    break-inside: avoid;
  }
  .anunt__fact dt { color: #000; }
  .anunt__fact dd, .anunt__place { color: #000; }

  .anunt__print-line {
    display: block;
    margin-top: 14pt;
    padding-top: 8pt;
    border-top: 1px solid #999;
    font-size: 9pt;
    color: #444;
  }

  .anunt-card {
    border: 0;
    border-bottom: 1px solid #999;
    border-radius: 0;
    padding: 8pt 0;
    break-inside: avoid;
  }
}
