/* ==========================================================
   UBUNTUCARE — DESIGN SYSTEM
   Brand: #006FD9 action blue · Black: #0A0A0A · Inter typography
   Radius: 100px controls · 10px cards and surface grids
   Padding: 20px mobile · 40px desktop
   ========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; min-width: 0; }

:root {
  /* Brand */
  --brand: #006FD9;
  --brand-hover: #005BB8;
  --brand-text: #0066CC;
  --brand-contrast: #FFFFFF;
  --brand-tint: rgba(0, 111, 217, 0.08);
  --brand-tint-strong: rgba(0, 111, 217, 0.14);

  /* Surfaces */
  --white: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface: #F7F7F7;
  --surface-2: #EFEFEF;

  /* Lines */
  --border: #ECECEC;
  --border-strong: #DEDEDE;

  /* Text */
  --black: #0A0A0A;
  --text-1: #0A0A0A;
  --text-2: #5C5C5C;
  --text-3: #6F6F6F;
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --text: var(--text-1);

  /* Theme Dynamic Values */
  --theme-brand-text: var(--brand-text);
  --theme-logo-filter: none;
  --nav-bg: rgba(255, 255, 255, 0.85);

  /* Always-dark background for intentionally dark cards/sections (invariant across themes) */
  --bg-invert: #0A0A0A;
  --bg-invert-text: #FFFFFF;
  --focus-ring: rgba(0, 111, 217, 0.28);
}

[data-theme="dark"] {
  --surface-card: #1A1A1A;
  --brand-text: #60C4FF;
  --brand-tint: rgba(96, 196, 255, 0.14);
  --brand-tint-strong: rgba(96, 196, 255, 0.24);
  --surface: #111111;
  --surface-2: #1A1A1A;
  --border: #222222;
  --border-strong: #333333;
  --black: #050505;
  --text-1: #FFFFFF;
  --text-2: #C2C2C2;
  --text-3: #A6A6A6;
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --text: var(--text-1);
  --theme-brand-text: var(--brand-text);
  --theme-logo-filter: brightness(0) invert(1);
  --nav-bg: rgba(17, 17, 17, 0.85);
  /* In dark mode, invert cards become slightly lighter dark, still clear contrast */
  --bg-invert: #0D0D0D;
  --bg-invert-text: #FFFFFF;
  --focus-ring: rgba(96, 196, 255, 0.34);
}

:root {
  /* Status */
  --success: #087348;
  --success-tint: rgba(8, 115, 72, 0.08);
  --warning: #9A4A00;
  --warning-tint: rgba(154, 74, 0, 0.08);
  --error: #C71D1D;
  --error-tint: rgba(199, 29, 29, 0.08);

  /* Impact / nonprofit green */
  --impact: #087348;
  --impact-tint: rgba(8, 115, 72, 0.08);

  /* Radii — 10px standard, 100px controls */
  --r: 10px;
  --r-card: 10px;
  --r-pill: 100px;
  --r-button: 100px;

  /* Spacing — 20 mobile, 40 desktop */
  --pad: 20px;
  --pad-y: 20px;

  /* Layout */
  --sidebar-w: 264px;
  --header-h: 72px;
  --tabbar-h: 76px;
  --max-w: 1280px;
  --content-w: 760px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-2: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-elevated: 0 16px 48px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
  --success: #5BE49B;
  --success-tint: rgba(91, 228, 155, 0.14);
  --warning: #FFD199;
  --warning-tint: rgba(255, 209, 153, 0.14);
  --error: #FF8A8A;
  --error-tint: rgba(255, 138, 138, 0.14);
  --impact: #5BE49B;
  --impact-tint: rgba(91, 228, 155, 0.14);
}

@media (min-width: 768px) {
  :root {
    --pad: 40px;
    --pad-y: 40px;
  }
}

html, body {
  background: var(--surface);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  font-size: 15px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

:where(
  button,
  .btn,
  a.btn,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .tab,
  .tabs,
  .toggle,
  .role-toggle,
  .role-button,
  .primary-button,
  .google-button,
  .demo-row,
  .ticket-btn,
  .icon-button,
  .icon-btn,
  .mobile-menu-btn,
  .mobile-menu-close,
  .socials a,
  .testimonial-arrow,
  .tag,
  .badge,
  .pill,
  .choice,
  .field label.choice,
  .add-child-btn,
  .remove
) {
  border-radius: var(--r-button) !important;
}

/* ==========================================================
   TYPOGRAPHY
   Fluid scale: clamp(min, vw, max)
   ========================================================== */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-1);
}
h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.5vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow.brand { color: var(--theme-brand-text); }

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 640px;
}

