/* Generated from tokens.json by scripts/build-tokens.mjs. Do not edit values here. */
:root {
  --st-palette-light-canvas: #f5f2eb;
  --st-palette-light-surface: #fffdf8;
  --st-palette-light-surface-raised: #ffffff;
  --st-palette-light-surface-muted: #eae6dd;
  --st-palette-light-text: #172d38;
  --st-palette-light-muted: #52646b;
  --st-palette-light-accent: #176b60;
  --st-palette-light-accent-hover: #105149;
  --st-palette-light-accent-soft: #dceae5;
  --st-palette-light-on-accent: #fffdf8;
  --st-palette-light-accent-2: #85531c;
  --st-palette-light-accent-2-soft: #f4e6ce;
  --st-palette-light-success: #25654a;
  --st-palette-light-success-soft: #e0ede5;
  --st-palette-light-warning: #85531c;
  --st-palette-light-warning-soft: #f4e6ce;
  --st-palette-light-danger: #a33c31;
  --st-palette-light-danger-soft: #f5e3df;
  --st-palette-light-info: #245e86;
  --st-palette-light-info-soft: #e3edf5;
  --st-palette-light-focus: #21688e;
  --st-palette-light-border: #cbc8be;
  --st-palette-light-border-strong: #748184;
  --st-palette-light-scene-ungraded: #52646b;
  --st-palette-light-scene-ungraded-soft: #e8eceb;
  --st-palette-light-scene-author-keyed: #85531c;
  --st-palette-light-scene-author-keyed-soft: #f4e6ce;
  --st-palette-light-scene-production: #245e86;
  --st-palette-light-scene-production-soft: #e3edf5;
  --st-palette-light-scene-externally-grounded: #25654a;
  --st-palette-light-scene-externally-grounded-soft: #e0ede5;
  --st-palette-light-node-concept: #176b60;
  --st-palette-light-node-concept-soft: #dceae5;
  --st-palette-light-node-task: #245e86;
  --st-palette-light-node-task-soft: #e3edf5;
  --st-palette-light-node-mastered: #25654a;
  --st-palette-light-node-mastered-soft: #e0ede5;
  --st-palette-light-node-due: #85531c;
  --st-palette-light-node-due-soft: #f4e6ce;
  --st-palette-light-brand-ochre: #b87927;
  --st-palette-dark-canvas: #13252c;
  --st-palette-dark-surface: #1a3038;
  --st-palette-dark-surface-raised: #223c44;
  --st-palette-dark-surface-muted: #263e45;
  --st-palette-dark-text: #f2f2e9;
  --st-palette-dark-muted: #b2c4c7;
  --st-palette-dark-accent: #8bd5c4;
  --st-palette-dark-accent-hover: #abe4d7;
  --st-palette-dark-accent-soft: #213e3a;
  --st-palette-dark-on-accent: #13252c;
  --st-palette-dark-accent-2: #edc184;
  --st-palette-dark-accent-2-soft: #423528;
  --st-palette-dark-success: #a2d8b7;
  --st-palette-dark-success-soft: #253e33;
  --st-palette-dark-warning: #edc184;
  --st-palette-dark-warning-soft: #423528;
  --st-palette-dark-danger: #ffb4a6;
  --st-palette-dark-danger-soft: #4a2e2c;
  --st-palette-dark-info: #a9d1ef;
  --st-palette-dark-info-soft: #243c50;
  --st-palette-dark-focus: #b4dcfa;
  --st-palette-dark-border: #3b535b;
  --st-palette-dark-border-strong: #829b9e;
  --st-palette-dark-scene-ungraded: #b2c4c7;
  --st-palette-dark-scene-ungraded-soft: #2c4148;
  --st-palette-dark-scene-author-keyed: #edc184;
  --st-palette-dark-scene-author-keyed-soft: #423528;
  --st-palette-dark-scene-production: #a9d1ef;
  --st-palette-dark-scene-production-soft: #243c50;
  --st-palette-dark-scene-externally-grounded: #a2d8b7;
  --st-palette-dark-scene-externally-grounded-soft: #253e33;
  --st-palette-dark-node-concept: #8bd5c4;
  --st-palette-dark-node-concept-soft: #213e3a;
  --st-palette-dark-node-task: #a9d1ef;
  --st-palette-dark-node-task-soft: #243c50;
  --st-palette-dark-node-mastered: #a2d8b7;
  --st-palette-dark-node-mastered-soft: #253e33;
  --st-palette-dark-node-due: #edc184;
  --st-palette-dark-node-due-soft: #423528;
  --st-palette-dark-brand-ochre: #edc184;
  --st-font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --st-font-text: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  --st-font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --st-size-xs: 0.75rem;
  --st-size-sm: 0.875rem;
  --st-size-base: 1rem;
  --st-size-md: 1.125rem;
  --st-size-lg: 1.375rem;
  --st-size-xl: 1.75rem;
  --st-size-2xl: 2.25rem;
  --st-size-3xl: 3rem;
  --st-size-4xl: 4.5rem;
  --st-weight-regular: 400;
  --st-weight-medium: 500;
  --st-weight-semibold: 600;
  --st-weight-bold: 700;
  --st-leading-tight: 1.15;
  --st-leading-snug: 1.35;
  --st-leading-body: 1.6;
  --st-tracking-display: -0.035em;
  --st-tracking-label: 0.08em;
  --st-space-0: 0;
  --st-space-1: 0.25rem;
  --st-space-2: 0.5rem;
  --st-space-3: 0.75rem;
  --st-space-4: 1rem;
  --st-space-5: 1.25rem;
  --st-space-6: 1.5rem;
  --st-space-8: 2rem;
  --st-space-10: 2.5rem;
  --st-space-12: 3rem;
  --st-space-16: 4rem;
  --st-space-20: 5rem;
  --st-space-24: 6rem;
  --st-radius-small: 0.25rem;
  --st-radius-medium: 0.5rem;
  --st-radius-large: 1rem;
  --st-radius-pill: 999px;
  --st-border-width-default: 1px;
  --st-border-width-strong: 2px;
  --st-border-width-focus: 3px;
  --st-layout-measure: 65ch;
  --st-layout-pane: 46rem;
  --st-layout-target: 2.75rem;
  --st-duration-instant: 0ms;
  --st-duration-fast: 120ms;
  --st-duration-normal: 180ms;
  --st-duration-slow: 240ms;
  --st-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --st-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --st-palette-canvas: #f5f2eb;
  --st-palette-surface: #fffdf8;
  --st-palette-surface-raised: #ffffff;
  --st-palette-surface-muted: #eae6dd;
  --st-palette-text: #172d38;
  --st-palette-muted: #52646b;
  --st-palette-accent: #176b60;
  --st-palette-accent-hover: #105149;
  --st-palette-accent-soft: #dceae5;
  --st-palette-on-accent: #fffdf8;
  --st-palette-accent-2: #85531c;
  --st-palette-accent-2-soft: #f4e6ce;
  --st-palette-success: #25654a;
  --st-palette-success-soft: #e0ede5;
  --st-palette-warning: #85531c;
  --st-palette-warning-soft: #f4e6ce;
  --st-palette-danger: #a33c31;
  --st-palette-danger-soft: #f5e3df;
  --st-palette-info: #245e86;
  --st-palette-info-soft: #e3edf5;
  --st-palette-focus: #21688e;
  --st-palette-border: #cbc8be;
  --st-palette-border-strong: #748184;
  --st-palette-scene-ungraded: #52646b;
  --st-palette-scene-ungraded-soft: #e8eceb;
  --st-palette-scene-author-keyed: #85531c;
  --st-palette-scene-author-keyed-soft: #f4e6ce;
  --st-palette-scene-production: #245e86;
  --st-palette-scene-production-soft: #e3edf5;
  --st-palette-scene-externally-grounded: #25654a;
  --st-palette-scene-externally-grounded-soft: #e0ede5;
  --st-palette-node-concept: #176b60;
  --st-palette-node-concept-soft: #dceae5;
  --st-palette-node-task: #245e86;
  --st-palette-node-task-soft: #e3edf5;
  --st-palette-node-mastered: #25654a;
  --st-palette-node-mastered-soft: #e0ede5;
  --st-palette-node-due: #85531c;
  --st-palette-node-due-soft: #f4e6ce;
  --st-palette-brand-ochre: #b87927;
  --st-canvas: #f5f2eb;
  --st-surface: #fffdf8;
  --st-surface-raised: #ffffff;
  --st-surface-muted: #eae6dd;
  --st-text: #172d38;
  --st-muted: #52646b;
  --st-accent: #176b60;
  --st-accent-hover: #105149;
  --st-accent-soft: #dceae5;
  --st-on-accent: #fffdf8;
  --st-accent-2: #85531c;
  --st-accent-2-soft: #f4e6ce;
  --st-success: #25654a;
  --st-success-soft: #e0ede5;
  --st-warning: #85531c;
  --st-warning-soft: #f4e6ce;
  --st-danger: #a33c31;
  --st-danger-soft: #f5e3df;
  --st-info: #245e86;
  --st-info-soft: #e3edf5;
  --st-focus: #21688e;
  --st-border: #cbc8be;
  --st-border-strong: #748184;
  --st-scene-ungraded: #52646b;
  --st-scene-ungraded-soft: #e8eceb;
  --st-scene-author-keyed: #85531c;
  --st-scene-author-keyed-soft: #f4e6ce;
  --st-scene-production: #245e86;
  --st-scene-production-soft: #e3edf5;
  --st-scene-externally-grounded: #25654a;
  --st-scene-externally-grounded-soft: #e0ede5;
  --st-node-concept: #176b60;
  --st-node-concept-soft: #dceae5;
  --st-node-task: #245e86;
  --st-node-task-soft: #e3edf5;
  --st-node-mastered: #25654a;
  --st-node-mastered-soft: #e0ede5;
  --st-node-due: #85531c;
  --st-node-due-soft: #f4e6ce;
  --st-brand-ochre: #b87927;
  --st-button-background: var(--st-accent);
  --st-button-foreground: var(--st-on-accent);
  --st-button-hover-background: var(--st-accent-hover);
  --st-input-background: var(--st-surface);
  --st-input-foreground: var(--st-text);
  --st-input-border: var(--st-border-strong);
  --st-input-placeholder: var(--st-muted);
  --st-shadow-small: 0 2px 8px rgb(23 45 56 / 6%);
  --st-shadow-raised: 0 12px 36px rgb(23 45 56 / 10%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --st-palette-canvas: #13252c;
    --st-palette-surface: #1a3038;
    --st-palette-surface-raised: #223c44;
    --st-palette-surface-muted: #263e45;
    --st-palette-text: #f2f2e9;
    --st-palette-muted: #b2c4c7;
    --st-palette-accent: #8bd5c4;
    --st-palette-accent-hover: #abe4d7;
    --st-palette-accent-soft: #213e3a;
    --st-palette-on-accent: #13252c;
    --st-palette-accent-2: #edc184;
    --st-palette-accent-2-soft: #423528;
    --st-palette-success: #a2d8b7;
    --st-palette-success-soft: #253e33;
    --st-palette-warning: #edc184;
    --st-palette-warning-soft: #423528;
    --st-palette-danger: #ffb4a6;
    --st-palette-danger-soft: #4a2e2c;
    --st-palette-info: #a9d1ef;
    --st-palette-info-soft: #243c50;
    --st-palette-focus: #b4dcfa;
    --st-palette-border: #3b535b;
    --st-palette-border-strong: #829b9e;
    --st-palette-scene-ungraded: #b2c4c7;
    --st-palette-scene-ungraded-soft: #2c4148;
    --st-palette-scene-author-keyed: #edc184;
    --st-palette-scene-author-keyed-soft: #423528;
    --st-palette-scene-production: #a9d1ef;
    --st-palette-scene-production-soft: #243c50;
    --st-palette-scene-externally-grounded: #a2d8b7;
    --st-palette-scene-externally-grounded-soft: #253e33;
    --st-palette-node-concept: #8bd5c4;
    --st-palette-node-concept-soft: #213e3a;
    --st-palette-node-task: #a9d1ef;
    --st-palette-node-task-soft: #243c50;
    --st-palette-node-mastered: #a2d8b7;
    --st-palette-node-mastered-soft: #253e33;
    --st-palette-node-due: #edc184;
    --st-palette-node-due-soft: #423528;
    --st-palette-brand-ochre: #edc184;
    --st-canvas: #13252c;
    --st-surface: #1a3038;
    --st-surface-raised: #223c44;
    --st-surface-muted: #263e45;
    --st-text: #f2f2e9;
    --st-muted: #b2c4c7;
    --st-accent: #8bd5c4;
    --st-accent-hover: #abe4d7;
    --st-accent-soft: #213e3a;
    --st-on-accent: #13252c;
    --st-accent-2: #edc184;
    --st-accent-2-soft: #423528;
    --st-success: #a2d8b7;
    --st-success-soft: #253e33;
    --st-warning: #edc184;
    --st-warning-soft: #423528;
    --st-danger: #ffb4a6;
    --st-danger-soft: #4a2e2c;
    --st-info: #a9d1ef;
    --st-info-soft: #243c50;
    --st-focus: #b4dcfa;
    --st-border: #3b535b;
    --st-border-strong: #829b9e;
    --st-scene-ungraded: #b2c4c7;
    --st-scene-ungraded-soft: #2c4148;
    --st-scene-author-keyed: #edc184;
    --st-scene-author-keyed-soft: #423528;
    --st-scene-production: #a9d1ef;
    --st-scene-production-soft: #243c50;
    --st-scene-externally-grounded: #a2d8b7;
    --st-scene-externally-grounded-soft: #253e33;
    --st-node-concept: #8bd5c4;
    --st-node-concept-soft: #213e3a;
    --st-node-task: #a9d1ef;
    --st-node-task-soft: #243c50;
    --st-node-mastered: #a2d8b7;
    --st-node-mastered-soft: #253e33;
    --st-node-due: #edc184;
    --st-node-due-soft: #423528;
    --st-brand-ochre: #edc184;
    --st-button-background: var(--st-accent);
    --st-button-foreground: var(--st-on-accent);
    --st-button-hover-background: var(--st-accent-hover);
    --st-input-background: var(--st-surface);
    --st-input-foreground: var(--st-text);
    --st-input-border: var(--st-border-strong);
    --st-input-placeholder: var(--st-muted);
    --st-shadow-small: 0 2px 8px rgb(0 0 0 / 15%);
    --st-shadow-raised: 0 12px 36px rgb(0 0 0 / 24%);
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --st-palette-canvas: #13252c;
  --st-palette-surface: #1a3038;
  --st-palette-surface-raised: #223c44;
  --st-palette-surface-muted: #263e45;
  --st-palette-text: #f2f2e9;
  --st-palette-muted: #b2c4c7;
  --st-palette-accent: #8bd5c4;
  --st-palette-accent-hover: #abe4d7;
  --st-palette-accent-soft: #213e3a;
  --st-palette-on-accent: #13252c;
  --st-palette-accent-2: #edc184;
  --st-palette-accent-2-soft: #423528;
  --st-palette-success: #a2d8b7;
  --st-palette-success-soft: #253e33;
  --st-palette-warning: #edc184;
  --st-palette-warning-soft: #423528;
  --st-palette-danger: #ffb4a6;
  --st-palette-danger-soft: #4a2e2c;
  --st-palette-info: #a9d1ef;
  --st-palette-info-soft: #243c50;
  --st-palette-focus: #b4dcfa;
  --st-palette-border: #3b535b;
  --st-palette-border-strong: #829b9e;
  --st-palette-scene-ungraded: #b2c4c7;
  --st-palette-scene-ungraded-soft: #2c4148;
  --st-palette-scene-author-keyed: #edc184;
  --st-palette-scene-author-keyed-soft: #423528;
  --st-palette-scene-production: #a9d1ef;
  --st-palette-scene-production-soft: #243c50;
  --st-palette-scene-externally-grounded: #a2d8b7;
  --st-palette-scene-externally-grounded-soft: #253e33;
  --st-palette-node-concept: #8bd5c4;
  --st-palette-node-concept-soft: #213e3a;
  --st-palette-node-task: #a9d1ef;
  --st-palette-node-task-soft: #243c50;
  --st-palette-node-mastered: #a2d8b7;
  --st-palette-node-mastered-soft: #253e33;
  --st-palette-node-due: #edc184;
  --st-palette-node-due-soft: #423528;
  --st-palette-brand-ochre: #edc184;
  --st-canvas: #13252c;
  --st-surface: #1a3038;
  --st-surface-raised: #223c44;
  --st-surface-muted: #263e45;
  --st-text: #f2f2e9;
  --st-muted: #b2c4c7;
  --st-accent: #8bd5c4;
  --st-accent-hover: #abe4d7;
  --st-accent-soft: #213e3a;
  --st-on-accent: #13252c;
  --st-accent-2: #edc184;
  --st-accent-2-soft: #423528;
  --st-success: #a2d8b7;
  --st-success-soft: #253e33;
  --st-warning: #edc184;
  --st-warning-soft: #423528;
  --st-danger: #ffb4a6;
  --st-danger-soft: #4a2e2c;
  --st-info: #a9d1ef;
  --st-info-soft: #243c50;
  --st-focus: #b4dcfa;
  --st-border: #3b535b;
  --st-border-strong: #829b9e;
  --st-scene-ungraded: #b2c4c7;
  --st-scene-ungraded-soft: #2c4148;
  --st-scene-author-keyed: #edc184;
  --st-scene-author-keyed-soft: #423528;
  --st-scene-production: #a9d1ef;
  --st-scene-production-soft: #243c50;
  --st-scene-externally-grounded: #a2d8b7;
  --st-scene-externally-grounded-soft: #253e33;
  --st-node-concept: #8bd5c4;
  --st-node-concept-soft: #213e3a;
  --st-node-task: #a9d1ef;
  --st-node-task-soft: #243c50;
  --st-node-mastered: #a2d8b7;
  --st-node-mastered-soft: #253e33;
  --st-node-due: #edc184;
  --st-node-due-soft: #423528;
  --st-brand-ochre: #edc184;
  --st-button-background: var(--st-accent);
  --st-button-foreground: var(--st-on-accent);
  --st-button-hover-background: var(--st-accent-hover);
  --st-input-background: var(--st-surface);
  --st-input-foreground: var(--st-text);
  --st-input-border: var(--st-border-strong);
  --st-input-placeholder: var(--st-muted);
  --st-shadow-small: 0 2px 8px rgb(0 0 0 / 15%);
  --st-shadow-raised: 0 12px 36px rgb(0 0 0 / 24%);
  color-scheme: dark;
}

[data-theme="light"] {
  --st-palette-canvas: #f5f2eb;
  --st-palette-surface: #fffdf8;
  --st-palette-surface-raised: #ffffff;
  --st-palette-surface-muted: #eae6dd;
  --st-palette-text: #172d38;
  --st-palette-muted: #52646b;
  --st-palette-accent: #176b60;
  --st-palette-accent-hover: #105149;
  --st-palette-accent-soft: #dceae5;
  --st-palette-on-accent: #fffdf8;
  --st-palette-accent-2: #85531c;
  --st-palette-accent-2-soft: #f4e6ce;
  --st-palette-success: #25654a;
  --st-palette-success-soft: #e0ede5;
  --st-palette-warning: #85531c;
  --st-palette-warning-soft: #f4e6ce;
  --st-palette-danger: #a33c31;
  --st-palette-danger-soft: #f5e3df;
  --st-palette-info: #245e86;
  --st-palette-info-soft: #e3edf5;
  --st-palette-focus: #21688e;
  --st-palette-border: #cbc8be;
  --st-palette-border-strong: #748184;
  --st-palette-scene-ungraded: #52646b;
  --st-palette-scene-ungraded-soft: #e8eceb;
  --st-palette-scene-author-keyed: #85531c;
  --st-palette-scene-author-keyed-soft: #f4e6ce;
  --st-palette-scene-production: #245e86;
  --st-palette-scene-production-soft: #e3edf5;
  --st-palette-scene-externally-grounded: #25654a;
  --st-palette-scene-externally-grounded-soft: #e0ede5;
  --st-palette-node-concept: #176b60;
  --st-palette-node-concept-soft: #dceae5;
  --st-palette-node-task: #245e86;
  --st-palette-node-task-soft: #e3edf5;
  --st-palette-node-mastered: #25654a;
  --st-palette-node-mastered-soft: #e0ede5;
  --st-palette-node-due: #85531c;
  --st-palette-node-due-soft: #f4e6ce;
  --st-palette-brand-ochre: #b87927;
  --st-canvas: #f5f2eb;
  --st-surface: #fffdf8;
  --st-surface-raised: #ffffff;
  --st-surface-muted: #eae6dd;
  --st-text: #172d38;
  --st-muted: #52646b;
  --st-accent: #176b60;
  --st-accent-hover: #105149;
  --st-accent-soft: #dceae5;
  --st-on-accent: #fffdf8;
  --st-accent-2: #85531c;
  --st-accent-2-soft: #f4e6ce;
  --st-success: #25654a;
  --st-success-soft: #e0ede5;
  --st-warning: #85531c;
  --st-warning-soft: #f4e6ce;
  --st-danger: #a33c31;
  --st-danger-soft: #f5e3df;
  --st-info: #245e86;
  --st-info-soft: #e3edf5;
  --st-focus: #21688e;
  --st-border: #cbc8be;
  --st-border-strong: #748184;
  --st-scene-ungraded: #52646b;
  --st-scene-ungraded-soft: #e8eceb;
  --st-scene-author-keyed: #85531c;
  --st-scene-author-keyed-soft: #f4e6ce;
  --st-scene-production: #245e86;
  --st-scene-production-soft: #e3edf5;
  --st-scene-externally-grounded: #25654a;
  --st-scene-externally-grounded-soft: #e0ede5;
  --st-node-concept: #176b60;
  --st-node-concept-soft: #dceae5;
  --st-node-task: #245e86;
  --st-node-task-soft: #e3edf5;
  --st-node-mastered: #25654a;
  --st-node-mastered-soft: #e0ede5;
  --st-node-due: #85531c;
  --st-node-due-soft: #f4e6ce;
  --st-brand-ochre: #b87927;
  --st-button-background: var(--st-accent);
  --st-button-foreground: var(--st-on-accent);
  --st-button-hover-background: var(--st-accent-hover);
  --st-input-background: var(--st-surface);
  --st-input-foreground: var(--st-text);
  --st-input-border: var(--st-border-strong);
  --st-input-placeholder: var(--st-muted);
  --st-shadow-small: 0 2px 8px rgb(23 45 56 / 6%);
  --st-shadow-raised: 0 12px 36px rgb(23 45 56 / 10%);
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root, [data-theme] {
    --st-duration-instant: 0ms;
    --st-duration-fast: 0ms;
    --st-duration-normal: 0ms;
    --st-duration-slow: 0ms;
  }
  .st-scope, .st-scope *, .st-scope *::before, .st-scope *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Studium documentation site. Appended to design/tokens.css by tools/docs/build-site.mjs.
 * Every colour, font and size comes from the tokens; light and dark follow the system. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--st-canvas);
  color: var(--st-text);
  font-family: var(--st-font-text);
  font-size: 1.0625rem;
  line-height: var(--st-leading-body);
}
a { color: var(--st-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--st-accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: var(--st-border-width-focus) solid var(--st-focus); outline-offset: 2px; }
/* Browsers that predate :focus-visible still get a ring; the rule below removes it again where they do support it. */
:focus { outline: var(--st-border-width-focus) solid var(--st-focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: var(--st-space-4); top: -10rem; z-index: 10;
  padding: var(--st-space-2) var(--st-space-4); background: var(--st-surface); color: var(--st-text);
  border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-small);
}
.skip:focus { top: var(--st-space-3); }

/* Header ------------------------------------------------------------------------------------ */
.site-header {
  display: flex; align-items: center; gap: var(--st-space-4);
  max-width: 84rem; margin: 0 auto; padding: var(--st-space-3) var(--st-space-6);
  border-bottom: 1px solid var(--st-border);
}
.brand { display: flex; align-items: center; gap: var(--st-space-3); color: var(--st-text); text-decoration: none; }
.brand img { display: block; height: 2rem; width: auto; }
.brand-name { font-family: var(--st-font-display); font-size: var(--st-size-lg); }
.brand-sub {
  padding-left: var(--st-space-3); border-left: 1px solid var(--st-border);
  color: var(--st-muted); font-size: var(--st-size-xs); letter-spacing: var(--st-tracking-label); text-transform: uppercase;
}
.lang { margin-left: auto; font-size: var(--st-size-sm); }
.nav-button {
  min-height: var(--st-layout-target); padding: 0 var(--st-space-4);
  border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-small);
  background: transparent; color: var(--st-text); font: inherit; font-size: var(--st-size-sm); cursor: pointer;
}
.nav-button { display: none; }

