/*
 * DESIGN MASTER / DESIGN LOCK — corecții aprobate, 2026-09-07.
 * Acest fișier este încărcat după stylesheet-ul public existent.
 * Nu modifică structura, paleta, fonturile sau șabloanele în afara zonelor
 * cerute explicit în sarcina de stabilizare.
 */

/* Cuvântul CAUTĂ trebuie să folosească un singur desen tipografic. */
.searchbtn,
.searchbtn i,
.searchbtn span {
  font-family: Manrope, sans-serif !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
}

/* Caseta compactă rămâne neschimbată ca dimensiune și este centrată vizual
   în zona bourbon din dreapta. */
@media (width >= 701px) {
  .heroart.archivalEmblem {
    justify-self: end;
    transform: translateX(16%);
  }
}

.emblemFrame > span {
  display: none !important;
}

.emblemFrame .emblemCollectionMark {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  display: block;
  margin: 0;
  color: #c49c5a;
  text-align: center;
  font: 600 8px/1.25 Manrope, sans-serif;
  letter-spacing: 1.7px;
}

.heroart.archivalEmblem > small {
  display: none !important;
}

/* Eticheta galeriei este o regulă a componentei, nu o excepție SAFE-GUARD. */
.featureart .photoCount,
.galleryFrame .photoCount,
.objectGalleryLead .photoCount {
  right: auto;
  bottom: -24px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  background: #6d2b32;
  color: #f3e4c6;
  white-space: nowrap;
}

/* Permite etichetei să traverseze conturul ramei fără să fie decupată. */
.featureart:has(.photoCount),
.galleryFrame:has(.photoCount),
.objectGalleryLead:has(.photoCount) {
  overflow: visible;
}

/* Metadatele și acțiunile din toate cardurile de istorii recente. */
.recentStoryCard .meta,
.recentStoryCard .meta b,
.recentStoryCard .meta span {
  color: #36261d;
  font-weight: 600;
}

.recentStoryCard .meta {
  font-size: 9px;
}

.recentStoryCard .read {
  color: #36261d;
  font-weight: 600;
}

@media (width <= 700px) {
  /* Textura publică folosește aceeași scară fină în toate suprafețele mobile. */
  .detail,
  .introduction,
  .featured,
  .timeline,
  .community,
  .follow,
  .featureart,
  .archiveMenu,
  .legalPage,
  .objectRecord {
    background-size: 100% 100%, min(960px, 240vw) auto;
    background-position: 0 0, center top;
    background-repeat: no-repeat, repeat-y;
    background-attachment: scroll, scroll;
  }

  /* Fundalul paginii rămâne o singură suprafață continuă, ca în master.
     Textura nu se repetă pe benzi între secțiunile homepage-ului. */
  body {
    background-size: 100% 100%, min(960px, 240vw) auto;
    background-position: 0 0, center top;
    background-repeat: no-repeat, repeat-y;
    background-attachment: scroll, scroll;
  }

  .hero {
    background-size: 100% 100%, min(960px, 240vw) auto;
    background-position: 0 0, center top;
    background-repeat: no-repeat, repeat-y;
    background-attachment: scroll, scroll;
  }

  /* Contrast suplimentar pentru cardurile editoriale pe textura mobilă. */
  #articole .head h2,
  .recentStoryCard h3 {
    color: #302017;
  }

  .recentStoryCard p {
    color: #3a2b20;
  }

  .recentStoryCard .meta,
  .recentStoryCard .meta b,
  .recentStoryCard .meta span,
  .recentStoryCard .read {
    color: #302017;
    font-weight: 600;
  }

  .heroart.archivalEmblem {
    justify-self: center;
    width: 100%;
    transform: none !important;
  }

  .emblemFrame .emblemCollectionMark {
    right: 10px;
    bottom: 15px;
    left: 10px;
    font-size: 7px;
    letter-spacing: 1.25px;
  }

  .featureart .photoCount,
  .galleryFrame .photoCount,
  .objectGalleryLead .photoCount {
    max-width: calc(100% - 28px);
    justify-content: center;
    white-space: normal;
  }
}
