.guide-header {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.guide-search, .guide-cta {
  color: #96311e;
  font-weight: 650;
  text-underline-offset: .22em;
}
.guide-hero {
  background: var(--pale);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.guide-date {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.2rem;
}
.guide-date span { padding-inline: .35rem; }
.guide-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.guide-excerpt {
  margin-top: 1.35rem;
  max-width: 61ch;
  font-size: 1.15rem;
  color: #364643;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.guide-nav {
  position: sticky;
  top: 1.3rem;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--red);
}
.guide-nav a {
  border-bottom: 1px solid var(--line);
  padding-block: .72rem;
  color: var(--ink);
  font-size: 1rem;
}
.guide-copy { max-width: 73ch; }
.guide-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.17;
}
.guide-copy h3 { font-size: 1.1rem; }
.guide-copy p {
  margin-top: .8rem;
  line-height: 1.66;
}
.guide-copy section + section {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 2rem;
}
.guide-copy code {
  color: #493f38;
  font-size: .93em;
  overflow-wrap: anywhere;
}
.guide-example {
  background: var(--pale);
  border-inline-start: 3px solid var(--red);
  padding: 1.15rem 1.4rem;
  margin-top: 1.3rem;
}
.guide-cta { display: inline-block; margin-top: 1.1rem; }
@media (max-width: 720px) {
  .guide-layout { display: block; }
  .guide-nav {
    position: static;
    margin-bottom: 2.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding-block: .75rem;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
  }
  .guide-nav a { font-size: .9rem; border: 0; padding-block: .2rem; }
}
.guide-tools { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 540px) {
  .guide-header { display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding-block: .7rem; }
  .guide-tools { display: contents; }
  .guide-tools .language-menu { grid-column: 2; grid-row: 1; }
  .guide-search { grid-column: 1 / -1; grid-row: 2; width: fit-content; }
}