/* Search (drawn by site.js, so absent without scripts) ---------------------------------------- */
.site-search { position: relative; margin-left: auto; }
.site-search + .lang { margin-left: 0; }
.site-search input {
  width: 14rem; min-height: var(--st-layout-target); padding: 0 var(--st-space-3);
  border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-small);
  background: var(--st-surface); color: var(--st-text); font: inherit; font-size: var(--st-size-sm);
}
.site-search input::placeholder { color: var(--st-muted); opacity: 1; }
.search-results {
  position: absolute; right: 0; top: calc(100% + var(--st-space-1)); z-index: 20;
  width: min(30rem, calc(100vw - 2 * var(--st-space-4))); max-height: 70vh; overflow-y: auto;
  margin: 0; padding: var(--st-space-2); list-style: none;
  border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-medium); background: var(--st-surface);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.18);
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block; padding: var(--st-space-2) var(--st-space-3); border-radius: var(--st-radius-small);
  color: var(--st-text); text-decoration: none; font-size: var(--st-size-sm); line-height: var(--st-leading-snug);
}
.search-results a:hover, .search-results a:focus-visible { background: var(--st-surface-muted); }
/* Inside a scrolling list an outer offset is clipped: draw the ring inside the item. */
.search-results a:focus-visible { outline-offset: -3px; }
.search-title { display: block; color: var(--st-accent); font-weight: var(--st-weight-medium); }
.search-excerpt { display: block; margin-top: var(--st-space-1); color: var(--st-muted); font-size: var(--st-size-xs); }

