@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   فريق النخبة للتحمل — Elite Endurance Karting
   Pit-lane graphite + hi-vis orange. Sharp edges, technical rhythm.
   ========================================================================== */

:root {
  --bg: #0d1014;
  --bg-2: #131820;
  --surface: #171d26;
  --surface-2: #1e2733;
  --surface-3: #26313f;
  --line: #2c3846;
  --line-soft: #222c38;

  --ink: #eef2f7;
  --ink-2: #b8c4d2;
  --ink-3: #8592a3;

  --accent: #ff7a18;
  --accent-2: #ffb020;
  --accent-ink: #14181d;
  --steel: #5eb0d8;
  --good: #43c98b;
  --warn: #ffcb3d;
  --alert: #ff5f56;

  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 14px;

  --pad-section: clamp(3.5rem, 7vw, 6.5rem);
  --gap: clamp(1.25rem, 3vw, 2.5rem);

  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 600; color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }
h5, h6 { font-size: 1rem; }

p { color: var(--ink-2); }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: min(1180px, 100% - 2.6rem);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header-karting-apex {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}

.header-karting-apex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 16, 20, .9);
  backdrop-filter: blur(14px);
}

.header-karting-apex::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 22%, transparent 22% 100%);
}

.header-karting-apex-container {
  width: min(1180px, 100% - 2.6rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.header-karting-apex-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.header-karting-apex-logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.header-karting-apex-logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -.01em;
}

.header-karting-apex-desktop-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: auto;
}

.header-karting-apex-nav-link {
  position: relative;
  padding: .5rem .7rem;
  font-size: .92rem;
  color: var(--ink-2);
  border-radius: var(--r-xs);
  transition: color .2s var(--ease);
}

.header-karting-apex-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: .7rem;
  bottom: .15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.header-karting-apex-nav-link:hover { color: #fff; }
.header-karting-apex-nav-link:hover::after { transform: scaleX(1); }

.header-karting-apex-cta-button {
  padding: .62rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--r-sm);
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.header-karting-apex-cta-button:hover {
  background: var(--accent-2);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-karting-apex-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-inline-start: auto;
}

.header-karting-apex-hamburger-line {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.header-karting-apex-hamburger-line:nth-child(2) { width: 70%; margin-inline-start: auto; }

.header-karting-apex-mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--bg-2);
  border-inline-start: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  z-index: 120;
  visibility: hidden;
}

.header-karting-apex-mobile-menu.is-open { transform: translateX(0); visibility: visible; }

.header-karting-apex-mobile-header { display: flex; justify-content: flex-start; }

.header-karting-apex-mobile-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
}

.header-karting-apex-mobile-close:hover { color: var(--accent); border-color: var(--accent); }

.header-karting-apex-mobile-links {
  display: flex;
  flex-direction: column;
  margin-top: 1.4rem;
  gap: .2rem;
}

.header-karting-apex-mobile-link {
  padding: .85rem .8rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  border-inline-start: 2px solid transparent;
  transition: .2s var(--ease);
}

.header-karting-apex-mobile-link:hover {
  background: var(--surface);
  color: #fff;
  border-inline-start-color: var(--accent);
}

body.nav-locked { overflow: hidden; }

