/* Electrocardiopedia compare page */
.cmp-hero { background: var(--night); color: var(--on-night); padding: 26px var(--gutter) 120px; }
.cmp-hero .eyebrow { color: var(--trace); margin-top: 22px; }
.cmp-hero h1 { font-size: var(--h1); }
.cmp-hero h1 em { font-style: italic; color: var(--trace); }
.cmp-hero .lede { max-width: 40em; }
.cmp-popular-label { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-muted); }
.cmp-popular { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-popular a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.cmp-popular a:hover { border-color: var(--trace); color: var(--trace); }
.cmp-popular span { color: var(--on-night-muted); }

.cmp { padding: 0 var(--gutter) 96px; margin-top: -84px; scroll-margin-top: 84px; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cmp-col { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 20px 44px rgba(16, 29, 46, 0.12); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.cmp-col-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp-side { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--trace); font: 700 14px var(--mono); flex: none; }
.cmp-col select { flex: 1 1 12em; min-width: 0; width: 100%; max-width: 100%; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fbf9f6; font: 600 16px var(--serif); color: var(--ink); }
.cmp-open { font-size: 14px; font-weight: 650; color: var(--blue); white-space: nowrap; }
.cmp-summary { color: var(--muted); font-size: 15.5px; min-height: 4.6em; }
.cmp-monitor { box-shadow: none; border-radius: 12px; }
.cmp-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.cmp-table-wrap { margin-top: 28px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp-table caption { text-align: left; padding: 16px 18px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 11px 18px; border-top: 1px solid var(--line); }
.cmp-table thead th { font-family: var(--serif); font-size: 18px; border-top: 0; }
.cmp-table tbody th { color: var(--muted); font-weight: 650; white-space: nowrap; width: 1%; }
.cmp-table td { width: 49%; }
.cmp-table tr.is-diff td { background: #fffbeb; }
.cmp-table tr.is-diff td + td { background: #fef6dc; }
.cmp-actions { margin-top: 18px; }
.cmp-swap { color: var(--ink); cursor: pointer; font-family: var(--sans); background: transparent; }

@media (max-width: 760px) {
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .cmp-summary { min-height: 0; }
  .cmp-table tbody th { white-space: normal; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; font-size: 14.5px; }
}
.cmp-hero .art-crumbs { padding: 0; }

/* Hold the footer until compare.js has built the comparison, so it does not jump. */
@media (scripting: enabled) { body:has(#compare > noscript:only-child) .foot { visibility: hidden; } }
