/* ScriptGlyph website. Colours and type come from the brand pack (brand/tokens.css); the product recreations
   follow the editor's own styles (src/html/Styles.html). */

@font-face {
  font-family: 'Open Sans';
  src:
    url('fonts/OpenSans-Regular.woff2') format('woff2'),
    url('fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src:
    url('fonts/OpenSans-Semibold.woff2') format('woff2'),
    url('fonts/OpenSans-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src:
    url('fonts/OpenSans-Bold.woff2') format('woff2'),
    url('fonts/OpenSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand palette */
  --paper: #f7f9fc;
  --graphite: #202630;
  --glyph-blue: #2457a7;
  --mist: #e5ecf7;
  --slate: #566171;
  --rule: #ccd4df;
  --white: #ffffff;
  --ice: #a9c7ff;

  /* Editor colours, as in src/html/Styles.html */
  --grid-minor: #292f38;
  --grid-major: #343a43;
  --accent: #f3b58a;
  --node-flow: #565a62;
  --graphite-soft: #3b4049;
  --shadow: rgba(32, 38, 48, 0.28);
  --pin-any: #6b7a77;
  --pin-boolean: #c14d3f;
  --pin-number: #3f8f4f;
  --pin-string: #b54a92;
  --pin-object: #3d7fc4;

  --font: 'Open Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --measure: 1200px;
  --gutter: 40px;
  --section: 112px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  -webkit-tap-highlight-color: rgba(36, 87, 167, 0.12);
}
a,
button,
summary {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 18px/1.6 var(--font);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--glyph-blue);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--glyph-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible {
  outline-color: var(--ice);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}
p {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  height: 28px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  color: var(--slate);
  text-decoration: none;
}
.site-nav a[aria-current='page'] {
  color: var(--graphite);
}
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--glyph-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 150ms var(--ease-out),
    transform 120ms var(--ease-out);
}
.button:active {
  transform: scale(0.97);
}
.button.primary {
  background: var(--glyph-blue);
  color: var(--white);
}
.button.quiet {
  background: var(--white);
  color: var(--graphite);
  border-color: var(--rule);
}
.site-header .button {
  padding: 9px 16px;
  font-size: 15px;
}

/* Type */
.display {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 19ch;
  text-wrap: balance;
}
.h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.lead {
  font-size: 20px;
  color: var(--slate);
  max-width: 60ch;
  text-wrap: pretty;
}
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.prose p {
  max-width: 66ch;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 12px;
}

/* Sections, separated by thin rules like an engineering drawing */
.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 48px;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.hero .wrap {
  display: grid;
  gap: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Demo band: the editor's own ground */
.demo {
  color: var(--white);
  background-color: var(--graphite);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  padding: 96px 0 88px;
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.demo-head .h2 {
  color: var(--white);
}
.demo-head p {
  color: var(--rule);
  max-width: 56ch;
  margin-top: 12px;
}
.demo .wrap {
  width: min(1320px, 100% - 2 * var(--gutter));
}
.stills {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: still;
}
.still {
  display: grid;
  gap: 16px;
  align-content: start;
}
.still-frame {
  border-radius: 12px;
  border: 1px solid #3a414c;
  overflow: hidden;
  background: var(--graphite);
}
.still figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.still .step {
  counter-increment: still;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ice);
  color: var(--ice);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.still .step::before {
  content: counter(still);
}
.still .h3 {
  color: var(--white);
  font-size: 19px;
}
.still p {
  color: var(--rule);
  font-size: 16px;
  line-height: 1.55;
}
.recreated {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ice);
}
.try-it {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}
.try-it span {
  color: var(--rule);
  font-size: 16px;
}

/* Scaled canvases: the inner canvas has a fixed size and is scaled to fit by demo.js */
.fit {
  position: relative;
  overflow: hidden;
}
.fit > .sg-canvas {
  transform-origin: 0 0;
}

/* Recreated editor */
.sg-canvas {
  position: relative;
  font: 400 12px/1.35 var(--font);
  color: var(--graphite);
  background-color: var(--graphite);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
}
.sg-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.sg-wires path {
  fill: none;
  stroke-width: 2.5;
}
.sg-wires path.exec {
  stroke: var(--white);
  stroke-width: 3;
}
.sg-wires path.object {
  stroke: var(--pin-object);
}
.sg-wires path.string {
  stroke: var(--pin-string);
}
.sg-wires path.pending {
  stroke-dasharray: 6 4;
}
.sg-wires path.added {
  stroke: var(--ice);
  stroke-width: 3.5;
}
.sg-node {
  position: absolute;
  min-width: 150px;
  background: var(--paper);
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px var(--shadow);
}
.sg-node.selected {
  border-color: var(--accent);
}
.sg-node.faded {
  opacity: 0.4;
}
.sg-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  white-space: nowrap;
}
.sg-head .sub {
  font-weight: 400;
  font-size: 10px;
  opacity: 0.8;
}
.k-event .sg-head {
  background: var(--accent);
  color: var(--graphite);
}
.k-impure .sg-head {
  background: var(--glyph-blue);
  color: var(--white);
}
.k-pure .sg-head {
  background: var(--ice);
  color: var(--graphite);
}
.k-flow .sg-head {
  background: var(--node-flow);
  color: var(--white);
}
.k-code .sg-head {
  background: repeating-linear-gradient(135deg, var(--graphite) 0 8px, var(--graphite-soft) 8px 16px);
  color: var(--white);
}
.sg-node.compact .sg-head {
  border-radius: 6px;
}
.sg-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}
.sg-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sg-col.out {
  align-items: flex-end;
}
.sg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  font-size: 11.5px;
}
.sg-col.in .sg-row {
  padding-left: 4px;
}
.sg-col.out .sg-row {
  padding-right: 4px;
}
/* An unwired input's typed value, as the editor shows it on the node (.pin-literal in Styles.html) */
.sg-field {
  width: 110px;
  height: 20px;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}
