/* Shared navigation sizing and product comparisons. */
.site-header .nav > a { white-space: nowrap; }
.site-header .brand, .site-header .header-tools { flex-shrink: 0; }
.header #mainNav > a { white-space: nowrap; }
.header #mainNav { gap: 18px; }
@media (min-width: 1081px) {
  .site-header .nav > a { padding-inline: 11px; }
}
@media (max-width: 1080px) {
  .site-header .menu-btn { display: grid; }
  .site-header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .site-header .nav.open { display: flex; }
  .site-header .nav > a { padding: 12px 14px; }
  .site-header .nav a.nav-cta { text-align: center; margin: 6px 0; }
  .header .nav-wrap { gap: 16px; }
  .header .menu-toggle { display: block; margin-left: auto; flex-shrink: 0; }
  .header #mainNav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 5%; background: var(--white); box-shadow: 0 12px 20px rgba(0,0,0,.08); flex-direction: column; align-items: stretch; max-height: calc(100dvh - 88px); overflow-y: auto; }
  .header #mainNav.open { display: flex; }
  .header #mainNav > a { padding: 10px 14px; text-align: center; }
  body.dark .header #mainNav { background: #17283a; }
}
.product-compare, .comparison-hub { background: var(--alt); scroll-margin-top: 96px; }
.compare-heading { max-width: 780px; margin-bottom: 26px; }
.compare-heading .compare-kicker { color: var(--gold-ink); font-size: .78rem; font-weight: 800; letter-spacing: .13em; margin-bottom: 12px; }
.compare-heading h2 { color: var(--text); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; line-height: 1.2; }
.compare-heading > p:last-child { color: var(--muted); line-height: 1.8; }
.compare-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare-table { width: 100%; min-width: 740px; table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: left; font-size: .94rem; }
.compare-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.compare-table th, .compare-table td { padding: 18px 20px; vertical-align: top; line-height: 1.7; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: .98rem; font-weight: 700; }
.compare-table tbody th { color: var(--text); font-weight: 700; background: var(--alt); }
.compare-table tr > :first-child { position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--line); }
.compare-table thead th:first-child { z-index: 2; }
.compare-table td { color: var(--muted); background: var(--surface); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.product-compare .compare-table a, .compare-actions > a:not(.btn), .compare-shortcut a { color: var(--link-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.compare-table a { display: inline-block; }
.compare-note { color: var(--muted); font-size: .9rem; line-height: 1.8; margin-top: 20px; max-width: 100ch; }
.compare-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 24px; }
.compare-scroll-hint { display: none; color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.compare-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.compare-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare-card:hover { border-color: var(--link-ink); }
.compare-card h3 { color: var(--text); font-size: 1.16rem; line-height: 1.4; }
.compare-card p { color: var(--muted); line-height: 1.75; }
.compare-card > span { color: var(--link-ink); font-weight: 700; margin-top: auto; }
.compare-shortcut { background: var(--alt); border-bottom: 1px solid var(--line); padding: 16px 0; }
.compare-shortcut p { color: var(--muted); line-height: 1.8; }
@media (max-width: 800px) {
  .compare-cards { grid-template-columns: 1fr; }
  .compare-scroll-hint { display: block; }
  .compare-table th, .compare-table td { padding: 14px 16px; }
  .compare-table thead th:first-child { width: 132px; }
  .compare-actions { align-items: stretch; flex-direction: column; }
  .compare-actions .btn { text-align: center; }
}