@media (max-width: 980px) {
  .header-karting-apex .header-karting-apex-desktop-nav,
  .header-karting-apex .header-karting-apex-cta-button { display: none !important; }
  .header-karting-apex-mobile-toggle { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
[class*="cta-button"]:not([class*="header-"]),
[class*="cta-link"],
.card-link-karting-endurance-relay,
.service-card__link,
.thank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .93rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: .22s var(--ease);
  cursor: pointer;
}

.btn-primary,
[class*="cta-button"]:not([class*="header-"]),
.thank-btn {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
[class*="cta-button"]:not([class*="header-"]):hover,
.thank-btn:hover {
  background: var(--accent-2);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.card-link-karting-endurance-relay,
.service-card__link,
[class*="cta-link"],
[class*="related-link"],
[class*="author-link"] {
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
}

.card-link-karting-endurance-relay::after,
.service-card__link::after { content: " ←"; }

.card-link-karting-endurance-relay:hover,
.service-card__link:hover { color: var(--accent-2); }

/* ==========================================================================
   Generic page rhythm
   ========================================================================== */

main { display: block; }

main > section { padding-block: var(--pad-section); position: relative; }

main > div.container { padding-block: var(--pad-section); }

/* nested sections inside an article should not re-pad or re-constrain */
[class*="article-content"] > section,
[class*="article-body"] > section,
[class*="article-main-content"] > section { padding-block: 0; margin-block-end: clamp(2.2rem, 4vw, 3.4rem); }

[class*="article-content"] .container,
[class*="article-body"] .container,
[class*="article-main-content"] .container { width: 100%; }

/* ==========================================================================
   Heroes (articles, category, about)
   ========================================================================== */

[class*="hero-section"] {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 24, .16), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

[class*="hero-section"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

[class*="hero-content"],
[class*="hero-text-wrapper"] { position: relative; z-index: 1; }

[class*="hero-title"] { margin-bottom: 1rem; }

[class*="hero-subtitle"],
[class*="hero-lead"],
[class*="hero-intro"] {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ink-2);
  max-width: 62ch;
}

[class*="hero-meta"] {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
}

[class*="meta-item"] {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-2);
}

[class*="meta-item"] i { color: var(--accent); font-size: .8rem; }

/* article hero: text + image side by side */
.hero-content-team-role-division,
.hero-content-driver-coordination-timing,
.hero-content-pit-maintenance-strategy,
.hero-content-wrapper-data-analysis-race-tactics,
.hero-wrapper-pit-maintenance-strategy {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

[class*="hero-image-wrapper"],
[class*="hero-image-block"] { position: relative; }

[class*="hero-image"]:not([class*="wrapper"]):not([class*="block"]),
[class*="hero-img"],
[class*="hero-visual"],
[class*="hero-featured-image"] {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual-about { aspect-ratio: 21 / 9; margin-top: 2.2rem; }

/* category hero — full-bleed image with overlay */
.hero-content-karting-endurance-relay { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.hero-image-karting-endurance-relay { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border: 0; border-radius: 0; }
.hero-overlay-karting-endurance-relay {
  position: absolute;
  inset: 0;
  background: linear-gradient(275deg, rgba(13, 16, 20, .35), rgba(13, 16, 20, .93));
  z-index: 1;
}
.hero-text-wrapper-karting-endurance-relay {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 2;
  padding: clamp(1.4rem, 4vw, 3rem);
  max-width: 42rem;
}

@media (max-width: 860px) {
  .hero-content-team-role-division,
  .hero-content-driver-coordination-timing,
  .hero-content-pit-maintenance-strategy,
  .hero-content-wrapper-data-analysis-race-tactics,
  .hero-wrapper-pit-maintenance-strategy { grid-template-columns: 1fr; }
  .hero-text-wrapper-karting-endurance-relay { position: static; background: var(--surface); }
  .hero-image-karting-endurance-relay { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

[class*="breadcrumbs"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--ink-3);
  margin-bottom: 1.8rem;
}

[class*="breadcrumbs"] a { color: var(--ink-2); }
[class*="breadcrumbs"] a:hover { color: var(--accent); }

/* ==========================================================================
   Article layout + author sidebar
   ========================================================================== */

[class*="article-layout"] {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start;
}

[class*="author-sidebar"]:not([class*="section"]):not([class*="wrapper"]) { position: sticky; top: 100px; }

[class*="author-card"],
[class*="author-box"]:not([class*="content"]) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
}

[class*="author-photo"] {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent);
}

[class*="author-name"] { font-size: 1.08rem; margin-bottom: .25rem; }
[class*="author-name"] a:hover { color: var(--accent); }

[class*="author-position"],
[class*="author-role"] {
  font-size: .82rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: .8rem;
}

[class*="author-bio"] { font-size: .9rem; line-height: 1.75; color: var(--ink-3); }

@media (max-width: 900px) {
  [class*="article-layout"] { grid-template-columns: 1fr; }
  [class*="author-sidebar"]:not([class*="section"]):not([class*="wrapper"]) { position: static; }
}

/* ==========================================================================
   Article body: titles, paragraphs, split content
   ========================================================================== */

[class*="intro-title"],
[class*="content-title"],
[class*="conclusion-title"],
[class*="roles-title"],
[class*="preparation-title"],
[class*="coordination-title"],
[class*="mistakes-title"],
[class*="workflow-title"],
[class*="tools-title"],
[class*="tips-title"],
[class*="introduction-title"],
[class*="content-section-title"],
[class*="subsection-title"],
[class*="best-practices-title"] {
  margin-bottom: .9rem;
  position: relative;
  padding-inline-start: .9rem;
}

[class*="intro-title"]::before,
[class*="content-title"]::before,
[class*="conclusion-title"]::before,
[class*="roles-title"]::before,
[class*="preparation-title"]::before,
[class*="coordination-title"]::before,
[class*="mistakes-title"]::before,
[class*="workflow-title"]::before,
[class*="tools-title"]::before,
[class*="introduction-title"]::before,
[class*="best-practices-title"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .28em;
  bottom: .28em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

[class*="-paragraph"],
[class*="intro-text"] p,
[class*="content-text"] p,
[class*="conclusion-text"],
[class*="introduction-text"],
[class*="disclaimer-text"],
[class*="highlight-text"],
[class*="related-text"] { margin-bottom: 1.05rem; }

[class*="-paragraph"]:last-child { margin-bottom: 0; }

/* two column text/image blocks */
[class*="content-two-column"],
[class*="roles-content"],
[class*="preparation-content"],
[class*="coordination-content"],
[class*="mistakes-content"],
[class*="content-wrapper-first"],
[class*="content-wrapper-second"],
[class*="content-wrapper-third"],
[class*="content-wrapper-pit-maintenance"],
[class*="intro-content"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}

[class*="content-img"],
[class*="content-image"] img,
[class*="-image-img"],
[class*="roles-image"] img,
[class*="preparation-image"] img,
[class*="coordination-image"] img,
[class*="mistakes-image"] img,
[class*="related-image"] img,
[class*="content-image"]:is(img) {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Callout boxes
   ========================================================================== */

[class*="highlight-box"],
[class*="critical-box"],
[class*="disclaimer-box"],
[class*="intro-highlight"],
[class*="prep-highlight"],
[class*="conclusion-highlight"],
[class*="tip-card"],
[class*="tool-card"],
[class*="coord-box"],
[class*="role-item"],
[class*="practice-card"],
[class*="workflow-card"],
[class*="challenge-item"],
[class*="step-item"],
[class*="check-item"],
[class*="tools-item"],
[class*="expertise-card"],
[class*="value-item"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
}

[class*="highlight-box"],
[class*="intro-highlight"],
[class*="prep-highlight"],
[class*="conclusion-highlight"] {
  border-inline-start: 3px solid var(--accent);
  background: linear-gradient(275deg, var(--surface), var(--surface-2));
}

[class*="critical-box"] { border-inline-start: 3px solid var(--alert); }

[class*="disclaimer-section"] [class*="disclaimer-content"],
[class*="disclaimer-box"] {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
}

[class*="disclaimer-title"] { font-size: 1rem; color: var(--warn); margin-bottom: .5rem; }
[class*="disclaimer-text"] { font-size: .9rem; color: var(--ink-3); }

[class*="disclaimer-label"] {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--warn);
  margin-bottom: .6rem;
}

[class*="highlight-title"],
[class*="critical-title"],
[class*="tip-card-title"],
[class*="tool-title"],
[class*="coord-box-title"],
[class*="role-item-title"],
[class*="practice-card-title"],
[class*="workflow-card-title"],
[class*="challenge-title"],
[class*="step-title"],
[class*="tools-item-title"],
[class*="highlight-box-title"] { font-size: 1.02rem; margin-bottom: .45rem; color: #fff; }

[class*="highlight-text"],
[class*="tip-card-text"],
[class*="tool-description"],
[class*="coord-box-text"],
[class*="role-item-text"],
[class*="practice-card-text"],
[class*="workflow-card-text"],
[class*="challenge-text"],
[class*="step-text"],
[class*="tools-item-desc"] { font-size: .93rem; color: var(--ink-2); }

/* card grids */
[class*="roles-list"],
[class*="coordination-boxes"],
[class*="practices-grid"],
[class*="tips-grid"],
[class*="tools-grid"],
[class*="workflow-grid"],
[class*="tools-list"],
[class*="highlight-challenges"],
[class*="expertise-grid"],
[class*="steps-list"],
[class*="step-list"],
[class*="checklist"],
[class*="critical-list"],
[class*="highlight-list"],
[class*="values-list"] {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

[class*="practices-grid"],
[class*="tips-grid"],
[class*="tools-grid"],
[class*="workflow-grid"],
[class*="expertise-grid"] { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

[class*="highlight-list"] li,
[class*="critical-list"] li,
[class*="check-item"],
[class*="legal-relay-content"] ul li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--ink-2);
}

[class*="highlight-list"] li::before,
[class*="critical-list"] li::before,
[class*="legal-relay-content"] ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .78em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* numbered steps + workflow */
[class*="step-number"],
[class*="workflow-number"],
[class*="value-number"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: .8rem;
  flex-shrink: 0;
}

[class*="step-item"] { display: flex; gap: 1rem; align-items: flex-start; }
[class*="step-content"] { flex: 1; }
[class*="step-item"] [class*="step-number"] { margin-bottom: 0; }

/* tips checklist (category page) */
.tips-checklist-karting-endurance-relay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.tip-item-karting-endurance-relay {
  display: flex;
  gap: .9rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.tip-icon-karting-endurance-relay { color: var(--accent); font-size: 1.15rem; padding-top: .25rem; }
.tip-heading-karting-endurance-relay { font-size: 1rem; margin-bottom: .3rem; }
.tip-description-karting-endurance-relay { font-size: .9rem; color: var(--ink-2); }

/* ==========================================================================
   Related posts
   ========================================================================== */

[class*="related-posts-title"],
[class*="related-title"] { margin-bottom: 1.6rem; }

[class*="related-posts-list"],
[class*="related-list"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}

[class*="related-post-item"],
[class*="related-item"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: .25s var(--ease);
}

[class*="related-post-item"]:hover,
[class*="related-item"]:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

[class*="related-post-img"],
[class*="related-img"],
[class*="related-image"] img { aspect-ratio: 16 / 10; border-radius: 0; border: 0; }

[class*="related-post-text"],
[class*="related-info"],
[class*="related-item"] > div:last-child { padding: 1.1rem 1.2rem 1.3rem; }

[class*="related-post-heading"],
[class*="related-item-title"] { font-size: 1.02rem; margin-bottom: .4rem; }

[class*="related-post-desc"],
[class*="related-item-desc"],
[class*="related-item-description"] { font-size: .88rem; color: var(--ink-3); }

/* ==========================================================================
   Category page cards
   ========================================================================== */

.posts-header-karting-endurance-relay,
.tips-header-karting-endurance-relay { margin-bottom: 2rem; max-width: 60ch; }

.posts-subtitle-karting-endurance-relay,
.tips-subtitle-karting-endurance-relay { color: var(--ink-3); }

.card-featured-karting-endurance-relay {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.card-image-featured-karting-endurance-relay { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.card-body-featured-karting-endurance-relay {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .7rem;
}

.posts-grid-karting-endurance-relay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.card-grid-karting-endurance-relay {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .25s var(--ease);
}

.card-grid-karting-endurance-relay:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-image-grid-karting-endurance-relay { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.card-body-grid-karting-endurance-relay {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.card-body-grid-karting-endurance-relay p,
.card-body-featured-karting-endurance-relay p { font-size: .92rem; color: var(--ink-2); }

.card-meta-karting-endurance-relay {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  font-size: .8rem;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: .3rem;
}

.card-meta-karting-endurance-relay i { color: var(--accent); margin-inline-end: .3rem; }

@media (max-width: 780px) {
  .card-featured-karting-endurance-relay { grid-template-columns: 1fr; }
  .card-image-featured-karting-endurance-relay { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   About page
   ========================================================================== */

[class*="mission-label"],
[class*="values-label"],
[class*="strategy-intro"],
[class*="philosophy-intro"] {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: .7rem;
  padding: .28rem .7rem;
  border: 1px solid rgba(255, 122, 24, .35);
  border-radius: 999px;
}

[class*="mission-header"],
[class*="values-header"] { max-width: 62ch; margin-bottom: 2.2rem; }

[class*="expertise-card"] { text-align: center; }
[class*="expertise-icon"] { font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: .7rem; }
[class*="expertise-heading"] { font-size: 1.05rem; margin-bottom: .5rem; }
[class*="expertise-text"] { font-size: .92rem; }

[class*="strategy-content"],
[class*="philosophy-content"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

[class*="strategy-image"],
[class*="philosophy-image"] {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.philosophy-section-about { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

[class*="values-list"] { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

[class*="value-number"] { border-radius: 50%; }
[class*="value-name"] { font-size: 1.05rem; margin-bottom: .4rem; }
[class*="value-description"] { font-size: .92rem; }

/* ==========================================================================
   Services page (specialties)
   ========================================================================== */

.services-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.services-hero__container,
.services-content__container,
.services-cta__container { width: min(1180px, 100% - 2.6rem); margin-inline: auto; }
.services-hero__subtitle { color: var(--ink-2); max-width: 62ch; margin-top: .8rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: .25s var(--ease);
}

.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.service-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 122, 24, .12);
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: .3rem;
}

.service-card__title { font-size: 1.1rem; }
.service-card__description { font-size: .93rem; }
.service-card__link { margin-top: auto; padding-top: .6rem; align-self: flex-start; }

.services-cta { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.services-cta__container { text-align: center; max-width: 720px; }
.services-cta__description { margin: .8rem 0 1.6rem; }

/* ==========================================================================
   Portfolio page (our-projects)
   ========================================================================== */

.portfolio-hero {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.portfolio-hero-content,
.portfolio-container,
.portfolio-cta-content { width: min(1180px, 100% - 2.6rem); margin-inline: auto; }
.portfolio-hero-subtitle { color: var(--ink-2); max-width: 60ch; margin: .8rem auto 0; }

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: .25s var(--ease);
}

.portfolio-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.portfolio-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.portfolio-card-content { padding: 1.2rem 1.3rem 1.5rem; }

.portfolio-card-tag {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 24, .35);
  border-radius: 999px;
  padding: .2rem .65rem;
  margin-bottom: .7rem;
}

.portfolio-card-title { font-size: 1.08rem; margin-bottom: .45rem; }
.portfolio-card-description { font-size: .92rem; }

.portfolio-cta { background: var(--bg-2); border-top: 1px solid var(--line-soft); text-align: center; }
.portfolio-cta-text { margin: .8rem auto 1.6rem; max-width: 58ch; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-relay-content { max-width: 820px; margin-inline: auto; }
.legal-relay-content h1 { margin-bottom: .6rem; }

.last-updated {
  display: inline-block;
  font-size: .82rem;
  color: var(--ink-3);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  width: 100%;
}

.legal-relay-content .section { margin-bottom: 2rem; }
.legal-relay-content .section h2 { font-size: 1.28rem; margin-bottom: .7rem; }
.legal-relay-content p { margin-bottom: .9rem; }
.legal-relay-content ul { display: grid; gap: .5rem; margin: .6rem 0 1rem; }

.contact-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  margin-top: 2.4rem;
}

.contact-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-info { display: grid; gap: .6rem; }
.contact-info-item { color: var(--ink-2); font-size: .95rem; }
.contact-info-label { font-weight: 600; color: #fff; margin-inline-end: .4rem; }

/* ==========================================================================
   404 page
   ========================================================================== */

.error-page-wrapper { display: grid; place-items: center; min-height: 68vh; }
.error-hero { width: 100%; }
.error-content { text-align: center; max-width: 640px; margin-inline: auto; }
.error-visual { margin-bottom: 1.4rem; }

.error-code-wrapper { position: relative; display: inline-block; }

.error-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-decoration {
  height: 3px;
  width: 60%;
  margin: .4rem auto 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 24px);
}

.error-title { margin-bottom: .5rem; }
.error-subtitle { font-size: 1.1rem; color: var(--ink-2); font-weight: 500; margin-bottom: 1rem; }
.error-message { margin-bottom: .3rem; }
.error-message-en { font-size: .9rem; color: var(--ink-3); direction: ltr; }

.error-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.8rem 0; }

.error-context {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
}

.context-label { font-size: .78rem; letter-spacing: .1em; color: var(--accent); margin-bottom: .35rem; }
.context-text { font-size: .9rem; }

/* ==========================================================================
   Thank you page
   ========================================================================== */

.thank-you-page { display: grid; place-items: center; min-height: 68vh; }
.thank-section { width: 100%; }
.thank-wrapper { text-align: center; max-width: 620px; margin-inline: auto; }

.thank-icon-wrapper {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(67, 201, 139, .12);
  border: 1px solid rgba(67, 201, 139, .4);
}

.thank-icon { width: 40px; height: 40px; stroke: var(--good); fill: none; stroke-width: 2; }
.thank-lead { font-size: 1.08rem; color: var(--ink); margin: .6rem 0; }
.thank-description { margin-bottom: .8rem; }
.thank-note { font-size: .88rem; color: var(--ink-3); }
.thank-btn { margin-top: 1.6rem; }

/* ==========================================================================
   Contact page (get-in-touch)
   ========================================================================== */

.apex-contact-hero { text-align: center; }
.apex-contact-hero p { max-width: 58ch; margin: .9rem auto 0; }

.apex-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 3.5vw, 2.6rem);
  align-items: start;
}

.apex-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.05rem;
}

.apex-field { display: grid; gap: .4rem; }
.apex-field label { font-size: .86rem; font-weight: 500; color: var(--ink); }

.apex-field input,
.apex-field textarea {
  width: 100%;
  padding: .78rem .9rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s var(--ease);
}

.apex-field textarea { min-height: 150px; resize: vertical; }
.apex-field input:focus,
.apex-field textarea:focus { outline: none; border-color: var(--accent); }
.apex-field ::placeholder { color: var(--ink-3); }

.apex-form-note { font-size: .82rem; color: var(--ink-3); }
.apex-form-note a { color: var(--accent); }
.apex-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.apex-aside { display: grid; gap: 1rem; }

.apex-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem;
}

.apex-info-card h2 { font-size: 1.12rem; margin-bottom: 1rem; }

.apex-info-row { display: flex; gap: .85rem; align-items: flex-start; padding-block: .7rem; }
.apex-info-row + .apex-info-row { border-top: 1px solid var(--line-soft); }

.apex-info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 122, 24, .12);
  color: var(--accent);
}

.apex-info-row h3 { font-size: .88rem; color: var(--ink-3); font-weight: 500; margin-bottom: .15rem; }
.apex-info-row p, .apex-info-row a { font-size: .96rem; color: var(--ink); }
.apex-info-row a:hover { color: var(--accent); }

.apex-hours-list { display: grid; gap: .55rem; }
.apex-hours-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ink-2); }
.apex-hours-list li span:last-child { color: var(--ink-3); }

@media (max-width: 880px) { .apex-contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Homepage
   ========================================================================== */

.apex-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) !important;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
}

.apex-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.apex-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }

.apex-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(275deg, rgba(13, 16, 20, .55), rgba(13, 16, 20, .96));
}

.apex-hero-inner { position: relative; z-index: 1; max-width: 44rem; }

.apex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 24, .38);
  border-radius: 999px;
  padding: .3rem .85rem;
  margin-bottom: 1.2rem;
}

.apex-hero h1 { margin-bottom: 1.1rem; }
.apex-hero-lead { font-size: clamp(1rem, 1.7vw, 1.16rem); max-width: 54ch; }

.apex-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.apex-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.apex-stat { background: var(--bg-2); padding: 1.3rem 1.4rem; }

.apex-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1.2;
}

