.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
:root {
  --white: #ffffff;
  --light-gray: #f4f6f8;
  --medium-blue: #2f6fed;
  --medium-blue-dark: #1f4fc0;
  --text: #1a1f2e;
  --muted: #5b6475;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 31, 46, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--medium-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0; flex-wrap: nowrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  letter-spacing: -0.02em; text-decoration: none; min-width: 0;
}
.logo img {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: block;
}
.logo .logo-text { display: inline; font-style: italic; white-space: nowrap; }
.logo .logo-text > span { color: var(--medium-blue); }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-left: auto;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--light-gray); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 1px;
  position: relative; transition: transform .15s, opacity .15s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.header-inner.is-nav-open .nav-toggle-bars { background: transparent; }
.header-inner.is-nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.header-inner.is-nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav {
  display: flex; flex-wrap: nowrap; gap: 0.85rem 1.15rem;
  align-items: center; justify-content: flex-end;
}
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--medium-blue); }
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; flex-direction: column; flex-wrap: nowrap;
    align-items: stretch; width: 100%; gap: 0;
    padding: 0.15rem 0 0.35rem;
  }
  .header-inner.is-nav-open .nav { display: flex; }
  .nav a {
    padding: 0.75rem 0.15rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
  }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border: none; border-radius: 999px; cursor: pointer;
  font-weight: 700; padding: 0.7rem 1.15rem; font-size: 0.95rem;
  transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--medium-blue); color: var(--white); }
.btn-primary:hover { background: var(--medium-blue-dark); text-decoration: none; color: var(--white); }
.btn-ghost {
  background: var(--light-gray); color: var(--text);
}
.btn-ghost:hover { background: #e8edf3; text-decoration: none; color: var(--text); }
.btn-amazon { background: #ff9900; color: #111; }
.btn-amazon:hover { background: #e88b00; text-decoration: none; color: #111; }
.hero {
  background: linear-gradient(160deg, var(--light-gray) 0%, var(--white) 60%);
  padding: 3.5rem 0 2.5rem;
}
.hero-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr; align-items: center;
}
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--medium-blue); margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
  margin: 0 0 0.8rem; letter-spacing: -0.03em;
}
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.4rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
section.block { padding: 2.75rem 0; }
section.block.alt { background: var(--light-gray); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.02em; }
.section-head p { margin: 0.35rem 0 0; color: var(--muted); }
.grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.65rem;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-media {
  aspect-ratio: 4/3; background: var(--light-gray); border-radius: 8px;
  display: grid; place-items: center; color: var(--muted); font-weight: 600;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  display: inline-block; background: #e8f0ff; color: var(--medium-blue);
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
  text-transform: capitalize;
}
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; align-items: center;
}
.filters label { font-weight: 600; color: var(--muted); margin-right: 0.3rem; }
.filters select, .filters input {
  border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.7rem;
  background: var(--white); font: inherit;
}
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
table.races { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.races th, table.races td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.races th { background: var(--light-gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.races tr:hover td { background: #fafbfd; }
.prose { max-width: 720px; }
.prose h1 { margin-top: 0; }
.muted { color: var(--muted); }
.note {
  background: #fff8e6; border: 1px solid #ffe0a3; color: #6b5200;
  padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9rem; margin: 1rem 0;
}
.site-footer {
  background: var(--light-gray); border-top: 1px solid var(--border);
  padding: 2rem 0; margin-top: 1rem;
}
.footer-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--muted); }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }
.empty { padding: 1.5rem; text-align: center; color: var(--muted); background: var(--white); border-radius: var(--radius); border: 1px dashed var(--border); }
.page-hero { padding: 2.2rem 0 1rem; background: var(--light-gray); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 0.4rem; }

/* Image polish */
.hero-visual {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--light-gray);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.card-media--logo {
  aspect-ratio: 1 / 1;
  max-height: 140px;
  background: var(--light-gray);
  padding: 0.75rem;
}
.card-media--logo img,
.race-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}
.race-logo--lg {
  width: 96px;
  height: 96px;
}
.race-logo-cell {
  width: 56px;
  vertical-align: middle;
}
.race-logo-cell .race-logo {
  width: 40px;
  height: 40px;
}
.post-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.25rem;
  aspect-ratio: 21 / 9;
  background: var(--light-gray);
  border: 1px solid var(--border);
}
.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card {
  overflow: hidden;
}
.card > .card-media {
  margin: -1.1rem -1.1rem 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}
.card > .card-media--logo {
  margin: -1.1rem -1.1rem 0;
  max-height: none;
  aspect-ratio: 16 / 10;
}
.card > .card-media--logo img {
  width: 110px;
  height: 110px;
}

