/**
 * Global styles: reset, CSS custom properties
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --deep: #07121e;
  --deep2: #0a1a2e;
  --deep3: #0d2038;
  --teal: #1a9bb5;
  --teal2: #7dd3e8;
  --teal3: rgba(26, 155, 181, 0.12);
  --teal-rule: rgba(26, 155, 181, 0.3);
  --ink: #0c1e2e;
  --ink-light: #2a3e45;
  --ink-faint: #4a6a75;
  --paper: #f4f0eb;
  --dk-text: #e8f0f8;
  --rule-dark: rgba(255, 255, 255, 0.07);
  --dk-text2: rgba(232, 240, 248, 0.62);
  --dk-text3: rgba(232, 240, 248, 0.35);
  --dk: #07121e;
  --rule-paper: rgba(0, 0, 0, 0.08);

  /* Category accents */
  --amber: #c9932a;
  --amber2: #e8b86a;
  --phosphor: #2dd4a0;
  --phosphor2: #7eecd0;
  --azure: #2a7fc4;
  --azure2: #a8d4f0;

  /* Platform circular chevron buttons */
  --circle-arrow-size: 28px;
  --circle-arrow-icon: 9px;
  --circle-arrow-teal: #0e6b8c;
  --circle-arrow-teal-hover: #0a5a75;
  --circle-arrow-bg: rgba(14, 107, 140, 0.08);
  --circle-arrow-border: rgba(14, 107, 140, 0.28);
  --circle-arrow-bg-open: rgba(14, 107, 140, 0.14);
  --circle-arrow-border-open: rgba(14, 107, 140, 0.38);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Crimson Pro', serif;
  background: var(--deep);
  color: #e8f0f8;
  overflow-x: hidden;
}


.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 2000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}


a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}


.site-footer {
  background: var(--deep2);
  border-top: 1px solid var(--rule-dark);
  padding: 2.5rem 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .footer-brand {
  font-family: 'Crimson Pro', serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(232, 240, 248, 0.6);
}
.site-footer .footer-brand span {
  color: var(--teal);
  font-style: italic;
}
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(232, 240, 248, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .footer-links a:hover {
  color: rgba(232, 240, 248, 0.75);
}
.footer-dan-link {
  color: var(--teal) !important;
  font-weight: 600;
}
.site-footer .footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(232, 240, 248, 0.25);
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1.5rem;
  }
}


.guide-nav-wrap {
  position: sticky;
  top: var(--topbar-height, 68px);
  z-index: 200;
  background: rgba(7, 18, 30, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guide-nav-wrap::-webkit-scrollbar {
  display: none;
}
.guide-nav {
  display: flex;
  min-width: max-content;
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1.25rem;
}
.guide-nav::-webkit-scrollbar {
  display: none;
}
.gnav {
  position: relative;
  padding: 0.85rem 0.9rem 0.7rem;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
  user-select: none;
  overflow: hidden;
}
.gnav:hover {
  color: rgba(255, 255, 255, 0.82);
}
.gnav-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  transition: width 0.12s linear;
  border-radius: 2px;
}
.gnav.done {
  color: rgba(255, 255, 255, 0.65);
}
.gnav.done .gnav-fill {
  width: 100%;
  opacity: 0.55;
}
.gnav.active {
  color: #fff;
  font-weight: 500;
}
.gnav.active .gnav-fill {
  opacity: 1;
}
.gnav-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: 6px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.3s;
  vertical-align: middle;
}
.gnav-tick svg {
  width: 8px;
  height: 8px;
}
.gnav.done .gnav-tick {
  opacity: 1;
  transform: scale(1);
}
.sec[id] {
  scroll-margin-top: calc(var(--topbar-height, 68px) + 52px);
}

