/* ASTRENMED • ATLAS DE RADIOLOGIA — partes próprias (exames navegáveis, "Por método", coluna da direita) */

/* ---------- duas colunas: conteúdo + coluna da direita (mesmo desenho da histologia) ---------- */
.mfrd-atlas .mf-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; }
.mfrd-atlas .mf-col-left { min-width: 0; }
.mfrd-atlas .mf-col-left > .mf-section:first-child { margin-top: 0; }
.mfrd-atlas .mf-col-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.mfrd-atlas .mf-side-box { background: #fff; border: 1px solid var(--mf-line, #e5eaf2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.mfrd-atlas .mf-side-title { font-size: 15px; font-weight: 800; color: var(--mf-navy, #0b2545); margin: 0 0 11px; display: flex; align-items: center; gap: 7px; }
.mfrd-atlas .mf-side-title i { color: var(--mf-blue, #1d4ed8); font-size: 13px; }
.mfrd-atlas .mf-side-list { display: flex; flex-direction: column; gap: 9px; }
.mfrd-atlas .mf-side-item { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.mfrd-atlas .mf-si-ico { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #eef3fb; color: var(--mf-blue, #1d4ed8); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mfrd-atlas .mf-si-txt { min-width: 0; flex: 1; }
.mfrd-atlas .mf-si-txt strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--mf-navy, #0b2545); line-height: 1.2; }
.mfrd-atlas .mf-side-item.is-soon .mf-si-txt strong { color: #52617a; }
.mfrd-atlas .mf-si-txt small { font-size: 11px; color: var(--mf-muted, #64748b); }
.mfrd-atlas .mf-side-all { display: block; text-align: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--mf-line, #e5eaf2); font-size: 12px; font-weight: 600; color: var(--mf-blue, #1d4ed8); text-decoration: none; }
.mfrd-atlas .mf-side-all:hover { text-decoration: underline; }

/* ---------- acesso rápido com 5 cards e seções em 4 colunas ---------- */
.mfrd-atlas .mfan-qa-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mfrd-atlas .mfan-reg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- exames navegáveis (compactos, paginados) ---------- */
.mfrd-ex-head p { margin: -6px 0 12px; color: #64748b; font-size: 14px; max-width: 760px; }
.mfrd-ex-filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.mfrd-ex-filtros button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; border: 1px solid #e2e8f0; background: #fff; color: #1e293b; border-radius: 10px; padding: 8px 11px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.mfrd-ex-filtros button i { color: #64748b; width: 16px; text-align: center; flex: none; }
.mfrd-ex-filtros button b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfrd-ex-filtros button span { background: #f1f5f9; color: #475569; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; flex: none; }
.mfrd-ex-filtros button:hover { border-color: #cbd5e1; }
.mfrd-ex-filtros button.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.mfrd-ex-filtros button.is-on i { color: #fff; }
.mfrd-ex-filtros button.is-on span { background: rgba(255, 255, 255, .18); color: #fff; }

.mfrd-ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mfrd-ex-card { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.mfrd-ex-card[hidden] { display: none; }
a.mfrd-ex-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.mfrd-ex-card.is-soon { opacity: .85; }
.mfrd-ex-capa { display: block; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.mfrd-ex-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfrd-ex-capa.is-ico { display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 24px; background: linear-gradient(135deg, #0f172a, #1e293b); }
.mfrd-ex-body { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px 11px; flex: 1; }
.mfrd-ex-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mfrd-ex-tags b { background: #0f172a; color: #fff; border-radius: 5px; padding: 1px 6px; font-size: 10.5px; letter-spacing: .03em; }
.mfrd-ex-tags i { font-style: normal; background: #f1f5f9; color: #475569; border-radius: 5px; padding: 1px 6px; font-size: 10.5px; font-weight: 600; }
.mfrd-ex-body strong { font-size: 13.5px; line-height: 1.25; }
.mfrd-ex-body small { color: #64748b; font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mfrd-ex-abrir { margin-top: auto; padding-top: 4px; color: #0f9d93; font-weight: 700; font-size: 12px; }
.mfrd-ex-aviso { margin-top: auto; padding-top: 4px; color: #b45309; font-size: 11px; font-weight: 600; }
.mfrd-ex-aviso i { margin-right: 4px; }
.mfrd-ex-card .mf-soon-tag { margin-top: auto; align-self: flex-start; }

.mfrd-ex-pag { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mfrd-ex-pag:empty { display: none; }
.mfrd-ex-pag button { min-width: 36px; height: 36px; border: 1px solid #e2e8f0; background: #fff; color: #1e293b; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mfrd-ex-pag button.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.mfrd-ex-pag button:disabled { opacity: .4; cursor: default; }

/* ---------- por método ---------- */
.mfrd-met-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; align-items: start; }
.mfrd-met { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.mfrd-met summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.mfrd-met summary::-webkit-details-marker { display: none; }
.mfrd-met summary > .fa-chevron-down { margin-left: auto; color: #94a3b8; transition: transform .15s; }
.mfrd-met[open] summary > .fa-chevron-down { transform: rotate(180deg); }
.mfrd-met-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4338ca; font-size: 16px; flex: none; }
.mfrd-met-txt { display: flex; flex-direction: column; }
.mfrd-met-txt small { color: #64748b; font-size: 12px; }
.mfrd-met ul { list-style: none; margin: 0; padding: 0 14px 12px; max-height: 320px; overflow: auto; }
.mfrd-met li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 13px; }
.mfrd-met li a { color: #0f9d93; font-weight: 600; text-decoration: none; }
.mfrd-met li em { color: #94a3b8; font-size: 11.5px; }
.mfrd-met li i { font-style: normal; color: #94a3b8; font-size: 11.5px; white-space: nowrap; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .mfrd-atlas .mfan-qa-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mfrd-ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .mfrd-atlas .mf-body { grid-template-columns: 1fr; }
  .mfrd-atlas .mf-col-right { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mfrd-atlas .mfan-reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mfrd-atlas .mf-col-right { grid-template-columns: 1fr; }
  .mfrd-atlas .mfan-reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfrd-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfrd-ex-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mfrd-atlas .mfan-qa-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- popup "Na grade da faculdade" (só na radiologia) ---------- */
.mfrd-atlas .mf-modal { max-width: 780px; }
.mfrd-atlas .mf-modal .mfan-per-txt { margin: -6px 0 4px; font-size: 14px; color: #475569; }
.mfrd-atlas .mf-modal .mfan-per-lista { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.mfrd-atlas .mf-modal .mfan-per-lista li { padding: 16px 18px; gap: 14px; border-radius: 14px; background: #fff; border: 1px solid #e5eaf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.mfrd-atlas .mf-modal .mfan-per-n { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }
.mfrd-atlas .mf-modal .mfan-per-lista li > div { flex: 1; gap: 6px; }
.mfrd-atlas .mf-modal .mfan-per-lista strong { font-size: 15.5px; font-weight: 800; }
.mfrd-atlas .mf-modal .mfan-per-lista small { font-size: 12.5px; line-height: 1.5; }
.mfrd-atlas .mf-modal .mfan-per-arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e5eaf2; }
.mfrd-atlas .mf-modal .mfan-per-arts a,
.mfrd-atlas .mf-modal .mfan-per-arts span { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.mfrd-atlas .mf-modal .mfan-per-arts a { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }
.mfrd-atlas .mf-modal .mfan-per-arts a:hover { background: #cffafe; border-color: #22d3ee; }
.mfrd-atlas .mf-modal .mfan-per-arts a i { color: #0891b2; }
.mfrd-atlas .mf-modal .mfan-per-arts a::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: auto; color: #0891b2; }
.mfrd-atlas .mf-modal .mfan-per-arts span.is-soon { background: #f8fafc; border: 1px solid #edf1f6; color: #64748b; }
.mfrd-atlas .mf-modal .mfan-per-arts span.is-soon i { color: #b6c1d4; font-size: 11px; }
.mfrd-atlas .mf-modal .mfan-per-arts em { margin-left: auto; flex: none; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #64748b; }
@media (max-width: 640px) {
  .mfrd-atlas .mf-modal .mfan-per-arts { grid-template-columns: minmax(0, 1fr); }
  .mfrd-atlas .mf-modal .mfan-per-lista li { padding: 14px; }
}
.mfrd-atlas .mfrd-per-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mfrd-atlas .mfrd-per-cont { flex: none; margin-top: 2px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; white-space: nowrap; }
.mfrd-atlas .mfrd-per-cont.is-on { background: #ecfeff; color: #0e7490; }
