/* glascii blog — light-mode port of the single-column editorial blog template.
   Preserves the exact layout grid (640 reading column / 944 wide / 1248 full),
   Geist type ramp (14 / 18 / 28 / 48, weight 400), vertical rhythm
   (24 / 48 / 64 / 72 / 88), and component primitives on glascii's cool-neutral optical ground. */

:root {
  /* Devin.ai pure neutral greyscale & cobalt accent system (preserving blog type & spacing ramps) */
  --bg: #f8f8f8;
  --text: #191919;
  --text-strong: #000000;
  --body: rgba(25, 25, 25, 0.80);
  --muted: rgba(25, 25, 25, 0.66);
  --faint: rgba(25, 25, 25, 0.62);
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.12);
  --surface: rgba(0, 0, 0, 0.04);
  --raised: rgba(0, 0, 0, 0.05);
  --elevated: #ffffff;
  --fill: rgba(0, 0, 0, 0.04);
  --ring: rgba(0, 0, 0, 0.09);
  --blue: #1d63dc;
  --blue-hover: #1857c5;
  --orange: #b45309;
  --green: #007a40;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --col: 640px;
  --wide: 944px;
  --page: min(1248px, 100% - 80px);
  --radius: 10px;
  --stage: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--body);
  font: 400 18px / 1.7 var(--font);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, pre { margin: 0; }
a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: rgb(9 10 12 / 0.28);
}
code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--raised);
  color: var(--text);
  font: 400 14px / 1 var(--mono);
}
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--elevated);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -1px 0 var(--line-strong);
  color: var(--text);
  font: 400 14px / 1.7 var(--font);
  text-align: center;
}
q { quotes: "\201C" "\201D"; color: var(--text); }

/* Emphasis is colour, never weight (matching the template's single-weight discipline). */
.post :is(b, strong) { color: var(--text); font-weight: 400; }
.post h3 { font-weight: 400; }

