:root {
  --bg: #f2f4f6;
  --paper: #f7f3ed;
  --text: #20262d;
  --muted: #5f6d63;
  --slate: #3f4750;
  --slate-dark: #0e1b22;
  --teal: #0c6980;
  --cyan: #5ce1e6;
  --shadow: 0 18px 44px rgba(24, 34, 28, 0.10);
  --max: 1240px;
  --body: clamp(1rem, 1.05vw, 1.08rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.08;
  color: var(--black);
  letter-spacing: -0.04em;
}

.guides-meta {
    display: grid;
    gap: 0.9rem;
}

.guides-article-link {
    display: inline;
    color: #000;
    font-size: 1.25rem;
}

.guides-anchor {
    display: block;
    height: 1px;
    scroll-margin-top: 130px;
}

.guides-more-copy > h3:first-of-type {
    margin-top: 2rem;
}

.guides-article-text {
    position: relative;
    display: inline;
    padding-bottom: 0.3rem;
}

.guides-article-text::after {
    content: "\00a0→";
    display: inline-block;
    white-space: nowrap;
    transition: transform 180ms ease;
}

.guides-article-link:hover .guides-article-text::after,
.guides-article-link:focus-visible .guides-article-text::after {
    transform: translateX(4px);
}

.guides-article-link:focus-visible {
    outline: none;
}

.guides-article-arrow {
    display: none !important;
}

.guides-more-title .motorhome-gradient {
  padding-right: 0.06em;
  margin-right: -0.06em;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

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

/* Existing-site style navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  overflow: visible;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background:
    radial-gradient(circle at 15% 10%, rgba(186, 187, 188, 0.12), transparent 42%),
    linear-gradient(180deg, #4a525b 0%, #3f4750 60%, #353c44 100%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/topology-background.svg");
  background-size: 700px auto;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 1.5rem;
  color: #fff;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 10%, rgba(186, 187, 188, 0.12), transparent 42%),
    linear-gradient(180deg, #4a525b 0%, #3f4750 60%, #353c44 100%);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  outline: none;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: calc(100% - 1.6rem);
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-home {
  display: inline-flex;
  align-items: center;
}

.nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  fill: var(--cyan);
  flex: 0 0 auto;
}

.nav-cta {
  color: #fff !important;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 999px;
  margin: 4px 0;
}

.nav-dropdown {
    position: relative;
  }

  .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }

  .nav-dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-right: 2px solid #50deff;
    border-bottom: 2px solid #50deff;
    transform: translateY(-1px) rotate(45deg);
    transform-origin: center;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-dropdown:hover .nav-dropdown-toggle::after,
  .nav-dropdown:focus-within .nav-dropdown-toggle::after,
  .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: translateY(1px) rotate(-135deg);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #4a525b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 260ms ease, visibility 160ms ease;
    z-index: 60;
  }

  .nav-dropdown-menu a {
    position: relative;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    background: transparent;
    color: #fff;
    outline: none;
  }

  .nav-dropdown-menu a::before {
    display: none;
  }

  .nav-dropdown-menu a span {
    position: relative;
    display: inline-block;
  }

  .nav-dropdown-menu a span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.15rem;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-dropdown-menu a:hover span::after,
  .nav-dropdown-menu a:focus-visible span::after {
    transform: translateX(-50%) scaleX(1);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


/* Main guide split layout */

.guides-page {
  background: #f4f5f6;
}

.guides-library-section {
  display: grid;
  grid-template-columns: minmax(390px, 42vw) minmax(0, 1fr);
  height: clamp(560px, calc((100dvh - 78px) * 0.74), 680px);
  min-height: 0;
  border-bottom: 1px solid rgba(12, 105, 128, 0.28);
  overflow: hidden;
}

.guides-copy-panel {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 9% 6%, rgba(111, 127, 143, 0.10), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(111, 127, 143, 0.08), transparent 22%),
    linear-gradient(180deg, #2b3138 0%, #353c44 38%, #48515a 68%, #66717b 86%, #8e98a2 100%);
  color: #f7f8fa;

  padding:
    clamp(1.5rem, 3vw, 3rem)
    clamp(2rem, 3.4vw, 4rem)
    clamp(1.5rem, 3vw, 3rem)
    clamp(4rem, 7vw, 6rem);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  gap: 24px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  text-align: left;
}

.guides-copy-panel h1 {
  margin: 0;
  max-width: 9ch;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(2.8rem, 6vw, 5rem);
  text-wrap: balance;
}

.guides-intro {
  max-width: 48ch;
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.guides-copy-panel .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  justify-content: flex-start;
}
.guides-rule {
  display: none;
}

.guides-intro {
  max-width: 48ch;
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.guides-actions {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 360px;
}

.guides-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.94rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.guides-button:hover,
.guides-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(12, 105, 128, 0.18);
  outline: none;
}

.guides-button-primary {
  background: linear-gradient(135deg, rgba(6, 97, 107, 0.95) 0%, rgba(12, 136, 146, 0.92) 100%);
  color: #fff;
  border-color: rgba(92, 225, 230, 0.28);
}

.guides-button-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.guides-button-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.guides-button-arrow {
  font-size: 1.55rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.guides-button:hover .guides-button-arrow,
.guides-button:focus-visible .guides-button-arrow {
  transform: translateX(4px);
}

.guides-trust-note {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1.1rem;
  align-items: center;
  margin-top: 2.8rem;
  max-width: 380px;
}

.guides-bulb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(92, 225, 230, 0.15);
  color: var(--teal);
  font-size: 1.7rem;
}

.guides-trust-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f2930;
}

.guides-trust-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.48;
  color: #2f3a40;
}

