/* =====================================================
   MONFIN: trang so sánh thẻ tín dụng và khoản vay (/so-sanh-the-tin-dung, /so-sanh-khoan-vay)
   Dùng biến màu của monfin-ui.css. Bảng nằm trong khung cuộn ngang riêng, cột tiêu chí cố định bên trái.
   ===================================================== */
.mf-cmp { padding: 0 0 56px; overflow-x: clip; }
.mf-cmp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.mf-cmp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0 6px; font-size: 13px; color: var(--mf-text-3); }
.mf-cmp-crumb a { color: var(--mf-text-3); text-decoration: none; }
.mf-cmp-crumb a:hover { color: var(--mf-blue); }

.mf-cmp-head { padding: 10px 0 18px; }
.mf-cmp-head h1 { font-size: 32px; line-height: 1.25; font-weight: 800; color: var(--mf-text); margin: 0 0 12px; overflow-wrap: anywhere; }
.mf-cmp-lead { font-size: 16px; line-height: 1.75; color: var(--mf-text-2); max-width: 820px; margin: 0 0 16px; }

.mf-cmp-facts { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mf-cmp-facts li { background: #fff; border: 1px solid var(--mf-border); border-radius: 99px; padding: 6px 14px; font-size: 13px; color: var(--mf-text-2); }
.mf-cmp-facts strong { color: var(--mf-text); }

.mf-cmp-warn { background: var(--mf-gold-light); border: 1px solid #F3D08A; border-radius: var(--mf-radius); padding: 12px 16px; font-size: 14px; line-height: 1.6; color: #7A4E00; margin: 0 0 8px; }
.mf-cmp-empty { background: #fff; border: 1px dashed var(--mf-border); border-radius: var(--mf-radius); padding: 24px; color: var(--mf-text-2); }

.mf-cmp-hint { display: none; font-size: 12px; color: var(--mf-text-3); margin: 0 0 6px; }

/* Khung bảng: cuộn ngang trong khung, không làm tràn trang */
.mf-cmp-frame { background: #fff; border: 1px solid var(--mf-border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; box-shadow: var(--mf-shadow); }
.mf-cmp-frame:focus-visible { outline: 2px solid var(--mf-blue); outline-offset: 2px; }
.mf-cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; line-height: 1.55; color: var(--mf-text); }
.mf-cmp-table th, .mf-cmp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mf-border); border-right: 1px solid var(--mf-border); background: #fff; }
.mf-cmp-table tr > *:last-child { border-right: 0; }
.mf-cmp-table tbody tr:last-child > * { border-bottom: 0; }
.mf-cmp-table tbody tr:nth-child(even) > td { background: #FAFBFD; }

.mf-cmp-corner, .mf-cmp-label { position: sticky; left: 0; z-index: 2; width: 140px; min-width: 140px; max-width: 140px; background: var(--mf-blue-light) !important; color: var(--mf-text); font-weight: 700; font-size: 13px; }
.mf-cmp-corner { z-index: 3; }
.mf-cmp-prod { min-width: 165px; background: var(--mf-blue-light) !important; }
.mf-cmp-prod-name { display: block; font-size: 15px; font-weight: 800; color: var(--mf-text); margin-bottom: 2px; }
.mf-cmp-prod-meta { display: block; font-size: 12px; font-weight: 600; color: var(--mf-text-3); margin-bottom: 6px; }
.mf-cmp-prod-link { font-size: 12px; font-weight: 700; color: var(--mf-blue); text-decoration: underline; }

.mf-cmp-cell { min-width: 165px; }
.mf-cmp-val { font-weight: 600; color: var(--mf-text); overflow-wrap: anywhere; }
.mf-cmp-note { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--mf-text-2); overflow-wrap: anywhere; }
.mf-cmp-src { margin-top: 6px; font-size: 11.5px; color: var(--mf-text-3); overflow-wrap: anywhere; }
.mf-cmp-src a { color: var(--mf-blue); text-decoration: underline; }
.mf-cmp-miss { font-weight: 700; color: #92400E; }
.mf-cmp-cell.is-missing { background: #FFFBF2 !important; }

.mf-cmp-foot { font-size: 12.5px; color: var(--mf-text-3); margin: 10px 0 0; line-height: 1.6; }

.mf-cmp-sec { margin-top: 36px; }
.mf-cmp-sec h2 { font-size: 22px; font-weight: 800; color: var(--mf-text); margin: 0 0 10px; }
.mf-cmp-sec p, .mf-cmp-sec li { font-size: 15px; line-height: 1.75; color: var(--mf-text); }
.mf-cmp-sec a { color: var(--mf-blue); }
.mf-cmp-method { margin: 0; padding-left: 20px; }
.mf-cmp-method li { margin-bottom: 8px; }
.mf-cmp-srclist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mf-cmp-srclist > li { background: #fff; border: 1px solid var(--mf-border); border-radius: var(--mf-radius); padding: 14px 16px; min-width: 0; overflow-wrap: anywhere; }
.mf-cmp-srclist ul { margin: 6px 0 0; padding-left: 18px; }
.mf-cmp-srclist li li { font-size: 13.5px; line-height: 1.6; }
.mf-cmp-srcmeta { color: var(--mf-text-3); font-size: 12.5px; }
.mf-cmp-fix { font-size: 14px !important; color: var(--mf-text-2) !important; }

.mf-cmp-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mf-cmp-card { display: block; background: #fff; border: 1.5px solid var(--mf-border); border-radius: var(--mf-radius-lg); padding: 16px 18px; text-decoration: none !important; min-width: 0; }
.mf-cmp-card:hover { border-color: var(--mf-blue); box-shadow: var(--mf-shadow); }
.mf-cmp-card-t { display: block; font-weight: 800; color: var(--mf-text); margin-bottom: 4px; }
.mf-cmp-card-d { display: block; font-size: 13px; line-height: 1.6; color: var(--mf-text-2); }
.mf-cmp-articles { margin: 0; padding-left: 20px; }
.mf-cmp-disc { margin: 28px 0 0; font-size: 13px; color: var(--mf-text-3); background: var(--mf-bg-white); border: 1px solid var(--mf-border); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }

.mf-cmp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .mf-cmp-hint { display: block; }
}
@media (max-width: 640px) {
  .mf-cmp-wrap { padding: 0 16px; }
  .mf-cmp-head h1 { font-size: 24px; }
  .mf-cmp-lead { font-size: 15px; }
  .mf-cmp-table th, .mf-cmp-table td { padding: 10px 10px; }
  .mf-cmp-corner, .mf-cmp-label { width: 104px; min-width: 104px; max-width: 104px; font-size: 12px; }
  .mf-cmp-prod, .mf-cmp-cell { min-width: 176px; }
  .mf-cmp-sec h2 { font-size: 19px; }
  .mf-cmp-srclist { grid-template-columns: minmax(0, 1fr); }
}