.apex-stat span { font-size: .86rem; color: var(--ink-3); }

.apex-section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.apex-section-head p { margin-top: .7rem; }

.apex-roles { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.apex-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.apex-role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.4rem;
  transition: .25s var(--ease);
}

.apex-role:hover { border-color: var(--accent); transform: translateY(-4px); }

.apex-role i {
  font-size: 1.3rem;
  color: var(--accent);
  display: block;
  margin-bottom: .9rem;
}

.apex-role h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.apex-role p { font-size: .92rem; }

.apex-steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.apex-step {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2.4rem 1.4rem 1.5rem;
}

.apex-step::before {
  content: "0" counter(step);
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.2rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: rgba(255, 122, 24, .28);
}

.apex-step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.apex-step p { font-size: .92rem; }

.apex-standards { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.apex-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.apex-standard { background: var(--surface); padding: 1.5rem 1.4rem; }
.apex-standard h3 { font-size: 1rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .55rem; }
.apex-standard h3 i { color: var(--accent); font-size: .95rem; }
.apex-standard p { font-size: .91rem; }

.apex-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  max-width: 820px;
  margin-inline: auto;
}

.apex-quote blockquote { font-family: var(--font-head); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.8; color: var(--ink); }
.apex-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .88rem; color: var(--accent); }