.motorhome-gradient {
    display: inline;
    color: #5a646e;

    background-image: linear-gradient(
        90deg,
        #5a646e 0%,
        #0c6980 55%,
        #5ce1e6 100%
    );

    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.library-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  background: #08141a;
  overflow: hidden;
  cursor: none;
}

.library-panel canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.library-start-button {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #075e68 0%, #0b7c86 100%);
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  padding: 1rem 2.2rem;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.23),
    0 0 22px rgba(92, 225, 230, 0.16);
  cursor: pointer;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.library-start-button:hover,
.library-start-button:focus-visible {
  transform: translate(-50%, -52%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(92, 225, 230, 0.28);
  outline: none;
}

.library-start-button.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

/* Footer */

.site-footer {
  position: relative;
  color: #f7f8fa;
  background:
    radial-gradient(circle at 15% 10%, rgba(186, 187, 188, 0.12), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(111, 127, 143, 0.18), transparent 30%),
    linear-gradient(180deg, #2b3138 0%, #353c44 38%, #48515a 68%, #66717b 86%, #8e98a2 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(111, 127, 143, 0.12), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(186, 187, 188, 0.10), transparent 24%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/topology-background.svg");
  background-size: 700px auto;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;

    color: #fff;

    background: linear-gradient(
        135deg,
        #5a646e 0%,
        #3e6f83 30%,
        #0c6980 60%,
        #5ce1e6 100%
    );

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: linear-gradient(
        135deg,
        #67717b 0%,
        #4d8296 30%,
        #1284a0 60%,
        #78edf2 100%
    );

    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}
.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.86);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.92);
}

