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

:root {
  --ink: #0b1630;
  --navy: #0b1f42;
  --muted: #526173;
  --blue: #1a75bb;
  --line: rgba(11, 31, 66, 0.14);
  --soft: #f5f8fb;
  --panel: #fff;
  --shadow: 0 18px 48px rgba(11, 31, 66, 0.08);
  --shadow-strong: 0 24px 62px rgba(11, 31, 66, 0.14);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
  font-weight: 900;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
a {
  overflow-wrap: anywhere;
}

.container {
  width: min(100% - 44px, 1180px);
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 clamp(14px, 3vw, 34px);
  background: transparent;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1360px);
  min-height: 78px;
  margin: 0 auto;
  border: 1px solid rgba(12, 30, 58, 0.18);
  border-radius: 999px;
  background: rgba(240, 248, 253, 0.96);
  box-shadow: 0 22px 60px rgba(11, 31, 66, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 0 clamp(14px, 2.8vw, 34px);
  gap: 24px;
  pointer-events: auto;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.nav-logo img {
  width: auto;
  height: 62px;
  filter: drop-shadow(0 8px 14px rgba(11, 31, 66, 0.16));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(12, 30, 58, 0.08);
  border-radius: 999px;
  background: rgba(229, 244, 253, 0.92);
  color: var(--navy);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  border-color: rgba(26, 117, 187, 0.24);
  background: rgba(207, 232, 247, 0.98);
  box-shadow: 0 12px 28px rgba(26, 117, 187, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.guide-hero {
  background: #071327;
  color: #fff;
  padding: clamp(132px, 10vw, 164px) 0 clamp(30px, 5vw, 58px);
}

.guide-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: clamp(22px, 4vw, 48px);
}

.eyebrow {
  color: #8bd8f4;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

.dek {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.35;
}

.byline {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hero-media img {
  width: 100%;
  height: auto;
}

figcaption {
  padding: 10px 16px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-media figcaption {
  color: rgba(255, 255, 255, 0.72);
}

.guide-shell {
  padding: 34px 0 74px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 26px;
  align-items: start;
}

.guide-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.guide-copy {
  padding: clamp(24px, 4vw, 46px);
}

.guide-copy > p {
  margin: 0 0 18px;
  font-size: 17px;
}

.guide-copy h2 {
  margin: 36px 0 12px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  scroll-margin-top: 130px;
}

.guide-copy h3 {
  margin: 20px 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
}

.guide-copy ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.guide-copy li {
  margin: 8px 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfe;
  padding: 15px;
}

.fact strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.inline-image,
.photo-pair figure,
.photo-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fafc;
}

.inline-image {
  margin: 26px 0;
}

.photo-pair figure,
.photo-grid figure {
  margin: 0;
}

.inline-image img,
.photo-pair img,
.photo-grid img {
  width: 100%;
  height: auto;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.media-embed {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(11, 31, 66, 0.06);
}

.media-embed h3 {
  margin-top: 0;
  scroll-margin-top: 130px;
}

.media-embed iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 14px auto 0;
  border: 0;
  border-radius: 14px;
  background: #071327;
}

.instagram-media {
  margin-inline: auto !important;
}

.twitter-tweet {
  margin-inline: auto !important;
}

.tweet-fallback {
  max-width: 540px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafc;
  padding: 18px;
  color: var(--navy);
  font-weight: 850;
}

.tweet-fallback p {
  margin: 0 0 10px;
}

.tweet-fallback p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.source-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: var(--navy);
  text-decoration: none;
}

.image-credit-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.guide-sidebar {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 16px;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.side-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.08;
}

.side-panel a {
  display: block;
  padding: 8px 0;
  color: var(--navy);
  text-decoration: none;
}

.side-panel a:hover,
.side-panel a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.quick-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.related-card {
  display: grid;
  grid-template-rows: 120px 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 31, 66, 0.06);
}

.related-card:hover,
.related-card:focus-visible {
  border-color: rgba(26, 117, 187, 0.36);
  box-shadow: 0 16px 34px rgba(11, 31, 66, 0.12);
  transform: translateY(-1px);
}

.related-thumb {
  display: block;
  min-height: 120px;
  background: var(--related-thumb) var(--related-position, center) / cover no-repeat;
}

.related-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
}

.related-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}

.related-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #071327;
  color: rgba(255, 255, 255, 0.68);
  padding: 30px 0;
  font-size: 13px;
  font-weight: 800;
}

footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

@media (max-width: 980px) {
  .guide-hero-inner,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .fact-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .container {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .site-nav {
    position: absolute;
    top: 12px;
    padding: 0 10px;
  }

  .guide-hero {
    padding-top: 108px;
  }

  .guide-hero-inner,
  .guide-hero-inner > div,
  .hero-media,
  .guide-main,
  .guide-sidebar,
  .side-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .guide-hero-inner > div {
    overflow: hidden;
  }

  h1 {
    max-width: 100%;
    width: 100%;
    font-size: clamp(28px, 8.2vw, 32px);
    line-height: 1.12;
    text-wrap: auto;
  }

  .guide-hero h1,
  .guide-hero .dek,
  .guide-hero .byline {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .dek {
    max-width: 100%;
    width: 100%;
    font-size: 16px;
    line-height: 1.42;
  }

  .byline {
    font-size: 12px;
    text-transform: none;
    line-height: 1.45;
  }

  .guide-copy {
    padding: 22px;
  }

  .guide-copy > p {
    font-size: 16px;
  }

  .fact-grid,
  .photo-grid,
  .photo-pair {
    grid-template-columns: 1fr;
  }
}
