/* ====================================================================
   MEDFOCO • ATLAS DE HISTOLOGIA • PÁGINA PRINCIPAL  [mf_histo_atlas]
   Visual original da página, com todas as regras presas em .mf-histo
   (para não mexer no resto do site). Fontes Sora/Inter e Font Awesome
   são carregadas pelo PHP. No fim: complementos (contador, views, "Em breve").
   ==================================================================== */

/* ============================================================
   RESET & TOKENS — MedFoco (paleta azul padronizada c/ Zoonoses)
   ============================================================ */
.mf-histo, .mf-histo *,
.mf-histo *::before,
.mf-histo *::after { box-sizing: border-box; margin: 0; padding: 0; }

.mf-histo {
  --navy:        #123763;
  --navy-dark:   #081a31;
  --navy-mid:    #0e2a4d;
  --cyan:        #0f9ea8;
  --cyan-dark:   #0c7f87;
  --cyan-alt:    #0c7f87;
  --cyan-light:  #eef4fb;
  --cyan-mid:    #9db8d6;
  --cyan-bright: #0f9ea8;
  --text:        #102033;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f6f8fb;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 1px 3px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.07);
  --font-head:   'Sora', sans-serif;
  --font-body:   'Inter', sans-serif;
}

.mf-histo {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

/* Largura máxima para conteúdo interno */
.mf-histo .atlas-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 0;
}

/* Wrapper interno usado dentro do hero e do footer (full-width) */
.mf-histo .atlas-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.mf-histo .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.mf-histo .section-header-icon {
  width: 38px;
  height: 38px;
  background: var(--cyan-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
}
.mf-histo .section-header h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin: 0;
}
.mf-histo .section-header .section-count {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   HERO — full-width, azul institucional (padrão Zoonoses)
   ============================================================ */
.mf-histo .atlas-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #123763 0%, #0e2a4d 48%, #081a31 100%);
  color: #fff;
  padding: 44px 0 50px;
}
.mf-histo .atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(650px 360px at 88% -10%, rgba(15,158,168,.30), transparent 58%),
    radial-gradient(480px 340px at 5% 115%, rgba(157,184,214,.22), transparent 58%);
}
.mf-histo .atlas-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  pointer-events: none;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 55px rgba(255,255,255,.04), inset 0 0 0 36px rgba(255,255,255,.04);
}

/* o conteúdo do hero usa atlas-inner para ficar centrado */
.mf-histo .atlas-hero .atlas-inner { position: relative; z-index: 3; }

.mf-histo .atlas-breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mf-histo .atlas-breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mf-histo .atlas-breadcrumb a:hover { color: #fff; }
.mf-histo .atlas-breadcrumb span { opacity: .4; }
.mf-histo .atlas-breadcrumb strong { color: #fff; font-weight: 600; }

.mf-histo .atlas-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}

.mf-histo .atlas-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.mf-histo .atlas-hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 30px;
}

/* Search */
.mf-histo .atlas-search-wrap {
  position: relative;
  max-width: 560px;
  margin-bottom: 34px;
}
.mf-histo .atlas-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 13px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 12px 32px rgba(15,23,42,.24);
  transition: box-shadow .2s;
}
.mf-histo .atlas-search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(15,158,168,.25), 0 12px 32px rgba(15,23,42,.24);
}
.mf-histo .atlas-search-box > i {
  color: var(--muted);
  font-size: 1.02rem;
  flex: 0 0 auto;
}
.mf-histo .atlas-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--text);
  background: transparent;
  padding: 11px 0;
}
.mf-histo .atlas-search-box input::placeholder { color: #94a3b8; }
.mf-histo .atlas-search-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s;
  white-space: nowrap;
}
.mf-histo .atlas-search-btn:hover { background: var(--navy-mid); }