/* Layout ------------------------------------------------------------------------------------ */
.layout {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr) 13rem; gap: 0 var(--st-space-12);
  max-width: 84rem; margin: 0 auto; padding: 0 var(--st-space-6);
}
.sidebar, .toc {
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
  padding: var(--st-space-8) 0; font-size: var(--st-size-sm); line-height: var(--st-leading-snug);
}
main { min-width: 0; padding: var(--st-space-10) 0 var(--st-space-16); }

.nav-label {
  margin: var(--st-space-6) 0 var(--st-space-2); color: var(--st-muted);
  font-size: var(--st-size-xs); letter-spacing: var(--st-tracking-label); text-transform: uppercase;
}
.nav-list { margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block; padding: var(--st-space-1) var(--st-space-3); border-left: 1px solid var(--st-border);
  color: var(--st-text); text-decoration: none;
}
.nav-list a:hover { color: var(--st-accent); border-left-color: var(--st-border-strong); }
.nav-list a[aria-current="page"] { color: var(--st-accent); border-left: 2px solid var(--st-accent); padding-left: calc(var(--st-space-3) - 1px); font-weight: var(--st-weight-semibold); }
.nav-top a { border-left-color: transparent; }

.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--st-border); }
.toc a { display: block; padding: var(--st-space-1) var(--st-space-3); color: var(--st-muted); text-decoration: none; }
.toc a:hover { color: var(--st-accent); }

