/* Museu ODC 3.0.41 — acabamento final do checklist curatorial. */
:root {
  --odc341-content: 1120px;
  --odc341-text: 820px;
  --odc341-gold: #d8a83e;
  --odc341-gold-light: #f3d889;
  --odc341-cream: #fff4dc;
  --odc341-dark: #100b08;
  --odc341-line: rgba(216,168,62,.54);
}

html.odc341-ready { scroll-behavior: smooth; }
html body.odc341-checklist-final :where(main,.site-main,.entry-content) { min-width: 0; }

/* Hierarquia e grid comuns, sem invadir mapa, Jornada, Tainacan administrativo ou VLibras. */
html body.odc341-checklist-final:not(.odc21-page-map):not(.odc300-page-journey) :where(.entry-content,.site-main > article,.odc24-generic-item,.odc16-curated-item) {
  box-sizing: border-box;
}
html body.odc341-checklist-final:not(.odc21-page-map):not(.odc300-page-journey) :where(h1,.entry-title) {
  font-size: clamp(2.25rem,5.5vw,4.65rem) !important;
  line-height: 1.04 !important;
  text-wrap: balance;
}
html body.odc341-checklist-final:not(.odc21-page-map):not(.odc300-page-journey) h2 {
  font-size: clamp(1.75rem,4vw,3rem);
  line-height: 1.1;
  text-wrap: balance;
}
html body.odc341-checklist-final:not(.odc21-page-map):not(.odc300-page-journey) h3 {
  font-size: clamp(1.35rem,2.7vw,2.1rem);
  line-height: 1.16;
}
html body.odc341-checklist-final :where(p,li,dd,figcaption) {
  line-height: 1.68;
}

/* Coleções: rótulo redundante removido e conteúdo alinhado à mesma grid. */
html body.odc341-checklist-final .odc24-collection-introduction__eyebrow,
html body.odc341-checklist-final .odc-collection-eyebrow { display: none !important; }
html body.odc341-checklist-final :where(.odc24-collection-introduction,.odc18-educational-journey,.odc329-donation,.odc331-policy) {
  width: min(calc(100% - 32px),var(--odc341-content));
  margin-inline: auto;
}

/* Acervo Educativo e experiência virtual. */
html body.odc341-checklist-final :where(.odc18-educational-journey,.odc18-educational-journey__content) {
  text-align: center !important;
}
html body.odc341-checklist-final .odc18-educational-journey__content {
  align-items: center !important;
  margin-inline: auto !important;
}
html body.odc341-checklist-final .odc18-educational-journey__content :where(h2,p,strong) {
  max-width: 760px;
  margin-inline: auto !important;
  text-align: center !important;
  text-align-last: center !important;
  word-spacing: normal !important;
}

/* Botão ausente de retorno da Jornada. */
html body.odc341-checklist-final .odc341-journey-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  margin: .45rem .45rem .75rem;
  padding: .68rem 1rem;
  border: 1px solid var(--odc341-gold);
  border-radius: 999px;
  background: rgba(18,10,6,.96);
  color: var(--odc341-gold-light) !important;
  font-weight: 800;
  text-decoration: none !important;
}

/* CTA primário claro e estados interativos consistentes. */
html body.odc341-checklist-final .odc341-cta-primary {
  background: linear-gradient(180deg,#f8d776,#d58b2d) !important;
  color: #1c1008 !important;
  border-color: #f3d889 !important;
  -webkit-text-fill-color: #1c1008 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}
html body.odc341-checklist-final :where(a,button,[role="button"]):focus-visible {
  outline: 3px solid var(--odc341-gold-light) !important;
  outline-offset: 3px !important;
}
html body.odc341-checklist-final :where(a,button,[role="button"]):hover {
  filter: brightness(1.06);
}

/* Exposições: elimina espaço morto, padroniza enquadramento e preserva orientação EXIF. */
html body.odc341-checklist-final.odc340-museological-exhibition :where(.odc24-generic-item,.odc16-curated-item) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
html body.odc341-checklist-final.odc340-museological-exhibition :where(.odc24-item-hero,.odc16-curated-hero) {
  min-height: 0 !important;
  margin-top: 0 !important;
  padding-top: clamp(.35rem,1vw,.8rem) !important;
}
html body.odc341-checklist-final.odc340-museological-exhibition .odc340-media img {
  image-orientation: from-image;
  filter: contrast(1.04) saturate(.96) brightness(1.01);
  object-position: center;
}
html body.odc341-checklist-final.odc340-museological-exhibition .odc340-slide__content {
  max-width: 100%;
}

/* Mapa: cores reais da legenda, inclusive nos marcadores SVG. */
html body.odc341-checklist-final .odc-mapa-svg-marker--matriz svg path:first-child { fill: #F0C76A !important; }
html body.odc341-checklist-final .odc-mapa-svg-marker--recente svg path:first-child { fill: #C66D36 !important; }
html body.odc341-checklist-final .odc-mapa-svg-marker--historica svg path:first-child { fill: #E6D2A2 !important; }
html body.odc341-checklist-final .odc-mapa-dot--matriz { background: #F0C76A !important; }
html body.odc341-checklist-final .odc-mapa-dot--recente { background: #C66D36 !important; }
html body.odc341-checklist-final .odc-mapa-dot--historica { background: #E6D2A2 !important; }

/* Política e doações mantêm leitura e responsividade. */
html body.odc341-checklist-final .odc328-policy-table-wrap { max-width: 100%; overflow-x: auto; }
html body.odc341-checklist-final .odc329-donation__grid { align-items: stretch; }

@media (max-width: 760px) {
  html body.odc341-checklist-final :where(.odc24-collection-introduction,.odc18-educational-journey,.odc329-donation,.odc331-policy) {
    width: min(calc(100% - 16px),var(--odc341-content));
  }
  html body.odc341-checklist-final .odc341-journey-back { width: calc(100% - .9rem); }
}

@media (prefers-reduced-motion: reduce) {
  html.odc341-ready { scroll-behavior: auto; }
  html body.odc341-checklist-final :where(a,button,[role="button"]) { transition: none !important; }
}
