:root {
  --guide-bg: #fffaf7;
  --guide-bg-soft: #f7efff;
  --guide-surface: rgba(255, 255, 255, 0.8);
  --guide-surface-strong: rgba(255, 255, 255, 0.94);
  --guide-surface-soft: rgba(255, 255, 255, 0.66);
  --guide-border: rgba(108, 61, 240, 0.14);
  --guide-text: #4f4777;
  --guide-muted: #665d95;
  --guide-heading: #6c3df0;
  --guide-heading-dark: #332b68;
  --guide-kicker: #2eb8a2;
  --guide-accent: #ff9a3d;
  --guide-accent-soft: rgba(255, 210, 157, 0.36);
  --guide-shadow: 0 24px 70px rgba(156, 120, 222, 0.16);
  --guide-shadow-soft: 0 16px 42px rgba(156, 120, 222, 0.12);
  --guide-max: 78rem;
  --guide-copy: 47rem;
}

html {
  scroll-behavior: smooth;
}

body.guide-page,
body.guide-index-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(139, 93, 255, 0.12), transparent 20%),
    radial-gradient(circle at 88% 15%, rgba(255, 141, 58, 0.12), transparent 18%),
    radial-gradient(circle at 70% 75%, rgba(88, 219, 198, 0.08), transparent 24%),
    linear-gradient(180deg, #fffaf7 0%, #f9f1ff 52%, #fffdfb 100%);
  color: var(--guide-text);
  min-height: 100vh;
}

body.guide-page #page-wrapper,
body.guide-index-page #page-wrapper {
  padding-top: 7.5rem;
}

.guide-shell {
  margin: 0 auto;
  max-width: var(--guide-max);
  padding: 0 1.35rem 4rem;
}

.guide-topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 255, 0.76);
  border: 1px solid rgba(108, 61, 240, 0.1);
  border-radius: 1.4rem;
  box-shadow: 0 18px 44px rgba(156, 120, 222, 0.14);
  display: flex;
  justify-content: space-between;
  left: 50%;
  padding: 0.9rem 1.15rem;
  position: fixed;
  right: auto;
  top: 1rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), var(--guide-max));
  z-index: 1000;
}

.guide-brand,
.guide-nav a,
.guide-pill-link,
.guide-card a,
.guide-link-panel a,
.guide-copy a,
.guide-related a,
.guide-promo a,
.guide-footer a {
  border-bottom: 0;
}

.guide-brand {
  align-items: center;
  color: var(--guide-heading);
  display: inline-flex;
  gap: 0.7rem;
  line-height: 1;
}

.guide-brand img {
  display: block;
  height: 2.2rem;
  width: 2.2rem;
}