.sg-check {
  width: 13px;
  height: 13px;
  border: 1px solid var(--slate);
  border-radius: 3px;
  background: var(--white);
  flex: none;
}
.sg-check.on {
  background: var(--glyph-blue);
  border-color: var(--glyph-blue);
}
.pin {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--pin-any);
}
.pin.c {
  background: var(--pin-any);
}
.pin.t-string {
  border-color: var(--pin-string);
}
.pin.t-string.c {
  background: var(--pin-string);
}
.pin.t-object {
  border-color: var(--pin-object);
}
.pin.t-object.c {
  background: var(--pin-object);
}
.pin.drag {
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px var(--glyph-blue);
}
.pin.exec {
  border: none;
  border-radius: 0;
}
.pin.exec::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%);
  background: var(--slate);
}
.pin.exec.c::after {
  background: var(--graphite);
}
.lit {
  padding: 0 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  font-size: 11px;
  color: var(--slate);
}
.sg-tag {
  position: absolute;
  padding: 2px 8px;
  border-radius: 4px;
  font: 600 11px/1.5 var(--font);
  white-space: nowrap;
}
.sg-tag.added {
  background: var(--ice);
  color: var(--graphite);
}
.sg-tag.yours {
  background: var(--graphite);
  color: var(--white);
  border: 1px dashed var(--white);
}

