[hidden] { display: none !important; }
.compare-pick, .compare-secondary, .compare-clear, .compare-remove, .compare-dialog-close {
  font: inherit; cursor: pointer;
}
.compare-pick { display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; margin-top: 12px; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #cbd5ff; border-radius: 10px; font-size: 14px; font-weight: 600; }
.compare-pick[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); }
.compare-pick:focus-visible, .compare-tray a:focus-visible, .compare-page :focus-visible, .compare-dialog :focus-visible { outline: 3px solid #00a68b; outline-offset: 3px; }
.comparison-table .compare-pick { display: flex; }
body.has-comparison { padding-bottom: 175px; }
.compare-tray { position: fixed; z-index: 80; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 24px)); padding: 14px 18px; background: #fff; border: 1px solid #cbd5ff; border-radius: 16px; box-shadow: 0 8px 45px #10286330; }
.compare-tray-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-tray-top strong { margin-right: auto; font-size: 15px; }
.compare-tray .button-link { padding: 9px 16px; font-size: 14px; }
.compare-clear { border: 0; background: transparent; color: var(--muted); padding: 8px; }
.compare-tray-list { display: flex; list-style: none; gap: 8px; margin: 10px 0 0; padding: 0; overflow-x: auto; }
.compare-tray-list li { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 8px; padding: 5px 8px; flex-shrink: 0; max-width: 250px; }
.compare-tray-list span { font-size: 12px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.compare-remove { border: 0; background: transparent; color: var(--muted); padding: 5px 8px; min-width: 32px; min-height: 32px; }
.compare-tray-status { margin: 4px 0 0; font-size: 13px; color: #825710; }
.compare-page h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 12px 0; letter-spacing: -.03em; }
.compare-hero { padding: 32px 36px; }
.compare-hero > p:last-child { max-width: 760px; color: var(--muted); margin-bottom: 0; }
.compare-back { font-size: 14px; text-decoration: none; color: var(--muted); }
.compare-eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 24px 0 8px; }
.compare-toolbar, .compare-table-heading { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 28px 0 12px; flex-wrap: wrap; }
.compare-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-actions .button-link, .compare-dialog .button-link { font: inherit; cursor: pointer; font-size: 14px; padding: 11px 16px; }
.compare-secondary { padding: 11px 16px; border: 1px solid var(--line-strong); background: white; color: var(--ink-soft); border-radius: 10px; font-size: 14px; }
.compare-page button:disabled { opacity: .5; cursor: not-allowed; }
.compare-edit { color: var(--accent-dark); font-size: 14px; }
.compare-status { font-size: 14px; color: var(--accent-dark); min-height: 20px; margin: 8px 0; }
.compare-status:empty { min-height: 0; margin: 0; }
.compare-cards { display: grid; grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.compare-option { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 22px; background: white; min-width: 0; display: flex; flex-direction: column; }
.compare-option-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.compare-option-company { color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.compare-option h2 { font-size: 19px; line-height: 1.3; margin: 12px 0; overflow-wrap: anywhere; }
.compare-option h2 a { text-decoration: none; }
.compare-option h2 a:hover { text-decoration: underline; }
.compare-option p { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.compare-option time { font-size: 12px; color: var(--muted); margin-top: auto; }
.compare-table-heading h2, .compare-followup h2 { font-size: 22px; margin: 0; }
.compare-diff { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.compare-diff input { width: 18px; height: 18px; accent-color: var(--accent); }
.compare-table-help, .compare-muted { font-size: 13px; color: var(--muted); }
.compare-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: white; }
.client-comparison { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(175px + var(--compare-count, 2) * 240px); }
.client-comparison th, .client-comparison td { padding: 18px; text-align: left; vertical-align: top; font-size: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-line; }
.client-comparison th:first-child { position: sticky; left: 0; z-index: 1; width: 175px; background: #f5f7fc; font-weight: 600; }
.client-comparison thead th { background: #edf1ff; font-size: 13px; font-weight: 600; }
.client-comparison tr:last-child > * { border-bottom: 0; }
.client-comparison tr > :last-child { border-right: 0; }
.client-comparison .compare-unknown { color: #87601d; background: #fffdf6; }
.compare-followup { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.compare-followup p, .compare-followup li { font-size: 14px; color: var(--muted); }
.compare-followup li + li { margin-top: 10px; }
.compare-source-note { font-size: 12px; color: var(--muted); margin: 20px 0; }
.compare-notice, .compare-error, .compare-empty { margin: 24px 0; border: 1px solid var(--line-strong); background: white; padding: 24px; border-radius: 14px; }
.compare-error { border-color: #e4c694; background: #fffbf3; }
.compare-error p { margin: 0 0 12px; }
.compare-error button { margin-right: 10px; margin-top: 8px; }
.compare-dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px; color: var(--ink); }
.compare-dialog::backdrop { background: #0a0e1a88; }
.compare-dialog-close { float: right; border: 0; font-size: 24px; background: var(--bg); border-radius: 8px; width: 40px; height: 40px; }
.compare-dialog h2 { margin-top: 8px; padding-right: 40px; }
.compare-dialog textarea { display: block; width: 100%; height: 42vh; margin: 16px 0; padding: 14px; font: inherit; font-size: 14px; line-height: 1.5; border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical; }
.compare-dialog textarea[data-link] { height: 110px; }
.compare-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) { .compare-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .compare-hero { padding: 24px 20px; }
  .compare-cards { grid-template-columns: 1fr; }
  .compare-option { padding: 20px; }
  .compare-toolbar { align-items: stretch; }
  .compare-actions { width: 100%; }
  .compare-actions > button:first-child { width: 100%; }
  .compare-actions > button { flex: 1 1 auto; }
  .compare-followup { padding: 20px; }
  .compare-tray { bottom: 8px; padding: 12px; }
  .compare-tray-top { gap: 6px; }
  .compare-tray-top strong { width: 100%; }
  .compare-tray-top .button-link { margin-right: auto; }
  body.has-comparison { padding-bottom: 205px; }
  .client-comparison th:first-child { width: 125px; }
  .client-comparison { min-width: calc(125px + var(--compare-count, 2) * 225px); }
  .client-comparison th, .client-comparison td { padding: 12px; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: white; padding: 0 !important; font-size: 10pt; }
  .compare-tray, .compare-toolbar, .compare-diff, .compare-edit, .compare-remove, .compare-back, .compare-table-help, .compare-dialog, .compare-status, .site-footer__nav, #compare-diff-status { display: none !important; }
  .page-shell.compare-page { width: 100%; padding: 0; }
  .compare-hero { padding: 0 0 15px; border: 0; box-shadow: none; }
  .compare-hero::before, .compare-hero::after { display: none; }
  .compare-page h1 { font-size: 25px; }
  .compare-eyebrow { margin-top: 0; }
  .compare-cards { grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr)); gap: 8px; }
  .compare-option { padding: 12px; break-inside: avoid; }
  .compare-option h2 { font-size: 13px; }
  .compare-option p, .compare-option time { font-size: 10px; }
  .compare-scroll { overflow: visible; border-radius: 0; }
  .client-comparison { min-width: 0; width: 100%; }
  .client-comparison th:first-child { position: static; width: 110px; }
  .client-comparison th, .client-comparison td, .client-comparison thead th { font-size: 10px; padding: 8px; }
  .client-comparison tr { break-inside: avoid; }
  .client-comparison tr[hidden] { display: table-row !important; }
  .compare-followup { padding: 12px; }
  .compare-followup p, .compare-followup li, .compare-source-note { font-size: 10px; }
  .site-footer { margin-top: 15px; padding-top: 10px; }
}

/* A long source date must not widen the catalog while choosing programs. */
@media (max-width: 560px) {
  .page-shell .freshness { white-space: normal; max-width: 100%; }
}
@media print { .compare-page > .site-footer { display: none !important; } }
