/* Site header, footer, section hero and cards for /compare pages. Values follow landing_page.css and the
   Strategies page. Loaded after compare.css so its older header/footer rules do not apply here. */
:root { --header-height: 80px; --primary: #2563eb; --primary-dark: #1d4ed8; }
body.chrome { padding-top: var(--header-height); font-family: Inter, system-ui, sans-serif; }
.chrome .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.chrome .skip:focus { z-index: 1100; }

.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000;
  background: rgba(255,255,255,.97); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.header .header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; gap: 1rem; }
.header .logo { display: flex; align-items: center; font-weight: 700; font-size: 1.5rem; color: #1e293b; text-decoration: none; }
.header .logo i { color: var(--primary); margin-right: .5rem; font-size: 1.8rem; }
.header .nav { display: flex; align-items: center; }
.header .nav-links { display: flex; list-style: none; margin: 0 1rem 0 0; padding: 0; }
.header .nav-link { display: inline-block; margin: 0 .5rem; padding: 4px 0; color: #334155; font-weight: 500;
  font-size: .95rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.header .nav-link:hover, .header .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.chrome .btn-primary { display: inline-block; background: var(--primary); color: #fff; border-radius: .5rem;
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chrome .btn-primary:hover { background: var(--primary-dark); }
.header .mobile-menu-btn { display: none; margin: 0; padding: 0; width: 46px; min-height: 46px; background: none;
  border: 0; color: #1e293b; font-size: 1.5rem; }
.header .mobile-menu-btn:hover { background: #f1f5f9; }
.mobile-menu { display: none; position: fixed; top: var(--header-height); left: 0; width: 100%;
  height: calc(100vh - var(--header-height)); overflow-y: auto; background: #fff; padding: 1.5rem 2rem; z-index: 999; }
.mobile-menu.active { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { margin-bottom: .75rem; }
.mobile-menu a { display: block; padding: .5rem 0; font-size: 1.2rem; font-weight: 500; color: #1e293b; text-decoration: none; }
.mobile-menu a.active { color: var(--primary); }
.mobile-menu a.btn-primary { display: block; text-align: center; color: #fff; }
@media (max-width: 1199px) {
  .header .nav-links { display: none; }
  .header .mobile-menu-btn { display: block; margin-left: .75rem; }
}
@media (min-width: 1200px) { .mobile-menu.active { display: none; } }
@media (max-width: 480px) { .header .header-cta { display: none; } }

.page-hero { background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(99,102,241,.05)); padding: 3rem 0 2.5rem; text-align: center; }
.page-hero .inner { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.page-hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.25; color: #111827; margin: .5rem 0 0; text-wrap: balance; }
.page-hero .lead { font-size: 1.125rem; color: #4b5563; margin: 1rem 0 0; }
.section-label { display: inline-block; margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-dark); }
.page-hero .crumbs ol { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 .5rem; list-style: none; margin: 0; padding: 0; }
.page-hero .crumbs li + li::before { content: "\203A"; margin-right: .5rem; }
.page-hero .crumbs a { display: inline-block; padding: 4px 0; }
.all-comparisons { margin: 2.5rem 0 1rem; }
.all-comparisons a { display: inline-block; padding: 10px 0; font-weight: 600; }

.hub { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem; }
.hub h2 { margin: 0 0 1.25rem; color: #111827; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 2rem;
  list-style: none; margin: 0; padding: 0; }
.compare-card { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.compare-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px -5px rgba(0,0,0,.15); }
.compare-card:focus-within { outline: 3px solid #f59e0b; outline-offset: 2px; }
.compare-card h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.compare-card h3 a { color: #111827; text-decoration: none; }
.compare-card h3 a::after { content: ""; position: absolute; inset: 0; }
.compare-card h3 a:focus-visible { outline: none; }
.compare-card p { margin: 0 0 1rem; color: #4b5563; }
.compare-card .go { margin-top: auto; font-weight: 600; color: var(--primary-dark); }
@media (prefers-reduced-motion: reduce) { .compare-card { transition: none; } .compare-card:hover { transform: none; } }
.hub-note { margin: 2rem 0 0; font-size: .9rem; color: #475569; }

.chrome main { max-width: none; margin: 0; padding: 0; }
.chrome .page-body { max-width: 820px; margin: 0 auto; padding: 16px; }
.chrome footer.footer { display: block; background: #1f2937; color: #d1d5db; border: 0; margin-top: 3rem; padding: 4rem 0 2rem; }
.footer .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer .footer-title { color: #fff; font-weight: 700; font-size: 1.1rem; margin: 0 0 1rem; }
.footer p, .footer li { font-size: .875rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .25rem; }
.chrome .footer a { color: #d1d5db; text-decoration: none; padding: 3px 0; display: inline-block; }
.chrome .footer a:hover, .chrome .footer a.strong { color: #fff; }
.footer .copyright { text-align: center; border-top: 1px solid #374151; padding-top: 2rem; font-size: .875rem; }
