/*
Font settings:

Ligatures:       "ss01": true,
Arrows:          "ss02": true,
Smart Case:      "ss03": true,
Symbol Spacing:  "ss04": true,
Smart Kerning:   "ss05": true,

Alternate 'a':                "cv01": false,
Alternate 'g':                "cv02": true,
Square Dots:                  "cv03": false,
Alternate 'i':                "cv04": false,
Standard '@':                 "cv05": false,
Alternate '6' & '9':          "cv06": true,
Dotted '0':                   "cv07": false,
Alternate 'aefgy' in italic:  "cv08": false,
Lifted: '*':                  "cv09": true,
Alternate 'l':                "cv10": false,
Alternate '1':                "cv11": true
*/

/*

"#ab9df2" -> Purple
"#ffccff" -> Pink
"#78dce8" -> Blue
"#a9dc76" -> Green
"#ffd866" -> Yellow
"#fc9867" -> Orange
"#ff6188" -> Red
*/

@font-face {
  font-family: "CommitMono";
  src: url("fonts/CommitMono.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Typography */
  --font-family: "CommitMono", "Roboto Mono", Menlo, Courier, Consolas, Monaco, "Liberation Mono", "Lucida Console",
    monospace;
  --font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss05", "cv02", "cv06", "cv09", "cv11";
  --font-size: 16px;
  --line-height: 1.2rem;
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 800;

  /* Colours */
  --font-light: #fcfcfc; /* off-white */
  --font-light-alt: #948d8d; /* warmer grey, lighter — dark theme muted text */
  --font-dark: #000000; /* black */
  --font-dark-alt: #6f6b6b; /* warmer grey, darker — light theme muted text */
  --bg-light: #fffbed; /* off-white */
  --bg-dark: #212121; /* off-black */
  --link: #0d47a1; /* dark blue */
  --link-hover-light: #1266e2; /* blue */
  --link-hover-dark: #0029a4; /* dark blue */
  --success-light: #a9dc76; /* green */
  --success-dark: #98c66a; /* green */
  --failure-light: #ff6188; /* red */
  --failure-dark: #e5577a; /* red */
  --warning-light: #ffd866; /* yellow */
  --warning-dark: #e5c25b; /* yellow */
  --danger-light: #fc9867; /* orange */
  --danger-dark: #e2885c; /* orange */
  --disabled-light: #9c9696; /* lighter grey — legible on dark bg */
  --disabled-dark: #6d6b6b; /* darker grey — legible on cream bg */

  /* Variables */
  --border-radius: 5px;
  --border-thickness: 2px;
  /* Readable line measure: bind with .constrained, override per page
     with :root { --measure: 100ch } */
  --measure: calc(min(80ch, round(down, 100%, 1ch)));
  font-variant-numeric: tabular-nums lining-nums;
  text-decoration-thickness: var(--border-thickness);
  --status-marker-size: 20px;

  /* Spacing scale, snapped to character and line-grid units */
  --space-1: 0.5ch;              /* half character */
  --space-2: 1ch;                /* one character */
  --space-3: 2ch;                /* two characters */
  --space-4: var(--line-height); /* one line (1.2rem) */
  --space-5: calc(var(--line-height) * 2);

  --background-color: var(--bg-light);
  --code-background-color: #f6eede; /* deeper cream - code panels stand off the page */
  --text-color: var(--font-dark);
  --text-color-alt: var(--font-dark-alt);
  --highlight-font-color: var(--font-dark);
  --highlight-background-color: var(--danger);
  --button-background-hover: var(--bg-dark);
  --button-text-hover: var(--font-light);
  --success: var(--success-dark);
  --failure: var(--failure-dark);
  --warning: var(--warning-dark);
  --danger: var(--danger-dark);
  --disabled: var(--disabled-dark);
  /* Syntax token colours - light theme */
  --code-keyword: #cd204b;
  --code-string: #638f37;
  --code-number: #6b45c9;
  --code-function: #0d47a1;
  --code-type: #a6821a;
  --code-constant: #bd5522;
  --code-comment: #6d6b6b;
  --text-success: #638f37;
  --text-warning: #a6821a;
  --text-danger: #bd5522;
  --text-failure: #cd204b;
  --text-disabled: var(--disabled);
  --link-hover: var(--link-hover-dark);
  --focus-ring: var(--link-hover-dark); /* dark blue — reads on cream */
}

[data-theme="dark"] {
  --background-color: var(--bg-dark);
  --code-background-color: #333333; /* clearly lighter than the #212121 page */
  --text-color: var(--font-light);
  --text-color-alt: var(--font-light-alt);
  --highlight-font-color: var(--bg-dark);
  --highlight-background-color: var(--warning);
  --button-background-hover: var(--bg-light);
  --button-text-hover: var(--font-dark);
  --success: var(--success-light);
  --failure: var(--failure-light);
  --warning: var(--warning-light);
  --danger: var(--danger-light);
  --disabled: var(--disabled-light);
  /* Syntax token colours - dark theme (header palette) */
  --code-keyword: #ff6188;
  --code-string: #a9dc76;
  --code-number: #ab9df2;
  --code-function: #78dce8;
  --code-type: #ffd866;
  --code-constant: #fc9867;
  --code-comment: #9c9696;
  --text-success: var(--success);
  --text-warning: var(--warning);
  --text-danger: var(--danger);
  --text-failure: var(--failure);
  --text-disabled: var(--disabled);
  --link-hover: var(--link-hover-light);
  --focus-ring: var(--link-hover-light); /* brighter blue — reads on off-black */
}

[data-theme="light"] {
  --background-color: var(--bg-light);
  --code-background-color: #f6eede; /* deeper cream - code panels stand off the page */
  /* Syntax token colours - light theme */
  --code-keyword: #cd204b;
  --code-string: #638f37;
  --code-number: #6b45c9;
  --code-function: #0d47a1;
  --code-type: #a6821a;
  --code-constant: #bd5522;
  --code-comment: #6d6b6b;
  --text-color: var(--font-dark);
  --text-color-alt: var(--font-dark-alt);
  --highlight-font-color: var(--font-dark);
  --highlight-background-color: var(--danger);
  --button-background-hover: var(--bg-dark);
  --button-text-hover: var(--font-light);
  --success: var(--success-dark);
  --failure: var(--failure-dark);
  --warning: var(--warning-dark);
  --danger: var(--danger-dark);
  --disabled: var(--disabled-dark);
  --text-success: #638f37;
  --text-warning: #a6821a;
  --text-danger: #bd5522;
  --text-failure: #cd204b;
  --text-disabled: var(--disabled);
  --link-hover: var(--link-hover-dark);
  --focus-ring: var(--link-hover-dark); /* dark blue — reads on cream */
}

.theme-toggle {
  float: right;
  margin-right: 1ch;
  margin-bottom: calc(var(--line-height) * 2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .theme-toggle .theme-toggle-text {
  content: "LIGHT";
}

[data-theme="light"] .theme-toggle .theme-toggle-text {
  content: "DARK";
}

/* Dev toolbar: grid overlay and measure toggles sit beside the theme
   toggle. The toggle keeps its identity; float and spacing move here. */
.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 1ch;
  position: relative;
  z-index: 1;
  margin: 0 0 calc(var(--line-height) * 2);
}

.toolbar > * {
  margin-top: 0;
}

.toolbar .theme-toggle {
  float: none;
  margin: 0;
}

/* Character-grid overlay: the 1ch columns and line-height rows content
   snaps to. A faint line per character, a stronger one every 10, a row
   line every line-height. Toggle with class="grid-lines" on body. */
.grid-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      to right,
      color-mix(in srgb, var(--text-color-alt) 30%, transparent) 0 1px,
      transparent 1px 10ch
    ),
    repeating-linear-gradient(
      to right,
      color-mix(in srgb, var(--text-color-alt) 12%, transparent) 0 1px,
      transparent 1px 1ch
    ),
    repeating-linear-gradient(
      to bottom,
      color-mix(in srgb, var(--text-color-alt) 12%, transparent) 0 1px,
      transparent 1px var(--line-height)
    );
  background-position: 2ch 0;
}

