:root {
  --ika-product-shell-bg: #051423;
  --ika-product-shell-bg-deep: #030d18;
  --ika-product-shell-panel: #06131f;
  --ika-product-shell-border: rgba(111, 149, 205, 0.20);
  --ika-product-shell-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --ika-product-shell-text: #e6eef8;
  --ika-product-shell-text-muted: #c7d7ea;
  --ika-product-shell-link: #61a7f3;
  --ika-product-shell-link-hover: #ffd373;
}
body.ika-flightdeck-root #page,
body.ika-flightdeck-root .site,
body.ika-flightdeck-root .site-content,
body.ika-flightdeck-root .content-area,
body.ika-flightdeck-root .site-main {
  background: transparent;
}

body.ika-flightdeck-root #site-header,
body.ika-flightdeck-root header.site-header,
body.ika-flightdeck-root #site-footer,
body.ika-flightdeck-root footer.site-footer {
  background: rgba(6, 22, 40, 0.88);
  backdrop-filter: blur(8px);
}

body.ika-flightdeck-root #site-header,
body.ika-flightdeck-root header.site-header {
  border-bottom: 1px solid rgba(111, 149, 205, 0.14);
}

body.ika-flightdeck-root #site-footer,
body.ika-flightdeck-root footer.site-footer {
  border-top: 1px solid rgba(111, 149, 205, 0.14);
}

body.ika-flightdeck-root #site-footer,
body.ika-flightdeck-root footer.site-footer {
  color: var(--ika-product-shell-text);
}

body.ika-flightdeck-root #site-header a:hover,
body.ika-flightdeck-root header.site-header a:hover,
body.ika-flightdeck-root #site-footer a:hover,
body.ika-flightdeck-root footer.site-footer a:hover {
  color: var(--ika-product-shell-link-hover);
}

body.ika-flightdeck-root .site-main {
  padding: 24px 0 44px;
}

body.ika-flightdeck-root .ika-fd-next__panel-shell {
  position: relative;
}

body.ika-flightdeck-root .ika-fd-next a {
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

body.ika-flightdeck-root .ika-fd-next a:hover {
  color: var(--ika-product-shell-link-hover);
}

@media (max-width: 767px) {
  body.ika-flightdeck-root .site-main {
    padding-top: 16px;
    padding-bottom: 28px;
  }
}

body.ika-flightdeck-family,
body.ika-flightdeck-family html {
  background:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.20), transparent 36%),
    linear-gradient(180deg, var(--ika-product-shell-bg) 0%, var(--ika-product-shell-bg-deep) 100%);
}

body.ika-flightdeck-family #page,
body.ika-flightdeck-family .site,
body.ika-flightdeck-family .site-content,
body.ika-flightdeck-family .content-area,
body.ika-flightdeck-family .site-main {
  background: transparent;
}

body.ika-flightdeck-family #site-header,
body.ika-flightdeck-family header.site-header,
body.ika-flightdeck-family #site-footer,
body.ika-flightdeck-family footer.site-footer {
  background: rgba(6, 22, 40, 0.88);
  backdrop-filter: blur(8px);
}

body.ika-flightdeck-family #site-header,
body.ika-flightdeck-family header.site-header {
  border-bottom: 1px solid rgba(111, 149, 205, 0.14);
}

body.ika-flightdeck-family #site-footer,
body.ika-flightdeck-family footer.site-footer {
  border-top: 1px solid rgba(111, 149, 205, 0.14);
}

body.ika-flightdeck-family #site-header a,
body.ika-flightdeck-family header.site-header a,
body.ika-flightdeck-family #site-footer,
body.ika-flightdeck-family footer.site-footer {
  color: var(--ika-product-shell-text);
}

body.ika-flightdeck-family #site-header a:hover,
body.ika-flightdeck-family header.site-header a:hover,
body.ika-flightdeck-family #site-footer a:hover,
body.ika-flightdeck-family footer.site-footer a:hover {
  color: var(--ika-product-shell-link-hover);
}

body.ika-flightdeck-family .site-main {
  padding: 0 0 44px;
}

body.ika-flightdeck-subpage .site-main {
  max-width: 1180px;
  margin: 0 auto;
}


body.ika-flightdeck-logbook-route,
body.ika-flightdeck-logbook-route html {
  background:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.20), transparent 36%),
    linear-gradient(180deg, var(--ika-product-shell-bg) 0%, var(--ika-product-shell-bg-deep) 100%);
}

body.ika-flightdeck-logbook-route #page,
body.ika-flightdeck-logbook-route .site,
body.ika-flightdeck-logbook-route .site-content,
body.ika-flightdeck-logbook-route .content-area,
body.ika-flightdeck-logbook-route .site-main,
body.ika-flightdeck-logbook-route article,
body.ika-flightdeck-logbook-route .post,
body.ika-flightdeck-logbook-route .type-page {
  background: transparent !important;
}

body.ika-flightdeck-logbook-route .entry-header,
body.ika-flightdeck-logbook-route .entry-title,
body.ika-flightdeck-logbook-route .page-title,
body.ika-flightdeck-logbook-route .elementor-page-title,
body.ika-flightdeck-logbook-route .elementor-widget-theme-post-title,
body.ika-flightdeck-logbook-route .wp-block-post-title {
  display: none !important;
}

