:root {
  --vp-c-brand-1: #0f9f8f;
  --vp-c-brand-2: #0b7f73;
  --vp-c-brand-3: #075e55;
  --vp-c-brand-soft: rgba(15, 159, 143, 0.14);
  --hub-c-accent: #d64f45;
  --hub-c-warn: #b88212;
  --hub-radius: 8px;
}

.dark {
  --vp-c-bg: #111211;
  --vp-c-bg-soft: #1b1d1b;
  --vp-c-bg-mute: #252822;
  --vp-c-text-1: #f7f7f2;
  --vp-c-text-2: #c9cabe;
  --vp-c-text-3: #96998c;
}

html {
  scroll-behavior: smooth;
}

a,
button {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--vp-c-brand-1);
  outline-offset: 2px;
}

.VPHero {
  border-bottom: 1px solid var(--vp-c-divider);
}

.VPHero .image-src {
  filter: drop-shadow(0 18px 28px rgba(15, 159, 143, 0.18));
  transform-origin: center;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.VPHero .image-src:hover {
  filter: drop-shadow(0 22px 34px rgba(15, 159, 143, 0.24));
  transform: translateY(-2px);
}

.VPHome .VPHero {
  padding-bottom: 40px;
}

.VPButton {
  border-radius: var(--hub-radius) !important;
}

.VPButton.brand {
  background: var(--vp-c-brand-1) !important;
  border-color: var(--vp-c-brand-1) !important;
  font-weight: 700;
}

.VPButton.brand:hover {
  background: var(--vp-c-brand-2) !important;
  border-color: var(--vp-c-brand-2) !important;
  box-shadow: 0 10px 22px -16px var(--vp-c-brand-1);
  transform: translateY(-1px);
}

.VPButton.alt {
  border: 1px solid var(--vp-c-divider) !important;
  font-weight: 650;
}

.VPFeature {
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
  background: var(--vp-c-bg-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.VPFeature::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 32px;
  height: 2px;
  background: var(--hub-c-accent);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.VPFeature:hover {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 12px 28px -18px rgba(15, 159, 143, 0.5);
  transform: translateY(-2px);
}

.VPFeature:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.VPFeature .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
  background: color-mix(in srgb, var(--vp-c-brand-1) 10%, transparent);
}

.VPFeature .icon img {
  width: 26px;
  height: 26px;
}

.VPFeature .title {
  font-weight: 750;
  letter-spacing: 0;
}

.VPFeature .details {
  line-height: 1.7;
}

.VPNavBar {
  backdrop-filter: blur(10px);
}

.vp-doc h2 {
  border-top: 1px solid var(--vp-c-divider);
  padding-top: 28px;
}

.vp-doc a {
  text-underline-offset: 3px;
}

.vp-doc div[class*='language-'],
.vp-doc table {
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
}

.vp-doc th {
  background: var(--vp-c-bg-soft);
  font-weight: 700;
}

.vp-doc td {
  line-height: 1.65;
}

.hub-section {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 32px 24px;
}

.hub-section h2 {
  margin: 0 0 12px;
  border-top: 0;
  padding-top: 0;
  font-size: 30px;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--hub-c-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--vp-c-text-2);
  font-size: 17px;
  line-height: 1.8;
}

.path-grid,
.learning-map,
.not-found-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.path-card,
.learning-map a,
.not-found-grid a {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
  background: var(--vp-c-bg-soft);
  color: var(--vp-c-text-1);
  text-decoration: none !important;
  box-shadow: 0 0 0 0 rgba(15, 159, 143, 0);
  will-change: transform;
}

.path-card:hover,
.learning-map a:hover,
.not-found-grid a:hover {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 16px 34px -26px rgba(15, 159, 143, 0.7);
  transform: translateY(-2px);
}

.path-card:focus-visible,
.learning-map a:focus-visible,
.not-found-grid a:focus-visible {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 0 0 3px var(--vp-c-brand-soft);
}

.module-icon {
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
  background: var(--vp-c-bg);
}

.path-card span,
.learning-map span,
.not-found-grid span {
  color: var(--vp-c-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.path-card > span:first-child {
  color: var(--hub-c-warn);
  font-weight: 800;
}

.path-card p {
  margin: 0;
  color: var(--vp-c-text-2);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.check-panel {
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--hub-radius);
  padding: 20px;
  background: var(--vp-c-bg-soft);
}

.check-panel p {
  margin: 0 0 12px;
  font-weight: 800;
}

.check-panel ul {
  margin: 0;
  padding-left: 18px;
}

.check-panel li + li {
  margin-top: 8px;
}

.check-panel li::marker {
  color: var(--vp-c-brand-1);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--vp-c-divider);
  border-radius: 6px;
  color: var(--vp-c-brand-1);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .path-grid,
  .learning-map,
  .not-found-grid,
  .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub-section {
    padding: 24px 16px;
  }

  .hub-section h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 16px;
  }

  .path-grid,
  .learning-map,
  .not-found-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .path-card,
  .learning-map a,
  .not-found-grid a {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .VPHero .image-src:hover,
  .VPButton.brand:hover,
  .VPFeature:hover,
  .path-card:hover,
  .learning-map a:hover,
  .not-found-grid a:hover {
    transform: none;
  }
}