/* Responsive */

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: rgba(10, 16, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: 1.05rem 0.95rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 0.35rem;
    padding: 0.35rem 0 0 0.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-menu a {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 980px) {
  .guides-library-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .guides-copy-panel {
    min-height: auto;
    padding: clamp(2.2rem, 7vw, 4.5rem) clamp(1.25rem, 6vw, 3rem);
  }

  .guides-copy-panel h1 {
    max-width: 11ch;
  }

  .library-panel {
    height: 520px;
    min-height: 520px;
  }

  .library-panel canvas {
    min-height: 620px;
  }

  .library-start-button {
    top: 72%;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .guides-copy-panel h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .guides-actions {
    max-width: none;
  }

  .guides-trust-note {
    grid-template-columns: 1fr;
  }

  .library-panel {
    height: 420px;
    min-height: 420px;
  }

  .library-panel canvas {
    min-height: 420px;
  }

  .library-start-button {
    font-size: 1rem;
    padding: 0.85rem 1.35rem;
    top: 72%;
  }

  .footer-legal {
    display: grid;
    gap: 0.4rem;
  }

  .footer-legal span {
    display: none;
  }
}

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

  .guides-button,
  .guides-button-arrow,
  .library-start-button,
  .site-nav a::before {
    transition: none;
  }
}

.guides-copy-panel::before,
.guides-copy-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.95;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.guides-copy-panel::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(111, 127, 143, 0.42) 0%, rgba(111, 127, 143, 0.14) 38%, rgba(111, 127, 143, 0) 72%);
  animation: guidesHeroGlowOne 12s ease-in-out infinite alternate;
}

.guides-copy-panel::after {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(111, 127, 143, 0.30) 0%, rgba(111, 127, 143, 0.10) 36%, rgba(111, 127, 143, 0) 72%);
  animation: guidesHeroGlowTwo 14s ease-in-out infinite alternate;
}

.guides-copy-topology {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.guides-copy-panel > :not(.guides-copy-topology) {
  position: relative;
  z-index: 2;
}

@keyframes guidesHeroGlowOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(70px, 30px, 0) scale(1.08);
  }
}

@keyframes guidesHeroGlowTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-60px, -35px, 0) scale(1.06);
  }
}


.library-panel {
  cursor: none;
}

.library-start-hitarea {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: none;
}

.library-start-hitarea:focus-visible {
  outline: 3px solid rgba(92, 225, 230, 0.75);
  outline-offset: -6px;
}

.library-start-button {
  display: none !important;
}

.library-hover-note {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -120%);
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 180ms ease;
}


.guides-copy-panel .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.guides-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0.15rem 0 0.45rem;
  position: relative;
}

.guides-hero-link .hero-tools-label {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.guides-hero-link .hero-tools-label::before,
.guides-hero-link .hero-tools-label::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  bottom: 0;
  border-radius: 999px;
}

.guides-hero-link .hero-tools-label::before {
  background: rgba(255, 255, 255, 0.9);
}

.guides-hero-link .hero-tools-label::after {
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.guides-hero-link:hover .hero-tools-label::after,
.guides-hero-link:focus-visible .hero-tools-label::after {
  transform: scaleX(1);
}

.guides-hero-link:focus-visible {
  outline: none;
}

.guides-hero-link .hero-tools-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.guides-hero-link:hover .hero-tools-badge,
.guides-hero-link:focus-visible .hero-tools-badge {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.guides-hero-link .hero-tools-badge svg {
  width: 24px;
  height: 24px;
  color: #fff;
  display: block;
}



.guides-actions {
  display: none !important;
}


.library-hover-note.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
}

.library-panel.is-started,
.library-panel.is-started .library-start-hitarea {
  cursor: none;
}

.guides-more-section {
  position: relative;
  isolation: isolate;
  background: #f2f4f6;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: visible;
}

.guides-more-inner > div:first-child {
  position: sticky;
  top: 98px;
  align-self: start;
}


.guides-more-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: url("../images/topology-background.svg") center/850px auto repeat;
  opacity: 0.60;
  pointer-events: none;
  z-index: 0;
}

.guides-more-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}

.guides-more-kicker {
  margin: 0 0 1.35rem;
  color: #6f7f8f;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.guides-more-title {
  margin: 0;
  max-width: 12ch;
  color: #000;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
}

.guides-more-copy {
  max-width: 760px;
  padding-top: 0.2rem;
  display: grid;
  gap: 0.8rem;
}

