/* Trang xem mã nguồn website, theo mockup Cms.dc.html. */

.cms-query { display: flex; flex-wrap: wrap; gap: 10px; }
.field .cms-query input { flex: 1 1 280px; width: auto; min-height: 48px; font-size: 16px; }
.cms-submit { min-height: 48px; padding: 0 28px; border-radius: 10px; font-size: 16px; }

.cms-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hv-text-subtle); }
.cms-head { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; border-bottom: 1px solid var(--hv-border); }
.cms-head h2 { font-size: 17px; font-weight: 600; }

.card.cms-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cms-main-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cms-main-head h2 { font-size: 28px; font-weight: 700; overflow-wrap: anywhere; }
.cms-version { font-size: 20px; font-weight: 500; color: var(--hv-text-subtle); }
.cms-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-proof { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cms-list li { position: relative; padding-left: 24px; overflow-wrap: anywhere; }
.cms-list li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 6px; height: 11px;
  border: solid var(--hv-ok); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.card.cms-wp, .card.cms-sec { padding: 0; overflow: hidden; }
.cms-name { font-weight: 600; overflow-wrap: break-word; }
/* .table .mono dùng chung cho phép cắt ở mọi ký tự: số phiên bản không được chẻ đôi. */
.cms-table td.cms-ver { word-break: normal; overflow-wrap: break-word; }
.cms-ev { overflow-wrap: anywhere; }
.cms-empty { padding: 16px 24px; margin: 0; }

.cms-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card.cms-group { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.cms-group h3 { font-size: 15px; font-weight: 600; }
.cms-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cms-item-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.cms-item .hint { overflow-wrap: anywhere; }
.cms-item .cms-version { font-size: 13px; }

.cms-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 24px; border-bottom: 1px solid var(--hv-border-row); }
.cms-note > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cms-note-title { font-size: 14px; font-weight: 600; }
.cms-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--hv-warn); }
.cms-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; font-size: 14px; }

@media (max-width: 720px) {
  /* Bảng theme và plugin chuyển thành từng thẻ: cột hẹp sẽ chẻ chữ vô lý. */
  .cms-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cms-table, .cms-table tbody, .cms-table tr, .cms-table td { display: block; }
  .cms-table tr { padding: 12px 16px; border-top: 1px solid var(--hv-border-row); }
  .cms-table tr:first-child { border-top: 0; }
  .cms-table td, .cms-table td:first-child, .cms-table td:last-child { display: flex; gap: 12px; padding: 4px 0; border: 0; }
  .cms-table td::before { content: attr(data-label); flex: 0 0 96px; color: var(--hv-text-subtle); font-size: 13px; }
  .cms-table .cms-ver:empty { display: none; }
  .cms-table td.cms-name, .cms-table td.cms-ver { overflow-wrap: anywhere; }
  .cms-table td.cms-ev { display: block; }
  .cms-table td.cms-ev::before { display: block; margin-bottom: 2px; }
  .cms-table .badge { white-space: nowrap; }
  .card.cms-main { grid-template-columns: minmax(0, 1fr); }
  .cms-groups { grid-template-columns: minmax(0, 1fr); }
}
