/* Scoped comparator presentation; behavior and route integration are separate. */
.hsc, .hsc-guide {
  --hsc-ink: #172f46;
  --hsc-muted: #455a6c;
  --hsc-line: #b7cbd3;
  --hsc-bg: #f5faf9;
  --hsc-panel: #fff;
  --hsc-accent: #12627a;
  color: var(--hsc-ink);
  font-family: inherit;
  min-width: 0;
}
[data-theme="dark"] .hsc, [data-theme="dark"] .hsc-guide {
  --hsc-ink: #e5f1f7;
  --hsc-muted: #c0d3dc;
  --hsc-line: #526d7a;
  --hsc-bg: #122a38;
  --hsc-panel: #193645;
  --hsc-accent: #8cd6e7;
}
.hsc {
  background: var(--hsc-bg);
  border: 1px solid var(--hsc-line);
  border-radius: 1rem;
  overflow: hidden;
  scroll-margin-top: 7rem;
}
.hsc__header {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border-inline-start: .4rem solid var(--hsc-accent);
}
.hsc__heading, .hsc-guide__intro { max-width: 65ch; }
.hsc__eyebrow { font-weight: 700; color: var(--hsc-accent); margin: 0 0 .35rem; }
.hsc h2, .hsc-guide h2 { color: var(--hsc-ink); margin: 0 0 .55rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; }
.hsc__heading > p:last-child, .hsc-guide__intro p { margin: 0; line-height: 1.6; }
.hsc__note { margin: 0; padding: .85rem 1rem; border-inline-start: 2px solid var(--hsc-line); color: var(--hsc-muted); line-height: 1.5; max-width: 47ch; }
.hsc__workbench { padding: 0 clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 3vw, 2.5rem); }
.hsc__group { border: 0; border-block-start: 1px solid var(--hsc-line); margin: 0; padding: 1.5rem 0; min-width: 0; }
.hsc__group legend { color: var(--hsc-ink); font-size: 1.2rem; font-weight: 750; padding: 0 .5rem 0 0; }
.hsc__help { color: var(--hsc-muted); margin: .1rem 0 1.1rem; line-height: 1.5; }
.hsc__fields { display: grid; grid-template-columns: 1fr; gap: 1rem 1.4rem; }
.hsc__field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.hsc__field label { color: var(--hsc-ink); font-weight: 700; line-height: 1.4; }
.hsc__field select { color: var(--hsc-ink); background-color: var(--hsc-panel); border: 1px solid var(--hsc-line); border-radius: .45rem; font: inherit; min-height: 2.9rem; width: 100%; max-width: 100%; padding: .6rem 2rem .6rem .75rem; }
.hsc :is(select, button, a):focus-visible, .hsc-guide :is(a, [tabindex]):focus-visible { outline: 3px solid var(--hsc-accent); outline-offset: 3px; }
.hsc__actions { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; border-block-start: 1px solid var(--hsc-line); padding-top: 1.25rem; }
.hsc__button { background: var(--hsc-accent); color: var(--hsc-panel); border: 0; border-radius: .45rem; font: inherit; font-weight: 750; min-height: 2.9rem; padding: .7rem 1rem; }
.hsc__button:disabled { background: var(--hsc-line); color: var(--hsc-ink); cursor: not-allowed; }
.hsc__status { color: var(--hsc-muted); flex: 1 1 22rem; margin: 0; line-height: 1.5; }
.hsc a, .hsc-guide a { color: var(--hsc-accent); text-decoration: underline; text-underline-offset: .12em; }
/* Result citations sit inside article paragraphs whose link rule otherwise wins. */
.hsc .hsc-option-check a, .hsc .hsc-option-check a:hover,
.hsc .hsc-pair a, .hsc .hsc-pair a:hover { color: var(--hsc-accent); }
/* .le-article p a (0,1,2) recolours unclassed article links #2a8ac8 (3.77:1 on white). */
.le-article .hsc a:not([class]) { color: var(--hsc-accent); }
.hsc__button--secondary { background: var(--hsc-panel); color: var(--hsc-ink); border: 1px solid var(--hsc-line); }
.hsc__results { background: var(--hsc-panel); border: 1px solid var(--hsc-line); border-radius: .65rem; margin-top: 1.25rem; padding: 1.25rem; }
.hsc__results h3 { color: var(--hsc-ink); margin: 0 0 .75rem; }
.hsc-pair { border-block-end: 1px solid var(--hsc-line); padding-bottom: 1rem; margin-bottom: 1rem; }
.hsc-pair__choices, .hsc-pair__cards { display: grid; gap: 1rem; margin-block: .75rem; }
.hsc-pair-card { min-width: 0; border: 1px solid var(--hsc-line); border-radius: .45rem; padding: .75rem; }
.hsc-pair-card h5 { color: var(--hsc-ink); font-size: 1rem; margin: 0 0 .5rem; }
.hsc-pair-card p { overflow-wrap: anywhere; }
@media (min-width: 44rem) { .hsc-pair__choices, .hsc-pair__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hsc__conflict { border-inline-start: 3px solid var(--hsc-accent); margin-top: 1rem; padding-inline-start: 1rem; }
.hsc__conflict-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hsc [hidden] { display: none !important; }
.hsc-guide { margin-block: clamp(2rem, 5vw, 3.5rem); }
.hsc-guide__intro { margin-bottom: 1.25rem; }
.hsc-guide__scroll-hint { color: var(--hsc-muted); font-size: .95rem; margin: 0 0 .6rem; }
.hsc-guide__table-wrap { border: 1px solid var(--hsc-line); border-radius: .65rem; max-width: 100%; overflow-x: auto; }
.hsc-guide__table { width: 100%; min-width: 42rem; border-collapse: collapse; background: var(--hsc-panel); color: var(--hsc-ink); text-align: left; }
.hsc-guide__table caption { padding: .8rem 1rem; background: var(--hsc-bg); color: var(--hsc-ink); font-weight: 750; text-align: left; }
.hsc-guide__table :is(th, td) { border-block-start: 1px solid var(--hsc-line); padding: .85rem 1rem; vertical-align: top; line-height: 1.5; }
.hsc-guide__table thead th { background: var(--hsc-bg); }
.hsc-guide__table tbody th { width: 23%; }
.hsc-guide__detail { display: grid; gap: 1.3rem 2rem; margin-top: 1.5rem; }
.hsc-guide__detail h3 { color: var(--hsc-ink); font-size: 1.12rem; margin: 0 0 .4rem; }
.hsc-guide__detail p, .hsc-guide__sources { line-height: 1.6; margin: 0; }
.hsc-guide__sources { border-block-start: 1px solid var(--hsc-line); color: var(--hsc-muted); margin-top: 1.5rem; padding-top: 1rem; }
@media (min-width: 44rem) { .hsc__fields, .hsc-guide__detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hsc-guide__scroll-hint { display: none; } }
@media (min-width: 68rem) { .hsc__header { grid-template-columns: minmax(0, 1fr) minmax(15rem, .7fr); align-items: end; } }
