:root {
  --font-accent: "Shadows Into Light Two", "Segoe Print", cursive;
  --guide-max: 42rem;
}

.guide-page {
  background: var(--white);
}

.guide-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}

.guide-article {
  min-width: 0;
}

.guide-content {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

/* Match content.css: centred page title, left-aligned section headings */
.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-page .guide-article h1 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.guide-content h1,
.guide-page .guide-article h1,
.guide-content .entry-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.guide-content h2 {
  text-align: left;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.guide-content h3 {
  text-align: left;
  font-size: 1.15rem;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.guide-content .entry-header {
  margin-bottom: 0.25rem;
}

.guide-content .entry-content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.guide-content .entry-content > *:first-child {
  margin-top: 0;
}

.guide-content p,
.guide-content .wp-block-paragraph {
  margin: 0 0 1em;
}

.guide-content ul,
.guide-content ol,
.guide-content .wp-block-list {
  margin: 0 0 1.25em;
  padding-left: 1.35rem;
}

.guide-content li {
  margin-bottom: 0.45em;
}

.guide-content li:last-child {
  margin-bottom: 0;
}

.guide-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.guide-content a:hover {
  color: var(--brand);
}

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

.guide-content img {
  border-radius: var(--radius);
  margin-block: 1rem;
}

.guide-content .wp-block-image {
  margin: 1.25rem 0;
}

/* Related guides block (from WP marker comments) */
.guide-content h3.wp-block-heading {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