/* Homepage — four hero sections (no product cards) */
.home-intro {
  background: linear-gradient(160deg, var(--light-gray) 0%, var(--white) 70%);
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.home-intro-inner {
  display: block;
  max-width: 40rem;
}
.home-intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
}
.home-intro .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 36rem;
}
/* Homepage sections — News | Product Reviews | Race Calendar (3-up) */
.home-sections-wrap {
  padding: 1.75rem 0 2.5rem;
  background: var(--white);
}
.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "news reviews calendar";
  gap: 1rem;
  align-items: stretch;
}
.home-card#news { grid-area: news; }
.home-card#race-calendar { grid-area: calendar; }
.home-card#reviews { grid-area: reviews; }

@media (max-width: 900px) {
  .home-sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "news"
      "reviews"
      "calendar";
  }
}

/* News page filters */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.35rem;
}
.news-filter {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.news-filter:hover { color: var(--medium-blue); border-color: #c9d8f7; }
.news-filter.is-active {
  background: var(--medium-blue);
  border-color: var(--medium-blue);
  color: #fff;
}

.home-card {
  position: relative;
  display: block;
  min-height: 220px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  background: var(--card);
}
.home-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: var(--light-gray);
}
.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}
.home-card:hover .home-card-media img,
.home-card:focus-within .home-card-media img {
  transform: scale(1.06);
}
.home-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: 220px;
  height: 100%;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.15) 0%,
    rgba(10, 22, 40, 0.55) 45%,
    rgba(10, 22, 40, 0.82) 100%
  );
  color: #fff;
}
.home-card-copy .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.home-card-copy h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.home-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 28rem;
}
.home-card-copy .btn {
  align-self: flex-start;
  margin-top: 0.45rem;
  background: #fff;
  color: var(--medium-blue);
  border-color: #fff;
  font-weight: 700;
}
.home-card-copy .btn:hover {
  background: var(--light-gray, #eef2f7);
}

@media (min-width: 900px) {
  .home-card,
  .home-card-copy {
    min-height: 260px;
  }
}

/* Reviews page */
.reviews-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0 0;
  font-weight: 700;
}
.reviews-jump a { color: var(--medium-blue); }
.reviews-filters { margin-bottom: 0.25rem; }
.reviews-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 16rem;
  text-align: right;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.review-actions .btn { font-size: 0.85rem; padding: 0.55rem 0.9rem; }

/* Race entry status badges */
.entry-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.entry-badge--open { background: #e6f7ed; color: #0b7a3b; }
.entry-badge--closed { background: #fdecea; color: #b42318; }
.entry-badge--unknown { background: #eef1f5; color: #5b6475; }
.race-row-meta { margin-top: 0.35rem; }
.race-review-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Clickable review/news card media */
a.card-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.card-media-link:hover img,
a.card-media-link:focus-visible img {
  transform: scale(1.03);
}
a.card-media-link img {
  transition: transform 0.25s ease;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover,
.card-title-link:focus-visible {
  color: var(--medium-blue);
  text-decoration: underline;
}

/* Internal article pages */
.article-page h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}
.article-page .prose-body {
  margin: 1.25rem 0 2rem;
}
.article-page .prose-body p {
  color: var(--text, #1a1a1a);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.article-figure {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light-gray);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #fff;
}
.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border);
}
.article-actions {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Product detail gallery + review */
.product-gallery {
  margin: 0 0 1.5rem;
}
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.product-gallery-main img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.product-thumb.is-active,
.product-thumb:hover,
.product-thumb:focus-visible {
  border-color: var(--medium-blue, #2f6fed);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-rating {
  margin: 0.5rem 0;
  font-size: 1.02rem;
}
.product-stars {
  color: #f5a623;
  letter-spacing: 0.05em;
}
.product-review-card {
  margin: 1.75rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light-gray, #f7f8fa);
}
.product-review-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.product-review-meta {
  margin: 0;
}
.btn-buy-now {
  font-weight: 700;
  padding: 0.75rem 1.35rem;
}

/* News article previous / next */
.article-prev-next {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  background: #fff;
}
.article-nav-link:hover,
.article-nav-link:focus-visible {
  border-color: var(--medium-blue, #2f6fed);
  color: var(--medium-blue, #2f6fed);
  text-decoration: none;
}
.article-nav-link--next {
  text-align: right;
  align-items: flex-end;
}
.article-nav-title {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}


/* Amazon-style rating on product reviews */
.amz-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0.65rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.2;
}
.amz-rating-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}
.amz-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
}
.amz-star {
  position: relative;
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  line-height: 1;
  font-size: 1.15rem;
}
.amz-star-empty {
  color: #d5d9d9;
}
.amz-star-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: #de7921;
  white-space: nowrap;
}
.amz-rating-count {
  color: #007185;
  font-weight: 500;
  font-size: 1rem;
}
.amz-price-line {
  margin: 0.25rem 0 0.85rem;
  font-size: 1.02rem;
}
.amz-top-review blockquote.amz-review-quote {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  font-style: normal;
}
.amz-top-review blockquote.amz-review-quote p {
  margin: 0;
}
