/* Comparison is a working reference table: quiet lines, explicit words, close sources. */
.register-insights {
  display: flex;
  align-items: stretch;
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.register-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 17px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.register-stat:first-child { padding-left: 0; }
.register-stat + .register-stat { border-left: 1px solid var(--line); }
.register-stat strong {
  display: block;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}
.register-stat span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.register-stat:hover { background: var(--wash); }
.compare-prompt {
  flex: 2.25 1 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 4px 20px;
  padding: 17px 0 17px 26px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.compare-prompt strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.compare-prompt > span > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; }
.compare-prompt p, .compare-prompt small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.compare-prompt > svg, .compare-prompt > [data-icon] { grid-column: 2; grid-row: 1 / span 2; }
.compare-prompt:hover { background: transparent; }
.compare-prompt:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.compare-intro-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.comparison-view { min-width: 0; }
.compare-setup { padding: 23px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-court-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.compare-court-picker legend { padding: 0; margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.compare-pick-help { display: block; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.compare-court-options { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.compare-court-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.55;
}
.compare-court-choice:hover { border-color: #a4a49c; color: var(--ink); }
.compare-court-choice:has(input:checked) { border-color: #77776f; background: var(--wash); color: var(--ink); }
.compare-court-choice:has(input:disabled) { opacity: .55; cursor: default; }
.compare-court-choice input, .compare-toggle input { width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--ink); margin: 0; }
.compare-court-choice input:checked + span { color: var(--ink); font-weight: 600; }
.compare-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 0 13px; }
.compare-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 25px; }
.compare-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; }
.compare-topic-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.compare-topic-label select { padding: 6px 28px 6px 9px; border: 1px solid var(--line); background: var(--paper); max-width: 260px; font-size: 12px; }
.compare-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.compare-actions .quiet-button { font-size: 11px; white-space: nowrap; }
.comparison-status { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.comparison-status strong { color: var(--ink); font-weight: 500; }

.comparison-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-top: 1px solid #92928b;
  border-bottom: 1px solid var(--line);
  scrollbar-color: #bdbdb5 var(--wash);
  scrollbar-width: thin;
}
.comparison-scroll:focus-visible { outline-offset: 3px; }
.comparison-table {
  width: 100%;
  min-width: calc(180px + var(--compare-count, 4) * 235px);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
}
.comparison-table th, .comparison-table td { vertical-align: top; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.comparison-table th + th, .comparison-table td { border-left: 1px solid var(--line-soft); }
.comparison-table thead th { background: var(--paper); font-weight: 400; }
.comparison-table thead th:first-child { vertical-align: bottom; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .65px; text-transform: uppercase; }
.comparison-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 180px; padding-left: 14px; background: var(--canvas); border-right: 1px solid var(--line); }
.comparison-table thead tr > :first-child { z-index: 2; background: var(--paper); }
.comparison-table tr > :nth-child(2) { border-left: 0; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-court-header h2 { font-size: 16px; letter-spacing: -.3px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
.comparison-instrument { padding: 0; border: 0; background: transparent; border-radius: 0; font-size: 11px; line-height: 1.55; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.comparison-instrument:hover { background: transparent; }
.comparison-instrument svg { width: 11px; height: 11px; }
.comparison-effective { display: block; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.comparison-basis { display: block; font-size: 10px; line-height: 1.55; color: var(--muted); margin-top: 5px; }
.comparison-court-links { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 12px; }
.comparison-court-links button { border: 0; background: transparent; padding: 0; font-size: 10px; color: var(--muted); text-align: left; }
.comparison-court-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.comparison-topic-title { display: block; font-size: 12px; line-height: 1.5; font-weight: 600; margin: 0 0 6px; letter-spacing: 0; }
.comparison-table tbody th > p, .comparison-table tbody th small { display: block; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; font-weight: 400; }
.comparison-cell { min-width: 0; }
.comparison-rule-label { display: block; font-size: 12px; line-height: 1.5; font-weight: 600; margin-bottom: 7px; }
.comparison-summary { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.comparison-refs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-top: 11px; }
.comparison-refs button, .comparison-refs a { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 10px; line-height: 1.6; text-align: left; text-decoration: underline; text-decoration-color: #b3b3aa; text-underline-offset: 3px; }
.comparison-refs button:hover, .comparison-refs a:hover { background: transparent; text-decoration-color: var(--ink); }
.comparison-refs button svg, .comparison-refs a svg { width: 10px; height: 10px; margin-left: 3px; }

.comparison-differences { margin-top: 39px; }
.comparison-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 11px; border-bottom: 1px solid #aaa99f; }
.comparison-section-heading h2 { font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -.4px; margin: 0; }
.comparison-section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.difference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.difference-item { padding: 22px 0 23px; border-bottom: 1px solid var(--line); min-width: 0; }
.difference-item h3 { font-size: 13px; margin: 0 0 8px; font-weight: 600; }
.difference-item p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.difference-item .comparison-refs { margin-top: 10px; }
.comparison-note { margin: 21px 0 0; max-width: 950px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.comparison-note p:last-child { margin-bottom: 0; }
.compare-empty { padding: 35px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.compare-empty h2, .compare-empty h3 { font-size: 18px; margin-bottom: 9px; }
.compare-empty p:last-child { margin-bottom: 0; }
.comparison-context { margin: 0 0 23px; border-left: 2px solid #8c8c82; padding: 9px 13px; background: var(--canvas); font-size: 12px; line-height: 1.7; color: var(--muted); }
.comparison-context strong { color: var(--ink); }
.comparison-context > strong, .comparison-context > span { display: block; }
.comparison-context > span { margin-top: 3px; }
.comparison-context p { margin: 4px 0 0; }

@media (min-width: 1081px) and (max-width: 1280px) {
  .site-header { gap: 24px; }
  .header-nav { gap: 22px; margin-left: 0; }
}
@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; gap: 0 24px; min-height: unset; }
  .header-nav { order: 3; flex-basis: 100%; align-self: stretch; height: 45px; margin-left: 0; gap: 27px; overflow-x: auto; }
  .header-nav button { flex-shrink: 0; font-size: 12px; }
  .brand { padding: 19px 0 17px; }
  .header-meta { margin-left: auto; }
  .compare-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .compare-actions { margin-left: auto; padding-top: 4px; }
}
@media (max-width: 850px) {
  .register-insights { flex-wrap: wrap; }
  .register-stat { padding: 15px 17px; }
  .compare-prompt { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 15px 0; grid-template-columns: minmax(0, 1fr) auto; }
  .compare-prompt > span:first-child { display: block; }
  .compare-prompt p, .compare-prompt small { font-size: 11px; }
  .comparison-table { min-width: calc(162px + var(--compare-count, 4) * 228px); }
  .comparison-table tr > :first-child { width: 162px; padding-left: 10px; padding-right: 14px; }
  .difference-list { column-gap: 26px; }
}
@media (max-width: 600px) {
  .register-stat { padding: 13px 11px; }
  .register-stat strong { font-size: 24px; }
  .register-stat span { font-size: 10px; }
  .header-nav { gap: 22px; }
  .compare-court-options { gap: 7px; }
  .compare-court-choice { padding: 8px 9px; font-size: 11px; gap: 7px; }
  .compare-court-choice input { width: 13px; height: 13px; }
  .compare-setup { padding: 19px 0 21px; }
  .compare-controls { align-items: flex-start; flex-direction: column; gap: 14px; }
  .compare-topic-label select { max-width: 235px; }
  .compare-actions { justify-content: flex-start; margin-left: 0; width: 100%; gap: 22px; }
  .comparison-status { font-size: 10px; }
  .comparison-table { min-width: calc(135px + var(--compare-count, 4) * 224px); }
  .comparison-table tr > :first-child { width: 135px; padding-left: 8px; padding-right: 11px; }
  .comparison-table th, .comparison-table td { padding: 17px 14px; }
  .comparison-topic-title { font-size: 11px; }
  .comparison-table tbody th > p, .comparison-table tbody th small { font-size: 10px; line-height: 1.6; }
  .comparison-court-header h2 { font-size: 15px; }
  .comparison-differences { margin-top: 31px; }
  .comparison-section-heading { display: block; }
  .comparison-section-heading p { margin-top: 5px; }
  .difference-list { grid-template-columns: minmax(0, 1fr); }
  .difference-item { padding: 19px 0; }
  .comparison-note { font-size: 10px; }
}
@media print {
  .register-insights, .compare-setup, .compare-toolbar, .comparison-court-links { display: none !important; }
  .comparison-scroll { overflow: visible; border: 0; }
  .comparison-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 8pt; }
  .comparison-table th, .comparison-table td { padding: 8pt 6pt; }
  .comparison-table tr > :first-child { position: static; width: 15%; padding-left: 0; background: #fff; }
  .comparison-table thead tr > :first-child { background: #fff; }
  .comparison-table thead { display: table-header-group; }
  .comparison-table tr { break-inside: avoid; }
  .comparison-court-header h2 { font-size: 10pt; }
  .comparison-instrument, .comparison-effective, .comparison-basis { font-size: 7pt; }
  .comparison-topic-title, .comparison-rule-label, .comparison-summary { font-size: 8pt; line-height: 1.5; }
  .comparison-table tbody th > p, .comparison-table tbody th small, .comparison-refs button, .comparison-refs a { font-size: 7pt; }
  .comparison-summary, .comparison-instrument, .comparison-basis { overflow-wrap: anywhere; }
  .comparison-section-heading { break-after: avoid; }
  .difference-list { display: block; }
  .difference-item { break-inside: avoid; padding: 10pt 0; }
  .comparison-note { font-size: 8pt; }
}

/* Preserve court context even when all selected requirements are identical. */
.comparison-scope { margin-top: 8px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.comparison-scope summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.comparison-scope p { margin: 6px 0 0; }
.comparison-table .comparison-empty-row > td:first-child { position: static; width: auto; border-right: 0; background: var(--paper); }
.comparison-empty-row .compare-empty { border: 0; }

.compare-mode-options { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 22px; }
.compare-mode-options button { border:1px solid var(--line); padding:11px 16px; background:var(--paper); color:var(--ink); font-size:13px; }
.compare-mode-options button[aria-pressed="true"] { background:var(--ink); color:var(--paper); }
.compare-setup > summary { cursor:pointer; font-weight:600; font-size:13px; }
.compare-setup[open] > summary { margin-bottom:16px; }
.compare-court-group { margin:16px 0; }
.compare-court-group h3 { font-size:12px; font-weight:600; margin:12px 0 8px; }
.comparison-gap { border-left:2px solid #b99a64; padding-left:12px; }
.topic-comparison { width:100%; }
.topic-comparison table { width:100%; border-collapse:collapse; font-size:13px; }
.topic-comparison th,.topic-comparison td { padding:20px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
.topic-comparison th { width:30%; }
.topic-comparison h2 { margin:0 0 10px; font-size:14px; line-height:1.6; }
.topic-jurisdiction th { background:var(--wash); font-size:12px; font-weight:600; padding:12px 20px; }
.coverage-matrix { overflow-x:auto; margin:18px 0; }
.coverage-matrix table { width:100%; min-width:980px; border-collapse:collapse; font-size:11px; }
.coverage-matrix th,.coverage-matrix td { border-bottom:1px solid var(--line); padding:12px 10px; text-align:left; vertical-align:top; }
.coverage-matrix th:first-child { min-width:140px; }
.coverage-matrix a { display:block; font-weight:600; }
.coverage-matrix small { display:block; margin-top:5px; color:var(--muted); line-height:1.5; }
.audit-note { margin:12px 0; padding:14px 0; border-bottom:1px solid var(--line); }
.audit-note summary { cursor:pointer; font-size:13px; font-weight:500; }
.audit-note p { font-size:12px; color:var(--muted); line-height:1.7; }
@media(max-width:600px) {
 .topic-comparison th,.topic-comparison td { padding:14px 9px; }
 .topic-comparison th { width:33%; }
 .topic-comparison h2 { font-size:12px; }
 .topic-comparison .comparison-summary { font-size:12px; }
 .compare-mode-options button { flex:1; }
}