.text-1 { color: var(--text-1); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-brand { color: var(--theme-brand-text); }

/* ==========================================================
   LOGO COMPONENT
   Uses the brand "u" mark or full wordmark from /brand/*.svg
   ========================================================== */
/* Logo = single SVG wordmark. Fixed height, auto width — preserves aspect ratio. */
.uc-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  color: var(--theme-brand-text);
  transition: opacity 0.15s ease;
}
.uc-logo:hover { opacity: 0.8; }
.uc-logo svg {
  height: 100%;
  width: auto;
  transition: opacity 0.15s ease;
}
.uc-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: filter 0.15s ease;
  filter: none;
}
.uc-composite-logo img {
  filter: none !important;
}
img[src$="/assets/brand/logo-light.svg"] {
  content: url("/assets/brand/logo-light.svg");
  filter: none !important;
}
[data-theme="dark"] img[src$="/assets/brand/logo-light.svg"] {
  content: url("/assets/brand/logo-white.svg");
  filter: none !important;
}
.uc-logo .uc-mark-mobile { display: none; }
.uc-logo .uc-wordmark { display: block; }
@media (max-width: 640px) {
  .uc-logo .uc-wordmark { display: none; }
  .uc-logo .uc-mark-mobile {
    display: block;
  }
}
.uc-logo.large { height: 40px; }
.uc-logo.large svg { height: 36px; }
.uc-logo.small svg { height: 22px; }
/* Footer logo larger */
.footer .uc-logo { height: 40px; margin-bottom: 16px; }
.footer .uc-logo svg { height: 32px; }

/* ==========================================================
   BUTTONS — 100px radius, consistent heights
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-button);
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.large { height: 56px; padding: 0 28px; font-size: 15px; }
.btn.small { height: 44px; padding: 0 18px; font-size: 14px; }
.btn.full { width: 100%; }

/* Hero actions — when 2+ buttons stack/sit together, they always match height */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn { min-width: 160px; }
.hero-actions .btn.large { height: 56px; }
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; min-width: 0; }
}

.btn.secondary {
  background: var(--bg-invert);
  color: var(--bg-invert-text);
  border-color: var(--bg-invert);
}
.btn.secondary:hover { background: #1F1F1F; border-color: #1F1F1F; }

.btn.outline {
  background: var(--surface-card);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn.outline:hover {
  background: var(--surface);
  border-color: var(--text-1);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--surface);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--surface-2); }

.btn.icon {
  width: 48px;
  padding: 0;
}
.btn.small.icon { width: 38px; }

/* ==========================================================
   TAGS — 100px control radius
   ========================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  white-space: nowrap;
}
.tag.brand { background: var(--brand-tint); color: var(--theme-brand-text); }
.tag.success { background: var(--success-tint); color: var(--success); }
.tag.warning { background: var(--warning-tint); color: var(--warning); }
.tag.error { background: var(--error-tint); color: var(--error); }
.tag.dark { background: var(--bg-invert); color: var(--bg-invert-text); }

/* ==========================================================
   FORM ELEMENTS — 10px radius, solid white background
   ========================================================== */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}
.field .helper {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}
label:not(.choice):has(> input[type="checkbox"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  line-height: 1.45;
}
label:not(.choice):has(> input[type="checkbox"]) > input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 2px 0 0 !important;
  align-self: flex-start !important;
}
label:not(.choice):has(> input[type="checkbox"]) > span,
label:not(.choice):has(> input[type="checkbox"]) > strong {
  min-width: 0;
}
input, select, textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface-card);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
select,
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  border-radius: var(--r-button);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--theme-brand-text);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230A0A0A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23FFFFFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ==========================================================
   LOADING
   ========================================================== */
.uc-loading {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.uc-spinner {
  width: 32px;
  height: 32px;
  display: inline-block;
  animation: ucSpin 0.75s linear infinite;
}
.uc-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.uc-spinner .track { opacity: 0.16; }
.uc-spinner .arc {
  stroke: var(--theme-brand-text);
  stroke-linecap: round;
  stroke-dasharray: 52 100;
}
@keyframes ucSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   SMART PROFILE INPUTS
   ========================================================== */
.uc-smart-picker,
.uc-area-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}
.uc-smart-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.uc-smart-search,
.uc-smart-picker input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface-card);
  color: var(--text-1);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.uc-smart-results,