/* A marker stroke under the one phrase a section hangs on. */
mark {
  padding: 0 2px;
  background: linear-gradient(transparent 82%, rgba(49, 124, 255, 0.28) 82%);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Shared floating glass pill nav ---------- */
.nav {
  position: fixed;
  inset: 14px 16px auto 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  width: min(940px, 100%);
  height: 52px;
  padding: 0 12px 0 20px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  justify-self: start;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.012em;
  color: rgb(9 10 12 / 0.56);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}
.nav-text-link {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.012em;
  color: rgb(9 10 12 / 0.6);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-text-link:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.014em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 140ms ease, color 140ms ease;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-solid { background: var(--text-strong); color: var(--elevated); }
.btn-solid:hover { opacity: 0.82; }
.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.btn-outline:hover { background: rgba(0, 0, 0, 0.06); }

/* ---------- Layout: one column, three figure widths, all centred ---------- */
.post { font-size: 18px; line-height: 28px; }
.post-head,
.sec {
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [wide-start] minmax(0, calc((var(--wide) - var(--col)) / 2))
    [col-start] min(var(--col), 100%)
    [col-end] minmax(0, calc((var(--wide) - var(--col)) / 2))
    [wide-end] minmax(0, 1fr)
    [full-end];
  width: var(--page);
  margin-inline: auto;
}
.post-head > *,
.sec > * { grid-column: col; }
.sec > .fig--wide { grid-column: wide; }
.sec > .fig--full { grid-column: full; }
.post article { padding-bottom: 96px; }

/* ---------- Header: crumbs, one title, byline. No dek. ---------- */
.post-head { padding-block: 129px 64px; }
.crumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color 140ms ease; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.post h1 {
  color: var(--text);
  font: 400 48px / 52px var(--font);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.byline {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.byline span:first-child { color: var(--text); }
.opening { width: var(--page); margin: 0 auto 88px; }

/* ---------- Captions: 16 below the visual, on the text edge, one tone ---------- */
.post figcaption {
  max-width: var(--col);
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.post :is(.fig, .opening) > figcaption {
  margin-left: max(0px, (100% - var(--col)) / 2);
}
.post figcaption span { display: block; color: var(--muted); }

/* ---------- Section flow ---------- */
.sec + .sec { margin-top: 72px; }
.sec > * { margin-top: 24px; margin-bottom: 0; }
.sec > :first-child { margin-top: 0; }
.sec > p { text-wrap: pretty; }
.sec > h2 {
  color: var(--text);
  font: 400 28px / 36px var(--font);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sec > .date {
  justify-self: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.sec > .date + h2 { margin-top: 8px; }
.sec > .pull { color: var(--text); text-wrap: balance; }
.sec > .pull,
.sec > .pull + * { margin-top: 24px; }
.sec > :is(ol, ul) { padding-left: 24px; }
.sec > :is(ol, ul) > li + li { margin-top: 8px; }
.sec > :is(ol, ul) > li::marker { color: var(--muted); }
.sec > :is(p, ol, ul) a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(9 10 12 / 0.28);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s;
}
.sec > :is(p, ol, ul) a:hover { text-decoration-color: currentColor; }

/* ---------- Figures: 64 in the column, 88 when wide, full or spaced ---------- */
.sec > .fig,
.sec > .fig + * { margin-top: 64px; }
.sec > :is(.fig--wide, .fig--full, .fig--spaced),
.sec > :is(.fig--wide, .fig--full, .fig--spaced) + * { margin-top: 88px; }
.sec > .fig:last-child { margin-bottom: 64px; }
.sec > .fig + .fig { margin-top: 64px; }

.shot {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot img,
.shot video { display: block; width: 100%; height: auto; }
.shot--pad { display: grid; place-items: center; padding: 36px; }
.shot--elevated {
  background: var(--elevated);
  box-shadow: 0 1px 2px rgb(10 14 24 / 0.04), inset 0 0 0 1px var(--line);
}
.row { display: grid; gap: 12px; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Timeline: steps over one line each ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.timeline li {
  padding: 16px 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-wrap: balance;
}
.timeline b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}
.timeline li:last-child b { color: var(--blue); }

/* ---------- Callouts, prompts and the end CTA: 48 around ---------- */
.sec > :is(.callout, .prompts, .end),
.sec > :is(.callout, .prompts) + * { margin-top: 48px; }
.callout > h3 {
  margin: 0 0 8px;
  color: var(--text);
  font: 400 18px / 28px var(--font);
}
.callout > p { color: var(--body); }
.callout > * + * { margin-top: 24px; }
.callout > h3 + * { margin-top: 0; }

/* ---------- Code and prompts: one cool-neutral container, 14/22 mono ---------- */
.code {
  position: relative;
  border-radius: var(--radius);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px rgb(10 12 16 / 0.05);
}
.code pre {
  margin: 0;
  padding: 20px 104px 20px 24px;
  overflow-x: auto;
  color: var(--muted);
  font: 400 14px / 22px var(--mono);
  tab-size: 2;
}
.code .k { color: var(--text); }
.code .v { color: var(--blue); }
.code .c { color: var(--muted); }
.code__prompt { margin: 0; padding: 20px 104px 20px 24px; color: var(--body); }

.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 400 14px / 1 var(--font);
  cursor: pointer;
  transition: color 0.15s ease;
}
.copy:hover,
.copy[data-copied] { color: var(--text); }
.copy svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy :is(.copy__done, .copy__label),
.copy[data-copied] .copy__icon { display: none; }
.copy[data-copied] :is(.copy__done, .copy__label) { display: inline; }

/* ---------- The switch: light-mode segmented control ---------- */
.switch {
  display: flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 4000px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.switch button {
  appearance: none;
  padding: 7px 18px;
  border: 0;
  border-radius: 4000px;
  background: transparent;
  box-shadow: none;
  color: rgb(9 10 12 / 0.58);
  font: 500 14px / 1.35 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.switch button:hover { color: var(--text); }
.switch button:is([aria-selected="true"], [aria-pressed="true"]) {
  background: var(--elevated);
  box-shadow: 0 1px 3px rgb(10 12 16 / 0.12), 0 0 0 0.5px rgb(10 12 16 / 0.06);
  color: var(--text);
}
.switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fig > .switch,
.opening > .switch { margin: 16px auto 0; }

.prompts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 719px) {
  .prompts > .switch { overflow-x: auto; scrollbar-width: none; }
}
.prompts__panel[hidden] { display: none; }

/* ---------- Labels on a photographic visual (leaders to the lens box) ---------- */
.fig-labels {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.fig-labels li {
  position: absolute;
  left: var(--x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  translate: -50% 0;
  color: #fff;
  font: 400 14px / 20px var(--font);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.72), 0 2px 12px rgb(0 0 0 / 0.55);
}
.fig-labels li::after {
  content: "";
  width: 1px;
  height: 22px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.45);
}
.fig-labels li[data-edge="top"] { bottom: calc(100% - var(--pt)); }
.fig-labels li[data-edge="bottom"] { top: var(--pb); flex-direction: column-reverse; }
.fig-labels li i {
  margin-left: 2px;
  color: rgb(255 255 255 / 0.8);
  font-style: normal;
}

/* ---------- Small multiples: four cells with hairline dividers ---------- */
.multiples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--stage);
  box-shadow: inset 0 0 0 1px var(--line);
}
.multiples > div {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 16px 26px;
}
.multiples > div + div { border-left: 1px solid var(--line); }
.multiples span {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.multiples__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
}

/* ---------- Compact table ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
.table :is(th, td) {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table :is(th, td):last-child { padding-right: 0; }
.table th { color: var(--muted); font-weight: 400; }
.table td { color: var(--body); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table td.num { color: var(--text); font-family: var(--mono); font-size: 13px; }
.table td code { font-size: 13px; }

/* ---------- Interactive Parameter Lab (Section 6) ---------- */
.param-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.lab-stage {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--elevated);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  contain: layout paint style;
  user-select: none;
  -webkit-user-select: none;
}

.lab-plate {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
}

.lab-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 244px;
  height: 158px;
  border-radius: 28px;
  isolation: isolate;
  cursor: grab;
  touch-action: none;
  contain: layout style;
  box-shadow:
    0 16px 38px rgba(8, 12, 24, 0.2),
    0 2px 6px rgba(8, 12, 24, 0.1);
  will-change: transform;
}
.lab-lens:active { cursor: grabbing; }

.lab-stage-foot {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.lab-swatches {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 4px 12px rgba(8, 12, 24, 0.12);
}

.lab-swatch {
  width: 28px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.14);
  transition: opacity 140ms ease, box-shadow 140ms ease;
}
.lab-swatch:hover { opacity: 1; }
.lab-swatch.active {
  opacity: 1;
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 0 3px var(--text);
}
.lab-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lab-drag-note {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.lab-controls {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #f0f0f2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.lab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-bottom: none;
  background: transparent;
  flex-wrap: wrap;
}

.lab-presets,
.lab-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lab-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 450;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.lab-pill-btn .ctrl-icon {
  width: 16px;
  height: 16px;
  opacity: 0.74;
  flex-shrink: 0;
}
.lab-pill-btn:hover { color: var(--text); }
.lab-pill-btn:hover .ctrl-icon { opacity: 0.94; }
.lab-pill-btn.active {
  background: var(--elevated);
  color: var(--text-strong);
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.04);
}
.lab-pill-btn.active .ctrl-icon { opacity: 1; }

.lab-action-btn {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.lab-action-btn:hover {
  color: var(--text);
  background: rgba(10, 10, 10, 0.05);
}

.lab-sliders {
  flex: 1;
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--elevated);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lab-row {
  padding: 9px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lab-row + .lab-row { border-top: 1px solid var(--line); }

.lab-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lab-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.lab-row-meta code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: none;
  padding: 0;
  flex: none;
}

.lab-row-desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}

/* InspectorRangeSlider (light-mode port from Framer MCP Icons):
   12 px recessed pill track, quiet fill to thumb centre, and 20 x 12 px pill thumb flush inside. */
.lab-range {
  --f: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: none;
  cursor: default;
  margin: 0;
  touch-action: pan-y;
}
.lab-range:focus { outline: none; }
.lab-range:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.lab-range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.14) calc(10px + var(--f) * (100% - 20px)),
    rgba(0, 0, 0, 0.055) 0
  );
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.lab-range::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.lab-range::-moz-range-progress {
  height: 12px;
  border-radius: 6px 0 0 6px;
  background: rgba(0, 0, 0, 0.14);
}
.lab-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 12px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.14);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.lab-range::-moz-range-thumb {
  width: 20px;
  height: 12px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.14);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.lab-range:hover::-webkit-slider-thumb {
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.18);
}
.lab-range:hover::-moz-range-thumb {
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.18);
}
.lab-range:active::-webkit-slider-thumb {
  background: #f2f2f2;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.36),
    0 1px 2px rgba(0, 0, 0, 0.16);
}
.lab-range:active::-moz-range-thumb {
  background: #f2f2f2;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.36),
    0 1px 2px rgba(0, 0, 0, 0.16);
}

