.guide-hub,
.guide-page {
  --guide-ink: #111827;
  --guide-muted: #4b5563;
  --guide-accent: #1a56db;
  --guide-paper: #f9fafb;
  --guide-line: #e5e7eb;
  color: var(--guide-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.guide-hub *,
.guide-page * {
  box-sizing: border-box;
}

.guide-hub :focus-visible,
.guide-page :focus-visible {
  outline: 3px solid var(--guide-accent);
  outline-offset: 5px;
}

.guide-hub {
  margin: 3rem 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 1rem;
}

.guide-eyebrow {
  margin: 0 0 1rem;
  color: var(--guide-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hub h2,
.guide-page h1,
.guide-page h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.guide-hub h2 {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.25rem);
  line-height: 1.25;
}

.guide-intro {
  max-width: 65ch;
  margin: 0 0 2rem;
  color: var(--guide-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

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

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  color: var(--guide-ink);
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.guide-card:hover {
  border-color: var(--guide-accent);
  box-shadow: 0 8px 24px #1118270a;
}

.guide-card-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: var(--guide-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.guide-card p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guide-card-action {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--guide-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.guide-page {
  margin: 0;
  background: #fff;
  font-size: 1rem;
  line-height: 1.75;
}

.guide-page a {
  color: var(--guide-accent);
  text-underline-offset: 0.2em;
}

.guide-shell {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

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

.guide-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  width: min(1280px, 100%);
  padding: 1rem;
}

.guide-brand {
  display: inline-flex;
  flex-shrink: 0;
}

.guide-brand img {
  width: 42px;
  height: 48px;
  object-fit: contain;
}

.guide-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-weight: 500;
}

.guide-header nav a {
  padding-block: 0.4rem;
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-header nav a:hover,
.guide-header nav .guide-nav-current {
  color: var(--guide-accent);
}

.guide-page .guide-header-contact {
  padding: 0.6rem 1rem;
  background: var(--guide-accent);
  border: 1px solid var(--guide-accent);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.guide-header-contact:hover {
  background: #1e429f;
}

.guide-skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #fff;
}

.guide-skip:focus {
  top: 1rem;
}

.guide-page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
}

.guide-breadcrumbs {
  flex: 1 1 16rem;
  color: var(--guide-muted);
  font-size: 0.8rem;
}

.guide-languages {
  display: flex;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.guide-languages a {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--guide-line);
  border-radius: 0.375rem;
  text-decoration: none;
}

.guide-languages a:hover {
  border-color: var(--guide-accent);
}

.guide-languages a[aria-current="page"] {
  background: var(--guide-accent);
  border-color: var(--guide-accent);
  color: #fff;
}

.guide-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: #9ca3af;
}

.guide-hero {
  max-width: 860px;
  padding-block: 3rem 2.5rem;
}

.guide-page h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.15;
}

.guide-hero .guide-intro {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.guide-meta {
  color: var(--guide-muted);
  font-size: 0.8rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 4rem;
}

.guide-toc {
  position: sticky;
  top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--guide-accent);
  font-size: 0.875rem;
}

.guide-page .guide-toc h2 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.guide-toc ol {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
  margin: 0;
}

.guide-toc a {
  color: var(--guide-muted);
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--guide-accent);
  text-decoration: underline;
}

.guide-content {
  min-width: 0;
  max-width: 68ch;
}

.guide-content > section {
  margin-bottom: 2.75rem;
}

.guide-page [id],
.guide-hub[id] {
  scroll-margin-top: 1.5rem;
}

.guide-page h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.3;
}

.guide-content p {
  margin: 0 0 1rem;
}

.guide-content ul,
.guide-content ol {
  padding-left: 1.4rem;
}

.guide-content li {
  margin-bottom: 0.55rem;
}

.guide-note,
.guide-checklist {
  margin-block: 1.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.guide-note {
  background: #eff6ff;
  border-left: 3px solid var(--guide-accent);
}

.guide-checklist {
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
}

.guide-note p:last-child,
.guide-checklist ul:last-child {
  margin-bottom: 0;
}

.guide-content details {
  padding-block: 1rem;
  border-bottom: 1px solid var(--guide-line);
}

.guide-content summary {
  color: var(--guide-ink);
  font-weight: 600;
  cursor: pointer;
}

.guide-content details p {
  margin: 0.75rem 0 0;
}

.guide-sources {
  padding-top: 1.5rem;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 0.875rem;
}

.guide-contact {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 1rem;
}

.guide-contact h2 {
  color: var(--guide-ink);
}

.guide-contact p {
  max-width: 60ch;
  color: var(--guide-muted);
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.guide-contact .guide-button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--guide-line);
  border-radius: 0.5rem;
  color: var(--guide-ink);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}

.guide-contact .guide-button:first-child {
  color: #fff;
  background: var(--guide-accent);
  border-color: var(--guide-accent);
}

.guide-contact .guide-button:hover {
  background: #f3f4f6;
}

.guide-contact .guide-button:first-child:hover {
  background: #1e429f;
}

.guide-related {
  padding-block: 3rem;
}

.guide-related > h2 {
  margin-bottom: 1.5rem;
}

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

.guide-page a.guide-card {
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-footer {
  margin-top: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-header nav {
    order: 3;
    width: 100%;
    gap: 0.25rem 1.5rem;
  }
}

@media (max-width: 700px) {
  .guide-shell {
    width: calc(100% - 2rem);
  }

  .guide-header nav {
    font-size: 0.875rem;
    gap: 0.25rem 1.25rem;
  }

  .guide-hero {
    padding-block: 2.5rem 1.5rem;
  }

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

  .guide-toc {
    position: static;
  }

  .guide-cards,
  .guide-related .guide-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}

@media print {
  .guide-header,
  .guide-toc,
  .guide-contact,
  .guide-related,
  .guide-languages,
  .guide-skip {
    display: none;
  }

  .guide-page {
    background: #fff;
    color: #000;
  }

  .guide-shell {
    width: 100%;
  }

  .guide-layout {
    display: block;
  }
}
