/* The how-it-works reading surface; shared navigation and tokens live in legal.css. */
.guides-page {
  max-width: 80rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 5rem;
}

.guides-page a {
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.guides-page a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 2px;
}

.guides-page ::selection {
  background: var(--terracotta);
  color: var(--oat);
}

.guides-intro {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.guides-intro h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.guides-intro p {
  max-width: 68ch;
  margin-block: 1.25rem 0;
  color: var(--charcoal-700);
  font-size: 1rem;
  line-height: 1.75;
}

.guides-intro .guides-lede {
  max-width: 52ch;
  margin-top: 1.5rem;
  color: var(--charcoal);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.guides-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.guides-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.guides-actions .guides-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-decoration: none;
}

.guides-primary:hover {
  filter: brightness(0.92);
}

.guides-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 3rem;
  align-items: start;
}

.guides-sidebar {
  position: sticky;
  top: 7rem;
  font-size: 0.875rem;
}

.guides-sidebar h2 {
  margin: 0 0 0.625rem;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.guides-sidebar a {
  color: var(--charcoal-700);
}

.guides-sidebar a:hover {
  color: var(--terracotta);
}

.guides-contents {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.guides-contents li,
.guides-contents-extra li {
  margin: 0;
  padding: 0;
}

.guides-contents a,
.guides-contents-extra a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-block: 0.5rem;
  text-decoration: none;
}

.guides-contents a:hover,
.guides-contents-extra a:hover {
  text-decoration: underline;
}

.guides-contents-extra {
  list-style: none;
  margin: 0.625rem 0 0;
  padding: 0.625rem 0 0;
  border-top: 1px solid var(--rule);
}

.guides-sidebar .guides-sidebar-help {
  margin: 1.5rem 0 0;
  color: var(--charcoal-700);
  font-size: 0.875rem;
  line-height: 1.8;
}

.guides-sidebar-help a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--terracotta);
}

.guides-article {
  max-width: 68ch;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.guides-article p {
  margin-block: 1rem 0;
  color: var(--charcoal-700);
}

.guides-article .guides-free-note {
  margin: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.guides-free-note strong {
  color: var(--charcoal);
}

.guides-section {
  margin-top: 3rem;
  scroll-margin-top: 7rem;
}

.guides-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.guides-tool-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

.guides-tools,
.guides-reading {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.guides-tools li {
  margin: 1.25rem 0 0;
}

.guides-tools strong,
.guides-tools span,
.guides-reading span {
  display: block;
}

.guides-tools span,
.guides-reading span {
  margin-top: 0.25rem;
  color: var(--charcoal-700);
}

.guides-tools a,
.guides-reading a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
}

.guides-reading li {
  margin: 0;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 52rem) {
  .guides-page {
    padding-inline: 1.25rem;
    padding-bottom: 3rem;
  }

  .guides-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-top: 2rem;
  }

  .guides-sidebar {
    position: static;
  }

  .guides-sidebar-help {
    display: none;
  }

  .guides-section {
    margin-top: 2.5rem;
  }
}