.mf-histo .atlas-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(15,23,42,.22);
  list-style: none;
  padding: 6px 0;
  display: none;
  z-index: 999;
  overflow: hidden;
  border: 1px solid var(--border);
}
.mf-histo .atlas-search-results.open { display: block; }
.mf-histo .atlas-search-results li {
  padding: 11px 18px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.mf-histo .atlas-search-results li:last-child { border-bottom: none; }
.mf-histo .atlas-search-results li:hover { background: var(--cyan-light); }
.mf-histo .atlas-search-results li i { color: var(--cyan-dark); font-size: .8rem; }

/* Stat cards (vidro fosco) */
.mf-histo .atlas-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mf-histo .atlas-stat-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.mf-histo .atlas-stat-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.mf-histo .atlas-stat-card b {
  display: block;
  font-family: var(--font-head);
  font-size: .92rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
.mf-histo .atlas-stat-card span { font-size: .72rem; color: rgba(255,255,255,.78); }

/* ============================================================
   TECIDOS GRID
   ============================================================ */
.mf-histo .atlas-section { margin-bottom: 52px; }

.mf-histo .tecidos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mf-histo .tecido-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  cursor: pointer;
}
.mf-histo .tecido-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
  border-color: var(--cyan-mid);
}
.mf-histo .tecido-img { height: 148px; overflow: hidden; }
.mf-histo .tecido-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.mf-histo .tecido-card:hover .tecido-img img { transform: scale(1.05); }
.mf-histo .tecido-body { position: relative; padding: 38px 18px 22px; }
.mf-histo .tecido-badge {
  position: absolute;
  top: -24px; left: 18px;
  width: 48px; height: 48px;
  background: var(--cyan-light);
  border-radius: 50%;
  border: 1.5px solid var(--cyan-mid);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}
.mf-histo .tecido-body h3 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.mf-histo .tecido-body p { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.mf-histo .tecido-link {
  color: var(--cyan-dark); font-size: .82rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s, color .2s;
}
.mf-histo .tecido-link:hover { color: var(--cyan); gap: 10px; }

/* ============================================================
   ÓRGÃOS — Filtros
   ============================================================ */
.mf-histo .orgaos-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; align-items: center;
}
.mf-histo .orgao-filter-btn {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 24px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.mf-histo .orgao-filter-btn i { font-size: .75rem; }
.mf-histo .orgao-filter-btn:hover { border-color: var(--cyan-mid); color: var(--navy); background: var(--cyan-light); }
.mf-histo .orgao-filter-btn.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; border-color: var(--navy);
  box-shadow: 0 3px 10px rgba(15,23,42,.22);
}
.mf-histo .orgaos-filter-mobile { display: none; margin-bottom: 16px; }
.mf-histo .orgaos-filter-select {
  width: 100%; padding: 11px 38px 11px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  color: var(--navy); background: var(--white); outline: none;
  box-shadow: var(--shadow); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230c7f87' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.mf-histo .orgaos-filter-select:focus { border-color: var(--cyan); }

/* ============================================================
   ÓRGÃOS GRID
   ============================================================ */
.mf-histo .orgaos-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; min-height: 200px;
}
.mf-histo .orgao-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
  animation: orgaoFadeIn .25s ease;
}
@keyframes orgaoFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.mf-histo .orgao-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.12); border-color: var(--cyan-mid); }
.mf-histo .orgao-img {
  height: 110px; overflow: hidden; background: var(--cyan-light);
  display: flex; align-items: center; justify-content: center;
}
.mf-histo .orgao-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.mf-histo .orgao-card:hover .orgao-img img { transform: scale(1.06); }
.mf-histo .orgao-img-placeholder { font-size: 2.2rem; color: var(--cyan-dark); opacity: .35; }
.mf-histo .orgao-body { padding: 12px 13px 14px; }
.mf-histo .orgao-tag {
  display: inline-block; background: var(--cyan-light); color: var(--cyan-dark);
  font-size: .63rem; font-weight: 700; border-radius: 20px; padding: 2px 8px;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em;
}
.mf-histo .orgao-body h4 { font-family: var(--font-head); font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.mf-histo .orgao-body p { font-size: .73rem; color: var(--muted); line-height: 1.5; }
.mf-histo .orgaos-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--muted); }
.mf-histo .orgaos-empty i { font-size: 2.2rem; opacity: .28; display: block; margin-bottom: 12px; color: var(--cyan-dark); }
.mf-histo .orgaos-empty p { font-size: .92rem; }