/* Node menu, as in the editor */
.sg-menu {
  position: absolute;
  width: 230px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 28px var(--shadow);
  overflow: hidden;
}
.sg-menu .search {
  margin: 8px;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--slate);
  font-size: 11.5px;
}
.sg-menu .context {
  padding: 0 12px 4px;
  font-size: 11px;
  color: var(--slate);
}
.sg-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.sg-menu .cat {
  padding: 6px 12px 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sg-menu .act {
  padding: 4px 12px 4px 20px;
  font-size: 12px;
}
.sg-menu .act.active {
  background: var(--mist);
  box-shadow: inset 3px 0 0 var(--glyph-blue);
  font-weight: 600;
}

/* Chains of compact nodes (templates, import) */
.chain {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px;
  overflow-x: auto;
}
.chain .sg-node {
  position: relative;
  min-width: 0;
  flex: none;
}
.chain .link {
  flex: none;
  width: 22px;
  height: 3px;
  background: var(--white);
  position: relative;
}
.chain .link::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5.5px solid transparent;
  border-left-color: var(--white);
  border-right: 0;
}
.chain.canvas {
  background-color: var(--graphite);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 12px;
}
.chain.wrapping {
  flex-wrap: wrap;
  row-gap: 14px;
}
.chain.vertical {
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px;
}
.chain.vertical .link {
  width: 3px;
  height: 16px;
  margin-left: 22px;
}
.chain.vertical .link::after {
  right: auto;
  top: auto;
  left: -4px;
  bottom: -2px;
  border: 5.5px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
}

/* Plain document and sheet panels (no Google interface) */
.sheet {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}
.sheet .menubar {
  display: flex;
  gap: 14px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-size: 11.5px;
  position: relative;
}
.sheet .menubar b {
  color: var(--graphite);
  font-weight: 600;
  background: var(--mist);
  padding: 0 6px;
  border-radius: 4px;
}
.sheet table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.sheet th,
.sheet td {
  border: 1px solid #e3e8ef;
  padding: 5px 8px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet th {
  background: #f1f4f8;
  font-weight: 600;
  color: var(--slate);
  font-size: 11px;
}
.sheet td.new {
  background: #eef4ff;
  color: var(--glyph-blue);
  text-decoration: underline;
}
.doc {
  background: var(--white);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 6px 20px var(--shadow);
}
.doc .title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.doc mark {
  background: var(--mist);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.run {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--graphite);
}
.run .doc {
  margin-left: 18%;
  margin-top: -4px;
}
.still .run p {
  color: var(--graphite);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Code panel */
.code {
  margin: 0;
  background: var(--graphite);
  color: #d5dce8;
  border-radius: 12px;
  padding: 18px 20px;
  font: 400 13px/1.7 var(--mono);
  overflow-x: auto;
  white-space: pre;
}
.code .k {
  color: var(--ice);
}
.code .s {
  color: #e8a6d2;
}
.code .c {
  color: #8a95a6;
}

/* Templates */
.templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.template {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.template .button {
  justify-self: start;
  margin-top: 8px;
}
dialog.panel {
  width: min(880px, 100% - 32px);
  border: none;
  border-radius: 16px;
  padding: 0;
  color: var(--graphite);
  box-shadow: 0 24px 64px rgba(32, 38, 48, 0.35);
}
dialog.panel {
  overscroll-behavior: contain;
}
dialog.panel::backdrop {
  background: rgba(32, 38, 48, 0.5);
}
dialog.panel[open]::backdrop {
  animation: fade-in 180ms var(--ease-out);
}
dialog.panel[open] {
  animation: panel-in 180ms var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.panel-body {
  display: grid;
  gap: 18px;
  padding: 28px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.panel-close {
  font: 600 15px/1 var(--font);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}

/* Import and hand-over: labelled panels in sequence */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: panel;
}
.panels.four {
  grid-template-columns: repeat(4, 1fr);
}
.panel-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.panel-card h3 {
  font-size: 16px;
  font-weight: 600;
}
.panel-card .small {
  font-size: 14px;
}
.note {
  padding: 16px 18px;
  background: var(--mist);
  border-radius: 12px;
  font-size: 16px;
}
.before-after {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.before-after table {
  width: 100%;
  border-collapse: collapse;
}
.before-after th,
.before-after td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--mist);
  text-align: left;
}
.before-after th {
  font-size: 13px;
  color: var(--slate);
  font-weight: 600;
}
.before-after td.ws {
  font-family: var(--mono);
  white-space: pre;
  font-size: 13px;
}
.dialog-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
  display: grid;
  gap: 8px;
}
.dialog-card .title {
  font-size: 16px;
}
.dialog-card ul {
  margin: 0;
  padding-left: 18px;
}
.dialog-card .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.dialog-card .pill {
  border-radius: 100px;
  padding: 5px 14px;
  font-weight: 600;
  border: 1px solid var(--rule);
}
.dialog-card .pill.go {
  background: var(--glyph-blue);
  color: var(--white);
  border-color: var(--glyph-blue);
}
.project-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.project-card .bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
}
.project-card .bar span {
  color: var(--rule);
  font-weight: 400;
}
.project-card .setting {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  padding: 12px 14px;
  align-items: center;
}
.project-card .setting .lit {
  font-size: 12px;
}
.project-card .setting .changed {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(243, 181, 138, 0.35);
  color: var(--graphite);
}
.compare {
  margin-top: 48px;
  font-size: 22px;
  font-weight: 600;
  max-width: 34ch;
  text-wrap: balance;
}

/* Steps page */
.page-head {
  padding: 72px 0 40px;
  display: grid;
  gap: 16px;
}
.layout-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: var(--section);
}
.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  border-left: 2px solid var(--rule);
  padding-left: 16px;
}
.toc a {
  color: var(--slate);
  text-decoration: none;
}
.toc a[aria-current='location'] {
  color: var(--graphite);
  font-weight: 600;
  box-shadow: -18px 0 0 -16px var(--glyph-blue);
}
.toc .label {
  font-weight: 700;
  font-size: 14px;
  color: var(--graphite);
}
.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 56px;
  counter-reset: setup;
}
.setup-steps > li {
  counter-increment: setup;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 20px;
}
.setup-steps > li::before {
  content: counter(setup);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glyph-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-top: 2px;
}
.setup-steps .content {
  display: grid;
  gap: 16px;
}
.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.option {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  gap: 6px;
}
.option p {
  font-size: 16px;
  color: var(--slate);
}
.callout {
  padding: 16px 20px;
  border-left: 3px solid var(--glyph-blue);
  background: var(--mist);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  display: grid;
  gap: 6px;
}
.quote-wording {
  font-weight: 600;
}
.needs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
  max-width: 900px;
}
.needs > div {
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.needs p {
  font-size: 16px;
  color: var(--slate);
}
.plain-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.mock {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 14px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.mock .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--glyph-blue);
  position: relative;
  flex: none;
}
.toggle::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
}
.mock .mark {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}
.scopes {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.scopes th,
.scopes td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mist);
}
.scopes th {
  background: #f1f4f8;
  font-size: 14px;
  color: var(--slate);
}
.scopes td:first-child {
  width: 48%;
}
.trouble {
  display: grid;
  gap: 16px;
}
.trouble .item {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  gap: 6px;
}
.trouble .item p {
  font-size: 16px;
  color: var(--slate);
}