.uc-area-results,
.uc-area-selected,
.uc-builder-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-smart-results,
.uc-area-results {
  max-height: 188px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 10px;
  padding-right: 2px;
}
.uc-dropdown-picker .uc-smart-results,
.uc-builder-picker [data-builder-option-results] {
  display: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-2);
}
.uc-dropdown-picker.open .uc-smart-results,
.uc-builder-picker.open [data-builder-option-results] {
  display: flex;
}
.uc-smart-option,
.uc-area-option {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  background: var(--surface-card);
  color: var(--text-1);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.uc-smart-option:hover,
.uc-area-option:hover {
  transform: translateY(-1px);
  border-color: var(--theme-brand-text);
  background: var(--brand-tint);
}
.uc-smart-hint,
.uc-smart-empty {
  display: block;
  margin: 9px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}
.uc-area-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.uc-area-head strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-1);
}
.uc-area-location {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  background: var(--surface-card);
  color: var(--theme-brand-text);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.uc-area-selected {
  min-height: 28px;
  margin-bottom: 8px;
}
.uc-area-radius {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.uc-area-radius label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}
.uc-area-radius select {
  min-height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-card);
  background-color: var(--surface-card);
  color: var(--text-1);
}
.uc-area-panel.loading .uc-area-location {
  opacity: 0.7;
  pointer-events: none;
}
.uc-builder-picker {
  display: grid;
  gap: 10px;
}
.uc-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.uc-picker-toggle {
  min-height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface-card);
  color: var(--theme-brand-text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}
.uc-builder-selected.empty {
  display: none;
}
.uc-selected-more {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--text-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 460px) {
  .uc-picker-row { grid-template-columns: 1fr; }
  .uc-picker-toggle { width: 100%; }
}

/* ==========================================================
   CHOICE TILES (radio / checkbox styled)
   ========================================================== */
.choice,
.field label.choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  border: 2px solid var(--border-strong);
  background: var(--surface-card);
  border-radius: var(--r-button);
  padding: 14px 16px;
  margin-bottom: 0;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.15s ease;
}
.choice:hover { border-color: var(--theme-brand-text); }
.choice.selected {
  border-color: var(--theme-brand-text);
  background: var(--brand-tint);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.choice input { display: none; }
.choice .tick {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0;
  transition: all 0.15s ease;
  background: var(--surface-card);
}
.choice.radio .tick { border-radius: 50%; }
.choice.selected .tick {
  background: var(--brand);
  border-color: var(--theme-brand-text);
}
/* Checkbox tick — white checkmark on blue */
.choice.selected .tick::after {
  content: '';
  width: 12px; height: 7px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px);
  background: transparent;
}
/* Radio tick — white dot on blue */
.choice.radio.selected .tick::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--surface-card);
  border-radius: 50%;
  border: none;
  transform: none;
}

/* Pill chip for interests/likes — clearer selected state */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-button);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-card);
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.pill:hover { border-color: var(--theme-brand-text); }
.pill.selected {
  background: var(--brand);
  border-color: var(--theme-brand-text);
  color: var(--white);
}
.pill.selected::before {
  content: '✓';
  font-size: 12px;
  font-weight: 800;
}
.choice .body {
  min-width: 0;
  min-height: 22px;
  display: flex;
  align-items: flex-start;
}
.choice .body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  margin-bottom: 0;
}
.choice .body span {
  display: none;
  font-size: 13px;
  color: var(--text-2);
}
.choice-grid { display: grid; gap: 10px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choice-grid.two { grid-template-columns: 1fr; } }

/* ==========================================================
   CARDS — 10px radius for cards and surface grids
   ========================================================== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--pad);
  transition: border-color 0.15s ease;
}
.card.hover:hover { border-color: var(--text-1); }
.card.compact { padding: 16px; border-radius: var(--r); }
.card.dark {
  background: var(--bg-invert);
  color: var(--bg-invert-text);
  border-color: var(--bg-invert);
}
.card.dark h1, .card.dark h2, .card.dark h3, .card.dark h4 { color: var(--bg-invert-text); }

/* ==========================================================
   LAYOUT CONTAINERS
   ========================================================== */
/* Container = always 100vw with 40/20px padding, no max-width.
   Use .container-tight only for centred narrow text (e.g. hero headlines). */