/* Article ----------------------------------------------------------------------------------- */
.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose h1, .prose h2 {
  font-family: var(--st-font-display); font-weight: var(--st-weight-regular); line-height: var(--st-leading-tight);
  letter-spacing: -0.01em;
}
.prose h1 { margin: 0 0 var(--st-space-6); font-size: var(--st-size-2xl); }
.prose h2 { margin: var(--st-space-12) 0 var(--st-space-4); padding-top: var(--st-space-6); border-top: 1px solid var(--st-border); font-size: var(--st-size-xl); }
.prose h3 { margin: var(--st-space-8) 0 var(--st-space-2); font-size: var(--st-size-md); font-weight: var(--st-weight-semibold); line-height: var(--st-leading-snug); }
.prose h4, .prose h5, .prose h6 { margin: var(--st-space-6) 0 var(--st-space-2); font-size: var(--st-size-base); font-weight: var(--st-weight-semibold); }
.prose h1 + p { font-size: var(--st-size-md); color: var(--st-text); }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 var(--st-space-4); }
.prose li { margin: var(--st-space-1) 0; }
.prose li > ul, .prose li > ol { margin: var(--st-space-1) 0; }
.prose [id] { scroll-margin-top: var(--st-space-6); }
.prose hr { border: 0; border-top: 1px solid var(--st-border); margin: var(--st-space-10) 0; }
.prose blockquote {
  margin: var(--st-space-6) 0; padding: 0 var(--st-space-5); border-left: 2px solid var(--st-border-strong); color: var(--st-muted);
}
.prose picture img, .prose > p > img { display: block; margin: var(--st-space-6) 0; }
.prose td picture img { margin: 0 0 var(--st-space-2); }
.prose details { margin: var(--st-space-6) 0; padding: var(--st-space-3) var(--st-space-4); border: 1px solid var(--st-border); border-radius: var(--st-radius-medium); }
.prose summary { cursor: pointer; font-weight: var(--st-weight-medium); }
.prose details[open] summary { margin-bottom: var(--st-space-3); }

