/* mnemio.ai/infra/compare, /infra/alternatives, /infra/benchmarks, /infra/cost, /infra/india (scripts/infra_compare.py).
   Loaded after infra.css, whose .if-card, .if-table and .if-points these pages reuse. Black ink on paper. */
.cx-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); }
.cx-hero .wrap { max-width: 920px; }
.cx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--c-muted); }
.cx-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-rule-2); }
.cx-crumbs a { color: var(--c-muted); text-decoration: none; }
.cx-crumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.cx-hero h1 { margin: 0; }
.cx-answer { margin: 26px 0 0; padding: 20px 22px; background: #fff; border: 1.5px solid var(--c-ink); border-radius: var(--r-md); box-shadow: 6px 6px 0 var(--c-ink); font-size: 17px; line-height: 1.6; }
.cx-answer b:first-child { display: block; margin-bottom: 6px; font: 700 12.5px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-blue-ink); }
.cx-checked { display: inline-block; margin: 18px 0 0; font-size: 14px; color: var(--c-muted); }

.cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.cx-stats li { padding: 18px 20px; background: #fff; border: 1px solid var(--c-rule-2); border-radius: var(--r-md); }
.cx-stats b { display: block; font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.cx-stats span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--c-muted); }

.cx-sec { padding: clamp(40px, 5.5vw, 72px) 0; }
.cx-sec .wrap { max-width: 920px; }
.cx-sec h2 { margin: 0 0 14px; font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--f-display); letter-spacing: -.01em; }
.cx-sec h3 { margin: 28px 0 8px; font: 700 19px/1.3 var(--f-body); }
.cx-sec :where(p, li) { font-size: 16.5px; line-height: 1.65; }
.cx-sec :where(p) { margin: 0 0 14px; color: var(--c-ink-2); max-width: 70ch; }
.cx-sec ul.cx-list { margin: 0 0 16px; padding-left: 20px; max-width: 70ch; }
.cx-sec ul.cx-list li { margin: 6px 0; color: var(--c-ink-2); }
.cx-sec :where(a:not(.gbtn)) { color: var(--c-blue-ink); }

.cx-table td, .cx-table th { text-align: left; vertical-align: top; }
.cx-table td { font-weight: 400; color: var(--c-ink-2); }
.cx-table td.num, .cx-table th.num { text-align: right; font-weight: 600; white-space: nowrap; }
.cx-table tbody th { white-space: normal; min-width: 150px; }
.cx-table tr.us td, .cx-table tr.us th { background: var(--c-paper-2); }
.cx-table td small, .cx-table th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--c-muted); }
.cx-table .yes { font-weight: 600; color: var(--c-ink); }
.cx-table .no { color: var(--c-muted); }

.cx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 18px 0 8px; }
.cx-two .if-card { padding: clamp(20px, 2.4vw, 28px); }
.cx-two .if-card.them { box-shadow: none; border-color: var(--c-rule-2); }
.cx-two h3 { margin: 0 0 4px; font: 700 18px/1.3 var(--f-body); }
.cx-big { margin: 10px 0 4px; font: 700 clamp(30px, 3.4vw, 40px)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.cx-math { margin: 8px 0 0; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--c-muted); white-space: pre-wrap; }
.cx-two ul { margin: 12px 0 0; padding-left: 18px; }
.cx-two li { font-size: 15.5px; line-height: 1.55; margin: 4px 0; color: var(--c-ink-2); }

.cx-note { margin: 14px 0 0; padding: 14px 16px; border-left: 3px solid var(--c-ink); background: var(--c-paper-2); font-size: 15px; line-height: 1.6; color: var(--c-ink-2); max-width: 74ch; }
.cx-sources { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.cx-sources li { margin: 4px 0; overflow-wrap: anywhere; }

.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.cx-grid a { display: block; height: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--c-rule-2); border-radius: var(--r-md); color: var(--c-ink); text-decoration: none; }
.cx-grid a:hover { border-color: var(--c-ink); }
.cx-grid b { display: block; font-size: 16.5px; }
.cx-grid span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--c-muted); }

.cx-alt { counter-reset: alt; margin: 8px 0 0; padding: 0; list-style: none; }
.cx-alt > li { position: relative; padding: 22px 0 22px 52px; border-top: 1px solid var(--c-rule); }
.cx-alt > li::before { counter-increment: alt; content: counter(alt); position: absolute; left: 0; top: 22px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--c-ink); color: #fff; font: 700 15px/1 var(--f-display); }
.cx-alt h3 { margin: 4px 0 6px; }
.cx-alt p { margin: 0 0 8px; }

.cx-bars { margin: 16px 0 4px; display: grid; gap: 10px; }
.cx-bar { display: grid; grid-template-columns: minmax(130px, 220px) 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; }
.cx-bar i { display: block; height: 14px; border-radius: 0 4px 4px 0; background: var(--c-ink); }
.cx-bar.them i { background: var(--c-rule-2); }
.cx-bar b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.cx-close { text-align: center; }
.cx-close .actions { justify-content: center; }

@media (max-width: 760px) {
  .cx-stats, .cx-two { grid-template-columns: minmax(0, 1fr); }
  .cx-bar { grid-template-columns: minmax(96px, 120px) 1fr auto; font-size: 13.5px; }
  .cx-answer { box-shadow: 4px 4px 0 var(--c-ink); }
}