.guide-brand-wordmark {
  color: var(--guide-heading);
  font-family: "Fredoka", "Avenir Next Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.guide-nav a {
  border-radius: 999px;
  color: var(--guide-text);
  font-size: 0.93rem;
  font-weight: 800;
  padding: 0.62rem 0.9rem;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.guide-nav a:hover,
.guide-brand:hover,
.guide-card h2 a:hover,
.guide-links a:hover,
.guide-copy a:hover,
.guide-footer a:hover,
.guide-link-panel a:hover {
  color: var(--guide-heading) !important;
}

.guide-nav a:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.guide-nav-cta {
  background: linear-gradient(135deg, var(--guide-accent), #ffbf61);
  color: #ffffff !important;
}

.guide-nav-cta:hover {
  background: linear-gradient(135deg, #ffa34e, #ffc86d);
  color: #ffffff !important;
}

.guide-hero,
.guide-card,
.guide-link-panel,
.guide-article,
.guide-related,
.guide-promo,
.guide-footer {
  background: var(--guide-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--guide-border);
  border-radius: 2rem;
  box-shadow: var(--guide-shadow);
}

.guide-hero {
  margin-bottom: 2rem;
  overflow: hidden;
  padding: 2.2rem;
  position: relative;
}

.guide-hero:before {
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 93, 255, 0.12), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 141, 58, 0.14), transparent 19%),
    radial-gradient(circle at 70% 78%, rgba(88, 219, 198, 0.1), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.guide-hero-grid,
.guide-layout {
  display: grid;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.guide-hero-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 23rem);
}

.guide-hero-copy {
  max-width: 44rem;
}

.guide-kicker,
.guide-panel-kicker,
.guide-intent {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guide-kicker {
  color: var(--guide-kicker);
  margin-bottom: 0.9rem;
}

.guide-panel-kicker {
  color: var(--guide-accent);
  margin-bottom: 0.75rem;
}

.guide-hero h1,
.guide-card h2,
.guide-links h2,
.guide-copy h2,
.guide-copy h3,
.guide-faq h2,
.guide-faq h3,
.guide-footer h2,
.guide-hero-panel h2 {
  color: var(--guide-heading);
}

.guide-hero h1 {
  font-size: clamp(2.65rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1rem;
  max-width: 12ch;
}

.guide-hero p,
.guide-copy p,
.guide-copy li,
.guide-copy td,
.guide-copy th,
.guide-card p,
.guide-links li,
.guide-footer,
.guide-breadcrumbs,
.guide-meta,
.guide-hero-panel p,
.guide-hero-panel li,
.guide-facts,
.guide-mini-card span {
  color: var(--guide-text);
}

.guide-hero p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 0.9rem;
  max-width: 40rem;
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.guide-breadcrumbs li,
.guide-breadcrumbs li::marker {
  content: "";
  list-style: none;
}

.guide-breadcrumbs li:not(:last-child)::after {
  color: rgba(79, 71, 119, 0.5);
  content: "/";
  margin-left: 0.45rem;
}

.guide-breadcrumbs a {
  color: var(--guide-heading-dark);
  font-weight: 700;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.guide-meta span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(108, 61, 240, 0.1);
  border-radius: 999px;
  box-shadow: var(--guide-shadow-soft);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.58rem 0.85rem;
}

.guide-hero-panel,
.guide-facts,
.guide-mini-card,
.guide-faq-item {
  background: var(--guide-surface-soft);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(108, 61, 240, 0.12);
  box-shadow: var(--guide-shadow-soft);
}

.guide-hero-panel {
  align-self: stretch;
  border-radius: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.guide-hero-panel h2 {
  color: var(--guide-heading-dark);
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0;
}

.guide-panel-list,
.guide-related ul,
.guide-promo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-panel-list {
  display: grid;
  gap: 0.7rem;
}

.guide-panel-list li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(108, 61, 240, 0.08);
  border-radius: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 0.85rem 0.95rem;
}

.guide-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.guide-pill-link {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(108, 61, 240, 0.14);
  border-radius: 999px;
  box-shadow: var(--guide-shadow-soft);
  color: var(--guide-heading-dark);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.72rem 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.guide-pill-link:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
}

.guide-pill-link-primary {
  background: linear-gradient(135deg, var(--guide-accent), #ffbf61);
  color: #ffffff;
}

.guide-pill-link-primary:hover {
  background: linear-gradient(135deg, #ffa34e, #ffc86d);
  color: #ffffff !important;
}

.guide-facts {
  background: linear-gradient(135deg, rgba(255, 245, 224, 0.86), rgba(245, 255, 249, 0.88));
  border-color: rgba(128, 198, 174, 0.24);
  border-radius: 1.2rem;
  line-height: 1.7;
  margin-top: 0;
  padding: 1rem 1.05rem;
}

.guide-facts strong {
  color: var(--guide-heading-dark);
}

.guide-mini-grid {
  display: grid;
  gap: 0.8rem;
}

.guide-mini-card {
  border-radius: 1.15rem;
  padding: 0.95rem 1rem;
}

.guide-mini-card strong {
  color: var(--guide-heading-dark);
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.28rem;
}

.guide-mini-card span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.guide-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.guide-link-panel,
.guide-card,
.guide-related,
.guide-promo,
.guide-faq-item,
.guide-footer {
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.guide-link-panel {
  background: rgba(255, 255, 255, 0.76);
  padding: 1.25rem 1.2rem;
}

.guide-link-panel h3 {
  color: var(--guide-heading-dark);
  font-size: 1.04rem;
  margin-bottom: 0.35rem;
}

.guide-link-panel p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.guide-link-panel a {
  color: var(--guide-heading);
  font-weight: 800;
}

.guide-index-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  padding: 1.45rem;
  position: relative;
}

.guide-card:before {
  background: linear-gradient(135deg, rgba(255, 141, 58, 0.95), rgba(108, 61, 240, 0.95));
  border-radius: 999px;
  content: "";
  height: 0.38rem;
  left: 1.45rem;
  position: absolute;
  top: 1.25rem;
  width: 3.2rem;
}

.guide-card .guide-intent {
  color: var(--guide-heading-dark);
  margin-top: 0.75rem;
}

.guide-card h2 {
  font-size: 1.28rem;
  line-height: 1.22;
  margin-bottom: 0;
}

.guide-card h2 a {
  color: inherit;
}

.guide-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-card-actions {
  margin-top: auto;
  padding-top: 0.45rem;
}

.guide-card-actions a {
  color: var(--guide-heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-layout {
  align-items: start;
  grid-template-columns: minmax(0, var(--guide-copy)) minmax(18rem, 22rem);
}

.guide-article {
  padding: 2.1rem 2.2rem;
}

.guide-copy > section + section {
  border-top: 1px solid rgba(108, 61, 240, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
}

.guide-copy p,
.guide-copy li {
  font-size: 1.02rem;
  line-height: 1.88;
}

.guide-copy p,
.guide-copy ul,
.guide-copy ol {
  margin-bottom: 1.05rem;
}

.guide-copy h2 {
  color: var(--guide-heading-dark);
  font-size: 1.72rem;
  line-height: 1.18;
  margin: 0 0 1rem;
  position: relative;
}

.guide-copy h2:after {
  background: linear-gradient(135deg, var(--guide-accent), #ffcf66);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.28rem;
  margin-top: 0.65rem;
  width: 3rem;
}

.guide-copy h3 {
  color: var(--guide-heading-dark);
  font-size: 1.12rem;
  margin: 1.4rem 0 0.55rem;
}

.guide-copy a,
.guide-links a,
.guide-card a,
.guide-footer a {
  color: var(--guide-heading-dark);
  font-weight: 700;
}

.guide-copy ul,
.guide-copy ol {
  padding-left: 1.3rem;
}

.guide-copy li + li {
  margin-top: 0.42rem;
}

.guide-callout {
  background: linear-gradient(135deg, rgba(255, 245, 224, 0.88), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(248, 157, 63, 0.18);
  border-radius: 1.35rem;
  box-shadow: var(--guide-shadow-soft);
  margin: 1.7rem 0 0;
  padding: 1.35rem;
}

.guide-callout h3 {
  margin-top: 0;
}

.guide-links {
  align-self: start;
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 8rem;
}

.guide-related,
.guide-promo {
  background: rgba(255, 255, 255, 0.78);
  padding: 1.3rem;
}

.guide-related li + li,
.guide-promo li + li {
  margin-top: 0.9rem;
}

.guide-related a,
.guide-promo a {
  color: var(--guide-heading-dark);
  display: inline-block;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.guide-related small,
.guide-promo small {
  color: var(--guide-muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
}

.guide-section-head {
  margin-bottom: 1rem;
}

.guide-faq {
  margin-top: 2.2rem;
}

.guide-faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-faq-item {
  border-radius: 1.35rem;
  padding: 1.2rem;
  position: relative;
}

.guide-faq-item:before {
  background: linear-gradient(135deg, var(--guide-accent), #ffcf66);
  border-radius: 999px;
  content: "";
  height: 0.32rem;
  left: 1.2rem;
  position: absolute;
  top: 1rem;
  width: 2.8rem;
}

.guide-faq-item h3 {
  color: var(--guide-heading-dark);
  font-size: 1rem;
  margin: 0.75rem 0 0.45rem;
}

.guide-faq-item p {
  font-size: 0.94rem;
  line-height: 1.72;
  margin-bottom: 0;
}

.guide-footer {
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.88), rgba(248, 239, 255, 0.88));
  margin-top: 2rem;
  padding: 1.55rem 1.7rem;
  text-align: center;
}

.guide-footer p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-link-panel:hover,
.guide-card:hover,
.guide-related:hover,
.guide-promo:hover,
.guide-faq-item:hover,
.guide-footer:hover {
  box-shadow: 0 28px 58px rgba(156, 120, 222, 0.18);
  transform: translateY(-4px);
}

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

  .guide-hero h1 {
    max-width: 100%;
  }

  .guide-links {
    position: static;
  }

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

@media screen and (max-width: 980px) {
  .guide-topbar {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }

  .guide-topbar,
  .guide-nav {
    flex-direction: column;
  }

  .guide-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .guide-nav a {
    width: fit-content;
  }

  body.guide-page #page-wrapper,
  body.guide-index-page #page-wrapper {
    padding-top: 9.4rem;
  }

  .guide-link-grid,
  .guide-index-grid,
  .guide-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 736px) {
  .guide-shell {
    padding: 0 0.95rem 3rem;
  }

  .guide-hero,
  .guide-card,
  .guide-link-panel,
  .guide-article,
  .guide-related,
  .guide-promo,
  .guide-footer {
    border-radius: 1.45rem;
    padding: 1.25rem;
  }

  .guide-brand-wordmark {
    font-size: 1.12rem;
  }

  .guide-hero h1 {
    font-size: 2.35rem;
  }

  .guide-hero p,
  .guide-copy p,
  .guide-copy li {
    font-size: 0.97rem;
    line-height: 1.8;
  }

  .guide-copy h2 {
    font-size: 1.42rem;
  }

  .guide-copy > section + section {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
  }

  .guide-faq-item,
  .guide-mini-card,
  .guide-facts,
  .guide-callout {
    border-radius: 1.1rem;
  }

  .guide-panel-actions {
    flex-direction: column;
  }

  .guide-panel-actions .guide-pill-link {
    text-align: center;
  }
}

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

  .guide-nav a,
  .guide-pill-link,
  .guide-link-panel,
  .guide-card,
  .guide-related,
  .guide-promo,
  .guide-faq-item,
  .guide-footer {
    transition: none !important;
  }
}
