:root {
  color-scheme: light;
  --bg: #fbfcfe;
  --paper: #ffffff;
  --ink: #172433;
  --muted: #607080;
  --line: #dce5ee;
  --line-strong: #bfd0df;
  --teal: #087f8c;
  --blue: #1f6feb;
  --green: #2f8f63;
  --amber: #b97816;
  --soft-blue: #e9f3ff;
  --soft-green: #edf8f2;
  --soft-amber: #fff4df;
  --shadow: 0 18px 48px rgba(23, 36, 51, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.95), rgba(31, 111, 235, 0.92)),
    radial-gradient(circle at 75% 25%, #fff 0 13%, transparent 14%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.nav a:not(.brand) {
  color: #394b5c;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
}

.nav a:not(.brand):hover {
  color: var(--teal);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.hero {
  background:
    linear-gradient(135deg, rgba(233, 243, 255, 0.88), rgba(255, 255, 255, 0.98) 46%, rgba(237, 248, 242, 0.76)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: 52px;
  max-width: 660px;
}

h2 {
  font-size: 34px;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: #405365;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, #087f8c, #1f6feb);
  border-color: transparent;
  color: #fff;
}

.button:hover {
  border-color: var(--teal);
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 84px;
}

.section {
  margin-top: 54px;
}

.section:first-child {
  margin-top: 0;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  margin: -4px 0 24px;
}

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

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

.card,
.article-card,
.note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 36, 51, 0.04);
}

.card {
  padding: 24px;
}

.card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  pointer-events: none;
}

.card p,
.article-card p,
.note-box p {
  color: var(--muted);
  margin: 0;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}

.note-box {
  padding: 22px;
}

.note-box h3 {
  font-size: 20px;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.article-card-body {
  padding: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--soft-blue);
  color: #24527c;
  font-size: 13px;
  font-weight: 700;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-band img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 360px;
  object-fit: cover;
  pointer-events: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 36, 51, 0.04);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef5fb;
  border-bottom: 1px solid var(--line);
}

.video-card-body {
  padding: 22px;
}

.article-meta,
.card-meta {
  color: var(--muted);
  font-size: 14px;
}

.video-card p {
  color: var(--muted);
  margin: 0;
}

.video-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.video-card h3 a:hover {
  color: var(--teal);
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

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

.topic-link {
  min-height: 154px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.topic-link:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.topic-link > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.topic-link > strong {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.2;
}

.topic-link > small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.collection-section {
  padding: 46px 0 18px;
  border-top: 1px solid var(--line);
}

.collection-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.collection-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.collection-header h2 {
  margin-bottom: 12px;
}

.collection-header p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
}

.article-meta time,
.article-meta span {
  display: inline-flex;
  align-items: center;
}

.article-video {
  margin: 34px 0 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 36, 51, 0.05);
}

.article-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef5fb;
  border-bottom: 1px solid var(--line);
}

.article-video-copy {
  padding: 20px 22px;
}

.article-video-copy h2 {
  margin-top: 0;
  font-size: 25px;
}

.article-video-copy p:last-child {
  margin-bottom: 0;
}

.video-library {
  display: grid;
  gap: 24px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 36, 51, 0.05);
}

.video-feature video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef5fb;
}

.video-feature-copy {
  padding: 28px;
  border-left: 1px solid var(--line);
}

.video-feature-copy h2 {
  margin: 12px 0;
  font-size: 28px;
}

.video-feature-copy p {
  color: var(--muted);
}

.related-content {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
}

.related-content h2 {
  margin-top: 0;
  font-size: 26px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-links a {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.related-links a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.error-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.error-copy {
  max-width: 680px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.error-copy h1 {
  margin: 10px 0 18px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(233, 243, 255, 0.78), rgba(255, 255, 255, 0.96) 42%, rgba(237, 248, 242, 0.70)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 78px 24px 58px;
}

.page-hero h1 {
  font-size: 48px;
}

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 24px 86px;
}

.article p,
.article li {
  color: #344757;
}

.article p {
  margin: 18px 0;
}

.article h2 {
  margin-top: 44px;
}

.article figure {
  margin: 34px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 36, 51, 0.05);
}

.article figure img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: none;
  pointer-events: none;
}

.article figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.toc {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--soft-blue);
  border: 1px solid #c8ddf2;
  border-radius: 8px;
}

.toc a {
  color: #23445f;
  text-decoration: none;
}

.source-list {
  padding-left: 20px;
}

.source-list li {
  margin: 10px 0;
}

.quote-note {
  padding: 22px;
  background: var(--soft-green);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #c8ddf2;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--ink);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-list a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c5e2d2;
  border-radius: 8px;
  background: var(--soft-green);
  color: #226b4a;
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  body {
    font-size: 16px;
  }

  .nav {
    overflow-x: auto;
  }

  h1 {
    font-size: 44px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 50px;
  }

  .grid,
  .grid.two,
  .feature-band,
  .video-grid,
  .topic-grid,
  .note-grid,
  .video-feature,
  .related-links {
    grid-template-columns: 1fr;
  }

  .video-feature-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 12px 16px;
    gap: 11px;
    overflow: visible;
  }

  .brand span:last-child {
    display: none;
  }

  .brand {
    gap: 0;
  }

  .nav a:not(.brand) {
    font-size: 14px;
  }

  h1,
  .page-hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-shell {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .hero-shell,
  .main,
  .article,
  .page-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .feature-band {
    padding: 22px;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  .article-video-copy,
  .video-feature-copy,
  .related-content {
    padding: 18px;
  }

  .video-feature video {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}