/* Chromium ignores ui-monospace and has no SFMono-Regular outside Terminal: Menlo keeps macOS Chromium off Courier. */
code { font-family: ui-monospace, Menlo, var(--st-font-mono); font-size: 0.875em; }
:not(pre) > code { padding: 0.1em 0.3em; border-radius: var(--st-radius-small); background: var(--st-surface-muted); overflow-wrap: anywhere; }
pre {
  margin: 0 0 var(--st-space-5); padding: var(--st-space-4) var(--st-space-5); overflow-x: auto;
  border: 1px solid var(--st-border); border-radius: var(--st-radius-small); background: var(--st-surface);
  font-size: var(--st-size-sm); line-height: 1.55;
}
pre code { font-size: inherit; white-space: pre; }

/* Copy buttons (drawn by site.js) sit beside the <pre>, not in it, so selecting the code never takes them. */
.code-block { position: relative; }
.code-block pre { padding-right: 5.5rem; }
.copy-button {
  position: absolute; top: var(--st-space-2); right: var(--st-space-2);
  padding: var(--st-space-1) var(--st-space-2); border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-small);
  background: var(--st-canvas); color: var(--st-muted); font: inherit; font-size: var(--st-size-xs); line-height: 1.4;
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.copy-button:hover { color: var(--st-text); border-color: var(--st-text); }