body.grid-lines .grid-overlay {
  display: block;
}

@media screen and (max-width: 480px) {
  body.grid-lines .grid-overlay {
    background-position: 1ch 0;
  }
}

/* Reset */
/* Box sizing and font smoothing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  line-height: var(--line-height);
  min-height: 100vh;
}

/* Default margins off; authored CSS controls spacing */
* {
  margin: 0;
}

/* Set shorter line heights for headings and interactives */
h1,
h2,
button,
label {
  line-height: var(--line-height);
}

/* Avoid text overflows */
p,
h1,
h2 {
  overflow-wrap: break-word;
}

/* Text wrapping on headings */
h1,
h2 {
  text-wrap: balance;
}

/* Improve media defaults */
img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* Improve content defaults */
footer,
header,
nav,
section {
  display: block;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default styling on lists */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* anchor elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  /* This messes with the default */
  color: currentColor;
}

/* textareas without a rows shouldn't be tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Stacking for JS */
#root {
  isolation: isolate;
}

/*****************/
/* Default Theme */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: -1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

* + * {
  margin-top: var(--line-height);
}

/*
  We only want to use h1 and h2 for headers, p and textarea for text.
*/
html {
  font-size: var(--font-size);
  font-family: var(--font-family);
  font-feature-settings: var(--font-feature-settings);
  -moz-font-feature-settings: var(--font-feature-settings);
  -webkit-font-feature-settings: var(--font-feature-settings);

  width: 100%;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  line-height: var(--line-height);
  position: relative;
  width: 100%;

  padding: var(--line-height) 2ch;
}

