:root {
  --spp-blue: #0280c1;
  --spp-blue-dark: #043668;
  --spp-navy: #07192d;
  --spp-ice: #4dd6fa;
  --spp-sky: #eef8ff;
  --spp-sky-card: #ddf4ff;
  --spp-surface: #ffffff;
  --spp-ink: #09203a;
  --spp-muted: #425a75;
  --spp-border: #c5e2f5;
  --spp-gold: #ffb800;
  --spp-gold-soft: #fff6cf;
  --spp-coral: #ff6b35;
  --spp-emerald: #3a9c0e;
  --spp-red: #d92d20;
  --spp-purple: #7c3aed;
  --spp-radius: 14px;
  --spp-radius-sm: 8px;
  --spp-shadow: 0 10px 28px rgba(4, 54, 104, 0.08);
  --spp-font-head: "Dosis", "M PLUS 1p", system-ui, -apple-system, sans-serif;
  --spp-font-body: "Rubik", "M PLUS 1p", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spp-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--spp-sky); color: var(--spp-ink); }
body {
  margin: 0;
  font-family: var(--spp-font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--spp-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 214, 250, 0.22), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(255, 184, 0, 0.14), transparent 32%),
    var(--spp-sky);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--spp-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--spp-blue-dark); }
:focus-visible { outline: 3px solid var(--spp-gold); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reading Progress Bar */
.spp-progress-track {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90;
  background: rgba(7, 25, 45, 0.12); pointer-events: none;
}
.spp-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--spp-ice), var(--spp-gold), var(--spp-coral));
  transition: width 80ms linear;
}

/* Header & Navigation */
.spp-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(7, 25, 45, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--spp-blue);
  color: #ffffff;
}
.spp-header-inner {
  max-width: var(--spp-max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.spp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #ffffff; text-decoration: none; font-family: var(--spp-font-head);
  font-weight: 800; font-size: 1.18rem; letter-spacing: 0.02em; white-space: nowrap;
}
.spp-brand img { border-radius: 9px; flex-shrink: 0; }
.spp-brand-badge {
  background: var(--spp-gold); color: var(--spp-navy);
  font-size: 0.7rem; padding: 2px 7px; border-radius: 999px; font-weight: 800;
}

.spp-nav { display: flex; align-items: center; gap: 4px; }
.spp-nav > a, .spp-nav-more-btn {
  color: #e4f4ff; text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 8px 11px; border-radius: 8px; border: 0; background: transparent;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit;
}
.spp-nav > a:hover, .spp-nav > a[aria-current="page"], .spp-nav-more-btn:hover {
  background: rgba(77, 214, 250, 0.18); color: #ffffff;
}
.spp-nav > a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--spp-gold);
}

.spp-dropdown { position: relative; }
.spp-dropdown-panel {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px;
  background: #0c223b; border: 1px solid rgba(77, 214, 250, 0.32);
  border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: none; z-index: 95;
}
.spp-dropdown.open .spp-dropdown-panel { display: grid; gap: 2px; }
.spp-dropdown-panel a {
  color: #e8f6ff; text-decoration: none; padding: 8px 12px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center;
}
.spp-dropdown-panel a:hover, .spp-dropdown-panel a[aria-current="page"] {
  background: rgba(2, 128, 193, 0.45); color: #ffffff;
}

.spp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.spp-icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(77, 214, 250, 0.35);
  background: rgba(255, 255, 255, 0.08); color: #ffffff; cursor: pointer;
  font-size: 0.88rem; font-weight: 600; font-family: inherit;
}
.spp-icon-btn:hover { background: rgba(77, 214, 250, 0.22); }
.spp-kbd {
  font-size: 0.72rem; padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,0.16); color: #cbeaff;
}
.spp-mobile-toggle { display: none; }

@media (max-width: 980px) {
  .spp-nav { display: none; }
  .spp-mobile-toggle { display: inline-flex; }
}
@media (max-width: 580px) {
  .spp-brand { font-size: 1.02rem; }
  .spp-brand-badge, .spp-kbd, #spp-search-open > span:nth-child(2) { display: none; }
  .spp-header-inner { padding: 9px 12px; gap: 8px; }
  .spp-icon-btn { padding: 6px 9px; font-size: 0.82rem; }
}

