/* diff-ref-struct Web · this site's rules only; theme.css and site.css are the family kit, copied unchanged from
   ecosystem/site (as the project site does). The kit's accent is the app's own green (#0a7f6f, the page's theme colour
   and icon), so that the site and the tool say they belong together; dark mode has its own values. */
:root {
  --teal: #0a7f6f;
  --teal-soft: #12957f;
  --amber: #8a5a12;
}
@media (prefers-color-scheme: dark) {
  :root { --teal: #4cc3ad; --teal-soft: #6fd3c0; --amber: #d9a45a; }
}

/* The way into the app: one button, the same everywhere. */
.cta, a.cta { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--teal); color: #fff !important;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--teal); }
.cta:hover { background: var(--teal-soft); border-color: var(--teal-soft); }
.cta.quiet, a.cta.quiet { background: transparent; color: var(--teal) !important; }
.cta.quiet:hover { background: var(--tint); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0 6px; }
.cta-row .note { font-size: 13.5px; color: var(--ink-faint); }
.site-nav .nav-app { color: var(--teal); font-weight: 600; }

/* Screenshots of the app: taken from it (tools/shots.mjs), framed as a window. */
figure.shot { margin: 26px 0 28px; }
figure.shot img, .docs-main img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.08); }
figure.shot figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 10px; max-width: 90ch; }
.mission figure.shot { margin-top: 0; }

/* The views of a set, as a grid with their pictures. */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 28px; margin: 18px 0 0; }
@media (max-width: 900px) { .views { grid-template-columns: 1fr 1fr; } }
.views .v h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 10px 0 4px; }
.views .v p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.views .v img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 30%; border: 1px solid var(--line); border-radius: 5px; }
.views .v .noimg { aspect-ratio: 16 / 10; border: 1px dashed var(--line); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-family: var(--mono); font-size: 12px; padding: 12px; text-align: center; }

@media (max-width: 600px) { .views { grid-template-columns: 1fr; } }

/* Numbered steps: the start, the recipes. */
ol.steps { list-style: none; counter-reset: st; padding-left: 0 !important; max-width: 76ch; }
ol.steps > li { counter-increment: st; position: relative; padding: 2px 0 12px 46px; margin: 0; }
ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--teal); color: var(--teal); font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
ol.steps > li b:first-child { font-weight: 600; }

/* What this browser can do (start page): a feature check, nothing measured or sent. */
.check { border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--tint); padding: 14px 18px; margin: 16px 0 24px; max-width: 80ch; }
.check .row { display: grid; grid-template-columns: 26px 1fr; gap: 4px 8px; font-size: 14.5px; padding: 3px 0; }
.check .ok { color: var(--teal); font-weight: 700; }
.check .no { color: var(--amber); font-weight: 700; }
.check .head { font-family: var(--sans); font-weight: 600; margin-bottom: 6px; }

/* The manuals: their head with the downloads; the versions' sub-heads. */
.manual-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.manual-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 4px; }
.manual-head .sub { font-size: 16px; color: var(--ink-soft); margin: 4px 0 12px; max-width: 80ch; }
.dl { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; }
.dl .k { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.vkey { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 10px 0 2px; }

/* A recipe's facts at its head. */
.recipe-facts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; font-size: 14.5px; margin: 10px 0 24px; padding: 14px 18px; background: var(--tint); border: 1px solid var(--line); max-width: 86ch; }
.recipe-facts .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
@media (max-width: 640px) { .recipe-facts { grid-template-columns: 1fr; } }

/* The how-it-works diagram: inline SVG in the kit's ink, both themes. */
.flow { max-width: 920px; margin: 18px 0 8px; }
.flow svg { width: 100%; height: auto; }
.flow .box { fill: var(--paper); stroke: var(--line); }
.flow .box.core { stroke: var(--teal); stroke-width: 1.6; }
.flow .lab { fill: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.flow .sm { fill: var(--ink-soft); font-family: var(--sans); font-size: 12px; }
.flow .arr { stroke: var(--ink-faint); stroke-width: 1.4; fill: none; marker-end: url(#ah); }
.flow .no { stroke: var(--amber); stroke-dasharray: 4 4; }
.flow .ah { fill: var(--ink-faint); }

/* Tables in the manuals: wide ones scroll inside the column, never the page. */
.docs-main > table { display: block; overflow-x: auto; }
.docs-main td code, .docs-main th code { white-space: nowrap; }

/* Pages that open with the manuals' own head (manual, quick reference, formats): Quarto's title block hidden, as the
   kit hides it for its article pages. */
body:has(> .docs) .docs-main:has(> .manual-head) #title-block-header { display: none !important; }

/* The screenshots open at full size (assets/includes/lightbox.html). */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
dialog.lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10, 12, 14, 0.82); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.45); cursor: zoom-out; }
dialog.lightbox .lb-cap { color: #e8e6e1; font-size: 13.5px; max-width: 90ch; margin: 10px 2px 0; }
.views .v picture, .views .v img { display: block; }
.views .v img { object-fit: cover; object-position: center; aspect-ratio: 16 / 10; }

/* The known issues of the current version (data/releases.yml's `known`), on the home page. */
.known { border: 1px solid var(--line); border-left: 4px solid var(--amber); background: var(--tint); padding: 12px 18px; margin: 0 0 26px; font-size: 14.5px; }
.known .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.known ul { margin: 6px 0 6px; padding-left: 18px; }
.cite { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
/* The manual's stable anchors (<a id="help-…">, the app's ? lands on them) take no room. */
.docs-main > p:has(> a[id^="help-"]:only-child) { margin: 0; height: 0; }
