/* Local comparison: existing cards/buttons and two distinct profile families. */
.compare-page [hidden] { display: none !important; }
.compare-interactive { display: none !important; }
.compare-ready .compare-interactive { display: flex !important; }
.compare-page [id] { scroll-margin-top: calc(var(--compare-header-height, var(--header-height)) - var(--header-height) + 24px); }
.compare-hero__inner > *, .compare-family, .compare-table-container { min-width: 0; }
.compare-page .compare-hero__title { font-size: clamp(32px, 4vw, 52px); }
.compare-page .compare-hero__content { max-width: 650px; }
.compare-hero-families { display: grid; gap: 16px; padding: 0; background: none; border: 0; }
.compare-hero-families a { display: block; padding: 18px 24px 8px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: var(--color-surface); }
.compare-hero-families a:last-child { background: var(--color-primary-soft); }
.compare-hero-families strong { margin-left: 6px; color: var(--color-primary-dark); }
.compare-hero-families small { display: block; color: var(--color-text-muted); }
.compare-hero-families img { width: 100%; height: 92px; object-fit: contain; }
.compare-eyebrow { display: block; margin-bottom: 8px; color: var(--color-primary-dark); font-size: 12px; letter-spacing: .09em; font-weight: 600; }
.compare-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.compare-section-heading p { margin-top: 10px; color: var(--color-text-muted); }
.compare-section-heading > .btn { flex-shrink: 0; }
.compare-family-switch { display: flex; width: fit-content; max-width: 100%; gap: 6px; padding: 6px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.compare-family-switch button { min-height: 48px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; }
.compare-family-switch button[aria-pressed="true"] { background: var(--color-primary-dark); color: white; }
.compare-family-switch button span { margin-left: 10px; opacity: .75; }
.compare-filter-hint { margin-top: 12px; color: var(--color-text-muted); font-size: 13px; }
.compare-status { min-height: 24px; margin-block: 8px; color: var(--color-primary-dark); font-size: 14px; }
.compare-family { margin-top: 16px; }
.compare-family__heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.compare-family__heading h3 { font-size: 24px; line-height: 1.2; }
.compare-family__heading .compare-eyebrow { font-size: 11px; margin-bottom: 3px; }
.compare-family__heading p { margin-top: 6px; color: var(--color-text-muted); font-size: 14px; }
.compare-profile-list { display: flex; gap: 20px; overflow-x: auto; padding: 2px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.compare-profile-list > li { display: flex; flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; }
.compare-profile { width: 100%; }
.compare-profile .related-profile-card__head { min-height: 28px; }
.compare-profile .related-profile-card__drawing { height: 145px; }
.compare-profile .related-profile-card__drawing img { width: 100%; height: 100%; object-fit: contain; }
.compare-profile .related-profile-card__specs dt { font-size: 13px; }
.compare-profile:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.compare-pick { align-items: center; gap: 10px; margin-top: 18px; padding: 12px; min-height: 48px; background: var(--color-surface-soft); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.compare-pick input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--color-primary-dark); }
.compare-pick:has(input:checked) { color: var(--color-primary-dark); background: var(--color-primary-soft); }
.compare-family__nav { align-items: center; justify-content: flex-end; gap: 14px; margin-top: 8px; }
.compare-family__nav span { color: var(--color-text-muted); font-size: 13px; }
.compare-family__nav .slider-btn { font-size: 22px; }
.compare-clear { color: var(--color-primary-dark); font-size: 14px; text-decoration: underline; padding: 12px 0; flex-shrink: 0; }
.compare-selection { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.compare-selection button { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); text-align: left; }
.compare-selection small { display: block; color: var(--color-primary-dark); font-size: 10px; letter-spacing: .06em; }
.compare-selection b { font-size: 13px; font-weight: 600; }
.compare-selection button > span:last-child { font-size: 20px; color: var(--color-text-muted); }
.compare-page .compare-table { min-width: 100%; table-layout: fixed; width: calc(170px + var(--compare-columns, 11) * 235px); max-width: none; }
.compare-table tr > :first-child { width: 170px; position: sticky; left: 0; z-index: 1; white-space: normal; box-shadow: 1px 0 var(--color-border-soft); }
.compare-table thead tr > :first-child { z-index: 2; }
.compare-table [data-compare-key] { width: 235px; min-width: 0; }
.compare-page .compare-table th, .compare-page .compare-table td { white-space: normal; overflow-wrap: anywhere; padding: 18px; }
.compare-table td .link-arrow { font-size: 13px; }
.compare-table td .btn { font-size: 13px; padding: 10px 14px; }
.compare-table__family { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--color-primary-dark); margin-bottom: 6px; }
.compare-table__th-name { display: block; }
.compare-table__drawing { width: 100%; height: 104px; object-fit: contain; margin-top: 16px; }
.compare-scroll-hint { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.compare-table-scroll { background: var(--color-surface); overscroll-behavior-x: contain; }
.compare-table-scroll:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.compare-table-empty { border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: 32px; background: var(--color-surface); }
.compare-table-empty a { color: var(--color-primary-dark); text-decoration: underline; }
.compare-note { margin-top: 24px; color: var(--color-text-muted); font-size: 14px; max-width: 880px; }
.compare-sources { margin-top: 16px; font-size: 13px; color: var(--color-text-muted); }
.compare-sources summary { cursor: pointer; color: var(--color-primary-dark); }
.compare-sources p { margin-top: 10px; max-width: 880px; }
.compare-sources a { text-decoration: underline; }
@media (max-width: 991px) {
  .compare-profile-list > li { flex-basis: calc((100% - 20px) / 2); }
  .compare-section-heading { flex-wrap: wrap; }
  .compare-hero-families { grid-template-columns: 1fr 1fr; }
  .compare-hero-families a { padding: 14px; }
  .compare-hero-families strong { display: block; margin-left: 0; }
}
@media (max-width: 599px) {
  .compare-profile-list > li { flex-basis: 88%; }
  .compare-family-switch { width: 100%; }
  .compare-family-switch button { flex: 1; padding: 10px; font-size: 13px; }
  .compare-family-switch button span { margin-left: 4px; }
  .compare-family__heading { align-items: flex-start; }
  .compare-family__heading .link-arrow { font-size: 12px; flex-shrink: 0; }
  .compare-hero-families a { padding: 12px 10px; }
  .compare-hero-families small { font-size: 12px; min-height: 40px; }
  .compare-hero-families span { font-size: 14px; }
  .compare-hero-families img { height: 70px; }
  .compare-page .compare-table { width: calc(118px + var(--compare-columns, 11) * 205px); }
  .compare-table tr > :first-child { width: 118px; }
  .compare-table [data-compare-key] { width: 205px; }
  .compare-page .compare-table th, .compare-page .compare-table td { padding: 14px 10px; font-size: 13px; }
  .compare-selection { gap: 8px; }
  .compare-selection button { flex: 1 1 calc(50% - 8px); justify-content: space-between; padding: 8px; }
  .compare-selection b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-page *, .compare-page { scroll-behavior: auto !important; }
}