/* Optional readable measure. Pages are full bleed by default; put
   class="constrained" on body (or a block wrapper) to cap the line
   length. */
.constrained {
  max-width: var(--measure);
  margin-inline: auto;
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  body {
    padding: var(--line-height) 1ch;
  }
}

::-webkit-scrollbar {
  height: var(--line-height);
}

/* One focus ring for every keyboard-focusable element. :focus-visible
   shows it for Tab navigation, not mouse clicks. The 2px ring uses
   --focus-ring, dark blue on cream and brighter on off-black, so it
   reads against the borders without blending into them. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Link Styling */
a {
  color: var(--link);
  text-decoration-skip: ink edges;
  text-decoration-thickness: var(--border-thickness);
}

a:focus-visible,
a:hover,
a:active,
a.active {
  text-decoration: underline;
  color: var(--link-hover);
  cursor: pointer;
}

/* Text Styling*/
h1,
h2 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height);
  margin: calc(var(--line-height) * 2) 0 var(--line-height);
  color: inherit;
}

h1 {
  font-size: 2rem;
  line-height: calc(2 * var(--line-height));
  margin-bottom: calc(var(--line-height) * 2);
  text-transform: uppercase;
}
h2 {
  font-size: 1rem;
  text-transform: uppercase;
}

p {
  margin-bottom: var(--line-height);
}

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

small {
  font-size: 0.7rem;
}

/* List Styling */
ul,
ol {
  margin: 0 0 var(--line-height);
  padding: 0;
}

ul {
  list-style-type: disc;
  padding: 0 0 0 2ch;
}
ul ul {
  list-style-type: circle;
}
ul ul ul {
  list-style-type: square;
}
ul ul ul ul {
  list-style-type: disc;
}
ol {
  list-style-type: none;
  counter-reset: item;
  padding: 0;
}
ol ul,
ol ol,
ul ol,
ul ul {
  padding: 0 0 0 3ch;
  margin: 0;
}
ol li:before {
  content: counters(item, ".") ". ";
  counter-increment: item;
  font-weight: var(--font-weight-medium);
}

li {
  margin: 0;
  padding: 0;
}

li::marker {
  line-height: 0;
}

/* Highlighted Text */
mark {
  padding: 0.05rem 0.1rem 0;
  color: var(--highlight-font-color);
  border-bottom: 0.05rem solid var(--background-color);
  border-radius: 0;
  background: var(--highlight-background-color);
}

/* Double Line Horizontal Rule */
hr {
  position: relative;
  display: block;
  height: var(--line-height);
  margin: calc(var(--line-height) * 1.5) 0;
  border: none;
  color: var(--text-color);
}

hr:after {
  display: block;
  content: "";
  position: absolute;
  top: calc(var(--line-height) / 2 - var(--border-thickness));
  left: 0;
  width: 100%;
  border-top: calc(var(--border-thickness) * 3) double var(--text-color);
  height: 0;
}

/* Aligned Table */
table {
  position: relative;
  top: calc(var(--line-height) / 2);
  width: calc(round(down, 100%, 1ch));
  border-collapse: collapse;
  margin: 0 0 calc(var(--line-height) * 2);
}

th,
td {
  border: var(--border-thickness) solid var(--text-color);
  padding: calc((var(--line-height) / 2)) calc(1ch - var(--border-thickness) / 2)
    calc((var(--line-height) / 2) - (var(--border-thickness)));
  line-height: var(--line-height);
  vertical-align: top;
  text-align: left;
}
table tbody tr:first-child > * {
  padding-top: calc((var(--line-height) / 2) - var(--border-thickness));
}

th {
  font-weight: var(--font-weight-medium);
}
.width-min {
  width: 0%;
}
.width-auto {
  width: 100%;
}

