/* BugBeacon site: the few rules the kit leaves to the page. */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo-img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.hero__media--ui { background: var(--g-alt, var(--surface)); }
.hero__media--ui > .stage { position: absolute; inset: 0; }

/* Long-form pages (how it works, guides): one reading column on the page's .wrap lines. */
main > .doc { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-9); }
.doc__head { max-width: 46rem; margin-bottom: var(--s-8); }
.doc__head .t-label { color: var(--muted); margin: 0 0 var(--s-4); }
.doc__head h1 { font: var(--display-weight) clamp(36px, 2.2vw + 26px, 56px)/1.08 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); }
.doc__head p { font-size: var(--t-lead); line-height: 1.5; margin: 0; }
.doc__body { max-width: 46rem; font-size: 17px; line-height: 1.7; }
.doc__body > * { margin: 0 0 var(--s-5); }
.doc__body h2 { font: var(--display-weight) clamp(26px, 1vw + 20px, 34px)/1.2 var(--font-display); letter-spacing: var(--display-tracking); margin: var(--s-8) 0 var(--s-4); }
.doc__body h3 { font: 500 20px/1.35 var(--font-text); margin: var(--s-7) 0 var(--s-3); }
.doc__body a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.doc__body a:not(.btn):hover { text-decoration-thickness: 2px; }
.doc__body ul, .doc__body ol { padding-left: 1.5em; }
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body li::marker { color: var(--muted); }
.doc__body li + li { margin-top: var(--s-2); }
.doc__body :not(pre) > code { font: 0.9em/1 var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.doc__body pre { font: 14px/1.6 var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.doc__body pre code { font: inherit; }
.doc__body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc__body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 32rem; }
.doc__body th, .doc__body td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.doc__body th { font-weight: 500; color: var(--muted); }
.doc__body figure { margin: var(--s-7) 0; }
.doc__body figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.doc__note { border-left: 2px solid var(--accent); padding: var(--s-2) 0 var(--s-2) var(--s-5); }
.doc__next { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.guide-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: var(--s-2); padding: var(--s-6) 0; color: var(--ink); text-decoration: none; }
.guide-list a:hover .guide-list__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.guide-list__title { font: var(--display-weight) 24px/1.3 var(--font-display); }
.guide-list__meta { color: var(--muted); font-size: 15px; }
main > .doc + footer, body > footer.footer--plain { height: auto; }
@media (max-width: 639px) {
  main > .doc { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-8); }
  .doc__body { font-size: 16px; }
  .doc__body pre { font-size: 13px; padding: var(--s-4); margin-inline: calc(-1 * var(--s-2)); }
}

/* Tall screens (4K, 1440p, portrait monitors). The kit sizes every section, the hero and the
   pinned steps to exactly one viewport height (100svh), while the content stops at 1280px wide.
   On a 2160px-tall window that stretched frames to ~2000px. From 1024px wide and over 960px tall,
   one "screen" is capped at 960px instead, so proportions stay as at 1440x900. */
@media (min-width: 1024px) and (min-height: 961px) {
  :root {
    --scr: 960px;
    --ly-screen: calc(var(--scr) - var(--ly-nav));
    --ly-fit: calc(var(--scr) - var(--padt, 120px) - var(--padb, 72px) - var(--bar, 0px));
    --ly-hero-h: calc(var(--scr) - var(--nav, 72px) - var(--hgap, 48px) - var(--hpadb, 64px) - var(--bar, 0px));
  }
  html body main > :is(section, .section), html body footer.closing { height: calc(var(--h, 1) * var(--scr)); }
  html body main > :is(.hero, .section--hero) { height: var(--scr); min-height: 0; }
  html body main > [data-moment="pinned-chapters"][data-moment].is-live { height: calc((var(--mo-hold) + 1) * var(--scr)); }
  html body main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { height: var(--scr); top: max(0px, (100svh - var(--scr)) / 2); }
  html body main > [data-moment="pinned-chapters"][data-moment]:not(.is-live) { min-height: var(--scr); }
}
