body:has(.guide-page) { background: white; }
.guide-layout {
  --guide-link: #986300;
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  column-gap: clamp(20px, 3.2vw, 46px);
  color: #33363b;
  font: 400 16px/1.5 Roboto, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.guide-body a { color: var(--guide-link); text-decoration: underline; text-underline-offset: .12em; }
.guide-body a:hover { color: #7d2420; }
.guide-metadata { display: flex; flex-wrap: wrap; gap: 4px 20px; color: #6d7379; font-size: 13px; margin: 28px 0 0; padding-top: 12px; border-top: 1px solid #e8ebee; }
.guide-toc { align-self: start; position: sticky; top: calc(var(--ag-header) + 32px); max-height: calc(100dvh - var(--ag-header) - 48px); overflow-y: auto; font-size: 14px; }
.guide-toc summary { margin: 0 0 6px; color: #25282d; font-weight: 500; }
.guide-toc ul { list-style: none; border-inline-start: 2px solid #e8ebee; margin: 0; padding: 0 8px 0 0; }
.guide-toc li { margin: 0; line-height: 1.4; }
.guide-toc li a { display: block; color: #15375a; padding: 4px 0; padding-inline-start: 10px; border-inline-start: 3px solid transparent; margin-inline-start: -2px; }
.guide-toc li a:hover { text-decoration: underline; }
.guide-toc-subsection a { padding-inline-start: 24px; }
.guide-toc li a[aria-current="location"] { color: #744320; border-inline-start-color: var(--ag-accent); font-weight: 650; }
.guide-article { min-width: 0; }
.guide-body :is(h2,h3,h4) { color: #33363b; font-family: inherit; margin: 1.15em 0 .45em; letter-spacing: normal; scroll-margin-top: calc(var(--ag-header) + 12px); }
.guide-body :is(h2,h3) { font-weight: 600; }
.guide-body h2 { font-size: 23px; }
.guide-body h3 { font-size: 19px; }
.guide-body h4 { font-size: 16px; }
.guide-body p { margin: 0 0 .95em; }
.guide-body :is(ul,ol) { margin: .25em 0 1.15em; padding-inline-start: 2.45em; }
.guide-body li > :is(ul,ol) { margin-bottom: .35em; }
.guide-body blockquote { margin: 1em 0; padding: .5em 1em; border-inline-start: 3px solid #e0e0e0; color: #50555d; font: 400 17px/1.55 Roboto, system-ui, sans-serif; }
.guide-body blockquote :is(p,ul,ol) { font: inherit; }
.guide-body blockquote > :last-child { margin-bottom: 0; }
.guide-body mark { color: #06734c; background: transparent; }
.guide-body figure { margin: 1.1em 0; }
.guide-body figure img { max-width: 100%; height: auto; display: block; }
.guide-body [data-preview] { cursor: zoom-in; }
.guide-layout .ci-preview-dialog { width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 12px; border: 0; border-radius: 8px; background: white; }
.guide-layout .ci-preview-dialog::backdrop { background: #131820aa; }
.guide-layout .ci-preview-dialog form { display: flex; justify-content: end; margin-bottom: 8px; }
.guide-layout .ci-preview-dialog button { background: #f5f5f5; color: #31363b; border: 1px solid #ddd; border-radius: 4px; padding: 4px 10px; }
.guide-layout .ci-preview-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 95px); }
@media (max-width: 760px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; max-height: none; margin: 0 0 12px; }
  .guide-body :is(ul,ol) { padding-inline-start: 1.45em; }
}