body.ika-flightdeck-logbook-route .site-main {
  padding-top: 24px;
  padding-bottom: 44px;
}


.ika-fd-subpage-shell {
  color: var(--ika-product-shell-text);
}

.ika-fd-subpage-shell__container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ika-fd-subpage-shell__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #8dbcf8;
  text-decoration: none;
  font-weight: 600;
}

.ika-fd-subpage-shell__back:hover {
  color: var(--ika-product-shell-link-hover);
}

.ika-fd-subpage-shell__hero {
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(111, 149, 205, 0.20);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 30, 52, 0.95), rgba(8, 24, 42, 0.92));
  box-shadow: var(--ika-product-shell-shadow);
}

.ika-fd-subpage-shell__eyebrow {
  margin-bottom: 8px;
  color: var(--ika-product-shell-link-hover);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ika-fd-subpage-shell__title {
  margin: 0 0 8px;
  color: #f4f8ff;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.ika-fd-subpage-shell__subtitle {
  margin: 0;
  max-width: 780px;
  color: #c7d7ea;
  font-size: 1rem;
  line-height: 1.65;
}

.ika-fd-subpage-shell__content {
  color: var(--ika-product-shell-text);
  padding: 24px;
  border: 1px solid rgba(111, 149, 205, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.94), rgba(5, 15, 28, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.ika-fd-subpage-shell__content > *:first-child {
  margin-top: 0;
}

.ika-fd-subpage-shell__content > *:last-child {
  margin-bottom: 0;
}

body.ika-flightdeck-subpage--logbook .ika-fd-subpage--logbook > .ika-fd-subpage__back,
body.ika-flightdeck-subpage--logbook .ika-fd-subpage--logbook > .ika-fd-subpage__head {
  display: none !important;
}

@media (max-width: 767px) {
  .ika-fd-subpage-shell__container {
    width: min(100% - 24px, 1180px);
  }

  .ika-fd-subpage-shell__hero {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .ika-fd-subpage-shell__content {
    padding: 18px;
    border-radius: 22px;
  }
}


/* Force the outer canvas transparent/dark for Flight Deck family routes even
   when Hello or other page wrappers inject a light background. */
html body.ika-flightdeck-family,
body.ika-flightdeck-family {
  background:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.20), transparent 36%),
    linear-gradient(180deg, var(--ika-product-shell-bg) 0%, var(--ika-product-shell-bg-deep) 100%) !important;
}

body.ika-flightdeck-family #page,
body.ika-flightdeck-family .site,
body.ika-flightdeck-family .site-content,
body.ika-flightdeck-family .content-area,
body.ika-flightdeck-family .site-main,
body.ika-flightdeck-family main,
body.ika-flightdeck-family article,
body.ika-flightdeck-family .post,
body.ika-flightdeck-family .type-page {
  background: transparent !important;
}

/* Logbook title visibility fix */
body.ika-flightdeck-logbook-route #ika-fd-logbook-title,
body.ika-flightdeck-logbook-route .ika-fd-subpage-shell__title,
body.ika-flightdeck-subpage--logbook #ika-fd-logbook-title,
body.ika-flightdeck-subpage--logbook .ika-fd-subpage-shell__title {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}


/* Badges subpage hero title visibility fix */
body.ika-flightdeck-badges-route #ika-fd-badges-title,
body.ika-flightdeck-badges-route .ika-fd-subpage-shell__title,
body.ika-flightdeck-subpage--badges #ika-fd-badges-title,
body.ika-flightdeck-subpage--badges .ika-fd-subpage-shell__title {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}


/* Certificates subpage hero title visibility fix */
body.ika-flightdeck-certificates-route #ika-fd-certificates-title,
body.ika-flightdeck-certificates-route .ika-fd-subpage-shell__title,
body.ika-flightdeck-subpage--certificates #ika-fd-certificates-title,
body.ika-flightdeck-subpage--certificates .ika-fd-subpage-shell__title {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}


/* Missions subpage hero title visibility fix */
body.ika-flightdeck-missions-route #ika-fd-missions-title,
body.ika-flightdeck-missions-route .ika-fd-subpage-shell__title,
body.ika-flightdeck-subpage--missions #ika-fd-missions-title,
body.ika-flightdeck-subpage--missions .ika-fd-subpage-shell__title {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}


/* Leaderboard subpage hero title visibility fix */
body.ika-flightdeck-leaderboard-route #ika-fd-leaderboard-title,
body.ika-flightdeck-leaderboard-route .ika-fd-subpage-shell__title,
body.ika-flightdeck-subpage--leaderboard #ika-fd-leaderboard-title,
body.ika-flightdeck-subpage--leaderboard .ika-fd-subpage-shell__title {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}

body.post-type-archive-quiz .ika-quiz-hub,
body.post-type-archive-quiz .ika-quiz-archive {
  margin-top: 0;
}

body.post-type-archive-quiz .ika-quiz-hero-wrap,
body.post-type-archive-quiz .ika-quiz-hero-inner {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

body.post-type-archive-quiz .ika-quiz-hero-wrap {
  overflow: hidden;
}

body.post-type-archive-quiz .site-main {
  padding-top: 0;
}

body.post-type-archive-quiz .ika-quiz-hub {
  padding-top: 0;
}

body.post-type-archive-quiz .ika-quiz-hero-wrap {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
}

body.post-type-archive-quiz .ika-quiz-hero-inner {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}


:root {
  --ika-product-content-max: var(--ika-nav-max-product, 1440px);
  --ika-product-content-rail: min(calc(100% - 32px), var(--ika-product-content-max));
}

/* Standardize product-page content rails to the shared header/footer inner width. */
body.single-quiz .site-main,
body.post-type-archive-quiz .site-main,
body.ika-flightdeck-family .site-main {
  padding-top: 18px;
}

body.single-quiz [data-quizops-single="1"] article {
  width: var(--ika-product-content-rail);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.single-quiz [data-quizops-single="1"] article::before {
  inset: 0;
}

body.single-quiz .ika-quiz-body {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

body.post-type-archive-quiz .ika-quiz-archive {
  width: 100%;
}

body.post-type-archive-quiz .ika-quiz-hero-inner,
body.post-type-archive-quiz .ika-quiz-hub,
body.post-type-archive-quiz .ika-quiz-hub__inner {
  width: var(--ika-product-content-rail);
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}

body.post-type-archive-quiz .ika-quiz-hub {
  padding-left: 0;
  padding-right: 0;
}

body.post-type-archive-quiz .ika-quiz-hub__inner {
  padding-left: 18px !important;
  padding-right: 18px !important;
  box-sizing: border-box;
}

body.post-type-archive-quiz .ika-quiz-hero-inner {
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  :root {
    --ika-product-content-rail: min(calc(100% - 24px), var(--ika-product-content-max));
  }

  body.single-quiz .ika-quiz-body,
  body.post-type-archive-quiz .ika-quiz-hub__inner,
  body.post-type-archive-quiz .ika-quiz-hero-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}



/* Darken quizzes archive canvas to match single quiz more closely */
html body.post-type-archive-quiz,
body.post-type-archive-quiz {
  background:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.18), transparent 34%),
    linear-gradient(180deg, #04111d 0%, #020a13 100%) !important;
}

body.post-type-archive-quiz #page,
body.post-type-archive-quiz .site,
body.post-type-archive-quiz .site-content,
body.post-type-archive-quiz .content-area,
body.post-type-archive-quiz .site-main,
body.post-type-archive-quiz main,
body.post-type-archive-quiz article,
body.post-type-archive-quiz .post,
body.post-type-archive-quiz .type-page {
  background: transparent !important;
  background-image: none !important;
}

/* Stronger quizzes archive-only canvas override */
html body.post-type-archive-quiz,
body.post-type-archive-quiz,
body.post-type-archive-quiz #page,
body.post-type-archive-quiz .site,
body.post-type-archive-quiz .site-main,
body.post-type-archive-quiz .ika-quiz-archive {
  background:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.16), transparent 32%),
    linear-gradient(180deg, #03101a 0%, #020811 100%) !important;
  background-image:
    radial-gradient(circle at top center, rgba(42, 96, 167, 0.16), transparent 32%),
    linear-gradient(180deg, #03101a 0%, #020811 100%) !important;
}

body.post-type-archive-quiz .content-area,
body.post-type-archive-quiz main,
body.post-type-archive-quiz article,
body.post-type-archive-quiz .post,
body.post-type-archive-quiz .type-page,
body.post-type-archive-quiz .ika-quiz-hub {
  background: transparent !important;
  background-image: none !important;
}


/* NAV-02 final follow-up: quizzes archive rail + inner inset, single quiz vertical inset */
:root {
  --ika-product-content-max-tight: 1120px;
}

body.post-type-archive-quiz .site-main {
  max-width: var(--ika-product-content-max-tight);
  margin-left: auto;
  margin-right: auto;
  padding-top: 18px;
  padding-bottom: 44px;
}

body.post-type-archive-quiz .ika-quiz-archive {
  width: min(calc(100% - 32px), var(--ika-product-content-max-tight)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 12px !important;
  box-sizing: border-box;
  border-radius: 24px !important;
  overflow: hidden;
}

body.post-type-archive-quiz .ika-quiz-hub,
body.post-type-archive-quiz .ika-quiz-hero-inner,
body.post-type-archive-quiz .ika-quiz-hub__inner {
  width: 100% !important;
  max-width: none !important;
}

body.post-type-archive-quiz .ika-quiz-hero-inner,
body.post-type-archive-quiz .ika-quiz-hub__inner {
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box;
}

body.single-quiz .ika-quiz-body {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

@media (max-width: 767px) {
  body.post-type-archive-quiz .ika-quiz-archive {
    width: min(calc(100% - 24px), var(--ika-product-content-max-tight)) !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  body.post-type-archive-quiz .ika-quiz-hero-inner,
  body.post-type-archive-quiz .ika-quiz-hub__inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.single-quiz .ika-quiz-body {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}