.scroll { margin: var(--st-space-5) 0 var(--st-space-6); overflow-x: auto; }
table { border-collapse: collapse; font-size: var(--st-size-sm); line-height: var(--st-leading-snug); }
.scroll > table { min-width: 100%; }
th, td { padding: var(--st-space-2) var(--st-space-3); border-bottom: 1px solid var(--st-border); text-align: left; vertical-align: top; }
th { border-bottom-color: var(--st-border-strong); font-weight: var(--st-weight-semibold); white-space: nowrap; }
.scroll td { min-width: 7rem; }
.scroll td:first-child { min-width: 0; }
.scroll :not(pre) > code { overflow-wrap: normal; }
.scroll td:first-child code { white-space: nowrap; }

/* Home -------------------------------------------------------------------------------------- */
.hero { max-width: 34rem; margin: 0 0 var(--st-space-8); }
.hero img { display: block; width: 100%; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--st-space-4); margin: var(--st-space-5) 0 var(--st-space-6); padding: 0; list-style: none; }
.roles li { margin: 0; padding: var(--st-space-5); border: 1px solid var(--st-border); border-radius: var(--st-radius-medium); background: var(--st-surface); }
.roles h3 { margin: 0 0 var(--st-space-3); font-family: var(--st-font-display); font-weight: var(--st-weight-regular); font-size: var(--st-size-lg); line-height: var(--st-leading-snug); }
.roles p { margin: 0 0 var(--st-space-1); }
.role-label { display: block; color: var(--st-muted); font-size: var(--st-size-xs); letter-spacing: var(--st-tracking-label); text-transform: uppercase; }
.roles p + p { margin-top: var(--st-space-2); }