/* ---------- The end CTA ---------- */
.end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.end span { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-foot {
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0 52px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.site-foot-links { display: flex; gap: 24px; }
.site-foot-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}
.site-foot-links a:hover { color: var(--blue-hover); }

/* ---------- Responsive ---------- */
@media (width < 1180px) {
  .timeline { grid-template-columns: repeat(min(var(--steps, 4), 2), minmax(0, 1fr)); row-gap: 24px; }
}
@media (width < 840px) {
  .param-lab { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lab-stage { min-height: 300px; }
}
@media (width < 760px) {
  :root { --page: calc(100% - 32px); }
  .nav-pill {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    height: 46px;
    padding: 0 8px 0 14px;
  }
  .nav-links { gap: 14px; }
}
@media (width < 640px) {
  body { overflow-x: clip; }
  .nav { inset: 12px 14px auto 14px; }
  .nav-brand { font-size: 14px; gap: 6px; }
  .nav-links a { font-size: 13px; }
  .nav-text-link { display: none; }
  .btn-sm { height: 28px; padding: 0 11px; font-size: 12px; }
  .post-head { padding-block: 96px 40px; }
  .post h1 { font-size: 32px; line-height: 36px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row--2, .row--3 { grid-template-columns: minmax(0, 1fr); }
  .row--4, .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multiples > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .multiples > div:nth-child(4) { border-top: 1px solid var(--line); }
  .shot--pad { padding: 20px; }
  .fig-labels { display: none; }
  .lab-stage { min-height: 270px; }
  .lab-lens { width: min(216px, calc(100% - 48px)); height: 136px; border-radius: 22px; }
  .lab-bar { padding: 10px 14px; }
  .lab-sliders { padding: 10px 14px 12px; }
  .lab-row-desc { display: none; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