/* Paginação */
.mf-histo .orgaos-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.mf-histo .orgaos-page-info { font-size: .8rem; color: var(--muted); font-weight: 500; order: -1; width: 100%; text-align: center; margin-bottom: 8px; }
.mf-histo .orgao-page-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text); font-family: var(--font-body);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, border-color .18s;
}
.mf-histo .orgao-page-btn.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; border-color: var(--navy); box-shadow: 0 2px 8px rgba(15,23,42,.22);
}
.mf-histo .orgao-page-btn:hover:not(.active):not([disabled]) { background: var(--cyan-light); border-color: var(--cyan-mid); color: var(--navy); }
.mf-histo .orgao-page-btn[disabled] { opacity: .35; cursor: default; }
.mf-histo .orgao-page-btn i { font-size: .7rem; }

/* ============================================================
   LÂMINAS EM DESTAQUE
   ============================================================ */
.mf-histo .laminas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mf-histo .lamina-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: block; text-decoration: none; color: inherit;
}
.mf-histo .lamina-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.12); border-color: var(--cyan-mid); }
.mf-histo .lamina-card img { width: 100%; height: 155px; object-fit: cover; display: block; transition: transform .35s; }
.mf-histo .lamina-card:hover img { transform: scale(1.04); }
.mf-histo .lamina-body { padding: 16px 16px 18px; }
.mf-histo .lamina-body h3 { font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; line-height: 1.3; }
.mf-histo .lamina-body p { font-size: .79rem; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.mf-histo .lamina-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: .72rem; font-weight: 700; }
.mf-histo .tag-conjuntivo { color: #5b4acb; background: #eeeaff; }
.mf-histo .tag-sangue { color: #b91c1c; background: #fee2e2; }
.mf-histo .tag-epitelial { color: #006D77; background: #e6f7f8; }
.mf-histo .tag-nervoso { color: #6d28d9; background: #f0e7ff; }
.mf-histo .tag-muscular { color: #b45309; background: #fef3c7; }
.mf-histo .tag-orgao { color: #065f46; background: #d1fae5; }

/* ============================================================
   FERRAMENTAS
   ============================================================ */
.mf-histo .ferramentas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mf-histo .ferramenta-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 28px 20px 24px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mf-histo .ferramenta-card:hover { border-color: var(--cyan-mid); box-shadow: 0 8px 24px rgba(15,23,42,.12); transform: translateY(-3px); }
.mf-histo .ferramenta-icon {
  width: 54px; height: 54px; background: var(--cyan-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--cyan-dark);
}
.mf-histo .ferramenta-card h3 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.mf-histo .ferramenta-card p { font-size: .78rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   INFO FINAL / FOOTER — full-width, azul institucional (padrão Zoonoses)
   ============================================================ */
.mf-histo .atlas-info {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #081a31 0%, #0e2a4d 55%, #123763 130%);
  color: #fff;
  padding: 60px 0;
}
.mf-histo .atlas-info::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 300px at 10% 0%, rgba(15,158,168,.18), transparent 58%),
    radial-gradient(500px 340px at 96% 110%, rgba(157,184,214,.20), transparent 58%);
}
.mf-histo .atlas-info .atlas-inner { position: relative; z-index: 2; }

.mf-histo .atlas-info-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.mf-histo .atlas-info-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700;
}
.mf-histo .atlas-info-head p { color: rgba(255,255,255,.82); font-size: .97rem; margin: 0; line-height: 1.6; }

.mf-histo .atlas-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mf-histo .atlas-info-tile {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 26px 22px;
  backdrop-filter: blur(4px);
  transition: transform .25s, background .25s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mf-histo .atlas-info-tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.mf-histo .atlas-info-tile .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 14px; font-size: 1.25rem;
}
.mf-histo .atlas-info-tile h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 8px; color: #fff; font-weight: 600; }
.mf-histo .atlas-info-tile p { color: rgba(255,255,255,.76); font-size: .84rem; margin: 0; line-height: 1.55; }

.mf-histo a { text-decoration: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mf-histo .tecidos-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-histo .orgaos-grid { grid-template-columns: repeat(3, 1fr); }
  .mf-histo .laminas-grid { grid-template-columns: repeat(3, 1fr); }
  .mf-histo .ferramentas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .mf-histo .atlas-inner { padding: 0 18px; }
  .mf-histo .atlas-wrap { padding: 28px 18px 0; }
  .mf-histo .atlas-hero { padding: 32px 0 36px; }
  .mf-histo .atlas-hero h1 { font-size: 1.9rem; letter-spacing: -1px; }
  .mf-histo .atlas-hero-desc { font-size: .9rem; }
  .mf-histo .atlas-hero-stats { gap: 10px; }
  .mf-histo .atlas-stat-card { min-width: 0; flex: 1; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; gap: 7px; }
  .mf-histo .atlas-search-wrap { max-width: 100%; }

  .mf-histo .tecidos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mf-histo .laminas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mf-histo .ferramentas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mf-histo .orgaos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .mf-histo .atlas-info { padding: 44px 0; }
  .mf-histo .atlas-info-grid { grid-template-columns: 1fr; }

  .mf-histo .orgaos-filters { display: none; }
  .mf-histo .orgaos-filter-mobile { display: block; }
  .mf-histo .orgaos-filter-select { padding-top: 13px; padding-bottom: 13px; font-size: .88rem; line-height: 1.4; }
  .mf-histo .orgaos-pagination { gap: 5px; }
  .mf-histo .orgao-page-btn { width: 34px; height: 34px; font-size: .78rem; }
  .mf-histo .orgaos-page-info { width: 100%; text-align: center; margin-bottom: 6px; margin-right: 0; }
}

@media (max-width: 480px) {
  .mf-histo .atlas-inner { padding: 0 14px; }
  .mf-histo .atlas-wrap { padding: 22px 14px 0; }
  .mf-histo .tecidos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mf-histo .laminas-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mf-histo .ferramentas-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mf-histo .orgaos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mf-histo .lamina-card img { height: 110px; }
  .mf-histo .orgao-img { height: 90px; }
  .mf-histo .tecido-img { height: 120px; }
}


/* ============================================================
   COMPLEMENTOS — contador por tecido, acessos (views), "Em breve",
   busca e paginação (antes eram estilos inline)
   ============================================================ */
.mf-histo .tecido-count {
  display: flex; align-items: center; gap: 6px;
  margin: -6px 0 12px;
  font-size: .74rem; font-weight: 600; color: var(--cyan-dark);
}
.mf-histo .tecido-count i { font-size: .7rem; }
.mf-histo .tecido-link[aria-disabled] { opacity: .6; cursor: default; }

.mf-histo .orgao-img { position: relative; }
.mf-histo .orgao-card.is-soon { cursor: default; }
.mf-histo .orgao-card.is-soon:hover { transform: none; }
.mf-histo .mfh-soon {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(8,26,49,.78); color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px;
}
.mf-histo .mfh-views {
  display: flex; align-items: center; gap: 5px;
  margin-top: 7px;
  font-size: .7rem; font-weight: 600; color: var(--muted);
}
.mf-histo .mfh-views i { color: var(--cyan-dark); font-size: .66rem; }
.mf-histo .lamina-body .mfh-views { margin-top: 10px; }
.mf-histo .lamina-ph {
  height: 155px; background: var(--cyan-light); color: var(--cyan-dark);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.mf-histo .lamina-ph i { opacity: .35; }
.mf-histo .lamina-card[aria-disabled] { cursor: default; }

.mf-histo .atlas-search-results .res-nome { flex: 1; }
.mf-histo .atlas-search-results .res-tipo {
  font-size: .7rem; background: var(--cyan-light); color: var(--cyan-dark);
  border-radius: 20px; padding: 2px 8px; font-weight: 600;
}
.mf-histo .atlas-search-results li.res-vazio { color: #90a8c0; cursor: default; }
.mf-histo .atlas-search-results li.res-vazio:hover { background: transparent; }
.mf-histo .orgao-page-dots { color: var(--muted); line-height: 36px; font-size: .9rem; }

@media (max-width: 480px) {
  .mf-histo .lamina-ph { height: 110px; }
}