/* Privacy */
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 28px;
  background: var(--mist);
  border-radius: 16px;
  margin-bottom: 56px;
}
.summary p {
  font-size: 16px;
}
.policy {
  display: grid;
  gap: 40px;
}
.policy section {
  display: grid;
  gap: 10px;
  scroll-margin-top: 100px;
}
.policy p,
.policy li {
  font-size: 17px;
  max-width: 66ch;
}
.policy ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.draft {
  padding: 14px 18px;
  border: 1px dashed var(--slate);
  border-radius: 12px;
  font-size: 16px;
  color: var(--slate);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--white);
  padding: 48px 0 40px;
  font-size: 15px;
}
.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
}
.site-footer .legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--slate);
}
.site-footer .legal p {
  max-width: 80ch;
}

/* Graphs rendered from the importer (scripts/site-graphs.ts): fixed scale, scrolled when wider than the space */
.graph {
  position: relative;
  overflow: hidden;
  flex: none;
}
.graph > .sg-canvas {
  transform-origin: 0 0;
}
.graph-scroll {
  overflow: auto;
  border-radius: 12px;
  background: var(--graphite);
  max-width: 100%;
  overscroll-behavior: contain;
}
dialog .graph-scroll {
  max-height: min(56vh, 520px);
}
.sg-wires path.number {
  stroke: var(--pin-number);
}
.sg-wires path.boolean {
  stroke: var(--pin-boolean);
}
.sg-wires path.date {
  stroke: #a06a0e;
}
.sg-wires path.enum {
  stroke: #1f8a82;
}
.sg-wires path.any {
  stroke: var(--pin-any);
}
.sg-wires path.dim {
  opacity: 0.4;
}
.pin.t-number {
  border-color: var(--pin-number);
}
.pin.t-number.c {
  background: var(--pin-number);
}
.pin.t-boolean {
  border-color: var(--pin-boolean);
}
.pin.t-boolean.c {
  background: var(--pin-boolean);
}
.pin.t-date {
  border-color: #a06a0e;
}
.pin.t-date.c {
  background: #a06a0e;
}
.pin.t-enum {
  border-color: #1f8a82;
}
.pin.t-enum.c {
  background: #1f8a82;
}
.pin.t-any.c {
  background: var(--pin-any);
}
.code-badge {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.8;
}
.panel-top .small {
  margin-top: 6px;
  max-width: 64ch;
}
.panel-foot {
  display: grid;
  gap: 8px;
}
.import-graph {
  margin-top: 56px;
}
.import-graph .graph-scroll {
  padding: 0;
}
.import-row {
  margin-top: 56px;
  grid-template-columns: 1fr 1fr;
}
.change {
  display: grid;
  gap: 32px;
  align-content: start;
}
.change p {
  font-size: 17px;
  max-width: 52ch;
}
.cells {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cell {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  min-width: 200px;
}
.cell .value {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--graphite);
}
.cell.after {
  border-color: var(--glyph-blue);
}