.guides-more-copy p {
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.72;
  color: var(--text);
  text-wrap: pretty;
}

.guides-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.7rem;
}

.guides-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000;
  position: relative;
  padding-bottom: 0.3rem;
}

.guides-more-link::before,
.guides-more-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
}

.guides-more-link::before {
  background: rgba(0, 0, 0, 0.22);
}

.guides-more-link::after {
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.guides-more-link:hover::after,
.guides-more-link:focus-visible::after {
  transform: scaleX(1);
}

.guides-library-image {
    margin-top: 0;   /* Mobile & tablet */
}

@media (min-width: 981px) {
    .guides-library-image {
        margin-top: 5rem;   /* Desktop only */
    }
}

.guides-library-image img {
    display: block;
    width: clamp(180px, 28vw, 313px);
    height: auto;
}

@media (max-width: 980px) {
  .guides-library-section {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .guides-copy-panel {
    min-height: auto;
    height: auto;
    padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.25rem, 6vw, 3rem);
    overflow: hidden;
  }

  .guides-copy-panel h1 {
    max-width: 9ch;
  }

  .library-panel {
    height: clamp(420px, 58vh, 540px);
    min-height: 0;
  }

  .library-panel canvas {
    height: 100%;
    min-height: 0;
  }

  .guides-more-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
      
  }

  .guides-more-title {
    max-width: 12ch;
  }
}

@media (max-width: 980px) {
  .guides-more-inner > div:first-child {
    position: static;
  }
}

@media (max-width: 560px) {
  .guides-copy-panel {
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 20px;
  }

  .guides-copy-panel h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .guides-intro {
    font-size: 1.1rem;
  }

  .guides-hero-link {
    font-size: 1rem;
    gap: 0.65rem;
  }

  .guides-hero-link .hero-tools-badge {
    width: 48px;
    height: 32px;
  }

  .guides-hero-link .hero-tools-badge svg {
    width: 22px;
    height: 22px;
  }

  .library-panel {
    height: clamp(360px, 54vh, 430px);
    min-height: 0;
  }

  .library-panel canvas {
    height: 100%;
    min-height: 0;
  }

  .library-hover-note {
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  opacity: 1;
}
    
  .guides-more-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .guides-more-copy p {
    font-size: 1.05rem;
  }

  .guides-more-links {
    display: grid;
  }
}

/* Article layout */
.article-progress {
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9998;
  pointer-events: none;
}

.article-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0c6980 0%, #5ce1e6 100%);
  transition: width 80ms linear;
}

.article-template-section {
  position: relative;
  isolation: isolate;
  background: #f2f4f6;
  padding: clamp(3rem,6vw,5rem) 0;
}

.article-template-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/topology-background.svg") center/850px auto repeat;
  opacity: 0.60;
  pointer-events: none;
}

.article-template-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns:
        minmax(0,860px)
        minmax(260px,320px);
  gap: clamp(2rem, 5.5vw, 5.5rem);
  align-items: start;
}

.article-content {
  min-width: 0;
  background:transparent;
    border:0;
    box-shadow:none;
    padding:0;
}

.article-content section {
  scroll-margin-top: 118px;  
  margin-top: clamp(2rem, 4vw, 3.2rem);
}


/* ==========================================================
   ARTICLE TYPOGRAPHY
   Matches the rest of the website
========================================================== */

.article-content h2{
    margin:0 0 1rem;
    color:#000;
    font-weight:700;
    letter-spacing:-0.055em;
    line-height:1.02;
    font-size:clamp(2.4rem,4.5vw,4rem);
}

.article-content h3{
    margin:3rem 0 1rem;
    color:#000;
    font-weight:700;
    letter-spacing:-0.055em;
    line-height:1.02;
    font-size:clamp(1.85rem,2.8vw,2.8rem);
}

