/* LabConstrictor site: colours come from the logo (green snake, orange notebook), headings in Bricolage Grotesque,
 * text in Inter, hand-drawn logo and comic as the illustrations. Light mode only.
 * Fonts are self-hosted (docs/assets/fonts, SIL Open Font License).
 * Sections: tokens, header, layout, buttons, badges, hero, cards, filter, app page, guides, footer. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url("../fonts/bricolage-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url("../fonts/bricolage-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ tokens */
/* Palette sampled from LabConstrictor_Logo.png: green #1fb221 and #1c5f1c, orange #ff8000, brown #8c4d0d. */
:root {
  --lc-bg: #fff; --lc-fg: #33433a; --lc-strong: #10211a; --lc-muted: #5b6a61; --lc-line: #dde7dd; --lc-soft: #f3f8f1; --lc-band: #ebf4e7; --lc-footer: #0f2214;
  --lc-accent: #1fb221; --lc-accent-strong: #1c5f1c; --lc-accent-soft: #e4f4e2; --lc-accent-deep: #134313;
  --lc-orange: #ff8000; --lc-orange-soft: #fff0de; --lc-orange-ink: #8c4d0d;
  --lc-ok: #1c5f1c; --lc-ok-soft: #e4f4e2;
  /* type scale (the root is 20px, so .8rem is the 16px body): every font-size in the site's own CSS is one of these */
  --fs-xs: .64rem; --fs-sm: .68rem; --fs-ui: .72rem; --fs-body: .8rem; --fs-lead: .96rem; --fs-h3: 1.1rem; --fs-h2: 1.4rem; --fs-h1: clamp(1.36rem, 3vw, 1.8rem);
  --fs-hero: clamp(2rem, 5.4vw, 3.5rem);
  --pad-box: 1.2rem; --radius-box: 12px; --gap-grid: 1.2rem; --radius-img: 8px; --radius-code: 6px;
  --lc-wide: 64rem; --lc-text: 46rem; --lc-gutter: clamp(.8rem, 4vw, 2rem);
  --lc-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lc-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --md-text-font: "Inter"; --md-primary-fg-color: #10211a; --md-accent-fg-color: #10211a; --md-typeset-a-color: #10211a;
  --md-default-fg-color: #33433a; --md-default-fg-color--light: #5b6a61;
}
html { scroll-padding-top: 4rem; }
body { background: var(--lc-bg); color: var(--lc-fg); font-family: var(--lc-sans); -webkit-font-smoothing: antialiased; }
.md-typeset { font-size: var(--fs-body); line-height: 1.7; color: var(--lc-fg); }
.md-main__inner { margin-top: 0; }
.md-container { padding-top: 0; }
.md-typeset a { color: var(--lc-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s; }
.md-typeset a:hover, .md-typeset a:focus { color: var(--lc-accent-strong); }
:focus-visible { outline: 2px solid var(--lc-accent-strong); outline-offset: 3px; }
.md-typeset h1 { font-family: var(--lc-display); font-weight: 700; font-size: var(--fs-h1); color: var(--lc-strong); letter-spacing: -.02em; margin: 0 0 .6em; }
.md-typeset h2 { font-family: var(--lc-display); font-weight: 600; font-size: var(--fs-h2); color: var(--lc-strong); margin: 2.2em 0 .6em; }
.md-typeset .headerlink { display: none; }
.md-typeset code { font-size: var(--fs-ui); }
.lc-lead { font-size: var(--fs-lead); font-weight: 300; color: var(--lc-fg); }
.lc-small { font-size: var(--fs-sm); color: var(--lc-muted); }
.lc-center { text-align: center; max-width: 36rem; margin: 0 auto; }

/* ------------------------------------------------------------------ header */
.lc-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--lc-line); }
.lc-header__inner { display: flex; align-items: center; gap: 1.2rem; max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); margin: 0 auto; padding: .7rem var(--lc-gutter); }
.lc-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--lc-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -.01em; color: var(--lc-strong); text-decoration: none; white-space: nowrap; }
.lc-brand:hover { color: var(--lc-strong); opacity: .8; }
.lc-brand img { width: 1.9rem; height: 1.9rem; }
.lc-menu { display: flex; gap: .15rem 1.1rem; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.lc-menu a { display: block; white-space: nowrap; padding: .24rem 0; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--lc-fg); text-decoration: none; border-bottom: 1px solid transparent; }
.lc-menu a:hover { color: var(--lc-strong); border-bottom-color: currentColor; }
.lc-menu a.is-active { color: var(--lc-accent-strong); border-bottom-color: currentColor; }
.lc-menu a.lc-menu__cta { padding: .36rem .8rem; background: var(--lc-accent-strong); color: #fff; border: 0; border-radius: 2rem; }
.lc-menu a.lc-menu__cta:hover { background: var(--lc-accent-deep); color: #fff; }
.lc-header__tools { display: flex; align-items: center; gap: .4rem; }
.lc-menu-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lc-burger { display: none; width: 1.76rem; height: 1.76rem; cursor: pointer; position: relative; }
.lc-burger span { position: absolute; left: .36rem; right: .36rem; height: 1.5px; background: var(--lc-strong); transition: transform .2s; }
.lc-burger span:first-of-type { top: .68rem; } .lc-burger span:last-of-type { top: 1.04rem; }
.lc-menu-toggle:checked ~ span:first-of-type { transform: translateY(.184rem) rotate(45deg); }
.lc-menu-toggle:checked ~ span:last-of-type { transform: translateY(-.23rem) rotate(-45deg); }
.lc-header .md-search { position: static; }
.lc-header .md-search__button { font-size: 0; width: 1.76rem; height: 1.76rem; border-radius: 50%; background: transparent; color: var(--lc-strong); }
.lc-header .md-search__button::before { width: .88rem; height: .88rem; background-color: var(--lc-strong); }
.lc-header .md-search__button::after { display: none; }
@media (max-width: 67rem) {
  .lc-header__tools { margin-left: auto; } .lc-burger { display: block; }
  .lc-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .4rem var(--lc-gutter) 1.2rem; background: #fff; border-bottom: 1px solid var(--lc-line); box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.06); }
  .lc-menu a { padding: .6rem 0; font-size: var(--fs-xs); border-bottom: 1px solid var(--lc-line); }
  .lc-menu a.lc-menu__cta { margin-top: .6rem; text-align: center; border-radius: .3rem; }
  .lc-header__inner:has(.lc-menu-toggle:checked) .lc-menu { display: flex; }
}

/* ------------------------------------------------------------------ layout */
.md-main__inner.md-grid { max-width: none; margin: 0; }
.lc-content { max-width: calc(var(--lc-text) + 2 * var(--lc-gutter)); margin: 0 auto; padding: 0 var(--lc-gutter); float: none; }
.lc-content--wide { max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); }
.lc-content .md-content__inner { margin: 2rem 0 4rem; padding: 0; }
.lc-content .md-content__inner::before { display: none; }
.lc-content .md-content__button { float: right; margin: .32rem 0 0 .8rem; opacity: .35; }
.lc-content .md-content__button:hover { opacity: 1; }
.lc-pagehead { margin: 0 0 1.4rem; }
.lc-pagehead h1 { margin-bottom: .2em; }
.lc-crumb { font-size: var(--fs-sm); margin: 0 0 1rem; }
.md-typeset .lc-title { margin: 0 0 1.4rem; }
.lc-band .lc-title { text-align: left; }
.lc-more { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; margin: 1.4rem 0 0; font-size: var(--fs-sm); }

/* ------------------------------------------------------------------ buttons and badges */
.md-typeset .lc-btn { display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--lc-accent-strong); border-radius: .3rem; background: var(--lc-accent-strong); color: #fff; font-size: var(--fs-ui); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.md-typeset .lc-btn:hover { background: var(--lc-accent-deep); border-color: var(--lc-accent-deep); color: #fff; }
.md-typeset a.lc-btn:focus, .md-typeset a.lc-btn:hover { color: #fff; }   /* the theme's a:focus colour would paint a clicked button's text the colour of its own background */
.md-typeset a.lc-btn--ghost:focus, .md-typeset a.lc-btn--soft:focus { color: var(--lc-accent-strong); }
.md-typeset .lc-btn--ghost { background: transparent; color: var(--lc-accent-strong); }
.md-typeset .lc-btn--ghost:hover { background: var(--lc-accent-soft); color: var(--lc-accent-strong); }
.md-typeset .lc-btn--soft { background: var(--lc-accent-soft); border-color: #c3e3bf; color: var(--lc-accent-strong); }   /* the downloads of the other systems: same colour family, lighter */
.md-typeset .lc-btn--soft:hover { background: #d3ecd0; border-color: var(--lc-accent-strong); color: var(--lc-accent-strong); }
/* app page: the install steps of each system, folded until its installer is clicked; the folded table of all downloads; the screenshot gallery */
.lc-steps { display: grid; gap: .6rem; margin: 0 0 1.2rem; }
[dir] .md-typeset details.lc-steps__os, [dir] .md-typeset details.lc-fold { margin: 0; padding: .7rem 1rem; border: 1px solid var(--lc-line); border-radius: var(--radius-box); background: #fff; box-shadow: none; color: var(--lc-fg); font-size: var(--fs-body); }
[dir] .md-typeset details.lc-steps__os[open] { border-color: var(--lc-accent); box-shadow: 0 0 0 2px var(--lc-accent-soft); }
[dir] .md-typeset details.lc-steps__os > summary, [dir] .md-typeset details.lc-fold > summary { margin: 0; padding: 0; font-weight: 600; color: var(--lc-strong); cursor: pointer; background: none; }
[dir] .md-typeset details.lc-steps__os > summary::before, [dir] .md-typeset details.lc-steps__os > summary::after, [dir] .md-typeset details.lc-fold > summary::before, [dir] .md-typeset details.lc-fold > summary::after { display: none; }
[dir] .md-typeset details.lc-steps__os > summary::-webkit-details-marker { display: revert; }
.lc-steps__os { scroll-margin-top: 4.5rem; }
.md-typeset .lc-steps__os img { max-width: min(100%, 32rem); height: auto; border-radius: var(--radius-img); }
[dir] .md-typeset .lc-steps > p { margin: 0; }
[dir] .md-typeset ul.lc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: var(--gap-grid); margin: 0 0 1.2rem; padding: 0; list-style: none; }
[dir] .md-typeset ul.lc-gallery > li { margin: 0; }
[dir] .md-typeset .lc-gallery a { display: block; color: inherit; text-decoration: none; }
[dir] .md-typeset .lc-gallery .lc-shot { margin: 0; }
.md-typeset .lc-gallery .lc-shot__img { width: 100%; height: 9rem; object-fit: cover; object-position: top; border: 1px solid var(--lc-line); }
.md-typeset .lc-btn small { display: block; font-weight: 400; opacity: .85; }
.lc-cta { text-align: center; margin: 2.4rem 0; }
.lc-badge { display: inline-block; margin: 0 .3rem .2rem 0; padding: .04rem .46rem; border-radius: 1rem; background: var(--lc-soft); color: var(--lc-fg); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.lc-badge--testing, .lc-badge--status { background: #e9ecef; color: #3b4650; }
.lc-badge--host { background: var(--lc-orange-soft); color: var(--lc-orange-ink); }

/* ------------------------------------------------------------------ home */
.lc-home { max-width: none; margin: 0; float: none; }
.lc-home .md-typeset { padding-bottom: 0; }
.lc-hero { background: var(--lc-band); border-bottom: 1px solid var(--lc-line); overflow: hidden; }
.lc-hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 2rem; align-items: center; max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.4rem) var(--lc-gutter); }
.lc-hero h1 { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .5em; max-width: 14ch; }
.lc-hero p { max-width: 34rem; font-size: var(--fs-lead); margin: 0; }
.lc-hero__art { position: relative; justify-self: center; width: min(100%, 17rem); aspect-ratio: 1; }
.lc-hero__art::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: var(--lc-orange-soft); }
.lc-hero__art img { position: relative; display: block; width: 100%; height: auto; }
.lc-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.md-typeset .lc-choice { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border: 1px solid var(--lc-line); border-top: 4px solid var(--lc-accent); border-radius: .6rem; background: #fff; color: var(--lc-fg); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.md-typeset .lc-choice--make { border-top-color: var(--lc-orange); }
.md-typeset .lc-choice:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.6rem rgba(16, 33, 26, .12); color: var(--lc-fg); }
.lc-choice strong { font-family: var(--lc-display); color: var(--lc-strong); font-size: var(--fs-h3); }
.lc-choice .lc-go { margin-top: auto; padding-top: .4rem; }
.lc-comic { max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); margin: 0 auto; padding: 3rem var(--lc-gutter) 0; text-align: center; }
.md-typeset .lc-comic img { display: block; width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 .6rem 1.6rem rgba(16, 33, 26, .14); }
.lc-comic__panels { display: none; }
@media (max-width: 40rem) {   /* a phone: three stacked panels, each a third of the strip, instead of a strip too small to read */
  [dir] .md-typeset .lc-comic .lc-comic__strip { display: none; }
  .lc-comic__panels { display: grid; gap: .8rem; }
  .lc-comic__panel { display: block; aspect-ratio: 1.163; border-radius: .5rem; background: #000 url("../images/comic.png") no-repeat; background-size: 300% 100%; background-position: calc(var(--i) * 50%) 0; box-shadow: 0 .4rem 1rem rgba(16, 33, 26, .14); }
}
.lc-comic figcaption { margin-top: .8rem; font-size: var(--fs-sm); color: var(--lc-muted); }
.lc-band { max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); margin: 0 auto; padding: 2.2rem var(--lc-gutter); }
.lc-band--soft { max-width: none; background: var(--lc-band); padding-left: max(var(--lc-gutter), calc((100% - var(--lc-wide)) / 2)); padding-right: max(var(--lc-gutter), calc((100% - var(--lc-wide)) / 2)); }   /* full-width band; the padding puts its content on the same left edge as the hero and the white bands */
.lc-band--soft > * { max-width: none; margin-left: 0; margin-right: 0; }
@media (max-width: 44rem) { .lc-choices { grid-template-columns: 1fr; } .lc-hero__in { grid-template-columns: 1fr; } .lc-hero__art { order: -1; width: 9rem; } }

/* ------------------------------------------------------------------ cards */
[dir] .md-typeset ul.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1.1rem; list-style: none; margin: 1rem 0; padding: 0; }
[dir] .md-typeset ul.lc-grid > li { margin-left: 0; }
[dir] .md-typeset .lc-card { position: relative; display: flex; flex-direction: column; margin: 0; border: 1px solid var(--lc-line); border-radius: .5rem; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.md-typeset .lc-card:hover { border-color: var(--lc-accent); box-shadow: 0 .5rem 1.4rem rgba(28, 95, 28, .14); transform: translateY(-2px); }
.md-typeset .lc-card__main { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: 1rem 1rem .6rem; color: var(--lc-fg); text-decoration: none; }
.lc-card__head { display: flex; align-items: center; gap: .75rem; }
.lc-card__title { display: flex; flex-direction: column; line-height: 1.25; }
.lc-card__title strong { font-family: var(--lc-display); color: var(--lc-strong); font-size: var(--fs-h3); }
.lc-card__title small { opacity: 1; color: var(--lc-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.lc-card__text { font-size: var(--fs-ui); line-height: 1.55; }
.lc-card__badges { margin-top: auto; }
.lc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 1rem; border-top: 1px solid var(--lc-line); font-size: var(--fs-sm); color: var(--lc-muted); }
.lc-card--plain .lc-card__main { padding-bottom: 1rem; }
.lc-icon { flex: none; border-radius: 22%; object-fit: contain; background: var(--lc-soft); }
.lc-icon--mono { --size: 48px; display: inline-flex; align-items: center; justify-content: center; width: var(--size); height: var(--size); font-weight: 600; font-size: calc(var(--size) * .45); color: #fff; background: linear-gradient(135deg, var(--lc-accent), var(--lc-accent-deep)); }

.lc-empty { padding: 2rem 0; text-align: center; color: var(--lc-muted); }
.lc-legend { margin-top: 1.6rem; }

/* ------------------------------------------------------------------ filter */
.lc-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .9rem; margin: 0 0 1rem; padding: .85rem; background: var(--lc-soft); border-radius: .4rem; }
.lc-filter label { display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-muted); }
.lc-filter__search { flex: 1 1 14rem; }
.lc-filter input, .lc-filter select { padding: .45rem .6rem; border: 1px solid var(--lc-muted); border-radius: .3rem; background: #fff; font: inherit; font-size: var(--fs-ui); letter-spacing: 0; text-transform: none; color: var(--lc-strong); }
.lc-filter input:focus, .lc-filter select:focus { outline: 2px solid var(--lc-accent-strong); outline-offset: 0; }
.md-typeset .lc-filter__count { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--lc-muted); }

/* ------------------------------------------------------------------ app page */
.lc-apphead { margin-bottom: 1.4rem; }
.lc-apphead__name { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.lc-apphead h1 { margin: 0; }
.lc-apphead p { margin: .3rem 0 0; }
.lc-osgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .6rem 0 1rem; }
.lc-ostile { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--lc-line); border-radius: .6rem; background: #fff; }
.lc-ostile.is-yours { border-color: var(--lc-accent); box-shadow: 0 0 0 2px var(--lc-accent-soft); }
.lc-ostile.is-yours::after { content: "Your system"; position: absolute; top: -.6rem; right: .8rem; padding: .05rem .55rem; border-radius: 1rem; background: var(--lc-accent-strong); color: #fff; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.md-typeset .lc-ostile h3 { margin: 0; font-family: var(--lc-display); font-size: var(--fs-h3); color: var(--lc-strong); }
.lc-ostile .lc-btn { text-align: center; }
.md-typeset .lc-ostile p { margin: 0; }
@media (max-width: 44rem) { .lc-osgrid { grid-template-columns: 1fr; } }
.lc-routes { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0; }
.lc-code { display: flex; align-items: center; gap: .6rem; max-width: 30rem; margin: .6rem 0; padding: .35rem .5rem .35rem .8rem; border: 1px solid var(--lc-line); border-radius: .3rem; background: var(--lc-soft); }
.lc-code code { flex: 1; background: none; color: var(--lc-strong); }
[dir] .md-typeset table.lc-table { display: table; width: 100%; font-size: var(--fs-ui); }
.md-typeset .lc-table th { text-align: left; font-weight: 600; color: var(--lc-strong); }
.md-typeset .lc-table td, .md-typeset .lc-table th { padding: .5rem .8rem .5rem 0; }
.lc-scroll { max-width: 100%; overflow-x: auto; }   /* a wide table scrolls inside its box instead of widening the page */
.lc-table td:last-child { white-space: nowrap; }
.lc-os[open] summary { border-bottom: 1px solid var(--lc-line); }
.lc-os ol { margin: .6rem .9rem .8rem 2rem; }
.lc-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: .8rem 0; }
.lc-facts dt { font-weight: 600; color: var(--lc-strong); } .lc-facts dd { margin: 0; }
.lc-shot { margin: 1.4rem 0; } .lc-shot img { border: 1px solid var(--lc-line); border-radius: .4rem; max-width: 100%; height: auto; }
.lc-shot figcaption { font-size: var(--fs-sm); color: var(--lc-muted); }

/* ------------------------------------------------------------------ guides */
.lc-docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.lc-content:has(.lc-docs) { max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); }
.lc-docs__nav { position: sticky; top: 4.2rem; padding-top: 2rem; font-size: var(--fs-ui); max-height: calc(100vh - 5rem); overflow: auto; }
.lc-docs__section { margin: 0 0 .2rem; }
.lc-docs__track { margin: 1.1rem 0 .2rem; padding-bottom: .25rem; border-bottom: 2px solid var(--lc-accent); font-size: var(--fs-ui); font-weight: 700; color: var(--lc-accent-strong); }
.lc-docs__home { margin: 0 0 .6rem; font-weight: 600; }
.lc-docs__home a { color: var(--lc-fg); text-decoration: none; }
.lc-docs__home a.is-active { color: var(--lc-accent-strong); }
.lc-docs__track { margin: 1.1rem 0 .3rem; padding-bottom: .25rem; border-bottom: 2px solid var(--lc-accent); font-size: var(--fs-ui); font-weight: 700; }
.lc-docs__track a { color: var(--lc-accent-strong); text-decoration: none; }
.lc-docs__track a:hover { text-decoration: underline; }
.lc-guides h3 { margin: 1rem 0 .3rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lc-muted); }
/* Hub pages (/use/, /build/): a grid of cards, each with a picture of the real thing. */
[dir] .md-typeset ul.lc-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1.3rem; list-style: none; margin: 1.6rem 0 2.4rem; padding: 0; }
[dir] .md-typeset ul.lc-features > li { margin: 0; }
.lc-feature { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--lc-line); border-radius: .6rem; background: #fff; transition: box-shadow .15s, transform .15s; }
.lc-feature:hover { box-shadow: 0 .6rem 1.6rem rgba(16, 33, 26, .12); transform: translateY(-2px); }
.md-typeset .lc-feature__shot { display: flex; align-items: flex-start; justify-content: center; height: 13rem; overflow: hidden; border-bottom: 1px solid var(--lc-line); background: var(--lc-soft); }
.lc-feature__shot > a { display: block; width: 100%; height: 100%; }
.lc-feature__shot > a > img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: top left; }
.lc-feature__live { width: 100%; }
[dir] .md-typeset .lc-feature__live { display: block; margin: 0; padding: .9rem; list-style: none; }
.lc-feature__shot--wide > a > img { height: auto; max-height: 100%; align-self: center; object-fit: contain; }
.lc-feature__shot--wide { align-items: center; padding: 0 .8rem; }
.lc-feature__shot--wide > a { display: flex; align-items: center; }   /* a very wide picture sits in the middle of the frame, not at its top */
.lc-help { padding: .8rem 1rem; border-left: 3px solid var(--lc-accent-strong); background: var(--lc-soft); border-radius: .3rem; }
.lc-feature__body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.1rem; }
.lc-feature__body strong { font-family: var(--lc-display); font-size: var(--fs-h3); color: var(--lc-strong); line-height: 1.25; }
.lc-feature__body span { color: var(--lc-fg); line-height: 1.5; font-size: var(--fs-ui); }
.lc-feature__body a { margin-top: auto; padding-top: .3rem; font-weight: 600; font-size: var(--fs-ui); color: var(--lc-accent-strong); text-decoration: none; }
.lc-feature__body a:hover { text-decoration: underline; }
.lc-guides .lc-title { margin-top: 0; }
.lc-docs__section summary { display: block; list-style: none; padding: .5rem 0 .3rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lc-muted); cursor: pointer; }
.lc-docs__section summary::-webkit-details-marker { display: none; }
.lc-docs__section summary::before { content: "+"; display: inline-block; width: 1.1em; }
.lc-docs__section[open] summary::before { content: "\2212"; }
.lc-docs__section summary:hover { color: var(--lc-strong); }
.lc-docs__nav h2 { margin: 1.1rem 0 .3rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lc-muted); }
.lc-docs__nav ul, .lc-guides ul { list-style: none; margin: 0; padding: 0; }
.lc-docs__nav li { margin: 0; }
.lc-docs__nav a { display: block; padding: .14rem .6rem; line-height: 1.35; border-left: 2px solid var(--lc-line); color: var(--lc-fg); text-decoration: none; }
.lc-docs__nav a:hover { color: var(--lc-strong); border-left-color: var(--lc-accent); }
.lc-docs__nav a.is-active { color: var(--lc-accent-strong); border-left-color: var(--lc-accent-strong); font-weight: 600; }
.lc-docs .md-content__inner img { max-width: 100%; height: auto; border-radius: .3rem; }
.lc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--lc-line); }
.md-typeset .lc-pager a { display: flex; flex-direction: column; padding: .7rem .9rem; border: 1px solid var(--lc-line); border-radius: .4rem; text-decoration: none; }
.md-typeset .lc-pager a:hover { border-color: var(--lc-accent); }
.lc-pager a span { font-size: var(--fs-xs); color: var(--lc-muted); text-transform: uppercase; letter-spacing: .1em; }
.lc-pager__next { text-align: right; }
@media (max-width: 52rem) {   /* a phone: the article first, the list of guides after it */
  .lc-docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lc-docs__nav { order: 2; position: static; max-height: none; padding: 1rem 0 2rem; border-top: 1px solid var(--lc-line); }
}
.lc-docs > * { min-width: 0; }   /* wide code, tables and pictures scroll or shrink inside their column instead of widening the page */
.lc-docs .md-typeset table:not([class]), .lc-docs table { display: block; max-width: 100%; overflow-x: auto; }
.lc-docs pre, .lc-docs .highlight { max-width: 100%; overflow-x: auto; }