/* Mobile Drawer */
.spp-drawer {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(4, 15, 30, 0.7); backdrop-filter: blur(4px);
}
.spp-drawer.open { display: flex; justify-content: flex-end; }
.spp-drawer-panel {
  width: min(330px, 88vw); height: 100%; background: var(--spp-navy);
  color: #fff; padding: 20px; overflow-y: auto;
  border-left: 3px solid var(--spp-blue); display: flex; flex-direction: column; gap: 14px;
}
.spp-drawer-links { display: grid; gap: 6px; }
.spp-drawer-links a {
  color: #e9f6ff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600;
  background: rgba(255,255,255,0.05);
}
.spp-drawer-links a[aria-current="page"] { background: var(--spp-blue); color: #fff; }

/* Container & Layout */
.spp-wrap { max-width: var(--spp-max); margin: 0 auto; padding: 24px 20px 64px; }
.spp-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.88rem; color: var(--spp-muted); margin-bottom: 16px;
}
.spp-breadcrumbs a { text-decoration: none; font-weight: 600; }

/* Hero */
.spp-hero {
  background: linear-gradient(132deg, #062544 0%, #0280c1 62%, #0795d9 100%);
  color: #ffffff; border-radius: 20px; padding: 30px;
  position: relative; overflow: hidden; box-shadow: var(--spp-shadow);
  border: 2px solid rgba(77, 214, 250, 0.45);
  margin-bottom: 24px;
}
.spp-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 24px 24px;
}
.spp-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
}
@media (max-width: 860px) { .spp-hero-grid { grid-template-columns: 1fr; } .spp-hero { padding: 22px; } }
.spp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 184, 0, 0.2); border: 1px solid rgba(255, 184, 0, 0.6);
  color: #ffe89e; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 12px;
}
.spp-hero h1 {
  font-family: var(--spp-font-head); font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.15; margin: 0 0 12px; font-weight: 800; color: #ffffff;
}
.spp-hero-lead { font-size: 1.05rem; color: #e6f6ff; margin: 0 0 18px; }
.spp-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.spp-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-family: inherit; font-size: 0.95rem;
}
.spp-btn-gold { background: var(--spp-gold); color: var(--spp-navy); }
.spp-btn-gold:hover { background: #ffc933; color: var(--spp-navy); }
.spp-btn-ghost { background: rgba(255,255,255,0.12); color: #ffffff; border-color: rgba(255,255,255,0.38); }
.spp-btn-ghost:hover { background: rgba(255,255,255,0.22); color: #ffffff; }
.spp-btn-primary { background: var(--spp-blue); color: #ffffff; }
.spp-btn-primary:hover { background: var(--spp-blue-dark); color: #ffffff; }

.spp-hero-media {
  background: #07192d; border-radius: 14px; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.spp-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Stats Strip */
.spp-stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin-bottom: 24px;
}
.spp-stat-card {
  background: var(--spp-surface); border: 1.5px solid var(--spp-border);
  border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 12px rgba(4, 54, 104, 0.04);
}
.spp-stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--spp-muted); font-weight: 700; }
.spp-stat-val { font-family: var(--spp-font-head); font-size: 1.28rem; font-weight: 800; color: var(--spp-blue-dark); margin-top: 2px; }

/* Article Layout with Sticky TOC */
.spp-article-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start;
}
@media (max-width: 980px) { .spp-article-grid { grid-template-columns: 1fr; } }
.spp-main-card {
  background: var(--spp-surface); border: 1.5px solid var(--spp-border);
  border-radius: 18px; padding: 28px 30px; box-shadow: var(--spp-shadow);
}
@media (max-width: 640px) { .spp-main-card { padding: 20px 18px; } }
.spp-main-card h2 {
  font-family: var(--spp-font-head); font-size: 1.55rem; color: var(--spp-blue-dark);
  margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--spp-sky-card);
  scroll-margin-top: 84px;
}
.spp-main-card h2:first-child { margin-top: 0; }
.spp-main-card h3 {
  font-family: var(--spp-font-head); font-size: 1.18rem; color: var(--spp-blue);
  margin: 20px 0 8px; scroll-margin-top: 84px;
}
.spp-main-card p { margin: 0 0 14px; }
.spp-main-card ul, .spp-main-card ol { margin: 0 0 16px; padding-left: 22px; }
.spp-main-card li { margin-bottom: 6px; }

.spp-sidebar { position: sticky; top: 82px; display: grid; gap: 16px; }
.spp-side-box {
  background: var(--spp-surface); border: 1.5px solid var(--spp-border);
  border-radius: 14px; padding: 18px; box-shadow: var(--spp-shadow);
}
.spp-side-title {
  font-family: var(--spp-font-head); font-size: 1.05rem; font-weight: 800;
  color: var(--spp-blue-dark); margin: 0 0 10px;
}
.spp-toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.spp-toc-list a {
  text-decoration: none; font-size: 0.9rem; color: var(--spp-muted);
  display: block; padding: 4px 8px; border-radius: 6px; border-left: 3px solid transparent;
}
.spp-toc-list a:hover, .spp-toc-list a.active {
  color: var(--spp-blue-dark); background: var(--spp-sky); border-left-color: var(--spp-gold); font-weight: 600;
}

/* Callouts & Quick Cards */
.spp-callout {
  background: var(--spp-sky); border-left: 4px solid var(--spp-blue);
  border-radius: 10px; padding: 14px 16px; margin: 16px 0;
}
.spp-callout.warn { background: var(--spp-gold-soft); border-left-color: var(--spp-gold); }
.spp-callout.tip { background: #ecfdf3; border-left-color: var(--spp-emerald); }

.spp-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0 22px;
}
.spp-card {
  background: var(--spp-sky); border: 1.5px solid var(--spp-border);
  border-radius: 12px; padding: 16px; transition: transform 120ms ease, border-color 120ms ease;
}
.spp-card:hover { transform: translateY(-2px); border-color: var(--spp-blue); }
.spp-card h3 { margin-top: 0; font-size: 1.08rem; color: var(--spp-blue-dark); }

/* Badges */
.spp-badge {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
}
.spp-badge.flight { background: #fef3c7; color: #92400e; }
.spp-badge.glide { background: #fee2e2; color: #991b1b; }
.spp-badge.special { background: #dbeafe; color: #1e40af; }
.spp-badge.large { background: #ede9fe; color: #5b21b6; }
.spp-badge.standard { background: #e0f2fe; color: #075985; }
.spp-badge.rare { background: #ffedd5; color: #9a3412; }
.spp-badge.world { background: #dcfce7; color: #166534; }

/* Tables */
.spp-table-wrap { overflow-x: auto; margin: 14px 0 22px; border-radius: 12px; border: 1.5px solid var(--spp-border); }
.spp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.94rem; }
.spp-table th, .spp-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #e2f0fa; vertical-align: top; }
.spp-table th { background: var(--spp-navy); color: #fff; font-family: var(--spp-font-head); font-weight: 700; }
.spp-table tr:nth-child(even) td { background: #f8fcff; }

/* Interactive Controls & Trackers */
.spp-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.spp-pill-btn {
  padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--spp-border);
  background: #fff; color: var(--spp-ink); font-weight: 700; font-size: 0.86rem;
  cursor: pointer; font-family: inherit;
}
.spp-pill-btn.active, .spp-pill-btn:hover {
  background: var(--spp-blue); color: #fff; border-color: var(--spp-blue);
}

.spp-progress-box {
  background: linear-gradient(120deg, #07192d, #063868); color: #fff;
  border-radius: 14px; padding: 18px 20px; margin: 16px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.spp-meter {
  flex: 1 1 220px; height: 12px; background: rgba(255,255,255,0.16);
  border-radius: 999px; overflow: hidden;
}
.spp-meter > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--spp-ice), var(--spp-gold));
  transition: width 180ms ease;
}
.spp-check-row.done { background: #eefdf2 !important; }
.spp-check-box { width: 19px; height: 19px; accent-color: var(--spp-emerald); cursor: pointer; }

/* Inline Click-to-Play YouTube Video Player Cards */
.spp-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin: 16px 0 24px; }
.spp-video-card {
  background: #07192d; color: #f0f9ff; border-radius: 14px; overflow: hidden;
  border: 2px solid #164875; display: flex; flex-direction: column;
}
.spp-video-stage {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.spp-video-stage img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.spp-video-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.spp-play-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(4, 24, 48, 0.35);
  color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--spp-font-head); font-weight: 800; font-size: 1rem;
}
.spp-play-circle {
  width: 62px; height: 62px; border-radius: 50%; background: var(--spp-gold); color: var(--spp-navy);
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 140ms ease;
}
.spp-play-btn:hover .spp-play-circle { transform: scale(1.08); background: #ffd24d; }
.spp-video-body { padding: 14px 16px; display: grid; gap: 6px; flex: 1; }
.spp-video-meta { font-size: 0.8rem; color: var(--spp-ice); font-weight: 700; display: flex; justify-content: space-between; }
.spp-video-title { font-family: var(--spp-font-head); font-size: 1.06rem; font-weight: 800; margin: 0; color: #fff; }
.spp-video-desc { font-size: 0.88rem; color: #cbe4f8; margin: 0; line-height: 1.5; }
.spp-video-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700;
  color: var(--spp-gold); text-decoration: none; margin-top: 4px;
}
.spp-video-link:hover { color: #fff; text-decoration: underline; }

/* Official Screenshots Figure */
.spp-figure { margin: 18px 0; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--spp-border); background: #fff; }
.spp-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spp-figure figcaption { padding: 10px 14px; font-size: 0.86rem; color: var(--spp-muted); background: var(--spp-sky); }

/* FAQ Accordion */
.spp-faq-list { display: grid; gap: 10px; margin: 14px 0 22px; }
.spp-faq-item {
  border: 1.5px solid var(--spp-border); border-radius: 12px; background: var(--spp-sky); overflow: hidden;
}
.spp-faq-item summary {
  padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--spp-blue-dark);
}
.spp-faq-item summary::-webkit-details-marker { display: none; }
.spp-faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--spp-blue); font-weight: 800; }
.spp-faq-item[open] summary::after { content: "−"; }
.spp-faq-ans { padding: 0 16px 14px; color: var(--spp-ink); }

/* Search Modal */
.spp-modal {
  position: fixed; inset: 0; z-index: 150; display: none; place-items: start center;
  padding: 64px 16px 24px; background: rgba(4, 15, 30, 0.72); backdrop-filter: blur(5px);
}
.spp-modal.open { display: grid; }
.spp-modal-box {
  width: min(640px, 100%); background: #fff; border-radius: 16px;
  border: 2px solid var(--spp-blue); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); overflow: hidden;
}
.spp-modal-head {
  padding: 12px 16px; border-bottom: 1px solid var(--spp-border);
  display: flex; gap: 10px; align-items: center;
}
.spp-modal-input {
  flex: 1; border: 0; font-size: 1rem; font-family: inherit; padding: 6px 4px; outline: none; color: var(--spp-ink);
}
.spp-search-results { max-height: 55vh; overflow-y: auto; padding: 8px; display: grid; gap: 4px; }
.spp-search-item {
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--spp-ink); display: block;
}
.spp-search-item:hover { background: var(--spp-sky); }
.spp-search-item strong { display: block; color: var(--spp-blue-dark); }
.spp-search-item span { font-size: 0.85rem; color: var(--spp-muted); }

/* Setup Interactive Checker */
.spp-setup-box {
  background: var(--spp-sky); border: 2px solid var(--spp-blue); border-radius: 14px; padding: 18px; margin: 16px 0 22px;
}
.spp-setup-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.spp-setup-row label { display: grid; gap: 4px; font-weight: 700; font-size: 0.88rem; flex: 1 1 200px; }
.spp-setup-row select {
  padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--spp-border); font-family: inherit; font-size: 0.94rem; background: #fff;
}

/* Adsterra Containers (Hidden/collapsed unless active script populates) */
.spp-ad-slot {
  display: none; margin: 18px auto; text-align: center; min-height: 0; overflow: hidden;
}
.spp-ad-slot.is-active { display: block; }

/* Footer */
.spp-footer {
  background: var(--spp-navy); color: #cde5f7; border-top: 4px solid var(--spp-blue);
  padding: 36px 20px 28px;
}
.spp-footer-inner { max-width: var(--spp-max); margin: 0 auto; }
.spp-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 820px) { .spp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .spp-footer-grid { grid-template-columns: 1fr; } }
.spp-footer h4 { color: #fff; font-family: var(--spp-font-head); margin: 0 0 10px; font-size: 1.02rem; }
.spp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.spp-footer a { color: #9dd4fb; text-decoration: none; }
.spp-footer a:hover { color: var(--spp-gold); text-decoration: underline; }
.spp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px;
  font-size: 0.84rem; color: #90b3cf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