.apex-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.apex-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .25s var(--ease);
}

.apex-article:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.apex-article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.apex-article-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.apex-article-body h3 { font-size: 1.05rem; }
.apex-article-body p { font-size: .91rem; flex: 1; }

.apex-article-more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.apex-article-more::after { content: " ←"; }

.apex-more-row { display: flex; justify-content: center; margin-top: 2rem; }

.apex-cta { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.apex-cta-box {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(255, 122, 24, .18), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 5vw, 3.4rem);
  text-align: center;
}

.apex-cta-box i { font-size: 1.7rem; color: var(--accent); margin-bottom: .9rem; display: block; }
.apex-cta-box p { max-width: 54ch; margin: .8rem auto 1.7rem; }

.apex-faq { display: grid; gap: .8rem; max-width: 840px; margin-inline: auto; }

.apex-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
}

.apex-faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.apex-faq summary::-webkit-details-marker { display: none; }
.apex-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.apex-faq details[open] summary::after { content: "–"; }
.apex-faq details p { margin-top: .8rem; font-size: .93rem; }

/* cookie banner */
#cookieBanner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 130;
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

#cookieBanner.is-hidden { display: none; }
#cookieBanner p { font-size: .88rem; flex: 1 1 260px; }
.apex-cookie-actions { display: flex; gap: .6rem; }

