/* CEMEFEC · Linha do Tempo · M3 Expressive (intervenção conservadora)
   Interface apenas: não modifica nem reescreve conteúdos da planilha.
   2026-11-10 · R1 — cartões, fotografias, tipografia e responsividade. */
:root {
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --e1: 0 2px 5px rgba(25,55,75,.09), 0 1px 2px rgba(25,55,75,.05);
  --e2: 0 5px 16px rgba(25,55,75,.12), 0 2px 5px rgba(25,55,75,.07);
  --e3: 0 9px 25px rgba(25,55,75,.17), 0 3px 9px rgba(25,55,75,.08);
}
/* Cartões: a altura é intrínseca, medida pelo organizador de níveis.
   Títulos e textos completos continuam no DOM e podem ser lidos no cartão. */
#vp .t-card {
  width: 440px;
  max-height: none;
  min-height: 0;
  padding: 14px 17px 15px;
  border-radius: 19px;
  overflow: hidden;
  isolation: isolate;
}
#vp .t-card::before { border-radius: inherit; }
#vp .t-card .card-chip {
  flex-shrink: 0;
  height: 33px;
  padding: 0 13px;
  font-size: 21px;
  letter-spacing: .025em;
  margin-bottom: 9px;
  max-width: 100%;
}
#vp .t-card .card-title {
  font-size: 23px;
  line-height: 1.32;
  text-align: left;
  text-justify: auto;
  hyphens: auto;
  overflow: visible;
  max-height: none;
  overflow-wrap: break-word;
  word-break: normal;
  margin-bottom: 8px;
}
#vp .t-card .card-body {
  display: block;
  font-size: 20px;
  line-height: 1.43;
  text-align: left;
  text-justify: auto;
  hyphens: auto;
  overflow: visible;
  max-height: 218px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,112,157,.5) transparent;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: pre-line;
}
#vp .t-card .card-more {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: .03em;
  margin-top: 11px;
  padding: 3px 0;
}
#vp .t-card .card-thumb {
  display: block;
  width: calc(100% + 34px);
  height: auto;
  max-height: 295px;
  object-fit: contain;
  object-position: center center;
  border-radius: 16px 16px 6px 6px;
  background: rgba(255,255,255,.65);
  margin: -14px -17px 11px;
}
#vp .t-card .card-body::-webkit-scrollbar { width: 9px; }
#vp .t-card .card-body::-webkit-scrollbar-thumb { background: rgba(30,112,157,.4); border-radius: 9px; }
#vp .t-card .card-body:focus-visible { outline: 3px solid var(--blue-dk); outline-offset: 2px; border-radius: 6px; }
/* Entrelinhas: mais largura e sem justificação que forma colunas de letras. */
#vp .card-el {
  width: 320px;
  border-radius: 17px;
  overflow: hidden;
  min-width: 0;
  max-height: none;
}
#vp .card-el-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center center;
  background: rgba(255,255,255,.65);
}
#vp .card-el-body {
  padding: 13px 14px 14px;
  align-items: flex-start;
  text-align: left;
  gap: 7px;
}
#vp .card-el-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.36;
  text-align: left;
  text-justify: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}
#vp .card-el-title.is-cat { text-align: left; hyphens: auto; }
#vp .card-el-cat {
  font-size: 19px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
}
#vp .card-el-more {
  font-size: 15px;
  margin-top: 4px;
  padding: 3px 0;
}
/* Imagens dos registros expandidos: sempre integrais e sem deformação. */
#modal .m-img,
#elModal .el-dialog-img { border-radius: 18px; }
#modal .m-img img,
#elModal .el-dialog-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: rgba(12,70,90,.045);
}
#modal .m-img img { cursor: zoom-in; }
#modal .f-val,
#modal .m-rel-body,
#elModal .f-val,
#refModal .ref-texto {
  text-align: left;
  text-justify: auto;
  overflow-wrap: break-word;
  word-break: normal;
}
#modal .m-dialog, #elModal .el-dialog, #refModal .ref-dialog {
  border-radius: 24px;
}
/* Panorâmica: marcadores coloridos sem a aparência de palavras espremidas.
   O conteúdo NÃO é removido: segue íntegro no DOM, no banco e nos detalhes ao clique. */
#vp.zoom-panoramico .t-card,
#vp.zoom-panoramico .card-el {
  opacity: .88;
  transition: opacity .14s, box-shadow .14s, transform .14s;
}
#vp.zoom-panoramico .t-card .card-thumb,
#vp.zoom-panoramico .t-card .card-title,
#vp.zoom-panoramico .t-card .card-body,
#vp.zoom-panoramico .t-card .card-more,
#vp.zoom-panoramico .card-el .card-el-img,
#vp.zoom-panoramico .card-el .card-el-body { display: none; }
#vp.zoom-panoramico .t-card {
  padding: 0;
  height: 34px;
  min-height: 34px;
  border-radius: 18px;
}
#vp.zoom-panoramico .t-card .card-chip {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 22px;
  border-radius: 18px;
}
#vp.zoom-panoramico .card-el {
  height: 30px;
  min-height: 30px;
  border-radius: 15px;
}
#vp.zoom-panoramico .card-el::after {
  content: '•';
  font-size: 22px;
  line-height: 30px;
  display: block;
  text-align: center;
  color: #13678f;
}
/* Material 3 Expressive: cantos arredondados também na versão móvel. */
body.is-mobile #mvScroll::before { left: 27px; transform: translateX(-50%); }
body.is-mobile #mvScroll .mv-year {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  align-items: start;
  width: 100%;
}
body.is-mobile #mvScroll .mv-axis {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  min-width: 58px;
  padding-top: 8px;
}
body.is-mobile #mvScroll .mv-left,
body.is-mobile #mvScroll .mv-right {
  grid-column: 2;
  min-width: 0;
  flex: none;
  padding: 6px 14px 5px 0;
  gap: 10px;
}
body.is-mobile #mvScroll .mv-left { grid-row: 1; }
body.is-mobile #mvScroll .mv-right { grid-row: 2; padding-bottom: 20px; }
body.is-mobile #mvScroll .mv-card {
  padding: 13px 15px;
  border-radius: 18px;
  min-width: 0;
  overflow: visible;
}
body.is-mobile #mvScroll .mv-card-thumb {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  background: rgba(12,70,90,.04);
  border-radius: 13px;
}
body.is-mobile #mvScroll .mv-card-title,
body.is-mobile #mvScroll .mv-card-body {
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
body.is-mobile #mvScroll .mv-card-body {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  font-size: .85rem;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  #vp .t-card, #vp .card-el { transition: none; }
}
