.surname-guide-page {
  --guide-ink: #253238;
  --guide-muted: #4f5f63;
  --guide-line: #d9e1df;
  --guide-green: #0a7454;
  --guide-coral: #b94e3c;
  color: var(--guide-ink);
  background: #ffffff;
}

.guide-header {
  background: #f3f7f5;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-ink);
}

.guide-header-inner {
  max-width: 960px;
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.guide-breadcrumb,
.guide-byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--guide-muted);
  font-size: 0.9rem;
}

.guide-breadcrumb a,
.guide-article a {
  color: var(--guide-green);
  text-underline-offset: 0.18em;
}

.guide-eyebrow {
  margin: 2rem 0 0.5rem;
  color: var(--guide-coral);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--guide-ink);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.guide-subtitle {
  max-width: 800px;
  margin: 1rem 0;
  color: var(--guide-muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.guide-byline {
  margin: 0;
}

.guide-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  color: var(--guide-ink);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.guide-article p,
.guide-article li {
  color: var(--guide-muted);
}

.guide-answer {
  border-left: 4px solid var(--guide-green);
  padding-left: 1.15rem;
}

.guide-answer p:first-child {
  color: var(--guide-ink);
  font-size: 1.12rem;
  font-weight: 600;
}

.guide-figure {
  margin: 2rem 0;
}

.guide-figure img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
}

.guide-figure figcaption {
  max-width: 640px;
  margin: 0.65rem auto 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
  text-align: center;
}

.guide-toc {
  margin: 2rem 0 3rem;
  border-top: 1px solid var(--guide-line);
  border-bottom: 1px solid var(--guide-line);
  padding: 1.25rem 0;
}

.guide-toc h2 {
  margin: 0 0 0.5rem;
  color: var(--guide-ink);
  font-size: 1.1rem;
}

.guide-toc ul,
.guide-checklist {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-article section {
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}

.guide-article h2 {
  margin: 0 0 1rem;
  color: var(--guide-ink);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.guide-article h3 {
  margin: 0 0 0.5rem;
  color: var(--guide-ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

.guide-table-wrap {
  margin: 1.25rem 0;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
}

.guide-table {
  min-width: 640px;
  margin: 0;
}

.guide-table th {
  color: var(--guide-ink);
  background: #edf3f1;
  font-weight: 700;
}

.guide-table td {
  color: var(--guide-muted);
}

.guide-steps {
  padding-left: 1.4rem;
}

.guide-steps li,
.guide-checklist li {
  margin-bottom: 0.8rem;
}

.guide-steps strong {
  color: var(--guide-ink);
}

.guide-faq-item {
  border-top: 1px solid var(--guide-line);
  padding: 1.1rem 0 0.35rem;
}

.guide-faq-item p {
  margin-bottom: 1rem;
}

.guide-references {
  border-top: 1px solid var(--guide-line);
  padding-top: 1.5rem;
}

@media (max-width: 700px) {
  .guide-header-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .guide-eyebrow {
    margin-top: 1.5rem;
  }

  .guide-header h1 {
    font-size: 1.95rem;
  }

  .guide-subtitle {
    font-size: 1rem;
  }

  .guide-article {
    padding-top: 1.5rem;
  }

  .guide-article h2 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .surname-guide-page * {
    scroll-behavior: auto !important;
  }
}
