@charset "utf-8";

/* ============================================================================
   Tier 2 of 4 — utilities

   One declaration per class, every value read from a token. These exist so a
   page can be assembled without inventing a class name for a one-off margin,
   and so that the tokens actually get used rather than being re-typed as
   literals in page CSS.

   Nothing here is project-specific. Ownership: system-owned.
   ========================================================================= */

/* ---- typography -------------------------------------------------------- */
.font-base { font-family: var(--font-base); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.fs-caption { font-size: var(--fs-caption); }
.fs-body { font-size: var(--fs-body); }
.fs-label { font-size: var(--fs-label); }
.fs-title { font-size: var(--fs-title); }
.fs-page-title { font-size: var(--fs-page-title); }
.fs-hero { font-size: var(--fs-hero); }

.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.lh-none { line-height: var(--lh-none); }
.lh-tight { line-height: var(--lh-tight); }
.lh-snug { line-height: var(--lh-snug); }
.lh-body { line-height: var(--lh-body); }
.lh-relaxed { line-height: var(--lh-relaxed); }

.ls-normal { letter-spacing: var(--ls-normal); }
.ls-tight { letter-spacing: var(--ls-tight); }
.ls-wide { letter-spacing: var(--ls-wide); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-nowrap { white-space: nowrap; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- colour ------------------------------------------------------------ */
.color-text { color: var(--color-text); }
.color-text-sub { color: var(--color-text-sub); }
.color-text-mute { color: var(--color-text-mute); }
.color-text-disabled { color: var(--color-text-disabled); }
.color-text-invert { color: var(--color-text-invert); }
.color-primary { color: var(--color-primary); }
.color-danger { color: var(--color-danger); }

.bg-base { background-color: var(--color-bg); }
.bg-soft { background-color: var(--color-bg-soft); }
.bg-card { background-color: var(--color-bg-card); }
.bg-disabled { background-color: var(--color-bg-disabled); }
.bg-primary-soft { background-color: var(--color-primary-soft); }
.bg-danger-soft { background-color: var(--color-danger-soft); }

/* ---- border, radius, shadow -------------------------------------------- */
.border-line { border: var(--size-hairline) solid var(--color-line); }
.border-strong { border: var(--size-hairline) solid var(--color-line-strong); }
.border-top { border-top: var(--size-hairline) solid var(--color-line); }
.border-bottom { border-bottom: var(--size-hairline) solid var(--color-line); }
.border-none { border: 0; }

.radius-sm { border-radius: var(--radius-sm); }
.radius-md { border-radius: var(--radius-md); }
.radius-lg { border-radius: var(--radius-lg); }
.radius-pill { border-radius: var(--radius-pill); }
.radius-full { border-radius: 50%; }

.shadow-card { box-shadow: var(--shadow-card); }
.shadow-raised { box-shadow: var(--shadow-raised); }
.shadow-none { box-shadow: none; }

/* ---- spacing ----------------------------------------------------------- */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }

/* ---- display and flow --------------------------------------------------- */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0; min-width: 0; }
.flex-none { flex: 0 0 auto; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-4 { gap: var(--space-4); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }

.relative { position: relative; }
/* Sticks below the notch rather than under it. Resolves to top: 0 wherever
   there is no top inset. */
.sticky-top { position: sticky; top: var(--safe-top); z-index: var(--z-sticky); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.list-none { list-style: none; margin: 0; padding: 0; }

/* ---- accessibility ------------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
