.guide-prose,
.guide-prose.article {
  display: block;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  color: var(--ink, #0e1a2c);
}
.guide-prose.article :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--display, inherit);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.65em;
  text-wrap: balance;
}
.guide-prose :where(h1, h2) {
  font-size: clamp(23px, 3vw, 30px);
}
.guide-prose h3 {
  font-size: 22px;
}
.guide-prose :where(h4, h5, h6) {
  font-size: 18px;
}
.guide-prose > :first-child {
  margin-top: 0;
}
.guide-prose p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1.1em;
}
.guide-prose :where(ul, ol) {
  margin: 0.5em 0 1.25em;
  padding-inline-start: 1.6em;
}
.guide-prose ul {
  list-style: disc;
}
.guide-prose ol {
  list-style: decimal;
}
.guide-prose li {
  display: list-item;
  margin: 0.35em 0;
  padding-inline-start: 0.25em;
}
.guide-prose li :where(ul, ol) {
  margin: 0.4em 0 0.7em;
}
.guide-prose a {
  color: var(--sky, #007aa8);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-prose strong,
.guide-prose b {
  font-weight: 700;
}
.guide-prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-inline-start: 4px solid var(--sky, #007aa8);
  background: var(--surface-2, #edf1f7);
  border-radius: 0 12px 12px 0;
}
.guide-prose blockquote p:last-child {
  margin-bottom: 0;
}
.guide-prose pre {
  overflow-x: auto;
  white-space: pre;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2, #edf1f7);
  font-size: 13px;
  line-height: 1.6;
}
.guide-prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}
.guide-prose :not(pre) > code {
  background: var(--surface-2, #edf1f7);
  padding: 2px 5px;
  border-radius: 4px;
}
.guide-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 12px;
  object-fit: contain;
}
.guide-prose figure {
  margin: 1.5em 0;
}
.guide-prose figure img {
  margin: 0 auto;
}
.guide-prose figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted, #5a6880);
  text-align: center;
}
.guide-prose hr {
  border: 0;
  border-top: 1px solid var(--line, #dfe5ee);
  margin: 2em 0;
}
.guide-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 12px;
}
.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.guide-prose th,
.guide-prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #dfe5ee);
  text-align: start;
  vertical-align: top;
}
.guide-prose th {
  font-weight: 700;
  background: var(--surface-2, #edf1f7);
}
.guide-prose tr:last-child td {
  border-bottom: 0;
}
.guide-prose .ql-align-center {
  text-align: center;
}
.guide-prose .ql-align-right {
  text-align: right;
}
.guide-prose .ql-align-justify {
  text-align: justify;
}
.guide-prose .ql-direction-rtl {
  direction: rtl;
}
.guide-prose .ql-indent-1 {
  margin-inline-start: 1.5em;
}
.guide-prose .ql-indent-2 {
  margin-inline-start: 3em;
}
.guide-prose .ql-indent-3 {
  margin-inline-start: 4.5em;
}
.guide-prose :is(.ql-indent-4, .ql-indent-5, .ql-indent-6, .ql-indent-7, .ql-indent-8) {
  margin-inline-start: 6em;
}
.guide-hero {
  margin: 0 0 22px;
}
.guide-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
}
.guide-deck {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted, #5a6880);
  margin: 0 0 24px;
}
@media (max-width: 560px) {
  .guide-prose,
  .guide-prose.article {
    font-size: 15px;
    line-height: 1.7;
  }
  .guide-prose :where(h1, h2) {
    font-size: 24px;
  }
  .guide-prose h3 {
    font-size: 20px;
  }
  .guide-hero img {
    border-radius: 12px;
  }
  .guide-prose
    :is(.ql-indent-3, .ql-indent-4, .ql-indent-5, .ql-indent-6, .ql-indent-7, .ql-indent-8) {
    margin-inline-start: 2em;
  }
}
/* Consistent article rhythm, independent of blank blocks imported from editors. */
.guide-prose,
.guide-prose.article {
  line-height: 1.7;
}
.guide-prose.article p {
  margin: 0 0 0.85em;
}
.guide-prose p:empty {
  display: none;
}
.guide-prose.article :where(h1, h2, h3, h4, h5, h6) {
  margin: 1.3em 0 0.5em;
  scroll-margin-top: 100px;
}
.guide-prose.article > :first-child {
  margin-top: 0;
}
.guide-prose.article > :last-child {
  margin-bottom: 0;
}
.guide-prose img,
.guide-prose figure {
  margin-block: 1.1em;
}
.guide-hero {
  margin: 0 0 22px;
}
.guide-deck {
  margin-bottom: 18px;
  font-size: 16px;
}
.guide-article-head .wrap {
  padding-block: 38px 20px;
  gap: 12px;
}
.guide-article-head .post-more {
  margin: 0 0 4px;
  font-size: 13px;
}
.guide-article-head h1.h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.guide-article-head .lead {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.guide-reader-footer .wrap {
  padding-block: 24px 64px;
}
.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #dfe5ee);
}
.guide-page-summary {
  font-size: 13px;
  color: var(--muted, #5a6880);
}
.guide-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.guide-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--ink, #0e1a2c);
  font: 600 13px var(--body, system-ui);
  text-decoration: none;
}
.guide-page:hover {
  border-color: var(--sky, #007aa8);
}
.guide-page.current {
  background: var(--ink, #0e1a2c);
  border-color: var(--ink, #0e1a2c);
  color: var(--bg, #fff);
}
.guide-page[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.guide-page-gap {
  padding: 0 4px;
  color: var(--muted, #5a6880);
}
.guide-page:focus-visible,
.guide-neighbor:focus-visible {
  outline: 2px solid var(--sky, #007aa8);
  outline-offset: 3px;
}
.guide-reader-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line, #dfe5ee);
}
.guide-neighbor {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 14px;
  color: var(--ink, #0e1a2c);
  background: var(--surface, #fff);
  text-decoration: none;
  text-align: left;
  font: inherit;
}
.guide-neighbor span {
  color: var(--muted, #5a6880);
  font-size: 12px;
}
.guide-neighbor b {
  font-family: var(--display, inherit);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.guide-neighbor.next {
  text-align: right;
}
.guide-neighbor:hover {
  border-color: var(--sky, #007aa8);
  background: var(--surface-2, #f6f9fc);
}
#guideResults,
.guide-library-heading {
  scroll-margin-top: 100px;
}
@media (max-width: 560px) {
  .guide-article-head .wrap {
    padding-block: 26px 18px;
  }
  .guide-article-head .lead {
    font-size: 16px;
  }
  .guide-reader-navigation {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .guide-reader-navigation > span:empty {
    display: none;
  }
  .guide-page-controls {
    justify-content: flex-start;
  }
  .guide-neighbor {
    padding: 16px;
  }
}
.guide-library > .guide-pagination {
  margin-top: 4px;
}
