@layer pages {
/* Comparisons (/compare and /compare/<a>-vs-<b>, lib/decision-render.js comparisonPage). Loaded after decision.css
   by layouts/decision.njk for the comparison kinds only. The decision comes first: the verdict as a panel, then
   "Choose ... when" for each product side by side, and only then the specification tables. */

.decision:has(.cmp-choose) > section:first-of-type {
  margin-block: var(--space-8) var(--space-6);
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--card);
}
.decision:has(.cmp-choose) > section:first-of-type h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.decision:has(.cmp-choose) > section:first-of-type p:first-of-type {
  margin-top: var(--space-2);
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--text);
}

.cmp-choose {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: minmax(0, 1fr);
  margin-block: var(--space-6) var(--space-10);
}
@media (min-width: 768px) {
  .cmp-choose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.decision .cmp-choose > section {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  margin-block: 0;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.cmp-choose h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  overflow-wrap: anywhere;
}
/* The device drawing (lib/device-art.js, inline so it follows the theme) on the blueprint grid. */
.cmp-art {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 10rem;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--blueprint), var(--bg);
}
.cmp-choose ul {
  display: grid;
  gap: var(--space-3);
  padding-left: 1.1em;
  list-style: disc;
}
.cmp-choose li { line-height: var(--lh-body); }
.cmp-more { margin-top: auto; padding-top: var(--space-2); font-size: var(--fs-small); }
.cmp-more a { text-decoration: underline; text-underline-offset: 3px; }

/* /compare: the two product pickers side by side on wider screens, the legend across both. */
@media (min-width: 768px) {
  .dc-pick { max-width: var(--w-content); }
  .dc-pick fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}
}