.apex-cookie-accept {
  padding: .5rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .87rem;
}

.apex-cookie-accept:hover {
  background: var(--accent-2);
  color: var(--accent-ink);
  text-decoration: none;
}

.apex-cookie-decline {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .87rem;
}

.apex-cookie-decline:hover { color: var(--ink); border-color: var(--ink-3); }

/* ==========================================================================
   Editorial team page
   ========================================================================== */

.apex-team-hero { text-align: center; }

.apex-team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.3rem;
  border: 3px solid var(--accent);
}

.apex-team-hero p { max-width: 60ch; margin: .9rem auto 0; }

.apex-team-role {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .6rem;
}

.apex-team-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.apex-team-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }

.apex-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }

.apex-principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
}

.apex-principle i { color: var(--accent); font-size: 1.2rem; display: block; margin-bottom: .8rem; }
.apex-principle h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.apex-principle p { font-size: .91rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #090b0e;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.8rem, 6vw, 4.2rem) 1.8rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.footer h3, .footer h4 { font-size: 1rem; margin-bottom: .95rem; color: #fff; }
.footer-about h3 { font-size: 1.12rem; }
.footer-about p { font-size: .9rem; color: var(--ink-3); margin-bottom: .7rem; }

.footer-nav-list,
.footer-legal-list { display: grid; gap: .55rem; }

.footer-nav-list a,
.footer-legal-list a { font-size: .9rem; color: var(--ink-2); transition: color .2s var(--ease); }
.footer-nav-list a:hover,
.footer-legal-list a:hover { color: var(--accent); }

.footer-contact p { font-size: .9rem; color: var(--ink-2); margin-bottom: .5rem; }
.footer-contact strong { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 500; }

.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

.footer-copyright p { font-size: .84rem; color: var(--ink-3); }
.footer-disclaimer { max-width: 70ch; }

@media (max-width: 900px) { .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-content { grid-template-columns: 1fr; } }

/* ==========================================================================
   Responsive tail
   ========================================================================== */

@media (max-width: 640px) {
  :root { --pad-section: 3rem; }
  .apex-stat b { font-size: 1.6rem; }
  #cookieBanner { flex-direction: column; align-items: stretch; }
  .apex-cookie-actions { justify-content: stretch; }
  .apex-cookie-actions > * { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.header-karting-apex-nav-link.is-current { color: #fff; }
.header-karting-apex-nav-link.is-current::after { transform: scaleX(1); }

/* ==========================================================================
   Coverage supplement — components reached only from inner article pages
   ========================================================================== */

.services-cta__button,
[class*="cta__button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .93rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  transition: .22s var(--ease);
}

.services-cta__button:hover,
[class*="cta__button"]:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px var(--accent);
}

[class*="related-post-link"] { display: block; height: 100%; }

[class*="tools-icon"] { color: var(--accent); font-size: 1.1rem; margin-inline-end: .5rem; }

[class*="tools-intro"],
[class*="workflow-intro"],
[class*="mission-description"] { margin-bottom: 1.4rem; }

[class*="maintenance-workflow"] { margin-top: 1.4rem; }

[class*="author-info"] { text-align: start; }

/* the drawer owns the screen while it is open */
body.nav-locked #cookieBanner { display: none; }

/* --------------------------------------------------------------------------
   Mobile drawer polish + cookie banner stacking
   -------------------------------------------------------------------------- */

/* in a column flex container `flex-basis` sizes the HEIGHT — reset it,
   otherwise the notice grows to a 250px-tall empty box on phones */
@media (max-width: 640px) {
  #cookieBanner p { flex: 0 0 auto; }
}

/* scrim behind the drawer; sits under the header (z-index 90) that owns it */
body.nav-locked::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, .62);
}

.header-karting-apex-mobile-menu { box-shadow: var(--shadow-lg); }