/* Platform circular chevron controls — deep-dive toggles, card arrows, etc. */
.dd-arrow {
  width: var(--circle-arrow-size);
  height: var(--circle-arrow-size);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--circle-arrow-bg);
  border: 1px solid var(--circle-arrow-border);
  color: var(--circle-arrow-teal);
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.sec-dark .dd-arrow {
  background: rgba(26, 155, 181, 0.1);
  border-color: rgba(26, 155, 181, 0.28);
  color: var(--teal);
}
.dd-arrow svg {
  width: var(--circle-arrow-icon);
  height: var(--circle-arrow-icon);
  display: block;
  transition: transform 0.3s ease;
}
.dd-arrow svg path {
  stroke: currentColor;
}
.deep-dive.open .dd-arrow {
  background: var(--circle-arrow-bg-open);
  border-color: var(--circle-arrow-border-open);
}
.sec-dark .deep-dive.open .dd-arrow {
  background: rgba(26, 155, 181, 0.16);
  border-color: rgba(26, 155, 181, 0.38);
}
.deep-dive.open .dd-arrow svg {
  transform: rotate(180deg);
}
.ac-arrow,
.ex-arrow,
.card-arrow {
  color: var(--circle-arrow-teal);
  border-color: var(--circle-arrow-border) !important;
  background: var(--circle-arrow-bg) !important;
}
.ac-arrow {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.ex-arrow {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.card-arrow svg {
  width: 11px;
  height: 11px;
  color: var(--circle-arrow-teal) !important;
}
.article-card:hover .ac-arrow,
.ex-card:hover .ex-arrow,
a:hover .card-arrow {
  background: var(--circle-arrow-bg-open) !important;
  border-color: var(--circle-arrow-border-open) !important;
  color: var(--circle-arrow-teal-hover) !important;
}

/* Dive Gear format cross-links — outward arrows in two-column layout */
.fnav-card--lead .fnav-arrow {
  order: -1;
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0;
}

.fnav-card--trail .fnav-arrow {
  margin-left: auto;
}

@media (max-width: 600px) {
  .guide-nav-wrap {
    margin: 0 -1rem;
  }
}

.next-article {
  background: #0b1a2a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 1.25rem;
}
.next-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.next-article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.next-article-link:hover .next-cta {
  gap: 0.9rem;
}
.next-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232, 240, 248, 0.3);
  margin-bottom: 0.5rem;
}
.next-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.15;
}
.next-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}
.next-cta:hover {
  gap: 0.9rem;
}
.next-cta svg {
  width: 13px;
  height: 13px;
}
.next-article--gold .next-cta {
  color: #f0d27a;
}
.next-article--azure .next-cta {
  color: #a8d4f0;
}
.next-article--emerald .next-cta {
  color: #5fd4b0;
}
@media (min-width: 640px) {
  .next-article {
    padding: 3.5rem 2rem;
  }
}
@media (min-width: 900px) {
  .next-article {
    padding: 3.5rem 2.5rem;
  }
}

/* Series article navigation — previous / next */
.wave-d2l,
.wave-l2d {
  display: block;
  width: 100%;
  line-height: 0;
}
.article-nav {
  background: #07121e;
  padding: 3rem 1.25rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.article-nav--series {
  padding: 3.5rem 1.25rem 5rem;
}
.article-nav--series .article-nav-row {
  gap: 2rem;
}
.article-nav--series .article-nav-label {
  margin-bottom: 0.35rem;
}
.article-nav-inner {
  max-width: 780px;
  margin: 0 auto;
}
a.article-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  background: #0a1a2e;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}
a.article-nav-section:hover {
  background: #0d2038;
  border-color: color-mix(in srgb, var(--series-accent, #7dd3e8) 35%, transparent);
}
a.article-nav-section:hover .article-nav-cta {
  gap: 0.8rem;
}
.article-nav-section--next {
  text-align: right;
  align-items: flex-end;
}
.article-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  transition: gap 0.2s;
  color: var(--series-accent, #7dd3e8);
}
.article-nav-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232, 240, 248, 0.55);
  margin-bottom: 0.75rem;
}
.article-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #0a1a2e;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}
.article-nav-card:hover {
  background: #0d2038;
}
.article-nav-card:hover .article-nav-arrow {
  opacity: 1;
}
.article-nav-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.article-nav-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.article-nav-tag {
  font-family: 'Crimson Pro', serif;
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(232, 240, 248, 0.55);
  margin-top: 0.3rem;
  line-height: 1.45;
}
.article-nav-arrow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.article-nav--gold {
  --series-accent: #f0d27a;
  --series-accent-dim: rgba(201, 162, 39, 0.85);
}
.article-nav--azure {
  --series-accent: #a8d4f0;
  --series-accent-dim: rgba(42, 127, 196, 0.85);
}
.article-nav--emerald {
  --series-accent: #7eecc8;
  --series-accent-dim: rgba(14, 140, 107, 0.85);
}
.article-nav--teal {
  --series-accent: #7dd3e8;
  --series-accent-dim: rgba(26, 155, 181, 0.9);
}
.article-nav--amber {
  --series-accent: #e8b86a;
  --series-accent-dim: rgba(201, 147, 42, 0.9);
}
.article-nav--phosphor {
  --series-accent: #7eecd0;
  --series-accent-dim: rgba(45, 212, 160, 0.9);
}
.article-nav--crimson {
  --series-accent: #e8857d;
  --series-accent-dim: rgba(192, 57, 43, 0.85);
}
.article-nav--series .article-nav-num {
  color: var(--series-accent-dim);
}
.article-nav--series .article-nav-pillar {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--series-accent-dim);
  margin-bottom: 0.35rem;
}
.article-nav-section--next .article-nav-pillar {
  align-self: flex-end;
}
.article-nav-section--next .article-nav-num {
  align-self: flex-end;
}
.article-nav--series a.article-nav-section:hover {
  border-color: color-mix(in srgb, var(--series-accent) 35%, transparent);
}
.article-nav--series .article-nav-cta {
  color: var(--series-accent);
}
.deep-brief-article .article-nav--series {
  margin-bottom: 0;
  border-top: none;
}
.coverage-gap-nav.article-nav--series {
  margin-bottom: 0;
  border-top: none;
}
.article-nav--series .back-to-gaps {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--series-accent, #e8857d);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}
.article-nav--series .back-to-gaps:hover {
  color: #fff;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .article-nav {
    padding: 3.5rem 2rem 4rem;
  }
  .article-nav--series {
    padding: 4rem 2rem 5.5rem;
  }
}
@media (min-width: 900px) {
  .article-nav {
    padding: 3.5rem 2.5rem 4.5rem;
  }
  .article-nav--series {
    padding: 4.5rem 2.5rem 6rem;
  }
}