/* Foot of the page -------------------------------------------------------------------------- */
.pager { display: flex; justify-content: space-between; gap: var(--st-space-4); max-width: 70ch; margin-top: var(--st-space-12); padding-top: var(--st-space-5); border-top: 1px solid var(--st-border); }
.pager a { display: flex; flex-direction: column; text-decoration: none; }
.pager a span { color: var(--st-muted); font-size: var(--st-size-xs); letter-spacing: var(--st-tracking-label); text-transform: uppercase; }
.pager a.next { text-align: right; margin-left: auto; }
.source { max-width: 70ch; margin-top: var(--st-space-6); font-size: var(--st-size-sm); }
.site-footer {
  max-width: 84rem; margin: 0 auto; padding: var(--st-space-6); border-top: 1px solid var(--st-border);
  color: var(--st-muted); font-size: var(--st-size-sm);
}
.site-footer p { margin: 0 0 var(--st-space-1); }

/* Medium widths: no "On this page" column ------------------------------------------------------ */
@media (max-width: 75rem) {
  .layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 0 var(--st-space-10); }
  .toc { display: none; }
}

/* Narrow widths: one column, the navigation behind the Menu button ----------------------------- */
@media (max-width: 52rem) {
  .site-header { padding: var(--st-space-2) var(--st-space-4); gap: var(--st-space-3); flex-wrap: wrap; }
  .brand-sub { display: none; }
  .site-search { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-search input { width: 100%; }
  .search-results { left: 0; right: auto; width: 100%; }
  .site-search + .lang { margin-left: auto; }
  .layout { display: flex; flex-direction: column; padding: 0 var(--st-space-4); }
  .sidebar { position: static; max-height: none; overflow: visible; padding: var(--st-space-2) 0 var(--st-space-6); border-bottom: 1px solid var(--st-border); }
  .js .nav-button { display: block; }
  .js .sidebar { display: none; }
  .js .nav-open .sidebar { display: block; }
  .no-js .sidebar { order: 2; border-bottom: 0; border-top: 1px solid var(--st-border); }
  main { padding: var(--st-space-6) 0 var(--st-space-10); }
  .prose h1 { font-size: var(--st-size-xl); }
  .prose h2 { font-size: var(--st-size-lg); margin-top: var(--st-space-10); }
  pre { padding: var(--st-space-3) var(--st-space-4); }
  .site-footer { padding: var(--st-space-5) var(--st-space-4); }
}

/* Print: the article alone, light ------------------------------------------------------------ */
@media print {
  html:root:not([data-theme="print"]) {
    --st-canvas: var(--st-palette-light-surface); --st-surface: var(--st-palette-light-surface);
    --st-surface-muted: var(--st-palette-light-surface-muted); --st-text: var(--st-palette-light-text);
    --st-muted: var(--st-palette-light-muted); --st-accent: var(--st-palette-light-text);
    --st-border: var(--st-palette-light-border); --st-border-strong: var(--st-palette-light-border-strong);
  }
  body { font-size: 11pt; }
  .site-header, .sidebar, .toc, .pager, .source, .skip, .nav-button, .hero, .site-search, .lang, .copy-button { display: none !important; }
  .code-block pre { padding-right: var(--st-space-5); }
  /* On paper a link is only useful with its address; in-site links are left alone, they mean nothing off-screen. */
  .prose a[href^="http"]::after, .site-footer a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
  .layout { display: block; max-width: none; padding: 0; }
  main { padding: 0; }
  .prose, .site-footer { max-width: none; }
  .prose h2 { break-after: avoid; }
  pre, .scroll { overflow: visible; }
  pre code { white-space: pre-wrap; }
  pre, table, picture, .roles li { break-inside: avoid; }
  a { text-decoration: underline; }
  .site-footer { padding: var(--st-space-4) 0 0; }
}