.container {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container-tight {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
/* Centred hero text — default for image-less hero pages */
.hero-text {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
/* Left-aligned override for two-column image+text grid heroes */
.hero-text.text-left {
  margin: 0;
  text-align: left;
}
.hero-section .lead {
  margin: 0 0 32px;
  max-width: 640px;
}
/* Centred lead for image-less hero pages */
.hero-section .hero-text:not(.text-left) .lead {
  margin: 0 auto 32px;
}
/* Section wrapper — always full viewport width, content padded inside */
.section-full {
  width: 100vw;
  max-width: 100vw;
}

/* ==========================================================
   GRID HELPERS — responsive 12-col-style without dependencies
   ========================================================== */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.grid.gap-24 { gap: 24px; }
.grid.gap-32 { gap: 32px; }

/* ==========================================================
   FLEX HELPERS
   ========================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* ==========================================================
   SPACING UTILITIES
   ========================================================== */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  border: none;
}
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.empty {
  padding: 56px 24px;
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface-card);
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--surface);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.empty h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.empty p {
  font-size: 13px;
  color: var(--text-2);
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.fade-up { animation: fadeUp 0.5s ease backwards; }
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }

/* ==========================================================
   RESPONSIVE PADDING
   ========================================================== */
.pad { padding: var(--pad); }
.pad-x { padding-left: var(--pad); padding-right: var(--pad); }
.pad-y { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }

/* ==========================================================
   PREVENT OVERFLOW
   ========================================================== */
img, svg, video, iframe { max-width: 100%; height: auto; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.no-scroll { overflow: hidden; }
/* ==========================================================
   THEME TOGGLE
   ========================================================== */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-button);
  transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text-1);
  background: var(--surface);
}
.theme-toggle:focus-visible,
.btn:focus-visible,
.pill:focus-visible,
.choice:focus-within,
.tab:focus-visible,
.role-button:focus-visible,
.icon-btn:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-menu-close:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--theme-brand-text);
  outline-offset: 3px;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: block; }

[data-theme="dark"] .theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }

/* ==========================================================
   UBUNTUCARE LOGO & SECTION STYLE GUIDELINES
   ========================================================== */

/* Automatically alternate backgrounds between standard sections (not dark, featured, cover, or footer) */
section.section:not(.dark):not(.featured):nth-of-type(even) {
  background-color: var(--surface-card) !important;
}
section.section:not(.dark):not(.featured):nth-of-type(odd) {
  background-color: var(--surface) !important;
}

/* Enforce logo color guidelines: black letters on light background, white letters on dark background */
.uc-logo,
.uc-logo svg {
  color: var(--text-1) !important;
}
.uc-logo svg path,
.uc-logo path {
  fill: currentColor !important;
}

/* Force white logo on all dark pages, cards, footers, and dark themes */
[data-theme="dark"] .uc-logo,
[data-theme="dark"] .uc-logo svg,
.card.dark .uc-logo,
.card.dark .uc-logo svg,
.big-cta .uc-logo,
.big-cta .uc-logo svg,
.bm-cover .uc-logo,
.bm-cover .uc-logo svg,
.bm-footer .uc-logo,
.bm-footer .uc-logo svg {
  color: #FFFFFF !important;
}

/* Enforce blue dot ALWAYS across all logos, themes, and backgrounds */
.uc-logo svg circle,
.uc-logo circle,
.uc-mark-mobile circle,
.uc-wordmark circle {
  fill: #006FD9 !important;
}

/* Remove blue border from all black/dark elements */
.tier-card.featured,
.card.dark,
.bm-quote,
.big-cta {
  border-color: transparent !important;
}

/* Force light blue (#60C4FF) brand text/accents on all black/dark elements and dark themes always */
[data-theme="dark"] .text-brand,
[data-theme="dark"] .brand-text,
[data-theme="dark"] .eyebrow.brand,
[data-theme="dark"] .text-impact,
[data-theme="dark"] .pathway-cta,
.card.dark .text-brand,
.card.dark .brand-text,
.card.dark .text-impact,
.card.dark a:hover,
.big-cta .text-brand,
.big-cta a:hover,
.tier-card.featured .tier-desc a,
.tier-card.featured .pathway-cta,
.tier-card.featured .text-brand,
.tier-card.featured .tier-badge,
.bm-quote .text-brand,
.bm-quote strong,
.bm-cover .text-brand,
.bm-cover a:not(.btn),
.footer a:hover {
  color: #60C4FF !important;
}