/* Coverage gap article nav — next + previous in one block */
.article-nav-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.article-nav-section + .article-nav-section {
  margin-top: 0;
}
.article-nav-card--prev .article-nav-arrow {
  transform: rotate(180deg);
}
.article-nav-card-body {
  min-width: 0;
  flex: 1;
}
.article-nav-back {
  margin-top: 3rem;
  text-align: center;
}
.article-nav--dual:has(.article-nav-back) {
  margin-bottom: 1.5rem;
}
.article-nav--dual .article-nav-back {
  margin-top: 3.5rem;
}

/* Dual row: previous left, next right */
@media (min-width: 640px) {
  .article-nav--dual .article-nav-inner {
    max-width: 820px;
  }
  .article-nav-row--dual {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
  .article-nav--dual .article-nav-label {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
  }
  .article-nav--dual .article-nav-title {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.2;
  }
  .article-nav--dual .article-nav-tag {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 0.25rem;
  }
  .article-nav--dual .article-nav-cta {
    margin-top: 0.5rem;
  }
}
@media (min-width: 900px) {
  .article-nav-row--dual {
    gap: 3rem;
  }
}

/* Gear Science & Gear Guide — edition-meta pills (article footers) */
.sec-light .edition-meta .em-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.sec-light .edition-meta .em-gear {
  background: rgba(140, 100, 0, 0.14);
  color: #7a5800;
  border-color: rgba(140, 100, 0, 0.38);
}
.sec-light .edition-meta .em-science,
.sec-light .edition-meta .em-cat {
  background: rgba(14, 107, 140, 0.12);
  color: #0e6b8c;
  border-color: rgba(14, 107, 140, 0.32);
}
.sec-light .edition-meta .em-guide {
  background: rgba(10, 107, 82, 0.12);
  color: #0a6b52;
  border-color: rgba(14, 140, 107, 0.34);
}
.sec-light .edition-meta .em-date {
  background: rgba(74, 58, 140, 0.1);
  color: #5b4680;
  border-color: rgba(100, 80, 180, 0.28);
}
.sec-dark .edition-meta .em-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.sec-dark .edition-meta .em-gear {
  background: rgba(201, 162, 39, 0.2);
  color: #f5dc7a;
  border-color: rgba(240, 210, 122, 0.42);
}
.sec-dark .edition-meta .em-science {
  background: rgba(42, 127, 196, 0.2);
  color: #c5e4f8;
  border-color: rgba(168, 212, 240, 0.38);
}
.sec-dark .edition-meta .em-guide {
  background: rgba(14, 140, 107, 0.22);
  color: #7eecc8;
  border-color: rgba(95, 212, 176, 0.45);
}
.sec-dark .edition-meta .em-cat {
  background: rgba(201, 162, 39, 0.18);
  color: #f0d27a;
  border-color: rgba(240, 210, 122, 0.35);
}
.sec-dark .edition-meta .em-date {
  background: rgba(42, 127, 196, 0.18);
  color: #c5e4f8;
  border-color: rgba(168, 212, 240, 0.35);
}