.header {
  margin-bottom: calc(var(--line-height) * 2);
}
.header h1 {
  margin: 0;
}
.header tr td:last-child {
  text-align: right;
}

/* Layout Grid */
.grid {
  --grid-cells: 0;
  --grid-gap: 1ch;
  display: flex;
  gap: var(--grid-gap);
  width: calc(round(down, 100%, (1ch * var(--grid-cells)) - (1ch * var(--grid-cells) - 1)));
  /* No bottom margin: flow rhythm comes from the owl (next sibling's
     margin-top collapses to one line height). A grid used as another
     grid's cell must not push its row - add spacing with padding or an
     explicit margin where the layout needs it. */
}

.grid > * {
  margin-top: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The owl stops at grid cells: nothing under a .grid cell takes the
   automatic top margin, so cells keep their own rhythm. */
.grid * + * {
  margin-top: 0;
}

/* Column direction: stack .grid cells vertically instead of in a row.
   The gap becomes the vertical gap (override with --grid-gap, e.g.
   style="--grid-gap: var(--line-height)"). Cells take full width and
   their natural content height - the character grid stays width-only. */
.grid-column {
  flex-direction: column;
}

.grid > *,
.grid > input {
  flex: 0 0 calc(round(down, (100% - (1ch * (var(--grid-cells) - 1))) / var(--grid-cells), 1ch));
}
.grid:has(> :last-child:nth-child(1)) {
  --grid-cells: 1;
}
.grid:has(> :last-child:nth-child(2)) {
  --grid-cells: 2;
}
.grid:has(> :last-child:nth-child(3)) {
  --grid-cells: 3;
}
.grid:has(> :last-child:nth-child(4)) {
  --grid-cells: 4;
}
.grid:has(> :last-child:nth-child(5)) {
  --grid-cells: 5;
}
.grid:has(> :last-child:nth-child(6)) {
  --grid-cells: 6;
}
.grid:has(> :last-child:nth-child(7)) {
  --grid-cells: 7;
}
.grid:has(> :last-child:nth-child(8)) {
  --grid-cells: 8;
}
.grid:has(> :last-child:nth-child(9)) {
  --grid-cells: 9;
}
.grid:has(> :last-child:nth-child(10)) {
  --grid-cells: 10;
}
.grid:has(> :last-child:nth-child(11)) {
  --grid-cells: 11;
}
.grid:has(> :last-child:nth-child(12)) {
  --grid-cells: 12;
}

/* Fractional cells: split a row in any ratio instead of the equal
   auto-count. Each class takes its share of the space after the 1ch
   gap and rounds down to whole characters, keeping cells on the grid.
   Use like: 3/4 + 1/4, or 2/3 + 1/3. */
.grid > .col-3-4 {
  flex: 0 0 calc(round(down, 75% - 0.75ch, 1ch));
}
.grid > .col-2-3 {
  flex: 0 0 calc(round(down, 66.6667% - 0.6667ch, 1ch));
}
.grid > .col-1-3 {
  flex: 0 0 calc(round(down, 33.3333% - 0.3333ch, 1ch));
}
.grid > .col-1-4 {
  flex: 0 0 calc(round(down, 25% - 0.25ch, 1ch));
}

/* Media Styling */
img,
video {
  display: block;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
}

/* Pop Down Section */
details {
  border: var(--border-thickness) solid var(--text-color);
  padding: calc(var(--line-height) - var(--border-thickness)) 1ch;
  margin-bottom: var(--line-height);
}

summary {
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: var(--line-height);
}

/* Marker drawn as ::before because margin/padding on ::marker is ignored
   in Chromium; padding-right provides the one-character gap. */
details > summary::before {
  content: "▶";
  padding-right: 1ch;
}

details[open] > summary::before {
  content: "▼";
}

details :last-child {
  margin-bottom: 0;
}

/* Code Blocks */
pre {
  white-space: pre-wrap;
  overflow-x: auto;
  margin: var(--line-height) 0;
  overflow-y: hidden;
  tab-size: 4;
  /* Code stays un-ligatured: arrow ligatures (->) alter meaning in code.
     font-variant-numeric tabular-nums still applies via its own property. */
  font-feature-settings: normal;
  -moz-font-feature-settings: normal;
  -webkit-font-feature-settings: normal;
  border: 1px solid var(--text-color);
  background: var(--code-background-color);
  /* Vertical padding centers the first line on the 1.2rem grid; 2ch keeps
     code flush from the ink border like input padding. 1px keeps the
     block exactly one line-height tall. */
  padding: calc(var(--line-height) / 2 - 1px) calc(2ch - 1px);
}

pre,
code {
  font-family: var(--font-family);
}

code {
  font-weight: var(--font-weight-medium);
}

/* Block code reads lighter than inline; the panel + border carry the
   distinction. */
pre code {
  font-weight: var(--font-weight-normal);
}

/* Inputs */
label {
  display: block;
  width: calc(round(down, 100%, 1ch));
  height: auto;
  line-height: var(--line-height);
  font-weight: var(--font-weight-medium);
  /* Bottom margin restores the flow rhythm the owl (* + *) gives other
     siblings; label's `margin: 0` would override it and rows touch. */
  margin: 0 0 var(--line-height);
}

label input {
  width: 100%;
}

input,
button,
textarea,
select {
  border: var(--border-thickness) solid var(--text-color);
  padding: calc(var(--line-height) / 2 - var(--border-thickness)) calc(1ch - var(--border-thickness));
  margin: 0;
  font: inherit;
  font-weight: inherit;
  height: calc(var(--line-height) * 2);
  width: auto;
  overflow: visible;
  background: var(--background-color);
  color: var(--text-color);
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-appearance: none;
}

select,
textarea {
  display: block;
  width: calc(round(down, 100%, 1ch));
  /* margin: 0 loses the owl (* + *) top margin, same as the label rule;
     a one-line bottom margin keeps the row rhythm uniform. */
  margin: 0 0 var(--line-height);
}

textarea {
  /* Let rows control the height instead of the shared two-line height */
  height: auto;
  line-height: var(--line-height);
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-color) 50%),
    linear-gradient(135deg, var(--text-color) 50%, transparent 50%);
  background-position: calc(100% - 1.5ch) 50%, calc(100% - 1ch) 50%;
  background-size: 0.5ch 0.5ch;
  background-repeat: no-repeat;
  padding-right: 3ch;
}

