/**
 * Utility Classes
 * Single-purpose, reusable utility classes
 * Namespace: nim-
 */

/* ==========================================
   COLOR UTILITIES
   ========================================== */

/* Background Colors - Greyscale */
.nim-bg-grey-100 { background-color: var(--grey-100); }
.nim-bg-grey-250 { background-color: var(--grey-250); }
.nim-bg-grey-400 { background-color: var(--grey-400); }
.nim-bg-grey-550 { background-color: var(--grey-550); }
.nim-bg-grey-700 { background-color: var(--grey-700); }
.nim-bg-grey-900 { background-color: var(--grey-900); }

/* Background Colors - Blue */
.nim-bg-blue-100 { background-color: var(--blue-100); }
.nim-bg-blue-250 { background-color: var(--blue-250); }
.nim-bg-blue-400 { background-color: var(--blue-400); }
.nim-bg-blue-550 { background-color: var(--blue-550); }
.nim-bg-blue-700 { background-color: var(--blue-700); }
.nim-bg-blue-900 { background-color: var(--blue-900); }

.nim-footer-blue{background-color: #014c8f}

/* Background Colors - Orange */
.nim-bg-orange-100 { background-color: var(--orange-100); }
.nim-bg-orange-250 { background-color: var(--orange-250); }
.nim-bg-orange-400 { background-color: var(--orange-400); }
.nim-bg-orange-550 { background-color: var(--orange-550); }
.nim-bg-orange-700 { background-color: var(--orange-700); }
.nim-bg-orange-900 { background-color: var(--orange-900); }

/* Semantic Backgrounds */
.nim-bg-page { background-color: var(--bg-page); }
.nim-bg-surface { background-color: var(--bg-surface); }
.nim-bg-hover { background-color: var(--bg-hover); }
.nim-bg-disabled { background-color: var(--bg-disabled); }

/* Text Colors - Greyscale */
.nim-text-grey-100 { color: var(--grey-100); }
.nim-text-grey-250 { color: var(--grey-250); }
.nim-text-grey-400 { color: var(--grey-400); }
.nim-text-grey-550 { color: var(--grey-550); }
.nim-text-grey-700 { color: var(--grey-700); }
.nim-text-grey-900 { color: var(--grey-900); }

/* Text Colors - Blue */
.nim-text-blue-100 { color: var(--blue-100); }
.nim-text-blue-250 { color: var(--blue-250); }
.nim-text-blue-400 { color: var(--blue-400); }
.nim-text-blue-550 { color: var(--blue-550); }
.nim-text-blue-700 { color: var(--blue-700); }
.nim-text-blue-900 { color: var(--blue-900); }

/* Text Colors - Orange */
.nim-text-orange-100 { color: var(--orange-100); }
.nim-text-orange-250 { color: var(--orange-250); }
.nim-text-orange-400 { color: var(--orange-400); }
.nim-text-orange-550 { color: var(--orange-550); }
.nim-text-orange-700 { color: var(--orange-700); }
.nim-text-orange-900 { color: var(--orange-900); }

/* Border Colors */
.nim-border-grey-250 { border-color: var(--grey-250); }
.nim-border-blue-400 { border-color: var(--blue-400); }
.nim-border-blue-700 { border-color: var(--blue-700); }
.nim-border-orange-550 { border-color: var(--orange-550); }

/* ==========================================
   SPACING UTILITIES (Margin & Padding)
   ========================================== */

/* Named by value, matching the --space-*px tokens. The old .nim-mb-4 named a
   multiplier (4 x 4px) while rendering 16px, so the class, the token and the
   pixel value all disagreed.

   Only the classes with a real consumer are defined. 83 generated-but-unused
   variants were removed — the full matrix existed, 18 of it was ever used, and
   an unused utility is just a name waiting to drift from its token. Add a step
   back when something needs it. */

/* Margin */
.nim-mb-0   { margin-bottom: 0 !important; }
.nim-mb-4px  { margin-bottom: var(--space-4px); }
.nim-mb-8px  { margin-bottom: var(--space-8px); }
.nim-mb-12px { margin-bottom: var(--space-12px); }
.nim-mb-16px { margin-bottom: var(--space-16px); }
.nim-mb-24px { margin-bottom: var(--space-24px); }
.nim-mb-32px { margin-bottom: var(--space-32px); }
.nim-mb-48px { margin-bottom: var(--space-48px); }

.nim-mt-4px  { margin-top: var(--space-4px) !important; }
.nim-mt-8px  { margin-top: var(--space-8px); }
.nim-mt-16px { margin-top: var(--space-16px); }
.nim-mt-20px { margin-top: var(--space-20px); }

.nim-mt-24px { margin-top: var(--space-24px); }
.nim-mt-48px { margin-top: var(--space-48px); }

.nim-mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.nim-p-0     { padding: 0 !important; }

.nim-py-8px  { padding-top: var(--space-8px) !important; padding-bottom: var(--space-8px) !important; }
.nim-py-12px { padding-top: var(--space-12px) !important; padding-bottom: var(--space-12px) !important; }
.nim-py-16px { padding-top: var(--space-16px) !important; padding-bottom: var(--space-16px) !important; }
.nim-py-24px { padding-top: var(--space-24px) !important; padding-bottom: var(--space-24px) !important; }
.nim-py-32px { padding-top: var(--space-32px) !important; padding-bottom: var(--space-32px) !important; }

/* Width — only the one step anything uses. */
.nim-w-256px { width: var(--space-256px) !important; }


/* ==========================================
   BORDER UTILITIES
   ========================================== */

.nim-border { border: 1px solid var(--border-default); }
.nim-border-t { border-top: 1px solid var(--border-default); }
.nim-border-b { border-bottom: 1px solid var(--border-default); }
.nim-border-l { border-left: 1px solid var(--border-default); }
.nim-border-r { border-right: 1px solid var(--border-default); }
.nim-border-0 { border: none; }

/* Border Radius */
.nim-rounded-sm { border-radius: var(--radius-sm) !important; }
.nim-rounded { border-radius: var(--radius-base) !important; }
.nim-rounded-md { border-radius: var(--radius-md) !important; }
.nim-rounded-lg { border-radius: var(--radius-lg) !important; }
.nim-rounded-xl { border-radius: var(--radius-xl) !important; }
.nim-rounded-full { border-radius: var(--radius-full) !important; }

/* ==========================================
   SHADOW UTILITIES
   ========================================== */

.nim-shadow-sm { box-shadow: var(--shadow-sm); }
.nim-shadow { box-shadow: var(--shadow-base); }
.nim-shadow-md { box-shadow: var(--shadow-md); }
.nim-shadow-lg { box-shadow: var(--shadow-lg); }
.nim-shadow-xl { box-shadow: var(--shadow-xl); }
.nim-shadow-none { box-shadow: none; }

/* ==========================================
   DISPLAY UTILITIES
   ========================================== */

.nim-block { display: block; }
.nim-inline-block { display: inline-block; }
.nim-inline { display: inline; }
.nim-flex { display: flex; }
.nim-inline-flex { display: inline-flex; }
.nim-grid { display: grid; }
.nim-hidden { display: none; }

/* ==========================================
   FLEXBOX UTILITIES
   ========================================== */

.nim-flex-row { flex-direction: row; }
.nim-flex-col { flex-direction: column; }
.nim-flex-wrap { flex-wrap: wrap; }
.nim-flex-nowrap { flex-wrap: nowrap; }

.nim-items-start { align-items: flex-start; }
.nim-items-center { align-items: center; }
.nim-items-end { align-items: flex-end; }
.nim-items-stretch { align-items: stretch; }

.nim-justify-start { justify-content: flex-start; }
.nim-justify-center { justify-content: center; }
.nim-justify-end { justify-content: flex-end; }
.nim-justify-between { justify-content: space-between; }
.nim-justify-around { justify-content: space-around; }

.nim-flex-1 { flex: 1 1 0%; }
.nim-flex-auto { flex: 1 1 auto; }
.nim-flex-none { flex: none; }

/* ==========================================
   WIDTH & HEIGHT UTILITIES
   ========================================== */

.nim-w-full { width: 100%; }
.nim-w-auto { width: auto; }
.nim-w-screen { width: 100vw; }

.nim-h-full { height: 100%; }
.nim-h-auto { height: auto; }
.nim-h-screen { height: 100vh; }

.nim-min-h-screen { min-height: 100vh; }
.nim-max-w-screen { max-width: 100vw; }

/* ==========================================
   POSITION UTILITIES
   ========================================== */

.nim-relative { position: relative; }
.nim-absolute { position: absolute; }
.nim-fixed { position: fixed; }
.nim-sticky { position: sticky; }

/* ==========================================
   OVERFLOW UTILITIES
   ========================================== */

.nim-overflow-auto { overflow: auto; }
.nim-overflow-hidden { overflow: hidden; }
.nim-overflow-visible { overflow: visible; }
.nim-overflow-scroll { overflow: scroll; }

/* ==========================================
   OPACITY UTILITIES
   ========================================== */

.nim-opacity-0 { opacity: 0; }
.nim-opacity-25 { opacity: 0.25; }
.nim-opacity-50 { opacity: 0.5; }
.nim-opacity-75 { opacity: 0.75; }
.nim-opacity-100 { opacity: 1; }

/* ==========================================
   CURSOR UTILITIES
   ========================================== */

.nim-cursor-pointer { cursor: pointer; }
.nim-cursor-not-allowed { cursor: not-allowed; }
.nim-cursor-default { cursor: default; }

/* ==========================================
   TRANSITION UTILITIES
   ========================================== */

.nim-transition-fast { transition: all var(--transition-fast); }
.nim-transition { transition: all var(--transition-base); }
.nim-transition-slow { transition: all var(--transition-slow); }


/* ==========================================
   ICON SIZE UTILITIES

   Bootstrap Icons are glyphs sized with font-size, so without these the only
   way to size one in a template is Bootstrap's fs-1..fs-6 — which draws from
   Bootstrap's type scale and drags icons into the text scale. These replace
   fs-* on <i> elements and hold the same pixel sizes it produced.

   For an icon sitting inline with text, prefer .nim-icon-inline: it is sized in
   em, so it tracks whatever text it sits beside with no size class at all.
   ========================================== */

.nim-icon-inline { font-size: 1.15em; }

.nim-icon-xs { font-size: var(--icon-xs); }    /* 16px */
.nim-icon-sm { font-size: var(--icon-sm); }    /* 20px */
.nim-icon-md { font-size: var(--icon-md); }    /* 24px */
.nim-icon-lg { font-size: var(--icon-lg); }    /* 28px */
.nim-icon-xl { font-size: var(--icon-xl); }    /* 32px */
.nim-icon-2xl { font-size: var(--icon-2xl); }  /* 40px */
.nim-icon-3xl { font-size: var(--icon-3xl); }  /* 56px */

/* ==========================================
   NUMERIC UTILITIES
   ========================================== */

/* Uniform digit advance, for columns of money, dates and counts. Roboto's
   default figures are proportional — a 1 is narrower than a 0 — so decimal
   points wander down a column and a figure shifts sideways when it updates.
   Opt-in rather than global: tabular figures are slightly wider and read a
   little mechanically in running prose. */
.nim-tabular-nums { font-variant-numeric: tabular-nums; }

/* ==========================================
   LINE HEIGHT UTILITIES
   Unitless, so each inherits as a multiplier and recomputes against the
   element's own font-size. See the rules on --leading-* in variables.css.
   ========================================== */

.nim-leading-none { line-height: var(--leading-none); }
.nim-leading-tight { line-height: var(--leading-tight); }
.nim-leading-snug { line-height: var(--leading-snug); }
.nim-leading-normal { line-height: var(--leading-normal); }
.nim-leading-relaxed { line-height: var(--leading-relaxed); }
.nim-leading-caption { line-height: var(--leading-caption); }
.nim-leading-body { line-height: var(--leading-body); }
.nim-leading-prose { line-height: var(--leading-prose); }

/* ==========================================
   LETTER SPACING UTILITIES
   ========================================== */

.nim-tracking-tighter { letter-spacing: var(--tracking-tighter) !important; }
.nim-tracking-tight { letter-spacing: var(--tracking-tight) !important; }
.nim-tracking-snug { letter-spacing: var(--tracking-snug) !important; }
.nim-tracking-normal { letter-spacing: var(--tracking-normal) !important; }
.nim-tracking-wide { letter-spacing: var(--tracking-wide) !important; }
.nim-tracking-wider { letter-spacing: var(--tracking-wider) !important; }
.nim-tracking-widest { letter-spacing: var(--tracking-widest) !important; }