/* Template steps in the order they run (scripts/site-graphs.ts) */
.steps-view {
  padding: 20px 22px;
  background-color: var(--graphite);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 12px;
  font: 400 13px/1.35 var(--font);
}
.outline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.outline > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.outline > li:not(:last-child) > .sg-node::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -12px;
  width: 3px;
  height: 10px;
  background: var(--white);
}
.outline .sg-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}
.outline .sg-head {
  font-size: 13px;
}
.branches {
  display: grid;
  gap: 10px;
  padding-left: 14px;
  border-left: 2px solid #4a515c;
  margin-left: 10px;
}
.branch {
  display: grid;
  gap: 8px;
}
.branch-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ice);
}
.code-peek {
  display: block;
  margin: 0 10px 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--graphite);
  color: #d5dce8;
  font: 400 11.5px/1.5 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 420px;
}
.outline .sg-node.selected {
  border-color: var(--accent);
}
.steps-note {
  color: var(--rule);
  font-size: 12px;
  margin-top: 14px;
}

/* Real graphs (scripts/site-graphs.ts): node sizes as in src/html/Styles.html */
.sg-canvas.real {
  font: 400 14px/20px var(--font);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}
.sg-canvas.real .sg-node {
  min-width: 160px;
}
.sg-canvas.real .sg-head {
  padding: 5px 10px;
  gap: 6px;
}
.sg-canvas.real .sg-head .sub {
  font-size: 11px;
}
.sg-canvas.real .sg-body {
  gap: 18px;
  padding: 6px 0;
}
.sg-canvas.real .sg-col {
  gap: 4px;
}
.sg-canvas.real .sg-row {
  min-height: 22px;
  font-size: 12px;
}
.sg-canvas.real .pin {
  width: 14px;
  height: 14px;
}
.sg-canvas.real .code-preview {
  margin: 0;
  max-width: 320px;
  overflow: hidden;
  padding: 6px 10px 8px;
  border-top: 1px dashed var(--rule);
  border-radius: 0 0 6px 6px;
  background: var(--paper);
  color: var(--graphite);
  font: 11px/16px var(--mono);
  white-space: pre;
  text-overflow: ellipsis;
}
.sg-canvas.real .code-badge {
  padding: 0 4px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 600 11px/16px var(--mono);
  opacity: 1;
}
.code-explainer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: start;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--mist);
  border-radius: 12px;
}
.code-explainer .chip {
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--white);
  font: 600 13px/1.4 var(--font);
  background: repeating-linear-gradient(135deg, var(--graphite) 0 8px, var(--graphite-soft) 8px 16px);
  white-space: nowrap;
}
.code-explainer p {
  font-size: 16px;
  max-width: 72ch;
}
.viewer {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--graphite);
}
.viewer .graph-scroll {
  height: 440px;
  max-height: none;
  border-radius: 0;
  cursor: grab;
}
.viewer .graph-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}
dialog .viewer .graph-scroll {
  height: min(52vh, 480px);
}
.viewer-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #3a414c;
}
.viewer-tools .hint {
  margin-right: auto;
  color: var(--rule);
  font-size: 13px;
}
.viewer-tools button {
  font: 600 13px/1 var(--font);
  color: var(--white);
  background: rgba(32, 38, 48, 0.88);
  border: 1px solid rgba(169, 199, 255, 0.45);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  transition:
    border-color 120ms var(--ease-out),
    transform 120ms var(--ease-out);
}
.viewer-tools button:active {
  transform: scale(0.97);
}
.viewer-tools button:focus-visible {
  outline-color: var(--ice);
}
.import-row .viewer .graph-scroll {
  height: 230px;
}