/* notes ("!!! note") use the logo's orange instead of the theme's blue */
[dir] .md-typeset .admonition { border: 1px solid var(--lc-orange); border-left-width: 4px; border-radius: .4rem; background: var(--lc-orange-soft); box-shadow: none; }
.md-typeset .admonition-title { background: none !important; color: var(--lc-orange-ink); font-weight: 600; }
.md-typeset .admonition-title::before { background-color: var(--lc-orange) !important; }

/* ------------------------------------------------------------------ footer */
.lc-footer { background: var(--lc-footer); color: #f2eeee; font-size: var(--fs-sm); }
.lc-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; max-width: calc(var(--lc-wide) + 2 * var(--lc-gutter)); margin: 0 auto; padding: 3rem var(--lc-gutter) 1.4rem; }
.lc-footer strong { font-family: var(--lc-display); color: #fff; font-size: var(--fs-h3); }
.lc-footer__brand { display: flex; gap: .8rem; align-items: flex-start; } .lc-footer__brand img { width: 2.6rem; height: 2.6rem; }
.lc-footer p { margin: .5rem 0 0; color: #b9b1b1; }
.lc-footer ul { list-style: none; margin: 0; padding: 0; } .lc-footer li { margin: 0 0 .4rem; }
.lc-footer a { color: #f2eeee; text-decoration: none; } .lc-footer a:hover { color: #fff; text-decoration: underline; }
.lc-footer .lc-footer__by { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid #2c2323; font-size: var(--fs-xs); }
@media (max-width: 40rem) { .lc-footer__inner { grid-template-columns: 1fr; gap: 1.2rem; } }
.md-top { background: #fff; color: var(--lc-strong); box-shadow: 0 .16rem .64rem rgba(0,0,0,.12); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .lc-header, .lc-footer, .lc-filter, .lc-docs__nav, .md-content__button { display: none !important; } }

/* GitHub badge: a small pill that links to a repository. */
.md-typeset a.lc-gh { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .6rem .12rem .45rem; border: 1px solid var(--lc-line); border-radius: 1rem; background: #fff; color: var(--lc-fg); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; white-space: nowrap; }
.md-typeset a.lc-gh:hover { border-color: var(--lc-accent-strong); color: var(--lc-accent-strong); }
.lc-gh svg { flex: none; }
.lc-testing { margin-top: 2.4rem; padding-top: .4rem; border-top: 1px dashed var(--lc-line); }

/* Docs menu on phones: a folded drawer above the page instead of a long list below it. */
.lc-docs__drawer > summary { display: none; }
@media (max-width: 56rem) {
  .lc-docs__nav { order: -1 !important; border-top: 0 !important; border-bottom: 1px solid var(--lc-line); padding: .4rem 0 .6rem !important; }
  .lc-docs__drawer > summary { display: block; padding: .5rem .8rem; border: 1px solid var(--lc-line); border-radius: .4rem; font-weight: 600; cursor: pointer; list-style: none; }
  .lc-docs__drawer > summary::-webkit-details-marker { display: none; }
  .lc-docs__drawer[open] > summary { margin-bottom: .6rem; }
}
a.lc-badge { text-decoration: none; }
a.lc-badge:hover { filter: brightness(.95); text-decoration: underline; }
[dir] .md-typeset .lc-feature__shot > a > img { height: 100%; }
[dir] .md-typeset .lc-feature__shot--wide > a > img { height: auto; }
.lc-guides--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2.2rem; }
.lc-guides--two section > h2 { margin-top: 0; }
@media (max-width: 44rem) { .lc-guides--two { grid-template-columns: 1fr; } }
.lc-docs__nav .lc-docs__track a { padding: 0; border: 0; }

.lc-edit { margin: 2rem 0 0; font-size: var(--fs-sm); }
.lc-edit a { color: var(--lc-muted); }

/* Buttons: .lc-btn is for the one action of a block (download, open in Colab, the page's call to action); small ghost is for in-page actions such as Copy. */
.md-typeset .lc-btn--small { padding: .2rem .6rem; font-size: var(--fs-xs); cursor: pointer; font-family: inherit; }
/* Action links ("Open →", "Guide →"): green, bold, no underline, an arrow added by the style so the text stays clean. */
.md-typeset a.lc-go, .md-typeset span.lc-go { color: var(--lc-accent-strong); font-weight: 600; font-size: var(--fs-ui); text-decoration: none; }
.md-typeset a.lc-go:hover { text-decoration: underline; }
.lc-go::after { content: " \2192"; }

/* The footer of an app card sits inside the card's one link, so the whole card is a single target. */
.md-typeset .lc-card__foot--in { display: block; margin: auto -1rem -.6rem; padding: .55rem 1rem; border-top: 1px solid var(--lc-line); font-size: var(--fs-sm); color: var(--lc-muted); }

/* Logos of the programs we link to (napari, Fiji, QuPath): small, before the name. */
.lc-logo { display: inline-block; width: 1.1em; height: 1.1em; margin: 0 .4em 0 0; vertical-align: -.2em; object-fit: contain; border-radius: .2em; }
.lc-badge .lc-logo { width: 1.25em; height: 1.25em; vertical-align: -.3em; margin-right: .3em; }
.lc-docs__nav .lc-logo { width: 1.2em; height: 1.2em; }
.lc-card__title .lc-logo { width: 1.5em; height: 1.5em; margin-right: .5em; vertical-align: -.35em; }
.lc-card--plain .lc-card__title { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }

/* A program's logo on its own as a chip (app cards); the name is there for screen readers and as a tooltip. */
.lc-badge--logo { padding: .1rem .35rem; }
.lc-badge--logo .lc-logo { margin: 0; width: 1.4em; height: 1.4em; vertical-align: middle; }
.lc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lc-card--plain .lc-card__foot { flex-wrap: wrap; justify-content: flex-start; gap: .4rem .6rem; }
.lc-card--plain .lc-card__foot .lc-go { margin-left: auto; }
.lc-apphead p { margin: .5rem 0 0; }
.md-typeset a.lc-gh { margin: 0 .3rem .2rem 0; }
.lc-burger:has(.lc-menu-toggle:focus-visible) { outline: 2px solid var(--lc-accent-strong); outline-offset: 2px; border-radius: .3rem; }

/* The hidden attribute always wins (the filter hides cards and groups with it; a component's own display rule must not undo it). */
[hidden] { display: none !important; }
.md-typeset .lc-hero__also { margin: .5rem 0 1.6rem; font-size: var(--fs-body); color: var(--lc-muted); }
.lc-gh .lc-logo { margin: 0; }

/* The notebooks an app lists: one row each, name first, then the actions. */
[dir] .md-typeset ul.lc-notebooks { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .5rem; }
[dir] .md-typeset ul.lc-notebooks > li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0; padding: .55rem .8rem; border: 1px solid var(--lc-line); border-radius: .4rem; background: #fff; }
.lc-notebooks__name { flex: 1 1 12rem; font-weight: 600; color: var(--lc-strong); }
.md-typeset .lc-btn .lc-logo { margin-right: .4em; vertical-align: -.25em; }

/* The home-page tile that links to the demo */
.lc-tile { display: flex; gap: 1rem; align-items: center; max-width: 46rem; margin: 0 auto; padding: 1rem; border: 1px solid var(--lc-line, #d9ded9); border-radius: 12px; color: inherit; text-decoration: none; }
[dir] .md-typeset .lc-tile, .lc-tile * { text-decoration: none; }
.lc-tile img { width: 9rem; height: 9rem; object-fit: cover; border-radius: 8px; flex: none; }
.lc-tile__body { display: grid; gap: .4rem; }
@media (max-width: 600px) { .lc-tile { flex-direction: column; align-items: flex-start; } [dir] .md-typeset .lc-tile, .lc-tile * { text-decoration: none; }
.lc-tile img { width: 100%; height: 12rem; } }

/* What an app works with and produces (from its manifest), side by side */
.lc-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 2rem; margin: .6rem 0; }
.lc-works h2 { margin-top: .8rem; }
.lc-works__none { margin: .6rem 0; }

/* Keyboard focus and contrast repairs: the skip link shows above the header; the ring is white on the dark footer */
.md-skip:focus { z-index: 30; }
.lc-footer :focus-visible { outline-color: #fff; }

/* Menu order in the page (tools first, for the keyboard) is kept visually: the list stays before the tools on wide screens */
.lc-menu { order: 1; } .lc-header__tools { order: 2; min-width: 1.76rem; min-height: 1.76rem; }
@media (forced-colors: active) { .lc-burger span { background: CanvasText; } }
/* The filter is drawn from the first paint when scripts are on (lc.js un-hides it later), so nothing jumps */
.lc-js .lc-filter[hidden] { display: flex; }
.lc-filter__count { min-height: 1.2em; }
/* Long filter options stay inside the field on a phone */
.lc-filter label, .lc-filter select, .lc-filter input { min-width: 0; max-width: 100%; }
.lc-facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 40rem) { .lc-facts { grid-template-columns: minmax(0, 1fr); gap: .1rem 0; } .lc-facts dd { margin-bottom: .5rem; } }

/* Related projects (Ecosystem page): plain entries, separated by a thin line, pills wrap, nothing scrolls sideways */
.lc-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: .4rem 0 1.6rem; padding: 0; }
.lc-related__item { padding: 1rem 1.2rem; border: 1px solid var(--lc-line); border-radius: 12px; background: #fff; }
@media (max-width: 44rem) { .lc-related { grid-template-columns: 1fr; } }
.lc-kicker { margin: 0 0 .3rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-muted); }
.lc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.4rem 0 2rem; padding: 0; }
@media (max-width: 44rem) { .lc-cats { grid-template-columns: 1fr; } }
[dir] .md-typeset a.lc-cat { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem 1.2rem; border: 1px solid var(--lc-line); border-radius: 12px; background: var(--lc-soft); color: var(--lc-fg); text-decoration: none; }
[dir] .md-typeset a.lc-cat:hover { border-color: var(--lc-accent-strong); }
.lc-cat strong { font-family: var(--lc-display); font-size: var(--fs-h3); color: var(--lc-strong); }
.lc-cat span { font-size: var(--fs-ui); color: var(--lc-muted); }
.lc-related-group { margin-top: 1.6rem; scroll-margin-top: 4.5rem; }
.md-typeset .lc-related__item p { margin: .25rem 0; }
.lc-related__links { display: flex; flex-wrap: wrap; gap: .4rem; }
.lc-related-section { margin-top: 2.6rem; }

/* ------------------------------------------------------------------ home: comic and tiles, plugin section, citation */
.lc-band--comic { padding-top: 2rem; padding-bottom: 2rem; }
[dir] .md-typeset .lc-band--comic .lc-comic { margin: 0; width: 100%; max-width: none; padding: 0; }
.lc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.lc-tiles .lc-tile { max-width: none; margin: 0; height: 100%; align-items: flex-start; }
.lc-tiles .lc-tile img { width: 5.5rem; height: 5.5rem; object-fit: contain; }
.lc-tile__body { gap: .5rem; }
[dir] .md-typeset .lc-tile__body .lc-tile__title { margin: 0; font-family: var(--lc-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--lc-strong); }
.lc-tiles .lc-tile[href$="demo/"] img { object-fit: cover; }
@media (max-width: 40rem) { .lc-tiles { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lc-tiles .lc-tile { flex-direction: row; align-items: center; } .lc-tiles .lc-tile img { width: 4.5rem; height: 4.5rem; } }
[dir] .md-typeset .lc-band .lc-title { margin: 0 0 1.4rem; font-size: var(--fs-h2); }
.lc-prose > p { max-width: 46rem; }
.lc-lead-text { font-size: var(--fs-lead); }
.lc-panel { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.4rem 1.5rem; border: 1px solid var(--lc-line); border-radius: 12px; background: #fff; }
.md-typeset .lc-panel p { margin: 0; max-width: 46rem; }
.lc-panel .lc-pills { margin: .2rem 0; }
.lc-pills { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: .2rem 0; }

[dir] .md-typeset blockquote.lc-cite { max-width: 46rem; margin: 1rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--lc-accent-strong); border-radius: 0 .4rem .4rem 0; background: #fff; color: var(--lc-fg); }
.lc-cite .lc-cite__ref { margin: 0; line-height: 1.6; }
[dir] .md-typeset ul.lc-cats, [dir] .md-typeset ul.lc-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
[dir] .md-typeset ul.lc-cats > li, [dir] .md-typeset ul.lc-related > li { margin: 0; }
@media (max-width: 44rem) { [dir] .md-typeset ul.lc-cats, [dir] .md-typeset ul.lc-related { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ one look and one behaviour for every tile and card */
.lc-band--soft { border-top: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line); }
[dir] .md-typeset .lc-choice, [dir] .md-typeset a.lc-tile, [dir] .md-typeset a.lc-cat, [dir] .md-typeset a.how__tile, [dir] .md-typeset .lc-card { border: 1px solid var(--lc-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
[dir] .md-typeset .lc-choice { border-top: 4px solid var(--lc-accent); }
[dir] .md-typeset .lc-choice--make { border-top-color: var(--lc-orange); }
[dir] .md-typeset .lc-choice:hover, [dir] .md-typeset a.lc-tile:hover, [dir] .md-typeset a.lc-cat:hover, [dir] .md-typeset a.how__tile:hover, [dir] .md-typeset .lc-card:hover { border-color: var(--lc-accent-strong); box-shadow: 0 .6rem 1.4rem rgba(28, 95, 28, .14); transform: translateY(-2px); }
[dir] .md-typeset .lc-choice:focus-visible, [dir] .md-typeset a.lc-tile:focus-visible, [dir] .md-typeset a.lc-cat:focus-visible, [dir] .md-typeset a.how__tile:focus-visible, .lc-card:focus-within { outline: 2px solid var(--lc-accent-strong); outline-offset: 2px; }
.lc-choice strong, .lc-cat strong, .how__tile strong { font-family: var(--lc-display); font-size: var(--fs-h3); color: var(--lc-strong); }
@media (prefers-reduced-motion: reduce) { [dir] .md-typeset .lc-choice:hover, [dir] .md-typeset a.lc-tile:hover, [dir] .md-typeset a.lc-cat:hover, [dir] .md-typeset a.how__tile:hover, [dir] .md-typeset .lc-card:hover { transform: none; } }
[dir] .md-typeset a.lc-tile, [dir] .md-typeset a.lc-cat, [dir] .md-typeset a.how__tile { padding: 1.2rem; }

/* a native disclosure (details) in the page content: one plain look instead of the theme's blue admonition */
[dir] .md-typeset details.lc-disclosure { margin: .6rem 0; padding: 0; border: 1px solid var(--lc-line); border-radius: 12px; background: #fff; box-shadow: none; }
[dir] .md-typeset details.lc-disclosure > summary { margin: 0; padding: .9rem 2.6rem .9rem 1.2rem; background: transparent; font-weight: 600; font-size: var(--fs-body); }
[dir] .md-typeset details.lc-disclosure > summary::before { content: none; display: none; }
[dir] .md-typeset details.lc-disclosure > summary::after { top: 1.1rem; right: 1rem; }
[dir] .md-typeset details.lc-disclosure[open] > summary { border-bottom: 1px solid var(--lc-line); }
.md-typeset details.lc-disclosure > :not(summary) { margin-left: 1.2rem; margin-right: 1.2rem; }

/* ------------------------------------------------------------------ phones: tighter bands */
@media (max-width: 40rem) {
  .lc-band { padding-top: 1.7rem; padding-bottom: 1.7rem; }
  .lc-band--comic { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  [dir] .md-typeset .lc-band .lc-title { margin-bottom: 1rem; }
  .lc-panel { padding: 1.1rem 1.1rem; }
  .md-typeset .lc-panel .lc-lead-text { font-size: var(--fs-lead); }
  .lc-hero__art { width: 7rem; }
}

/* ================================================================== roles
 * The single place where a look shared by several parts of the site is defined: same role, same font, size, weight, colour and spacing.
 * Earlier sections give each part its layout; this section (last, so it wins) gives every role one look. Sizes are the --fs-* tokens only
 * (tests/test_design_system.py fails on any other font-size), boxes use --pad-box and --radius-box. Add a new part to a role, do not restyle it. */

/* headings: Bricolage Grotesque, strong colour; h1 700, h2 and h3 600; h4 is bold body text */
[dir] .md-typeset h2 { margin: 2.4rem 0 .8rem; font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1.2; }
[dir] .md-typeset h3 { margin: 1.6rem 0 .5rem; font-family: var(--lc-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--lc-strong); }
[dir] .md-typeset h4 { margin: 1.2rem 0 .4rem; font-family: var(--lc-sans); font-size: var(--fs-body); font-weight: 700; line-height: 1.5; letter-spacing: normal; color: var(--lc-strong); }

/* label: small uppercase text that names a group (above lists, filters, sidebar sections, a card's kind) */
[dir] .md-typeset .lc-kicker, [dir] .md-typeset .lc-guides h3, .lc-docs__section summary, [dir] .md-typeset .lc-docs__nav h2, .lc-pager a span, .lc-filter label,
.lc-card__title small, [dir] .md-typeset .how__step h3, .lc-ostile.is-yours::after, .lc-menu a {
  font-family: var(--lc-sans); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-muted); }
.lc-menu a { font-weight: 500; letter-spacing: .1em; color: var(--lc-fg); }
.lc-menu a.is-active { color: var(--lc-accent-strong); }
.lc-menu a.lc-menu__cta { color: #fff; }
.lc-ostile.is-yours::after { color: #fff; }

/* title of a tile or card: display font, h3 size, 600 */
.lc-card__title strong, .lc-choice strong, .lc-cat strong, .lc-feature__body strong, .lc-tile__title, [dir] .md-typeset .lc-related__title, [dir] .md-typeset .lc-stepcard__title, [dir] .md-typeset .lc-ostile h3, [dir] .md-typeset .lc-tile__body .lc-tile__title {
  font-family: var(--lc-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--lc-strong); }
[dir] .md-typeset .lc-ostile h3, [dir] .md-typeset .lc-tile__body .lc-tile__title { margin: 0; }
[dir] .md-typeset .lc-related__title { margin: 0 0 .4rem; }
.lc-footer strong { font-family: var(--lc-display); font-size: var(--fs-h3); font-weight: 700; }

/* description of a tile or card: ui size, 1.55 line height */
.lc-card__text, .lc-stepcard__text, .lc-feature__body span, .lc-cat span, .lc-choice p, .lc-tile__body > span:not(.lc-go), .lc-ostile p:not(.lc-small), .lc-related__item p:not(.lc-small) { font-size: var(--fs-ui); line-height: 1.55; color: var(--lc-fg); }

/* lead: the larger, light sentence under a title */
.md-typeset .lc-lead, .md-typeset .lc-lead-text, .md-typeset .how__text, .md-typeset .lc-panel .lc-lead-text { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--lc-fg); }

/* small and fine print: captions, notes and helper text are sm and muted; credits are sm; legal lines and chips are xs */
.md-typeset figcaption, .md-typeset .how__credit { font-size: var(--fs-sm); font-style: normal; font-weight: 400; line-height: 1.5; color: var(--lc-muted); text-align: left; max-width: none; }
.md-typeset .how__caption { font-size: var(--fs-ui); line-height: 1.55; color: var(--lc-fg); }

/* buttons and links */
.md-typeset .lc-btn small { font-size: var(--fs-xs); }
.md-typeset .lc-lead strong { font-weight: 600; }
.md-typeset .lc-btn, .md-typeset .lc-btn--small { font-family: var(--lc-sans); letter-spacing: inherit; line-height: 1.4; }
.md-typeset .lc-btn--small { padding: .2rem .6rem; }
.md-typeset a.lc-gh, .lc-badge { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em; line-height: 1.5; }

/* tiles, cards and boxes: one padding, one radius, one border */
[dir] .md-typeset .lc-choice, [dir] .md-typeset a.lc-tile, [dir] .md-typeset a.lc-cat, [dir] .md-typeset .lc-ostile, [dir] .md-typeset .lc-related__item, .md-typeset .lc-panel,
[dir] .md-typeset .how__box, .lc-feature__body, [dir] .md-typeset a.lc-stepcard { padding: var(--pad-box); }
[dir] .md-typeset .lc-choice, [dir] .md-typeset a.lc-tile, [dir] .md-typeset a.lc-cat, .lc-ostile, .lc-related__item, .lc-panel, .how__box, .lc-card, .lc-feature, .lc-notebooks > li,
.md-typeset .lc-pager a, .lc-filter { border-radius: var(--radius-box); }
.md-typeset .lc-card__main { padding: var(--pad-box) var(--pad-box) .8rem; }
.lc-card--plain .md-typeset .lc-card__main, .md-typeset .lc-card--plain .lc-card__main { padding-bottom: var(--pad-box); }
.lc-card__foot { padding: .6rem var(--pad-box); }
.md-typeset .lc-card__foot--in { margin: auto calc(-1 * var(--pad-box)) -.8rem; padding: .6rem var(--pad-box); }
[dir] .md-typeset a.lc-cat { background: #fff; }

/* tiles that are links behave the same: border turns green, the shadow appears, the tile rises one step; the focus ring is the same */
[dir] .md-typeset .lc-feature, [dir] .md-typeset .lc-pager a, [dir] .md-typeset a.lc-stepcard { border: 1px solid var(--lc-line); border-radius: var(--radius-box); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
[dir] .md-typeset .lc-feature:hover, [dir] .md-typeset .lc-pager a:hover, [dir] .md-typeset a.lc-stepcard:hover { border-color: var(--lc-accent-strong); box-shadow: 0 .6rem 1.4rem rgba(28, 95, 28, .14); transform: translateY(-2px); }
[dir] .md-typeset .lc-feature:focus-within, [dir] .md-typeset .lc-pager a:focus-visible, [dir] .md-typeset a.lc-stepcard:focus-visible { outline: 2px solid var(--lc-accent-strong); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { [dir] .md-typeset .lc-feature:hover, [dir] .md-typeset .lc-pager a:hover, [dir] .md-typeset a.lc-stepcard:hover { transform: none; } }

/* callouts: a note set apart from the text. Green by default, orange for a warning or an experimental part; always a 4px edge on the left */
[dir] .md-typeset .lc-help, [dir] .md-typeset blockquote, [dir] .md-typeset blockquote.lc-cite, .md-typeset .lc-demo__next, .md-typeset .how__handoff, [dir] .md-typeset .admonition,
.md-typeset .lc-demo__experimental, .md-typeset .lc-demo__notice, [dir] .md-typeset .how__box--custom {
  margin: 1rem 0; padding: .9rem var(--pad-box); border: 0; border-left: 4px solid var(--lc-accent-strong); border-radius: 0 var(--radius-box) var(--radius-box) 0; background: var(--lc-soft);
  box-shadow: none; font-size: var(--fs-body); font-weight: 400; color: var(--lc-fg); }
.md-typeset .lc-demo__next { font-weight: 600; color: var(--lc-strong); }
.lc-band--soft .lc-cite, .lc-band--soft blockquote { background: #fff; }
[dir] .md-typeset .admonition, .md-typeset .lc-demo__experimental, [dir] .md-typeset .how__box--custom { border-left-color: var(--lc-orange); background: var(--lc-orange-soft); }
[dir] .md-typeset .how__box--custom { padding: var(--pad-box); }
.md-typeset .admonition-title { font-size: var(--fs-body); font-weight: 600; }

/* tables: the same in the guides, on app pages and in the demo: ui size, strong 600 header, a thin line between rows, no frame */
[dir] .md-typeset table:not([class]), [dir] .md-typeset table.lc-table, .md-typeset .lc-how__hosts { font-size: var(--fs-ui); line-height: 1.5; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
[dir] .md-typeset table:not([class]) th, [dir] .md-typeset table.lc-table th, .md-typeset .lc-how__hosts th { padding: .5rem .8rem .5rem 0; font-size: var(--fs-ui); font-weight: 600; color: var(--lc-strong); text-align: left; background: transparent; border-bottom: 1px solid var(--lc-line); }
[dir] .md-typeset table:not([class]) td, [dir] .md-typeset table.lc-table td, .md-typeset .lc-how__hosts td { padding: .5rem .8rem .5rem 0; font-size: var(--fs-ui); border-top: 0; border-bottom: 1px solid var(--lc-line); }

/* code: inline and blocks use the ui size */
.md-typeset code, .md-typeset pre > code, .md-typeset .highlight code { font-size: var(--fs-ui); }

/* line length: running text never runs wider than 52rem, on every page, so wide pages (cards, tables, code) and text pages read the same way */
.lc-content--wide .md-typeset > p, .lc-content--wide .md-typeset > ul:not([class]), .lc-content--wide .md-typeset > ol:not([class]), .lc-content--wide .md-typeset > blockquote,
.lc-content--wide .md-typeset > .admonition, .lc-content--wide .md-typeset > section > p, .lc-pagehead .lc-lead { max-width: 52rem; }

/* grids of tiles and cards: one gap; buttons are rectangles with a 6px corner everywhere, including the call to action in the menu */
[dir] .md-typeset ul.lc-grid, [dir] .md-typeset ul.lc-features, [dir] .md-typeset ul.lc-cats, [dir] .md-typeset ul.lc-related, .lc-tiles, .lc-choices, .lc-osgrid { gap: var(--gap-grid); }
.lc-menu a.lc-menu__cta { border-radius: .3rem; }

/* pictures and code boxes: one corner radius each */
.lc-docs .md-content__inner img, .md-typeset .lc-shot img, .md-typeset .lc-comic img, .how__crop, [dir] .md-typeset .how__map img, .md-typeset .lc-demo__fig img, .lc-feature__shot { border-radius: var(--radius-img); }
.md-typeset .highlight, .md-typeset pre, .md-typeset pre > code, .lc-code { border-radius: var(--radius-code); }
.lc-docs__nav, .lc-footer, .lc-header { font-family: var(--lc-sans); letter-spacing: -.01em; }   /* the same font stack and tracking as the text */

/* step number: the same green circle on the home page, the Build hub and How it works */
.lc-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lc-accent-strong); color: #fff;
  font-family: var(--lc-sans); font-size: var(--fs-ui); font-weight: 700; letter-spacing: normal; line-height: 1; }

/* the steps as cards (home page, Build hub): three then two on a wide screen, both rows filling the width; two columns, then one on a phone */
[dir] .md-typeset ol.lc-stepcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap-grid); margin: 0; padding: 0; list-style: none; }
[dir] .md-typeset ol.lc-stepcards > li { grid-column: span 2; margin: 0; }
[dir] .md-typeset ol.lc-stepcards > li:nth-child(n+4) { grid-column: span 3; }
[dir] .md-typeset a.lc-stepcard { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; height: 100%; color: var(--lc-fg); text-decoration: none; }
[dir] .md-typeset a.lc-stepcard .lc-stepcard__title { margin: .2rem 0 0; }
@media (max-width: 60rem) {
  [dir] .md-typeset ol.lc-stepcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [dir] .md-typeset ol.lc-stepcards > li, [dir] .md-typeset ol.lc-stepcards > li:nth-child(n+4) { grid-column: auto; }
  [dir] .md-typeset ol.lc-stepcards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { [dir] .md-typeset ol.lc-stepcards { grid-template-columns: 1fr; } }

/* /submit/: the form that writes labconstrictor-app.yaml in the browser; the fields at the left, the file at the right (stacked on a phone) */
.lc-mf { margin: 1rem 0 1.4rem; padding: var(--pad-box); border: 1px solid var(--lc-line); border-radius: var(--radius-box); background: var(--lc-soft); }
[dir] .md-typeset .lc-mf h3 { margin-top: 0; }
.lc-mf__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-grid); align-items: start; }
.lc-mf__cols > *, .lc-mf__group { min-width: 0; }
.lc-mf__hint { overflow-wrap: anywhere; }
@media (max-width: 60rem) { .lc-mf__cols { grid-template-columns: 1fr; } }
.lc-mf__field { display: grid; gap: .25rem; margin: 0 0 .9rem; }
.lc-mf__field label, .lc-mf__group legend { font-size: var(--fs-ui); font-weight: 600; color: var(--lc-strong); }
.lc-mf input[type="text"], .lc-mf textarea, .lc-mf select { width: 100%; padding: .4rem .55rem; border: 1px solid var(--lc-line); border-radius: 6px; background: #fff; color: var(--lc-fg); font: inherit; font-size: var(--fs-ui); }
.lc-mf textarea { resize: vertical; }
.lc-mf [aria-invalid="true"] { border-color: #b42318; }
.lc-mf__hint { font-size: var(--fs-sm); color: var(--lc-muted); }
.lc-mf__error { font-size: var(--fs-sm); color: #b42318; }
.lc-mf__error:empty { display: none; }
.lc-mf__group { margin: 0 0 .9rem; padding: .7rem .9rem; border: 1px solid var(--lc-line); border-radius: 8px; background: #fff; }
.lc-mf__check { display: block; margin: 0 0 .6rem; font-size: var(--fs-ui); }
.lc-mf__hosts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--fs-ui); }
[dir] .md-typeset details.lc-mf__more { margin: 0; }
[dir] .md-typeset details.lc-mf__more[open] > summary { margin-bottom: .9rem; }
.lc-mf__out { position: sticky; top: 4.5rem; }
@media (max-width: 60rem) { .lc-mf__out { position: static; } }
[dir] .md-typeset .lc-mf__status { margin: 0 0 .5rem; font-size: var(--fs-ui); font-weight: 600; color: #b42318; }
[dir] .md-typeset .lc-mf__status.is-ok { color: var(--lc-accent-strong); }
[dir] .md-typeset .lc-mf__yaml { margin: 0; max-height: 28rem; overflow: auto; }
[dir] .md-typeset .lc-mf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .7rem 0 0; }
.md-typeset .lc-mf__actions .lc-btn:disabled { opacity: .5; cursor: not-allowed; }
