/* Comparisons extend the document pages in styles.css and docs/specs/design.md.
 * THESIS: Answer the named comparison before asking the reader to buy.
 * OWN-WORLD: Existing ink, paper, Archivo, and flame actions. No new palette.
 * STORY: A short answer, a factual table, a real workflow, then a choice.
 * FIRST VIEWPORT: The named tools and their difference on ink; the answer on paper.
 * FORM: A document extension with source notes, not a new visual identity.
 */
.comparison-hero .comparison-title {
  max-width: 60%;
  font-size: clamp(44px, 7.8vw, 112px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}
.comparison-hero .breadcrumb {
  position: relative;
  margin: 0 0 28px;
  font-size: 15px;
}
.comparison-body {
  max-width: 960px;
}
.comparison-body > p,
.comparison-body > ul,
.comparison-body > ol,
.comparison-body > pre,
.comparison-body > h3 {
  max-width: var(--measure-prose);
}
.comparison-body > .annotation {
  max-width: none;
}
.comparison-body time {
  white-space: nowrap;
}
.comparison-body h2 {
  line-height: 1.05;
}
.comparison-body h3 {
  margin: 28px 0 12px;
  font-size: 23px;
  line-height: 1.2;
}
.comparison-body .answer {
  margin-top: 24px;
  font-size: 23px;
  line-height: 1.4;
  color: var(--ink-950);
}
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 16px;
}
.comparison-table caption {
  padding-bottom: 16px;
  text-align: left;
  font-weight: 600;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--mute-500);
  padding: 16px 16px 16px 0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.comparison-table thead th {
  border-top: 4px solid var(--ink-950);
  border-bottom: 2px solid var(--ink-950);
}
.comparison-table th:first-child {
  width: 28%;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  padding-right: 0;
}
.comparison-table td {
  color: var(--ink-700);
}
.comparison-body pre {
  padding: 20px;
  overflow-x: auto;
  background: var(--ink-950);
  color: var(--paper-100);
}
.comparison-body pre:focus-visible {
  outline: 2px solid var(--oxblood-600);
  outline-offset: 3px;
}
.comparison-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.comparison-body .source-note {
  font-size: 15px;
}
.comparison-body .button-primary,
.comparison-body .button-primary:hover {
  color: var(--text-on-flame);
}
.comparison-list {
  padding: 0;
  margin: 32px 0;
  list-style: none;
}
.comparison-list li {
  border-top: 1px solid var(--mute-500);
  padding: 24px 0;
}
.comparison-list h2 {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.comparison-list p {
  max-width: var(--measure-prose);
}
@media (max-width: 900px) {
  .comparison-hero .comparison-title {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .comparison-choices {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comparison-table {
    font-size: 14px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px 12px 0;
  }
}