/* Hand-over: four equal cards, text above, the recreation filling the rest */
.handover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ho-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.ho-text {
  display: grid;
  gap: 6px;
}
.ho-text .small {
  font-size: 15px;
  max-width: 52ch;
}
.ho-visual {
  margin: 0;
  min-height: 0;
}
.ho-card .doc,
.ho-card .dialog-card,
.ho-card .project-card {
  box-shadow: none;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.ho-card .code {
  font-size: 13px;
}

/* Hero with a crop of the real graph */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero-text {
  display: grid;
  gap: 24px;
}
.hero .display {
  font-size: 56px;
}
.hero-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}
.crop {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--graphite);
  width: fit-content;
  max-width: 100%;
}
.crop .graph {
  position: relative;
}
.hero {
  padding-bottom: 48px;
}

/* How to read a graph */
.read-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}
.read-item {
  display: grid;
  gap: 14px;
  align-content: start;
}
.read-item:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.read-text {
  display: grid;
  gap: 6px;
}
.read-text p {
  font-size: 17px;
  color: var(--slate);
  max-width: 60ch;
}

/* What stays yours */
.own .wrap {
  display: grid;
  gap: 28px;
}
.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.own-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 18px;
  border-top: 2px solid var(--glyph-blue);
}
.own-grid p {
  font-size: 17px;
  color: var(--slate);
}

