/* /compare hub and /compare-cast-vs-* pages. Generated pages link this as /file/css/cast-compare.css?v=N
   (bump CSS_HREF in compare/build.py when this file changes). Table look follows /csms-vs-cast-ai-agents. */
.cx-page {
  --ink: #393531; --muted: rgba(57,53,49,.64); --line: rgba(57,53,49,.14); --soft: rgba(57,53,49,.04);
  --teal: #116f6d; --cast-bg: #f3f8f8; /* opaque: the 5% teal tint over white, so pinned cells never show what scrolls under them */ --warm: #f9f5f1; --warm-line: #d9d5d1;
}
.cx-page h1.boldheading { text-transform: none; }
.cx-page .cx-answer { font-size: 22px; line-height: 1.5; color: #595551; margin-top: 24px; }
.cx-page .cx-meta, .cx-page .cx-disclosure { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }
.cx-page .cx-lead { font-weight: 600; }
.cx-page .cx-example { background: var(--warm); border: 1px solid var(--warm-line); border-radius: 10px; padding: 16px 20px; }
.cx-page .cx-note { font-size: 14px; color: var(--muted); }
.cx-page .cx-tools { font-size: 15px; }
.cx-page .cx-sources { font-size: 14px; line-height: 1.5; }
.cx-page .cx-sources li { margin-bottom: 6px; }
.cx-page .cx-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }   /* hub (CR-24): groups like the footer */
.cx-page .cx-related-label { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 16px 0 4px; }   /* group labels like the footer's (CR-25): not headings, dark, bold, sentence case */
.cx-page .cx-related ul + .cx-related-label { margin-top: 32px; }
@media screen and (max-width: 767px) { .cx-page .cx-related { grid-template-columns: minmax(0, 1fr); } .cx-page .cx-related-col + .cx-related-col { margin-top: 16px; } }
.cx-page .cx-corrections { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cx-page sup.cx-fn { font-size: 11px; line-height: 0; margin-left: 2px; }
.cx-page sup.cx-fn a { color: var(--teal); text-decoration: none; padding: 0 2px; }
.cx-page sup.cx-fn + sup.cx-fn::before { content: ",\200B"; color: var(--muted); }   /* the zero-width space lets a run of footnotes wrap in a narrow column (CR-43) */
@media screen and (max-width: 479px) { .cx-page .cx-answer { font-size: 18px; } }

/* ---------- tables ---------- */
.cx-page .cx-tbl {
  margin: 28px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: calc(100vw - 40px); color: var(--ink); font-family: Mulish, sans-serif;
}
.cx-page table.cx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; }
.cx-page .cx-table caption { caption-side: top; text-align: left; font-size: 13px; color: var(--muted); padding: 12px 16px 10px; }
.cx-page .cx-table th, .cx-page .cx-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.cx-page .cx-table thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 12px; padding-bottom: 12px; }
.cx-page .cx-table thead th.cx-cast { color: var(--teal); }
.cx-page .cx-table tbody th[scope="row"] { font-weight: 600; font-size: 14.5px; width: 170px; }
.cx-page .cx-table td.cx-cast, .cx-page .cx-table th.cx-cast { background: var(--cast-bg); }
.cx-page .cx-table .cx-group th { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 22px 16px 8px; color: var(--ink); background: #fff; }
.cx-page .cx-table a { color: var(--teal); }

/* Swipe pattern: the table scrolls sideways; the row label (question or tool) stays pinned on the left,
   and on phones every cell also shows its column name (tool or question), so the reader always knows both. */
.cx-page .cx-tbl--swipe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cx-page .cx-tbl--swipe .cx-table tbody th[scope="row"], .cx-page .cx-tbl--swipe .cx-table thead th:first-child,
.cx-page .cx-tbl--swipe .cx-table thead td:first-child {
  position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line);
}
.cx-page .cx-tbl--swipe .cx-group th span { position: sticky; left: 16px; }
.cx-page .cx-tbl--matrix .cx-table { min-width: 1200px; }   /* room for each cell's icon beside its text (CR-43) */
/* Desktop: the matrix, and the top table on pages with four tools, run wider than the 940px text column, so all six columns fit without scrolling. */
@media (min-width: 1100px) {
  .cx-page .cx-tbl--matrix, .cx-page .cx-tbl--wide { width: min(1240px, calc(100vw - 48px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
}
.cx-page .cx-proof { margin: 8px 0 28px; }
.cx-page .cx-tbl--matrix .cx-table tbody th[scope="row"] { width: 150px; }

@media (max-width: 720px) {
  .cx-page .cx-table { font-size: 14px; }
  .cx-page .cx-table th, .cx-page .cx-table td { padding: 12px; }
  .cx-page .cx-tbl--swipe .cx-table { min-width: 0; width: auto; }
  .cx-page .cx-tbl--swipe .cx-table tbody td { min-width: 210px; width: 210px; }
  .cx-page .cx-tbl--swipe .cx-table tbody th[scope="row"] { width: 108px; min-width: 108px; font-size: 13px; }
  .cx-page .cx-tbl--swipe .cx-table tbody td::before {
    content: attr(data-label); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 700; color: var(--muted); margin-bottom: 4px;
  }
  .cx-page .cx-tbl--swipe .cx-table td.cx-cast::before { color: var(--teal); }

  /* Stack pattern: one card per row (question). Each answer is labeled with its tool; no sideways scroll. */
  .cx-page .cx-tbl--stack .cx-table, .cx-page .cx-tbl--stack .cx-table tbody, .cx-page .cx-tbl--stack .cx-table tr,
  .cx-page .cx-tbl--stack .cx-table th, .cx-page .cx-tbl--stack .cx-table td { display: block; width: auto; }
  .cx-page .cx-tbl--stack .cx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cx-page .cx-tbl--stack .cx-table caption { display: block; }
  .cx-page .cx-tbl--stack .cx-table tbody th[scope="row"] { width: auto; border-bottom: 0; padding-bottom: 2px; font-size: 15px; }
  .cx-page .cx-tbl--stack .cx-table td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
  .cx-page .cx-tbl--stack .cx-table tr { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .cx-page .cx-tbl--stack .cx-table td::before {
    content: attr(data-label); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 700; color: var(--muted); margin-bottom: 2px;
  }
  .cx-page .cx-tbl--stack .cx-table td.cx-cast::before { color: var(--teal); }
}

/* ---------- Who does each job (CR-43): state icons, the legend, and the hub's "At a glance" grid ---------- */
.cx-page .cx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cx-page .cx-ic { display: block; width: 22px; height: 22px; margin: 0 0 6px; }
.cx-page ul.cx-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 12px 16px 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.cx-page ul.cx-legend li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; white-space: nowrap; }
.cx-page ul.cx-legend .cx-ic { width: 20px; height: 20px; margin: 0; flex: none; }
.cx-page .richtxt ul.cx-legend { padding: 0; margin: 0 0 12px; }   /* the hub's "How did we compare" key, in the text column */
.cx-page .cx-tbl--swipe > .cx-legend { position: sticky; left: 0; }   /* stays in view while the table swipes */
.cx-page .cx-tbl--glance { border-top: 0; margin-top: 12px; max-width: min(720px, calc(100vw - 40px)); }
.cx-page .cx-tbl--glance > .cx-legend { padding: 0 0 24px; }
.cx-page .cx-tbl--glance .cx-table { table-layout: fixed; }
.cx-page .cx-tbl--glance thead th:first-child { width: 40%; }
.cx-page .cx-tbl--glance thead th + th { text-align: center; }
.cx-page .cx-tbl--glance tbody th[scope="row"] { width: auto; vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.cx-page .cx-tbl--glance td { text-align: center; vertical-align: middle; padding: 10px 4px; }
.cx-page .cx-tbl--glance td .cx-ic { margin: 0 auto; width: 30px; height: 30px; --cx-ic-k: .77; }   /* 75% of the big tables' icons (40px; 32px on phones), same line weight */
.cx-page .cx-tbl--glance th img { display: block; height: 20px; width: auto; }
/* Icon on the left, text in its own column on the right: the icon size and line weight of /csms-vs-cast-ai-agents (40px, ~1.45px lines). */
.cx-page .cx-tbl--four td > .cx-ic, .cx-page .cx-tbl--matrix td > .cx-ic { float: left; width: 40px; height: 40px; margin: 0 9px 4px 0; --cx-ic-k: .58; }   /* box as wide as the icon, 9px to the text: icon and text read as one */
.cx-page .cx-tbl .cx-t { display: flow-root; }
/* Tablets: five answer columns leave no room beside the text, so the icon sits above it. */
/* Equal answer columns, so no column's text gets squeezed beside its icon (fixed layout where the table is wide enough for its longest words). */
@media (min-width: 721px) { .cx-page .cx-tbl--matrix .cx-table { table-layout: fixed; } .cx-page .cx-tbl--matrix thead th:first-child { width: 150px; } }
@media (min-width: 1100px) { .cx-page .cx-tbl--wide .cx-table { table-layout: fixed; } .cx-page .cx-tbl--wide thead td:first-child { width: 170px; } }
@media (min-width: 721px) and (max-width: 1099px) { .cx-page .cx-tbl--wide td > .cx-ic { float: none; width: 22px; height: 22px; margin: 0 0 6px; --cx-ic-k: 1; } }
@media (max-width: 720px) {
  .cx-page .cx-ic { width: 20px; height: 20px; }
  .cx-page .cx-tbl--four td > .cx-ic, .cx-page .cx-tbl--matrix td > .cx-ic { width: 32px; height: 32px; margin-right: 9px; }
  .cx-page .cx-tbl--glance td .cx-ic { width: 24px; height: 24px; }
  .cx-page .cx-tbl--glance .cx-table { width: 100%; }
  .cx-page .cx-tbl--glance thead th:first-child { width: 34%; }
  .cx-page .cx-tbl--glance thead th { font-size: 11px; letter-spacing: 0; text-transform: none; padding: 8px 2px; }
  .cx-page .cx-tbl--glance thead th:first-child { padding-left: 8px; }
  .cx-page .cx-tbl--glance tbody th[scope="row"] { font-size: 13px; padding: 8px; }
  .cx-page .cx-tbl--glance .cx-group th { padding: 18px 8px 6px; }
  .cx-page .cx-tbl--glance td { padding: 8px 2px; }
}