.article-content h4{
    margin:2rem 0 .75rem;
    color:#000;
    font-weight:700;
    letter-spacing:-0.04em;
    line-height:1.12;
    font-size:clamp(1.35rem,2vw,1.8rem);
}

.article-content p,
.article-content li{
    font-size:clamp(1.08rem,1.2vw,1.22rem);
    line-height:1.8;
    color:var(--text);
}

.article-content p{
    margin:0 0 1.35rem;
    max-width:70ch;
}

.article-content ul,
.article-content ol{
    margin:1.5rem 0;
    padding-left:1.5rem;
}

.article-content li{
    margin-bottom:.6rem;
}

.article-lede {
  margin: 1.2rem 0 0;
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  line-height: 1.62;
}

.article-content .article-kicker{
    margin:0 0 1.35rem;
    color:#6f7f8f;
    font-size:.98rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    line-height:1.2;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.45rem 0 2rem;
  color: #6f7f8f;
  font-size: 0.98rem;
  font-weight: 700;
}

.article-meta-row span:not(:last-child)::after {
  content: "•";
  margin-left: 1rem;
  color: rgba(95, 109, 99, 0.5);
}

.article-callout {
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.2rem;
  background: rgba(92, 225, 230, 0.13);
  border-left: 5px solid var(--teal);
  color: #20262d;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.65;
}

.article-toc {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.article-toc-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(12, 105, 128, 0.14);
  box-shadow: var(--shadow);
  padding: 1.15rem;

  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #0c6980 transparent;
}

.article-toc-card[open] summary {
  margin-bottom: 0.85rem;
}

.article-toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #6f7f8f;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.article-toc summary::-webkit-details-marker {
  display: none;
}

.article-toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.article-toc-card[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.article-toc nav {
  display: grid;
  gap: 0.3rem;
}


.article-toc a {
  position: relative;
  display: block;
  padding: 0.48rem 0.75rem 0.48rem 0.9rem;
  color: #20262d;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition:
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
}
.article-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
    bottom: 0.48rem;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.article-toc a.is-active {
  color: #000;
  background: rgba(92, 225, 230, 0.16);
  transform: translateX(3px);
  outline: none;
}

.article-toc a.is-active::before {
  background: var(--teal);
}

@media (min-width: 981px) {
  .article-toc summary {
    pointer-events: none;
  }

  .article-toc summary::after {
    display: none;
  }
}

@media (max-width: 1120px) {
  .article-template-inner {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 310px);
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

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

  .article-toc {
    position: static;
    order: -1;
  }

  .article-toc-card:not([open]) nav {
    display: none;
  }

  .article-toc nav {
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .article-meta-row span:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .article-template-section {
    padding: 2rem 0;
  }

  .article-template-inner {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .article-content {
    padding: 1.15rem;
  }

  .article-content h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .article-meta-row {
    display: grid;
    gap: 0.35rem;
  }
}

.guides-anchor {
    display: block;
    height: 1px;
}

.article-feature-card{
    margin:2rem 0 3rem;
}

.article-feature-card img{
    display:block;
    width:100%;
    height:auto;
    border-radius:18px;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.link-inline .link-text {
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.link-inline .link-text::before,
.link-inline .link-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
}

.link-inline .link-text::before {
  background: rgba(0, 0, 0, 0.22);
}

.link-inline .link-text::after {
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.link-inline:hover .link-text::after,
.link-inline:focus-visible .link-text::after {
  transform: scaleX(1);
}

.link-inline .link-arrow {
  transition: transform 180ms ease;
}

.link-inline:hover .link-arrow,
.link-inline:focus-visible .link-arrow {
  transform: translateX(4px);
}

.link-inline:focus-visible {
  outline: none;
}

/* Dark background version */
.link-inline.is-light {
  color: #fff;
}

.link-inline.is-light .link-text::before {
  background: rgba(255, 255, 255, 0.5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .link-inline .link-text::after,
  .link-inline .link-arrow {
    transition: none;
  }
}