/* Phone menu */
.mobile-nav {
  display: none;
  position: relative;
}
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  font: 600 15px/1 var(--font);
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  transition: transform 120ms var(--ease-out);
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(32, 38, 48, 0.18);
  z-index: 20;
}
.mobile-nav nav a:not(.button) {
  padding: 10px 8px;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 600;
}
.mobile-nav nav .button {
  justify-content: center;
  margin-top: 6px;
  display: flex !important;
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .own-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .display {
    font-size: 52px;
  }
  .stills {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .templates {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .panels.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout-aside {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}

/* Phone */
@media (max-width: 680px) {
  .mobile-nav {
    display: block;
  }
  .read-list,
  .read-item:first-child {
    grid-template-columns: 1fr;
  }
  .hero .display {
    font-size: 38px;
  }
  .handover {
    grid-template-columns: 1fr;
  }
  :root {
    --gutter: 20px;
    --section: 72px;
  }
  body {
    font-size: 17px;
  }
  .display {
    font-size: 38px;
  }
  .h2 {
    font-size: 30px;
  }
  .lead {
    font-size: 18px;
  }
  .site-nav {
    display: none;
  }
  .site-header .wrap {
    justify-content: space-between;
    height: 60px;
  }
  .site-header .button {
    display: none;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .demo {
    padding: 72px 0;
  }
  .panels,
  .panels.four,
  .options,
  .summary,
  .needs {
    grid-template-columns: 1fr;
  }
  .setup-steps > li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .run .doc {
    margin-left: 8%;
  }
  .compare {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:active,
  .viewer-tools button:active,
  .panel-close:active,
  .mobile-nav summary:active {
    transform: none;
  }
  dialog.panel[open],
  .mobile-nav[open] nav {
    animation-name: fade-in;
  }
}

/* ===== Consistency pass: one section pattern, two surfaces, three text sizes ===== */
body {
  font-size: 17px;
}
.lead {
  font-size: 20px;
}
.small,
.caption {
  font-size: 14px;
}
.section {
  border-top: none;
}
.section.on-white {
  background: var(--white);
}
.section.on-paper {
  background: var(--paper);
}
.site-footer {
  background: var(--paper);
}
.section-head {
  margin-bottom: 40px;
}
.caption {
  margin-top: 16px;
  color: var(--slate);
  line-height: 1.5;
}

/* Surface 1: the white card, for anything about the page */
.card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.on-white .card {
  background: var(--paper);
}
.card p,
.read-points p,
.still p,
.option p,
.trouble .item p,
.needs p,
.summary p,
.callout,
.policy p,
.policy li {
  font-size: 17px;
}
.template .button {
  justify-self: start;
  margin-top: 6px;
}
.callout {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--glyph-blue);
}

/* Rows of three */
.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* How to read a graph */
.crop {
  overflow: auto;
}
.crop.wide {
  width: 100%;
}
.read-points {
  margin-top: 28px;
}
.read-points > div {
  display: grid;
  gap: 6px;
  align-content: start;
}
.read-points p {
  color: var(--slate);
}
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: 1px;
}
.swatch.event {
  background: var(--accent);
}
.swatch.step {
  background: var(--glyph-blue);
}
.swatch.value {
  background: var(--ice);
  outline: 1px solid var(--rule);
}

/* Surface 2: the editor surface, for anything that is the product */
.wide-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--graphite);
  border-radius: 16px;
  align-items: start;
}
.wide-block .pane {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.pane-label {
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
}
.wide-block .code,
.wide-block .crop {
  border: 1px solid #3a414c;
}
.change-block {
  margin-top: 40px;
}
.wide-block .cells {
  gap: 12px;
}
.wide-block .cell {
  background: var(--white);
  border-color: transparent;
}
.wide-block .cell span:first-child {
  font-size: 14px;
  color: var(--slate);
}
.button.ghost {
  justify-self: start;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(169, 199, 255, 0.5);
}

/* Hand-over cards: the recreation sits on white inside the card */
.ho-card .project-card,
.ho-card .dialog-card,
.ho-card .doc {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: none;
  margin-top: 6px;
}
.ho-card .doc p + p {
  margin-top: 6px;
}

@media (max-width: 1080px) {
  .row-3 {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .wide-block {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .card {
    padding: 22px;
  }
  .wide-block {
    padding: 16px;
  }
}
.card.ho-card {
  grid-template-rows: none;
  padding: 28px;
}
/* Crops never show scrollbars on wider screens; only phones may swipe a wide crop sideways. */
.crop {
  overflow: hidden;
}
@media (max-width: 680px) {
  .crop {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
}

/* Before you start and Privacy: the same pattern as the home page */
.page-intro {
  padding: 72px 0 64px;
}
.page-title {
  font-size: 52px;
}
.row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
}
.layout-aside {
  padding-bottom: 0;
}
/* Let wide graphs and code scroll inside the steps column rather than widen the page */
.layout-aside > *,
.setup-steps > li,
.setup-steps .content,
.setup-steps .content > *,
.trouble-block > *,
.gs-code-row > * {
  min-width: 0;
}
.step-title {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.setup-steps .content,
.trouble-block {
  display: grid;
  gap: 16px;
}
.setup-steps .content > p,
.trouble-block > p {
  max-width: 66ch;
}
.trouble-block {
  margin-top: 64px;
}
.split-card {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.split-card > div {
  display: grid;
  gap: 6px;
  padding: 24px 28px;
}
.split-card > div + div {
  border-left: 1px solid var(--rule);
}
.card .plain-steps {
  margin: 0 0 4px;
}
.card .button {
  justify-self: start;
}
.card .warning {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.card .scopes {
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}
.card .scopes th {
  background: transparent;
  padding-left: 0;
}
.card .scopes td {
  padding-left: 0;
}
.card .dialog-card {
  max-width: 520px;
  background: var(--paper);
}
.trouble-list > div {
  display: grid;
  gap: 4px;
}
.trouble-list > div + div {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.trouble-list p {
  color: var(--slate);
}
.card.policy {
  gap: 0;
  padding: 8px 36px;
}
.card.policy section {
  padding: 28px 0;
}
.card.policy section + section {
  border-top: 1px solid var(--rule);
}
@media (max-width: 680px) {
  .page-title {
    font-size: 38px;
  }
  .row-2,
  .split-card {
    grid-template-columns: 1fr;
  }
  .split-card > div + div {
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .card.policy {
    padding: 4px 22px;
  }
}
.setup-steps .content > .caption {
  margin-top: -4px;
}
@media (min-width: 681px) {
  .trouble-block {
    margin-left: 64px;
  }
}

/* Press feedback and the phone menu's opening (origin-aware: it grows from the Menu button) */
.panel-close:active,
.mobile-nav summary:active {
  transform: scale(0.97);
}
.mobile-nav[open] nav {
  transform-origin: top right;
  animation: menu-in 150ms var(--ease-out);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* Hover only where there is a real pointer, so a tap doesn't leave a hover colour behind */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-thickness: 2px;
  }
  .site-nav a:hover,
  .toc a:hover,
  .site-footer nav a:hover {
    color: var(--graphite);
  }
  .button.primary:hover {
    background: #1d4a90;
  }
  .button.quiet:hover {
    border-color: var(--glyph-blue);
  }
  .button.ghost:hover,
  .viewer-tools button:hover {
    border-color: var(--ice);
  }
}

/* Getting started: what to do (semibold, one action a line) above why (regular), screenshots, the sample email */
.do {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-weight: 600;
  max-width: 66ch;
}
.do strong {
  font-weight: 700;
}
.steps-column :not(pre) > code,
.card :not(pre) > code {
  font: 400 0.9em/1.4 var(--mono);
  background: var(--mist);
  padding: 1px 5px;
  border-radius: 4px;
}
.gs-code-row.stack {
  grid-template-columns: 1fr;
}
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.shot {
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
}
.shot figcaption {
  font-size: 14px;
  color: var(--slate);
}
.shot.dialog img {
  border-radius: 16px;
  max-width: min(100%, 560px);
  box-shadow: 0 2px 10px rgba(32, 38, 48, 0.12);
  border-color: transparent;
}
.shot.menu img {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(32, 38, 48, 0.12);
  border-color: transparent;
}
.gs-intro {
  max-width: none;
}
.split-card.stacked {
  grid-template-columns: 1fr;
}
.split-card.stacked > div + div {
  border-left: none;
  border-top: 1px solid var(--rule);
}
.email-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}
.email-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.email-head span {
  color: var(--slate);
}
.email-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}
.email-body .link {
  color: var(--glyph-blue);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.on-white .email-card {
  background: var(--white);
}
.gs-ideas + .section {
  padding-top: 0;
}
.gs-whole-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gs-whole-row .caption {
  margin: 0;
}
.gs-code-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.gs-code .code {
  max-height: 440px;
  overflow: auto;
}
.playground-route {
  gap: 16px;
}
.playground-route .shot img {
  max-height: 520px;
  width: auto;
}
@media (max-width: 860px) {
  .gs-code-row {
    grid-template-columns: 1fr;
  }
  .playground-route .shot img {
    max-height: none;
    width: 100%;
    max-width: 339px;
  }
}