input[type="checkbox"] {
  display: inline-grid;
  place-content: center;
  vertical-align: top;
  width: 2ch;
  height: var(--line-height);
  cursor: pointer;
}

input[type="checkbox"]:checked:before {
  content: "";
  width: 1ch;
  height: calc(var(--line-height) / 2);
  background: var(--text-color);
}

input {
  width: calc(round(down, 100%, 1ch));
}

::placeholder {
  color: var(--text-color-alt);
  opacity: 1;
}

::-ms-input-placeholder {
  color: var(--text-color-alt);
}

/* Button */
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button {
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

button:hover {
  background: var(--button-background-hover);
  color: var(--button-text-hover);
}
button:active {
  transform: translate(2px, 2px);
}

button:disabled {
  color: var(--text-disabled);
  border-color: var(--text-disabled);
  cursor: not-allowed;
}

button:disabled:hover,
button:disabled:active {
  background: var(--background-color);
  color: var(--text-disabled);
  transform: none;
}

/* Utility Classes */
.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Screen Sizes */
.desktop {
  display: block;
}

.tablet {
  display: none;
}

.mobile {
  display: none;
}

/* Tablet Size */
@media (max-width: 771px) and (min-width: 560px) {
  .desktop {
    display: none;
  }

  .tablet {
    display: block;
  }

  .mobile {
    display: none;
  }
}

/* Mobile Size */
@media (max-width: 649px) {
  .desktop {
    display: none;
  }

  .tablet {
    display: none;
  }

  .mobile {
    display: block;
  }
}

/* Spacing Utilities */
/* Padding: all sides */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
/* Padding: axis / side */
.px-0 { padding-inline: 0; }
.px-1 { padding-inline: var(--space-1); }
.px-2 { padding-inline: var(--space-2); }
.px-3 { padding-inline: var(--space-3); }
.px-4 { padding-inline: var(--space-4); }
.py-1 { padding-block: var(--space-1); }
.py-2 { padding-block: var(--space-2); }
.py-3 { padding-block: var(--space-3); }
.py-4 { padding-block: var(--space-4); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pr-2 { padding-right: var(--space-2); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.pl-2 { padding-left: var(--space-2); }
/* Margin: all sides, axis, auto-centre */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mx-auto { margin-inline: auto; }

/* Colour Utilities */
.text-muted { color: var(--text-color-alt); }
.text-strong { color: var(--text-color); }
.bg-inverse { background: var(--text-color); color: var(--background-color); }

/* Typography Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: var(--font-weight-medium); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.2rem; }
.text-balance { text-wrap: balance; }
.no-wrap { white-space: nowrap; }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
