/* FundedAfrica — Design System & Global Styles
   Mobile-first: base styles at 375px, scale up */

/* ─────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
───────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --green-900:  #0d2b1f;
  --green-800:  #1B4332;   /* Primary — trust, Africa, growth */
  --green-600:  #2D6A4F;   /* Success */
  --green-500:  #40916C;   /* Secondary / CTAs */
  --green-400:  #52B788;
  --green-200:  #B7E4C7;
  --green-100:  #D8F3DC;
  --green-50:   #f0faf3;

  --orange-500: #E87722;   /* Accent / Deadlines / Urgency */
  --orange-400: #F4A043;
  --orange-100: #FEF0DC;

  --red-600:    #C1121F;   /* Error */
  --red-100:    #FFE3E3;

  --blue-600:   #1d4ed8;
  --blue-100:   #dbeafe;

  /* Neutrals */
  --bg:         #F8F9FA;
  --white:      #ffffff;
  --text:       #1A1A2E;   /* Near-black */
  --text-muted: #4A4A6A;   /* Mid-grey */
  --border:     #E2E8F0;
  --border-dark:#CBD5E1;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);

  /* Typography */
  --font-sans:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-size:  16px;
  --line-height:1.6;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill:999px;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 5vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem,  4vw, 2.25rem); font-weight: 700; line-height: 1.2;  }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem);  font-weight: 700; line-height: 1.3;  }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }
p  { color: var(--text-muted); }
.text-primary { color: var(--text); }

small { font-size: 0.8125rem; }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

main { flex: 1; padding-bottom: var(--space-20); }

/* App-surface header. Uses the same ink as the navbar so the two read as one
   continuous dark header block, with the green glow from the portal heroes.
   Only the signed-in student pages use this class; marketing pages use
   .page-head (photographic). */
.page-header {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-dark, #0d2b1f);
  color: var(--white);
  padding: var(--space-10) 0 var(--space-9);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 320px at 10% -45%, rgba(82,183,136,.22), transparent 70%),
    radial-gradient(620px 260px at 90% -10%, rgba(64,145,108,.16), transparent 70%);
}
.page-header h1 {
  color: var(--white); margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -.03em; line-height: 1.1; text-wrap: balance;
}
.page-header p { color: rgba(255,255,255,.72); margin: 0; }
.page-header a:not(.btn) { color: rgba(255,255,255,.72); }
.page-header a:not(.btn):hover { color: #fff; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 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-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

/* Spacing helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.py-4  { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8  { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.px-4  { padding-left: var(--space-4);  padding-right: var(--space-4); }
.text-center { text-align: center; }

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--green-800);
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 768px) { .navbar-links { display: flex; } }
.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--green-800); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .navbar-hamburger { display: none; } }
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--t-base);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: flex-end;
  cursor: pointer;
}

/* Bottom nav — mobile only */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--t-fast);
  text-decoration: none;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--green-800); }
.bottom-nav-item svg  { width: 22px; height: 22px; }
/* push main content above bottom nav on mobile */
@media (max-width: 767px) { body { padding-bottom: 64px; } }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); }

.btn-secondary {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}
.btn-secondary:hover { background: var(--green-600); border-color: var(--green-600); }

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-50); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }

.btn-danger {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
}
.btn-danger:hover { background: #a30f18; }

.btn-sm {
  padding: 0.375rem var(--space-4);
  font-size: 0.8125rem;
  min-height: 36px;
}
.btn-lg {
  padding: 0.875rem var(--space-8);
  font-size: 1.0625rem;
  min-height: 52px;
  border-radius: var(--radius-lg);
}
.btn-block { width: 100%; }

/* Loading spinner inside button */
.btn-loading { pointer-events: none; opacity: .7; }
.btn-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: var(--space-2);
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-hover:hover { transform: translateY(-2px); }

/* Scholarship card */
.scholarship-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.scholarship-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.scholarship-card .card-provider {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.scholarship-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-1);
  line-height: 1.35;
}
.scholarship-card .card-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scholarship-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.scholarship-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* Match score bar */
.match-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.match-score .score-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.match-score .score-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--green-800);
  white-space: nowrap;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-800));
  border-radius: var(--radius-pill);
  transition: width .6s ease;
}
.progress-fill.high   { background: linear-gradient(90deg, #52B788, var(--green-800)); }
.progress-fill.medium { background: linear-gradient(90deg, #F4A043, var(--orange-500)); }
.progress-fill.low    { background: linear-gradient(90deg, #f87171, var(--red-600)); }

/* ─────────────────────────────────────────────
   BADGES / PILLS
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-green  { background: var(--green-100); color: var(--green-800); }
.badge-orange { background: var(--orange-100); color: #9a4e00; }
.badge-red    { background: var(--red-100); color: var(--red-600); }
.badge-blue   { background: var(--blue-100); color: var(--blue-600); }
.badge-grey   { background: #F1F5F9; color: var(--text-muted); }
.badge-verified { background: var(--green-100); color: var(--green-800); }

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
label .required { color: var(--red-600); margin-left: 2px; }
label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.625rem var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(64,145,108,.15);
}
.form-control::placeholder { color: #a0aec0; }
.form-control.is-invalid { border-color: var(--red-600); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(193,18,31,.12); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A4A6A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-error {
  font-size: 0.8rem;
  color: var(--red-600);
  font-weight: 500;
}

/* Toggle / Checkbox */
.toggle-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.toggle-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-weight: 500;
  font-size: 0.875rem;
  user-select: none;
}
.toggle-option:hover { border-color: var(--green-500); background: var(--green-50); }
.toggle-option.selected {
  border-color: var(--green-800);
  background: var(--green-50);
  color: var(--green-800);
}
.toggle-option input { display: none; }

/* ─────────────────────────────────────────────
   ALERTS / FLASH MESSAGES
───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid;
}
.alert-success { background: var(--green-50);  border-color: var(--green-200); color: var(--green-800); }
.alert-error   { background: var(--red-100);   border-color: #fca5a5;         color: var(--red-600); }
.alert-warning { background: var(--orange-100);border-color: #fbd38d;         color: #7c4a00; }
.alert-info    { background: var(--blue-100);  border-color: #93c5fd;         color: #1e40af; }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 60%, var(--green-500) 100%);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.hero p   { color: rgba(255,255,255,.85); font-size: 1.125rem; margin-bottom: var(--space-8); }
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: var(--space-8);
  color: rgba(255,255,255,.7);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-trust .sep { opacity: .4; }

/* ─────────────────────────────────────────────
   SECTION HEADINGS
───────────────────────────────────────────── */
.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ─────────────────────────────────────────────
   STEP INDICATORS (Onboarding)
───────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 60px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--t-base);
}
.step.active   .step-circle { border-color: var(--green-800); background: var(--green-800); color: var(--white); }
.step.complete .step-circle { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--t-base);
}
.step.complete .step-line { background: var(--green-500); }
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  margin-top: var(--space-1);
}
.step.active   .step-label { color: var(--green-800); }
.step.complete .step-label { color: var(--green-600); }

/* ─────────────────────────────────────────────
   KANBAN BOARD (Tracker)
───────────────────────────────────────────── */
.kanban {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: 500px;
}
.kanban-col {
  flex: 0 0 280px;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.kanban-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.kanban-count {
  background: var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.kanban-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: grab;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card:active { cursor: grabbing; }

/* ─────────────────────────────────────────────
   FILTERS BAR
───────────────────────────────────────────── */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-bottom: var(--space-6);
}
.filter-group { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 140px; }
.filter-group label { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   PRICING CARDS
───────────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(27,67,50,.08);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-800);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.pricing-price sup { font-size: 1.25rem; vertical-align: super; }
.pricing-period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: var(--space-3); }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-feature .check { color: var(--green-600); flex-shrink: 0; }
.pricing-feature .cross { color: #aaa; flex-shrink: 0; }
.pricing-feature.dim { color: var(--text-muted); }

/* ─────────────────────────────────────────────
   DASHBOARD / STATS
───────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ─────────────────────────────────────────────
   UPGRADE PROMO BANNER
───────────────────────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--white);
}
.upgrade-banner h3 { color: var(--white); font-size: 1.125rem; }
.upgrade-banner p  { color: rgba(255,255,255,.8); font-size: 0.9rem; margin-top: var(--space-1); }

/* ─────────────────────────────────────────────
   SCHOLARSHIP DETAIL
───────────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.detail-logo {
  width: 72px;
  height: 72px;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .detail-meta-grid { grid-template-columns: repeat(4, 1fr); }
}
.detail-meta-item .meta-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.detail-meta-item .meta-value { font-size: 1rem; font-weight: 700; color: var(--text); margin-top: var(--space-1); }

/* ─────────────────────────────────────────────
   SIDEBAR LAYOUT
───────────────────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .sidebar-layout { grid-template-columns: 1fr 320px; }
}
.sidebar-sticky { position: sticky; top: 80px; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--green-800);
  color: rgba(255,255,255,.8);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer h4 { color: var(--white); margin-bottom: var(--space-4); font-size: 1rem; }
footer a  { display: block; color: rgba(255,255,255,.7); margin-bottom: var(--space-3); font-size: 0.9rem; transition: color var(--t-fast); }
footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--bg) 100%);
  padding: var(--space-6) var(--space-4);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green-800);
  margin-bottom: var(--space-8);
  justify-content: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────
   ADMIN PANEL
───────────────────────────────────────────── */
/* ── Admin / Agency sidebar layout ──────────────────────────── */
:root {
  --sidebar-w:       240px;
  --sidebar-w-sm:     64px;
  --sidebar-bg:      #0f2419;
  --sidebar-hover:   rgba(255,255,255,.07);
  --sidebar-active:  rgba(255,255,255,.13);
  --sidebar-border:  rgba(255,255,255,.07);
  --sidebar-text:    rgba(255,255,255,.65);
  --sidebar-text-hi: #fff;
  --sidebar-trans:   width .22s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}

.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .22s cubic-bezier(.4,0,.2,1);
}
.admin-layout.sidebar-collapsed {
  grid-template-columns: var(--sidebar-w-sm) 1fr;
}
@media (max-width: 767px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

.admin-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  min-height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  transition: var(--sidebar-trans);
  flex-shrink: 0;
}
.admin-sidebar.collapsed {
  width: var(--sidebar-w-sm);
}

/* Logo row */
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--sidebar-border);
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
}
.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  overflow: hidden;
  transition: opacity .15s, width .22s;
}
.sidebar-logo-sub {
  font-size: .7rem;
  font-weight: 400;
  opacity: .45;
  margin-top: 1px;
}
.admin-sidebar.collapsed .sidebar-logo-text { opacity: 0; width: 0; pointer-events: none; }

/* Collapse toggle button */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sidebar-text);
  padding: 8px 0;
  width: 100%;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover { background: var(--sidebar-hover); color: #fff; }

/* Nav */
.admin-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background .13s, color .13s;
  position: relative;
  border-radius: 0;
}
.admin-nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-hi); }
.admin-nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-hi);
  border-left: 3px solid var(--green-400, #4ade80);
  padding-left: 13px;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.nav-label {
  transition: opacity .15s, width .22s;
  overflow: hidden;
}
.admin-sidebar.collapsed .nav-label { opacity: 0; width: 0; pointer-events: none; }
.admin-sidebar.collapsed .nav-badge { display: none; }

/* Collapsed nav item centering */
.admin-sidebar.collapsed .admin-nav-item { justify-content: center; padding: 10px 0; }

/* JS-based fixed tooltip (escapes all overflow clipping) */
.sidebar-tip {
  position: fixed;
  background: #1a1a1a;
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transform: translateY(-50%);
  margin-left: 8px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 8px 0 16px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-logout { color: #fca5a5 !important; }
.sidebar-logout:hover { background: rgba(239,68,68,.12) !important; color: #fca5a5 !important; }

.admin-main {
  padding: var(--space-8);
  background: var(--bg);
  overflow-y: auto;
  min-width: 0;
}
@media (max-width: 767px) { .admin-main { padding: var(--space-4); } }

/* ─────────────────────────────────────────────
   TABLE
───────────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--bg); }
th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--green-50); }

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
}
.empty-state h3 { font-size: 1.25rem; margin-bottom: var(--space-3); color: var(--text); }
.empty-state p  { max-width: 380px; margin: 0 auto var(--space-6); }

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: var(--space-4); }
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); max-width: 560px; }
}

/* ─────────────────────────────────────────────
   SKELETON LOADER
───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opacity-50 { opacity: .5; }
.cursor-pointer { cursor: pointer; }
.w-full { width: 100%; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease forwards; }

/* ─────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────── */
.fa-toasts {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 40px);
}
.fa-toast {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  pointer-events: all;
  border: 1px solid var(--border);
  animation: toastSlideIn .32s cubic-bezier(.16,1,.3,1) both;
  position: relative;
  overflow: hidden;
}
.fa-toast-icon { color: var(--green-600); }
.fa-toast.toast-error   .fa-toast-icon { color: var(--red-600); }
.fa-toast.toast-warning .fa-toast-icon { color: var(--orange-500); }
.fa-toast.toast-info    .fa-toast-icon { color: #3b82f6; }
.fa-toast-icon  { font-size: 1rem; flex-shrink: 0; line-height: 1.45; }
.fa-toast-msg   { flex: 1; line-height: 1.45; }
.fa-toast-close {
  background: none; border: none; font-size: .85rem;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0;
  padding: 1px 3px; line-height: 1; opacity: .55; transition: opacity .12s;
}
.fa-toast-close:hover { opacity: 1; }
.fa-toast.fa-toast-out { animation: toastSlideOut .22s ease both; }
.fa-toast-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--green-600);
  border-radius: 0 3px 0 0;
}
.fa-toast.toast-error   .fa-toast-bar { background: var(--red-600); }
.fa-toast.toast-warning .fa-toast-bar { background: var(--orange-500); }
.fa-toast.toast-info    .fa-toast-bar { background: #3b82f6; }
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(52px) scale(.93); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes toastSlideOut {
  to   { opacity: 0; transform: translateX(52px) scale(.9);
         max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0; }
}

/* ─────────────────────────────────────────────
   MICRO-ANIMATIONS & ENHANCEMENTS
───────────────────────────────────────────── */

/* Staggered card entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp .28s ease both; }
.animate-up:nth-child(1) { animation-delay: 0s; }
.animate-up:nth-child(2) { animation-delay: .06s; }
.animate-up:nth-child(3) { animation-delay: .12s; }
.animate-up:nth-child(4) { animation-delay: .18s; }

/* Stat cards — hover lift + icon tinting */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-100);
  opacity: .55;
  pointer-events: none;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto var(--space-3);
  background: var(--green-100);
  flex-shrink: 0;
}
.stat-icon.orange { background: var(--orange-100); }
.stat-icon.blue   { background: var(--blue-100); }
.stat-icon.red    { background: var(--red-100); }

/* Scholarship card — richer hover */
.card.scholarship-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

/* Buttons — active press feedback */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
  pointer-events: none;
}
.btn:active::after { background: rgba(255,255,255,.12); }

/* Hero — subtle floating particles (CSS only) */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

/* Page header accent line */
.admin-page-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* Smooth reveal for inline edit panels */
.edit-panel {
  border-top: 2px solid var(--green-800);
  background: var(--green-50);
  padding: 24px;
  animation: fadeInUp .2s ease both;
}

/* SweetAlert2 brand overrides */
.swal2-popup {
  font-family: var(--font-sans) !important;
  border-radius: var(--radius-xl) !important;
}
.swal2-title { font-weight: 800 !important; font-size: 1.25rem !important; }
.swal2-html-container { font-size: .9375rem !important; color: var(--text-muted) !important; }
.swal2-confirm { font-family: var(--font-sans) !important; font-weight: 600 !important; }
.swal2-cancel  { font-family: var(--font-sans) !important; font-weight: 600 !important; }

/* ═════════════════════════════════════════════
   POLISH LAYER  (impeccable pass — 2026)
   Elevates hierarchy, craft & motion within the
   existing green/orange/Jakarta identity.
═════════════════════════════════════════════ */

/* Accessible focus ring — consistent across the app */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Section kicker — one deliberate branded element (accent dot + pill),
   not a bare tracked eyebrow. Used sparingly per section. */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
/* §9.F: decorative status dot removed (conveyed no state). */
.section-title { text-wrap: balance; letter-spacing: -0.02em; }
.section-subtitle { text-wrap: pretty; }

/* Icon chip — tinted rounded square that houses an icon.
   Replaces bare oversized icons; adds craft + breaks flat grids. */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  flex-shrink: 0;
  transition: transform var(--t-base), background var(--t-base);
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.chip-sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-chip.chip-sm svg { width: 20px; height: 20px; }
.icon-chip.chip-orange { background: var(--orange-100); color: #9a4e00; border-color: #F6D9BC; }
.icon-chip.chip-solid  { background: var(--green-800); color: #fff; border-color: transparent; }
.card-hover:hover .icon-chip { transform: scale(1.06) rotate(-3deg); }

/* Stronger, calmer card lift */
.card-hover {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  will-change: transform;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

/* ── HERO depth + two-column story ─────────────────────────── */
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(82,183,136,.55) 0%, rgba(82,183,136,0) 62%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 100% at 85% 0%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 100% at 85% 0%, #000 0%, transparent 60%);
  opacity: .7;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-12); }
}
.hero-content { max-width: 620px; }
.hero h1 { letter-spacing: -0.03em; text-wrap: balance; }

/* Hero product-story visual — a floating "match" card mockup */
.hero-visual { display: none; position: relative; }
@media (min-width: 992px) { .hero-visual { display: block; } }
.match-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.18);
  padding: var(--space-5);
  color: var(--text);
  max-width: 380px;
  margin-left: auto;
  position: relative;
  transform: rotate(1.4deg);
  animation: floatCard 7s ease-in-out infinite;
}
.match-card + .match-card {
  position: absolute;
  bottom: -34px; left: -18px;
  max-width: 250px;
  transform: rotate(-3deg);
  animation-delay: -3.5s;
  z-index: 2;
}
@keyframes floatCard {
  0%, 100% { transform: rotate(1.4deg) translateY(0); }
  50%      { transform: rotate(1.4deg) translateY(-10px); }
}
.match-ring {
  --pct: 94;
  width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--pct) * 1%), var(--green-100) 0);
  display: grid; place-items: center; flex-shrink: 0;
}
.match-ring span {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .8125rem; color: var(--green-800);
}

/* ── Scroll reveal — progressive enhancement, fails visible ── */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.has-reveal .reveal.in { opacity: 1; transform: none; }
.has-reveal .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.has-reveal .reveal-stagger.in > * { opacity: 1; transform: none; }
.has-reveal .reveal-stagger.in > *:nth-child(2) { transition-delay: .06s; }
.has-reveal .reveal-stagger.in > *:nth-child(3) { transition-delay: .12s; }
.has-reveal .reveal-stagger.in > *:nth-child(4) { transition-delay: .18s; }
.has-reveal .reveal-stagger.in > *:nth-child(5) { transition-delay: .24s; }
.has-reveal .reveal-stagger.in > *:nth-child(6) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal, .has-reveal .reveal.in,
  .has-reveal .reveal-stagger > *, .has-reveal .reveal-stagger.in > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .match-card { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Dashboard (product surface) — scannable, restrained ───── */
.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.stat-card:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.stat-card .stat-value { font-size: 1.75rem; }
.stat-card .stat-body { min-width: 0; }

/* Promo / referral card — full border + tint, NOT a side-stripe */
.promo-card {
  border: 1px solid var(--green-200);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--green-50) 0%, transparent 55%),
    var(--white);
}

/* Empty-state icon in a chip */
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border-radius: 20px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  margin: 0 auto var(--space-4);
}
.empty-state .empty-icon svg { width: 36px; height: 36px; }

/* ═════════════════════════════════════════════
   RESUME BUILDER — ATS template + builder shell
═════════════════════════════════════════════ */
.builder { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) {
  .builder { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
  .builder-preview { position: sticky; top: 84px; }
}
.builder-panel { display: flex; flex-direction: column; gap: var(--space-4); }

/* Collapsible form section */
.rb-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rb-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: none; text-align: left; font-weight: 700; font-size: .95rem; color: var(--text); }
.rb-head .rb-chevron { margin-left: auto; transition: transform var(--t-fast); color: var(--text-muted); }
.rb-head[aria-expanded="true"] .rb-chevron { transform: rotate(180deg); }
.rb-body { padding: 4px 16px 18px; border-top: 1px solid var(--border); }
.rb-entry { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; background: var(--bg); }
.rb-entry-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.rb-ai-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--green-700, var(--green-800)); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-pill); padding: 5px 12px; cursor: pointer; transition: background var(--t-fast); }
.rb-ai-btn:hover { background: var(--green-100); }
.rb-ai-btn[disabled] { opacity: .55; cursor: default; }
.rb-ai-btn.locked { color: #9a4e00; background: var(--orange-100); border-color: #F6D9BC; }
.rb-chip-input { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); border-radius: var(--radius-pill); padding: 4px 6px 4px 10px; font-size: .8rem; font-weight: 600; }
.rb-tag button { background: none; border: none; color: inherit; cursor: pointer; display: inline-flex; opacity: .7; }
.rb-tag button:hover { opacity: 1; }

/* Preview paper frame */
.cv-frame { background: #e9edf1; border-radius: var(--radius-lg); padding: 20px; overflow: auto; }
.cv-paper { box-shadow: 0 6px 24px rgba(0,0,0,.12); border-radius: 4px; }

/* ── The CV / résumé document (shared by preview + print) ── */
.cv {
  --accent: #1B4332; --accent-50: #f0faf3;
  background: #fff; color: #1A1A2E;
  font-family: var(--font-sans);
  width: 100%; max-width: 820px; margin: 0 auto;
  padding: 46px 52px; font-size: 13px; line-height: 1.5;
  /* Force accent header / skill pills to print even without "Background graphics" */
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cv[data-accent="navy"]   { --accent: #1d3a5f; --accent-50: #eef3f9; }
.cv[data-accent="orange"] { --accent: #b35a12; --accent-50: #fdf1e6; }
.cv[data-accent="plum"]   { --accent: #6d2f5b; --accent-50: #f7edf4; }
.cv[data-accent="slate"]  { --accent: #334155; --accent-50: #f1f5f9; }
.cv-name { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cv-headline { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 3px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 9px; font-size: 12px; color: #4A4A6A; }
.cv-contact a { color: inherit; }
.cv-section { margin-top: 19px; }
.cv-section > h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; margin-bottom: 9px; font-weight: 800; }
.cv-summary { color: #33334d; }
.cv-item { margin-bottom: 12px; }
.cv-item:last-child { margin-bottom: 0; }
.cv-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cv-item-title { font-weight: 700; }
.cv-item-sub { color: #4A4A6A; }
.cv-item-date { color: #4A4A6A; font-size: 12px; white-space: nowrap; }
.cv-bullets { margin-top: 4px; padding-left: 17px; }
.cv-bullets li { list-style: disc; margin-bottom: 2px; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill { background: var(--accent-50); color: var(--accent); border-radius: 4px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
/* Skill proficiency bars */
.cv-skilllist { display: flex; flex-direction: column; gap: 6px; }
.cv-skillrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-skillname { font-weight: 600; font-size: 12.5px; }
.cv-skillbar { display: inline-flex; gap: 3px; flex-shrink: 0; }
.cv-skillbar span { width: 15px; height: 5px; border-radius: 2px; background: #e2e8f0; }
.cv-skillbar span.on { background: var(--accent); }
.cv-two { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cv-two > div { min-width: 180px; }
.cv-empty-hint { color: #9aa0b0; font-style: italic; }

/* ── Template: Modern (accent header panel + dotted section labels) ── */
.cv[data-template="modern"] .cv-head-wrap { background: var(--accent); color: #fff; padding: 22px 24px; border-radius: 6px; margin-bottom: 16px; }
.cv[data-template="modern"] .cv-name { color: #fff; font-size: 25px; }
.cv[data-template="modern"] .cv-headline { color: rgba(255,255,255,.85); }
.cv[data-template="modern"] .cv-contact { color: rgba(255,255,255,.8); }
.cv[data-template="modern"] .cv-contact a { color: rgba(255,255,255,.9); }
.cv[data-template="modern"] .cv-section > h2 { border-bottom: none; padding-left: 15px; position: relative; }
.cv[data-template="modern"] .cv-section > h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cv[data-template="modern"] .cv-skill { background: var(--accent); color: #fff; }

/* ── Template: Compact (denser, fits more on one page) ── */
.cv[data-template="compact"] { padding: 34px 42px; font-size: 12px; line-height: 1.42; }
.cv[data-template="compact"] .cv-name { font-size: 21px; }
.cv[data-template="compact"] .cv-headline { font-size: 12.5px; }
.cv[data-template="compact"] .cv-section { margin-top: 13px; }
.cv[data-template="compact"] .cv-section > h2 { font-size: 11px; margin-bottom: 6px; padding-bottom: 2px; }
.cv[data-template="compact"] .cv-item { margin-bottom: 8px; }
.cv[data-template="compact"] .cv-bullets { margin-top: 2px; }

/* ── Photo (headshot) — shown when uploaded, styled per template ── */
.cv-head-wrap { position: relative; }
.cv-photo { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; float: right; margin: 0 0 6px 16px; border: 1px solid var(--border); }
.cv[data-template="modern"] .cv-photo { border: 3px solid rgba(255,255,255,.7); border-radius: 50%; width: 72px; height: 72px; }
.cv[data-template="compact"] .cv-photo { width: 62px; height: 62px; }

/* ── Template: Portrait (centered header, large circular photo) ── */
.cv[data-template="portrait"] .cv-head-wrap { text-align: center; padding-bottom: 16px; border-bottom: 2px solid var(--accent); margin-bottom: 6px; }
.cv[data-template="portrait"] .cv-photo { float: none; display: block; margin: 0 auto 12px; width: 116px; height: 116px; border-radius: 50%; border: 4px solid var(--accent-50); }
.cv[data-template="portrait"] .cv-name { color: var(--accent); }
.cv[data-template="portrait"] .cv-contact { justify-content: center; }
.cv[data-template="portrait"] .cv-section > h2 { text-align: center; border-bottom: none; }
.cv[data-template="portrait"] .cv-skills { justify-content: center; }

/* ── Two-column plumbing ──────────────────────────────────────
   Non-sidebar templates: the main/aside wrappers dissolve and every
   section flows in a single column, ordered explicitly. */
.cv:not([data-template="sidebar"]) { display: flex; flex-direction: column; }
.cv:not([data-template="sidebar"]) .cv-main,
.cv:not([data-template="sidebar"]) .cv-aside { display: contents; }
.cv:not([data-template="sidebar"]) .cv-head-wrap  { order: 1; }
.cv:not([data-template="sidebar"]) .cv-sec-summary { order: 2; }
.cv:not([data-template="sidebar"]) .cv-sec-exp     { order: 3; }
.cv:not([data-template="sidebar"]) .cv-sec-edu     { order: 4; }
.cv:not([data-template="sidebar"]) .cv-sec-skills  { order: 5; }
.cv:not([data-template="sidebar"]) .cv-sec-proj    { order: 6; }
.cv:not([data-template="sidebar"]) .cv-sec-cert    { order: 7; }
.cv:not([data-template="sidebar"]) .cv-sec-lang    { order: 8; }
.cv:not([data-template="sidebar"]) .cv-sec-ref     { order: 9; }
.cv:not([data-template="sidebar"]) .cv-empty-hint  { order: 10; }
.cv:not([data-template="sidebar"]) .cv-photo-aside { display: none; }

/* ── Template: Sidebar (accent rail + photo + skills, main column right) ── */
.cv[data-template="sidebar"] { display: grid; grid-template-columns: 34% 1fr; padding: 0; gap: 0; overflow: hidden; }
.cv[data-template="sidebar"] .cv-aside { grid-column: 1; grid-row: 1; background: var(--accent); color: #fff; padding: 30px 22px; display: flex; flex-direction: column; gap: 16px; }
.cv[data-template="sidebar"] .cv-main  { grid-column: 2; grid-row: 1; padding: 34px 32px; display: flex; flex-direction: column; }
.cv[data-template="sidebar"] .cv-photo-main { display: none; }
.cv[data-template="sidebar"] .cv-photo-aside { display: block; float: none; width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 4px; border: 3px solid rgba(255,255,255,.45); }
.cv[data-template="sidebar"] .cv-name { color: var(--accent); }
.cv[data-template="sidebar"] .cv-section { margin-top: 0; }
.cv[data-template="sidebar"] .cv-main .cv-section { margin-bottom: 16px; }
.cv[data-template="sidebar"] .cv-aside .cv-section > h2 { color: #fff; border-color: rgba(255,255,255,.4); }
.cv[data-template="sidebar"] .cv-aside .cv-skills { flex-direction: column; align-items: flex-start; gap: 5px; }
.cv[data-template="sidebar"] .cv-aside .cv-skill { background: rgba(255,255,255,.16); color: #fff; width: 100%; }
.cv[data-template="sidebar"] .cv-aside .cv-item-sub,
.cv[data-template="sidebar"] .cv-aside strong { color: #fff; }
.cv[data-template="sidebar"] .cv-aside .cv-two { flex-direction: column; gap: 4px; }
.cv[data-template="sidebar"] .cv-aside .cv-skillrow { flex-wrap: wrap; gap: 4px 8px; }
.cv[data-template="sidebar"] .cv-aside .cv-skillname { color: #fff; }
.cv[data-template="sidebar"] .cv-aside .cv-skillbar span { background: rgba(255,255,255,.25); }
.cv[data-template="sidebar"] .cv-aside .cv-skillbar span.on { background: #fff; }

/* Builder — template thumbnail picker (CSS mini-mockups) */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.tpl-thumb { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--white); border: 2px solid var(--border); border-radius: 9px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.tpl-thumb:hover { border-color: var(--green-400); }
.tpl-thumb.sel { border-color: var(--green-800); box-shadow: 0 0 0 2px var(--green-100); }
.tpl-thumb .tt-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.tpl-thumb.sel .tt-label { color: var(--green-800); }
.tt { position: relative; aspect-ratio: 3 / 3.5; background: #fff; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; padding: 7px; display: flex; flex-direction: column; gap: 3px; }
.tt b { display: block; height: 2px; border-radius: 1px; background: #dfe4ea; width: 88%; }
.tt b.nm { height: 5px; width: 55%; background: #2d6a4f; margin-bottom: 1px; }
.tt b.s { height: 2.5px; width: 38%; background: #b3bcc7; margin-bottom: 3px; }
.tpl-thumb[data-t="modern"] .tt { padding-top: 20px; }
.tpl-thumb[data-t="modern"] .tt::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 15px; background: #2d6a4f; }
.tpl-thumb[data-t="compact"] .tt { gap: 2px; }
.tpl-thumb[data-t="compact"] .tt b { height: 1.5px; }
.tpl-thumb[data-t="portrait"] .tt { align-items: center; padding-top: 26px; }
.tpl-thumb[data-t="portrait"] .tt::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #2d6a4f; }
.tpl-thumb[data-t="portrait"] .tt b { width: 58%; }
.tpl-thumb[data-t="portrait"] .tt b.nm { width: 45%; }
.tpl-thumb[data-t="sidebar"] .tt { padding-left: 42%; }
.tpl-thumb[data-t="sidebar"] .tt::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 34%; background: #2d6a4f; }

/* Builder — skill rows + proficiency dots */
.rb-skill-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rb-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.rb-dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--border-dark); background: var(--white); cursor: pointer; padding: 0; transition: background var(--t-fast), border-color var(--t-fast); }
.rb-dot.on { background: var(--green-600); border-color: var(--green-600); }
.rb-dot:hover { border-color: var(--green-500); }

/* ── Cover letter document (shared preview + print) ── */
.cl {
  --accent: #1B4332;
  background: #fff; color: #1A1A2E; font-family: var(--font-sans);
  max-width: 820px; margin: 0 auto; padding: 54px 60px; font-size: 14px; line-height: 1.7;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cl[data-accent="navy"]   { --accent: #1d3a5f; }
.cl[data-accent="orange"] { --accent: #b35a12; }
.cl[data-accent="plum"]   { --accent: #6d2f5b; }
.cl[data-accent="slate"]  { --accent: #334155; }
.cl-sender-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--accent); }
.cl-sender-meta { color: #4A4A6A; font-size: 12.5px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.cl-rule { height: 2px; background: var(--accent); margin: 14px 0 22px; opacity: .9; }
.cl-date { color: #4A4A6A; margin-bottom: 18px; }
.cl-recipient { margin-bottom: 18px; }
.cl-recipient strong { display: block; }
.cl-recipient span { color: #4A4A6A; display: block; }
.cl-subject { font-weight: 700; margin-bottom: 16px; }
.cl-greeting { margin-bottom: 12px; }
.cl-body p { margin-bottom: 12px; white-space: pre-wrap; }
.cl-closing { margin-top: 20px; }
.cl-sign { font-weight: 700; margin-top: 30px; }
.cl-empty-hint { color: #9aa0b0; font-style: italic; text-align: center; padding: 30px 0; }

/* Cover letter — Modern template */
.cl[data-template="modern"] .cl-header { background: var(--accent); color: #fff; margin-bottom: 22px; padding: 22px 24px; border-radius: 6px; }
.cl[data-template="modern"] .cl-sender-name { color: #fff; }
.cl[data-template="modern"] .cl-sender-meta { color: rgba(255,255,255,.85); }
.cl[data-template="modern"] .cl-rule { display: none; }

/* ═════════════════════════════════════════════
   ADMIN THEME SYSTEM  (dark / light)
   Overrides surface tokens within the admin shell,
   so every admin page + .card + table adapts automatically.
═════════════════════════════════════════════ */
.admin-layout {
  --admin-accent:   #40916C;   /* brand green, tuned for both themes */
  --admin-accent-2: #52B788;
  --admin-up:   #22c55e;
  --admin-down: #ef4444;

  /* Console text-accent tokens. The raw --green-500/600/800 are tuned for
     dark-on-light; used as a foreground on the dark shell they measure
     2.0–2.4:1 (AA needs 4.5:1). These keep the light theme identical and
     swap to measured-safe values in dark. */
  --console-ink-500: var(--green-500);
  --console-ink-600: var(--green-600);
  --console-ink-800: var(--green-800);
}
/* ── DARK ── */
.admin-layout[data-theme="dark"] {
  /* Green-tinted, so the app shell reads as the same product as the public
     site (whose ground is --ink-dark #0d2b1f) rather than a neutral console. */
  --bg:          #071711;
  --white:       #0e2a1e;    /* card / surface */
  --surface-2:   #16382a;    /* elevated / hover */
  --text:        #e6f0ea;
  --text-muted:  #8ea79a;
  --border:      rgba(255,255,255,.08);
  --border-dark: rgba(255,255,255,.16);
  --green-50:    rgba(64,145,108,.14);
  --green-100:   rgba(64,145,108,.22);
  --green-200:   rgba(64,145,108,.32);
  --orange-100:  rgba(232,119,34,.16);
  --red-100:     rgba(239,68,68,.16);
  --blue-100:    rgba(59,130,246,.16);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 34px rgba(0,0,0,.55);
  --sidebar-bg: #051009;
  --sidebar-border: rgba(255,255,255,.06);
  --console-ink-500: #52B788;   /* 6.2:1 on the dark card ground */
  --console-ink-600: #52B788;   /* 6.2:1 */
  --console-ink-800: #6ee7a8;   /* 10.0:1 */
}
/* Component fixes so both themes read correctly */
.admin-layout .admin-main { color: var(--text); }   /* themed inherited text (headings, table cells) */
.admin-layout .card,
.admin-layout .stat-card { background: var(--white); border-color: var(--border); }
.admin-layout[data-theme="dark"] .badge-green  { background: rgba(64,145,108,.18); color: #6ee7a8; }
.admin-layout[data-theme="dark"] .badge-orange { background: rgba(232,119,34,.18); color: #f6a860; }
.admin-layout[data-theme="dark"] .badge-grey   { background: rgba(255,255,255,.08); color: #9aa6b4; }
.admin-layout[data-theme="dark"] .badge-blue   { background: rgba(59,130,246,.18); color: #7fb0f6; }
.admin-layout[data-theme="dark"] .badge-red    { background: rgba(239,68,68,.18); color: #f79999; }
.admin-layout[data-theme="dark"] .btn-outline  { color: var(--text); border-color: var(--border-dark); background: transparent; }
.admin-layout[data-theme="dark"] .btn-outline:hover { background: var(--surface-2); border-color: var(--admin-accent); }
.admin-layout[data-theme="dark"] .btn-primary  { background: var(--admin-accent); border-color: var(--admin-accent); color: #fff; }
.admin-layout[data-theme="dark"] .icon-chip    { background: rgba(64,145,108,.16); color: #7fdcab; border-color: rgba(64,145,108,.24); }
.admin-layout[data-theme="dark"] .icon-chip.chip-orange { background: rgba(232,119,34,.18); color: #f6a860; border-color: rgba(232,119,34,.28); }
.admin-layout[data-theme="dark"] input,
.admin-layout[data-theme="dark"] select,
.admin-layout[data-theme="dark"] textarea,
.admin-layout[data-theme="dark"] .form-control { background: var(--surface-2); color: var(--text); border-color: var(--border-dark); }
.admin-layout[data-theme="dark"] table.dataTable tbody tr:hover td { background: var(--surface-2) !important; }
.admin-layout[data-theme="dark"] hr { border-color: var(--border) !important; }
/* Retire the stat-card corner accent everywhere (was admin-only). It is the
   last flourish from the pre-portal language and matches nothing else. */
.stat-card::before, .stat-card::after { display: none; }

/* ── Admin topbar ─────────────────────────────────────────── */
.admin-topbar {
  position: sticky; top: 0; z-index: 30;
  margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-8);
  padding: 0 var(--space-8);
  min-height: 64px;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 767px) { .admin-topbar { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4); padding: 0 var(--space-4); } }
.topbar-search { flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; }
.topbar-search svg { position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; }
.topbar-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-2, #f1f5f9); color: var(--text);
  font-family: inherit; font-size: .875rem; outline: none;
}
.topbar-search input:focus { border-color: var(--admin-accent); }
.search-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow-y: auto; z-index: 60; }
.search-group + .search-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.search-head { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); padding: 8px 10px 4px; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--text); text-decoration: none; }
.search-item:hover { background: var(--surface-2, var(--green-50)); }
.search-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green-100); color: var(--admin-accent, var(--green-800)); flex-shrink: 0; }
.search-title { display: block; font-size: .875rem; font-weight: 600; }
.search-sub { display: block; font-size: .75rem; color: var(--text-muted); }
.search-empty { padding: 14px 12px; font-size: .85rem; color: var(--text-muted); text-align: center; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--text-muted);
  cursor: pointer; position: relative; transition: background var(--t-fast), color var(--t-fast);
}
.topbar-btn:hover { background: var(--surface-2); color: var(--text); }
.topbar-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--admin-down); border: 1.5px solid var(--white); }
.topbar-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: var(--radius-pill); border: 1px solid var(--border); cursor: pointer; }
.topbar-user:hover { background: var(--surface-2); }
.topbar-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--admin-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.topbar-user-name { font-size: .85rem; font-weight: 600; color: var(--text); }
@media (max-width: 640px) { .topbar-user-name { display: none; } }

/* ── Admin stat cards (redesigned) ─────────────────────────── */
.astat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.astat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), transform var(--t-fast); }
.astat:hover { border-color: var(--admin-accent); transform: translateY(-2px); }
.astat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.astat-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.astat-icon.i-green  { background: var(--green-100);  color: var(--admin-accent); }
.astat-icon.i-orange { background: var(--orange-100); color: #E87722; }
.astat-icon.i-blue   { background: var(--blue-100);   color: #3b82f6; }
.astat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.astat-label { font-size: .82rem; color: var(--text-muted); margin-top: 5px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); }
.trend.up   { color: var(--admin-up);   background: color-mix(in srgb, var(--admin-up) 15%, transparent); }
.trend.down { color: var(--admin-down); background: color-mix(in srgb, var(--admin-down) 15%, transparent); }
.trend.flat { color: var(--text-muted); background: var(--surface-2, #f1f5f9); }

/* ── Admin tab components (class-based so Alpine :class can't clobber layout) ── */
.seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); margin-bottom: 28px; }
.seg-btn { flex: 1; padding: 12px 10px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s, color .18s; }
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--admin-accent, var(--green-800)); color: #fff; }

.utabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.utab { padding: 10px 18px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; transition: color .15s, border-color .15s; }
.utab:hover { color: var(--text); }
.utab.active { color: var(--text); border-bottom-color: var(--admin-accent, var(--green-800)); }

/* Pill selector (icon + label + count), e.g. audience picker */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--white); color: var(--text-muted); cursor: pointer; font-size: .85rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.pill-opt:hover { border-color: var(--admin-accent); color: var(--text); }
.pill-opt.active { background: var(--admin-accent, var(--green-800)); border-color: var(--admin-accent, var(--green-800)); color: #fff; }
.pill-opt .pill-count { opacity: .7; font-weight: 500; }

/* ── Soft status panels / buttons (theme-aware) ── */
.soft-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.soft-danger { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.soft-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.soft-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.admin-layout[data-theme="dark"] .soft-warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.28); color: #f6c667; }
.admin-layout[data-theme="dark"] .soft-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #f79999; }
.admin-layout[data-theme="dark"] .soft-success { background: rgba(64,145,108,.14); border-color: rgba(64,145,108,.3); color: #7fdcab; }
.admin-layout[data-theme="dark"] .soft-info { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.3); color: #8fbaf8; }
.admin-layout[data-theme="dark"] code, .admin-layout[data-theme="dark"] pre { background: var(--surface-2) !important; color: var(--text) !important; }

/* Theme toggle (sun/moon pill) */
.theme-toggle { display: inline-flex; align-items: center; gap: 0; background: var(--surface-2, #eef1f5); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.theme-toggle button { width: 30px; height: 26px; border: none; background: none; border-radius: var(--radius-pill); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle button.on { background: var(--white); color: var(--admin-accent); box-shadow: var(--shadow-sm); }

/* ═════════════════════════════════════════════
   INTERACTIVE PRICING (plan selector + comparison)
═════════════════════════════════════════════ */
.pt-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px; box-shadow: var(--shadow-sm); }
.pt-toggle button { padding: 7px 18px; border: none; background: none; border-radius: var(--radius-pill); font-weight: 600; font-size: .875rem; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.pt-toggle button.on { background: var(--green-800); color: #fff; }
.pt-save { font-size: .7rem; font-weight: 700; color: var(--green-800); background: var(--green-100); padding: 3px 9px; border-radius: var(--radius-pill); }

.plan-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; text-align: left; }
@media (min-width: 640px) { .plan-cards { grid-template-columns: repeat(3, 1fr); } }
.plan-card { padding: 18px; border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: var(--white); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); }
.plan-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
.plan-card.sel { border-color: var(--green-800); box-shadow: 0 0 0 3px var(--green-100); }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.plan-card-name { font-size: .95rem; font-weight: 700; color: var(--text); }
.plan-pop { font-size: .68rem; font-weight: 700; background: var(--orange-100); color: #9a4e00; padding: 3px 10px; border-radius: var(--radius-pill); }
.plan-price { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.plan-per { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cmp { min-width: 620px; background: var(--white); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); align-items: center; }
.cmp-head { background: var(--green-50); }
.cmp-row + .cmp-row, .cmp-row { border-top: 1px solid var(--border); }
.cmp-feat { padding: 13px 16px; font-size: .875rem; color: var(--text); }
.cmp-head .cmp-feat { font-weight: 700; font-size: .8rem; }
.cmp-col, .cmp-cell { padding: 13px 8px; text-align: center; display: flex; align-items: center; justify-content: center; }
.cmp-col { font-weight: 700; font-size: .82rem; color: var(--text); }
.cmp-col.sel, .cmp-cell.sel { background: var(--green-50); }
.cmp-cell .yes { color: var(--green-600); }
.cmp-cell .no { color: var(--border-dark); font-weight: 700; }
.cmp-row.rowsel { background: var(--green-50); }

/* ─────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
  .navbar, .bottom-nav, .sidebar, footer { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  /* CV print: only the paper, edge to edge */
  .no-print { display: none !important; }
  .cv-frame { background: none; padding: 0; }
  .cv-paper { box-shadow: none; border-radius: 0; }
  .cv { max-width: none; padding: 0; font-size: 12px; }
  @page { margin: 14mm 14mm; }
}

/* ═════════════════════════════════════════════════════════════════════════
   PORTAL LAYER  —  2026-08-28
   Structural language adapted from the Jobi job-board template (index-6):
   full-bleed photographic bands, a floating search console, dense row-cards,
   pastel category pills and a dark shell. Re-cut for scholarships and
   re-coloured onto the FundedAfrica palette (deep green + orange accent).
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  /* The base scale skips 7/9/11/14; the portal layer needs them. */
  --space-7:      1.75rem;
  --space-9:      2.25rem;
  --space-11:     2.75rem;
  --space-14:     3.5rem;

  --nav-h:        76px;
  --ink-dark:     #0d2b1f;          /* shell / footer ground */
  --ink-dark-2:   #123528;
  --accent:       #E87722;          /* deadlines + urgency only */
  --on-dark:      rgba(255,255,255,.78);
  --on-dark-soft: rgba(255,255,255,.55);
  --hairline:     rgba(255,255,255,.14);
  --lift:         0 18px 40px -18px rgba(13,43,31,.30), 0 2px 8px rgba(13,43,31,.06);
  --lift-lg:      0 32px 70px -28px rgba(13,43,31,.42), 0 4px 14px rgba(13,43,31,.08);
}

/* ── 1. SHELL: dark navbar, transparent over a photo hero ───────────────── */
.navbar {
  background: var(--ink-dark);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.navbar-inner { min-height: var(--nav-h); gap: var(--space-6); }
.navbar-logo       { color: #fff; }
.navbar-logo:hover { color: #fff; }
.navbar-logo .logo-icon { background: rgba(255,255,255,.12); color: #fff; }

.navbar-links { gap: var(--space-7); margin-inline: auto; }
.navbar-links a {
  color: var(--on-dark);
  font-weight: 500;
  position: relative;
  padding-block: 4px;
}
.navbar-links a:hover,
.navbar-links a.active { color: #fff; }
.navbar-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--green-400);
}

.navbar-actions .btn { border-radius: var(--radius-pill); min-height: 46px; }
.navbar-actions .btn-ghost         { color: var(--on-dark); }
.navbar-actions .btn-ghost:hover   { color: #fff; background: rgba(255,255,255,.08); }
.navbar-actions .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.45); background: transparent;
}
.navbar-actions .btn-outline:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.navbar-actions .btn-primary {
  background: var(--green-500); border-color: var(--green-500); color: #fff;
}
.navbar-actions .btn-primary:hover { background: var(--green-400); border-color: var(--green-400); }
.navbar-hamburger span { background: #fff; }

/* Transparent-over-hero mode (pages that open on a full-bleed band) */
body.nav-over .navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent;
}
body.nav-over .navbar.is-stuck {
  background: rgba(13,43,31,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

/* Mobile menu — dark to match the shell */
.mobile-menu { background: var(--ink-dark); }
.mobile-menu a { color: var(--on-dark); border-bottom-color: var(--hairline); }
.mobile-menu a:hover { color: #fff; }
.mobile-menu-close { color: #fff; }

/* ── 2. Pill buttons used across the portal bands ───────────────────────── */
.btn-pill  { border-radius: var(--radius-pill); }
.btn-lg    { min-height: 54px; padding-inline: var(--space-7); font-size: 1rem; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn-accent:hover { background: #d06714; border-color: #d06714; }

/* ── 3. Full-bleed photographic hero ────────────────────────────────────── */
.jhero {
  position: relative;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 84px;
  background: var(--ink-dark) center/cover no-repeat;
  background-position: 78% center;   /* subject sits right of frame; keeps her in shot on phones */
  isolation: isolate;
  overflow: hidden;
}
.jhero::before {                       /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,43,31,.86) 0%, rgba(13,43,31,.62) 38%, rgba(13,43,31,.88) 100%),
    linear-gradient(90deg, rgba(13,43,31,.55), transparent 60%);
}
/* §4.3: left-aligned content against open photographic space on the right,
   rather than a centred stack. The scrim already favours the left edge. */
.jhero-inner { text-align: left; max-width: 720px; margin: 0; }
.jhero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 6.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}
.jhero h1 em { font-style: normal; color: var(--green-400); }
.jhero-sub {
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 56ch; margin: 0 0 var(--space-9);
  text-wrap: pretty;
}
.jhero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid var(--hairline);
  color: #fff; font-size: .8125rem; font-weight: 600;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* §9.F: hero eyebrow dot removed. */

/* ── 4. Floating search console ─────────────────────────────────────────── */
.jsearch {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--lift-lg);
  padding: 8px; max-width: 720px; margin: 0;
  text-align: left;
}
@media (min-width: 860px) {
  .jsearch { grid-template-columns: 1.45fr 1fr auto; padding: 10px; border-radius: 20px; }
}
.jsearch-field {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
@media (min-width: 860px) {
  .jsearch-field { border-bottom: 0; border-right: 1px solid var(--border); }
}
.jsearch-field label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 2px; letter-spacing: .01em;
}
.jsearch-field input,
.jsearch-field select {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text);
  padding: 2px 0; min-height: 26px; appearance: none;
}
.jsearch-field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A6A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center/16px no-repeat;
  padding-right: 22px;
}
.jsearch-field input::placeholder { color: var(--border-dark); font-weight: 500; }
.jsearch-btn {
  border: 0; border-radius: var(--radius-lg); cursor: pointer;
  background: var(--green-500); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 16px var(--space-8); min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--t-fast);
}
.jsearch-btn:hover { background: var(--green-600); }
@media (min-width: 860px) { .jsearch-btn { border-radius: 14px; } }

/* ── 5. Catalogue figures ───────────────────────────────────────────────────
   Own band below the hero (§4.7 caps the hero at four text elements, and a
   trust strip belongs outside it). Grouped with a top rule rather than cards,
   per §4.4. */
.statband { background: var(--bg); border-bottom: 1px solid var(--border); }
.statband-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  padding-block: var(--space-10);
}
@media (min-width: 820px) { .statband-grid { grid-template-columns: repeat(4, 1fr); } }
.statband-item { border-top: 2px solid var(--green-800); padding-top: var(--space-4); }
.statband-v {
  color: var(--green-800); font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.statband-l { color: var(--text-muted); font-size: .875rem; margin-top: 8px; }

/* ── 6. Provider wordmark strip ─────────────────────────────────────────── */
.provider-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.provider-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6) var(--space-10); padding: var(--space-8) 0;
}
.provider-mark {
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em;
  color: #9AA5B1; white-space: nowrap;
  transition: color var(--t-fast);
}
.provider-mark:hover { color: var(--green-800); }

/* ── 7. Pastel category pills ───────────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px 13px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9375rem; color: var(--text);
  background: var(--pill-bg, #EEF2F6);
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--lift); color: var(--text); }
.cat-pill .cp-icon {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.75); color: var(--pill-ink, var(--green-800));
}
.cat-pill .cp-n { color: var(--text-muted); font-weight: 600; font-size: .8125rem; }
.cp-a { --pill-bg:#E4F1FB; --pill-ink:#1B6CA8; }
.cp-b { --pill-bg:#FDF3DC; --pill-ink:#9A6B10; }
.cp-c { --pill-bg:#FBE7F0; --pill-ink:#A83C69; }
.cp-d { --pill-bg:#DEF3E6; --pill-ink:#1B4332; }
.cp-e { --pill-bg:#E9E7FB; --pill-ink:#4B3FA8; }
.cp-f { --pill-bg:#FDEADF; --pill-ink:#B4551A; }
.cp-g { --pill-bg:#DFF3F3; --pill-ink:#186D6D; }
.cp-h { --pill-bg:#F1EEE6; --pill-ink:#6B5B3E; }

/* ── 8. Section heading row ─────────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-9);
}
.sec-head h2 {
  color: var(--green-800);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  letter-spacing: -.03em; line-height: 1.08; margin: 0;
  text-wrap: balance;
}
.sec-head .sec-sub { color: var(--text-muted); margin: 8px 0 0; max-width: 56ch; }
.sec-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--green-800);
  border-bottom: 2px solid var(--green-800); padding-bottom: 2px;
  white-space: nowrap;
}
.sec-link:hover { color: var(--green-600); border-color: var(--green-600); }

/* ── 9. Photographic cards + scroll-snap carousel ───────────────────────── */
.jcarousel { position: relative; }
.jcarousel-track {
  display: flex; gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.jcarousel-track::-webkit-scrollbar { display: none; }
.jcarousel-track > * { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 640px) {
  .jcarousel-track > * { flex-basis: calc((100% - var(--space-5)) / 2); }
}
@media (min-width: 1000px) {
  .jcarousel-track > * { flex-basis: calc((100% - 3 * var(--space-5)) / 4); }
}
.jcarousel-nav { display: flex; gap: 10px; }
.jcarousel-nav button {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border-dark); background: var(--white);
  color: var(--green-800); display: grid; place-items: center;
  transition: all var(--t-fast);
}
.jcarousel-nav button:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.photo-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-xl); aspect-ratio: 3 / 3.6;
  background: var(--green-800);
  box-shadow: var(--lift);
}
.photo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,43,31,0) 30%, rgba(13,43,31,.55) 60%, rgba(13,43,31,.93) 100%);
}
.photo-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: var(--space-6);
}
.photo-card-body h3 {
  color: #fff; font-size: 1.125rem; line-height: 1.25;
  margin: 0 0 6px; letter-spacing: -.01em;
}
.photo-card-body p { color: rgba(255,255,255,.72); font-size: .8125rem; margin: 0; }
.photo-card-tag {
  position: absolute; top: var(--space-5); left: var(--space-5); z-index: 1;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92); color: var(--green-800);
  font-size: .75rem; font-weight: 700;
}
.photo-card-tag.is-urgent { background: var(--accent); color: #fff; }

/* ── 10. Dense listing row-card ─────────────────────────────────────────── */
/* Phone/tablet: identity row, then the two fact lines and the actions all hang
   off the name's left edge, so the card reads as one aligned text column. */
.rowcard {
  display: grid; align-items: start;
  grid-template-columns: 46px minmax(0,1fr);
  grid-template-areas: "mono head" ". type" ". place" ". act";
  column-gap: var(--space-4); row-gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.rowcard .rc-head { margin-bottom: 8px; }
.rowcard .rc-type { padding-top: 12px; border-top: 1px solid var(--border); }
.rowcard .rc-act  { margin-top: 12px; }
.rowcard .rc-type,
.rowcard .rc-place { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.rowcard .rc-type .rc-v,
.rowcard .rc-place .rc-v { margin-top: 0; }
@media (hover: hover) {
  .rowcard:hover { border-color: var(--green-200); box-shadow: var(--lift); transform: translateY(-2px); }
}
.rowcard:focus-within { border-color: var(--green-200); }
@media (min-width: 1000px) {
  .rowcard {
    align-items: center;
    grid-template-columns: 54px minmax(0,1.45fr) minmax(0,1fr) minmax(0,1.05fr) auto;
    grid-template-areas: "mono head type place act";
    gap: var(--space-6);
    padding: var(--space-5) var(--space-7);
  }
  .rowcard .rc-head, .rowcard .rc-act { margin: 0; }
  .rowcard .rc-type { padding-top: 0; border-top: 0; }
  .rowcard .rc-type,
  .rowcard .rc-place { display: block; }
  .rowcard .rc-type .rc-v,
  .rowcard .rc-place .rc-v { margin-top: 2px; }
}
.rc-mono {
  grid-area: mono;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9375rem; letter-spacing: -.02em;
  background: var(--mono-bg, var(--green-100)); color: var(--mono-ink, var(--green-800));
}
@media (min-width: 1000px) { .rc-mono { width: 54px; height: 54px; border-radius: 14px; font-size: 1.0625rem; } }
.rc-head  { grid-area: head; min-width: 0; }
.rc-head h3 {
  font-size: 1.0625rem; line-height: 1.3; margin: 0 0 4px;
  letter-spacing: -.01em; color: var(--text);
}
.rowcard:hover .rc-head h3 { color: var(--green-800); }
.rc-provider { font-size: .8125rem; color: var(--text-muted); }
.rc-type  { grid-area: type; min-width: 0; }
.rc-place { grid-area: place; min-width: 0; }
.rc-k { font-weight: 700; font-size: .875rem; color: var(--green-600); }
.rc-k.is-partial { color: #9A6B10; }
.rc-k.is-urgent  { color: var(--accent); }
.rc-v { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; }
.rc-v strong { color: var(--text); font-weight: 600; }
.rc-act { grid-area: act; display: flex; align-items: center; gap: 10px; }
@media (min-width: 1000px) { .rc-act { justify-content: flex-end; } }
.rc-save {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-dark); background: transparent;
  color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; transition: all var(--t-fast);
}
.rc-save:hover { border-color: var(--green-800); color: var(--green-800); background: var(--green-50); }
.rc-save.is-on { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.rc-apply {
  border-radius: var(--radius-pill); min-height: 42px;
  padding-inline: var(--space-6); font-size: .875rem;
  background: var(--green-500); border-color: var(--green-500); color: #fff;
}
.rc-apply:hover { background: var(--green-600); border-color: var(--green-600); }
@media (max-width: 999px) {
  .rc-act { gap: 8px; }
  .rc-apply { flex: 1; justify-content: center; min-height: 44px; }
  .rc-save { width: 44px; height: 44px; }
}
.rowlist { display: grid; gap: var(--space-4); }

/* Inline nudge strip under a listing */
.nudge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--green-50); border: 1px solid var(--green-100);
  font-size: .9375rem; color: var(--text);
}
.nudge a { font-weight: 700; color: var(--green-600); text-decoration: underline; }

/* ── 11. Split photo band + overlapping step cards ──────────────────────── */
.split-band { position: relative; background: var(--ink-dark); overflow: hidden; }
.split-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-media { position: relative; min-height: 320px; }
@media (min-width: 900px) { .split-media { min-height: 560px; } }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,43,31,.35), rgba(13,43,31,.15) 55%, rgba(13,43,31,.75));
}
@media (max-width: 899px) { .split-media::after { background: rgba(13,43,31,.45); } }
.split-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-12) var(--space-6);
}
@media (min-width: 900px) { .split-body { padding: var(--space-16) var(--space-12); } }
.split-body h2 {
  color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 var(--space-5);
  text-wrap: balance;
}
.split-body h2 em { font-style: normal; color: var(--green-400); }
.split-body p { color: var(--on-dark); max-width: 46ch; margin: 0 0 var(--space-8); }

.step-cards {
  display: grid; gap: var(--space-5); grid-template-columns: 1fr;
  margin-top: calc(var(--space-12) * -1); position: relative; z-index: 2;
}
@media (min-width: 820px) { .step-cards { grid-template-columns: 1.55fr 1fr 1fr; } }
.step-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: var(--space-7); box-shadow: var(--lift);
  border: 1px solid var(--border);
}
.step-card .sc-n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--space-5);
  background: var(--green-50); color: var(--green-600);
  border: 1.5px solid var(--green-200);
}
.step-card h3 { font-size: 1.0625rem; margin: 0 0 6px; letter-spacing: -.01em; }
.step-card p  { font-size: .9rem; color: var(--text-muted); margin: 0; }
.step-card .sc-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-5);
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-600);
}

/* ── 12. Accordion + photo collage ──────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

.jacc { border-top: 1px solid var(--border); }
.jacc-item { border-bottom: 1px solid var(--border); }
.jacc-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) 0; text-align: left;
  font-family: inherit; font-size: 1.1875rem; font-weight: 700;
  letter-spacing: -.015em; color: var(--green-800);
  transition: color var(--t-fast);
}
.jacc-head:hover { color: var(--green-600); }
.jacc-head .jacc-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600);
  transition: all var(--t-fast);
}
.jacc-item.is-open .jacc-ico { background: var(--green-800); color: #fff; }
.jacc-body { padding: 0 0 var(--space-6); color: var(--text-muted); max-width: 52ch; }

.collage { position: relative; display: grid; gap: var(--space-4);
  grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-a { grid-column: 1 / 2; border-radius: 24px 24px 24px 90px; overflow: hidden; aspect-ratio: 1/1; }
.collage-b { grid-column: 2 / 3; grid-row: 1 / 3; border-radius: 90px 24px 24px 24px; overflow: hidden; }
.collage-c { grid-column: 1 / 2; border-radius: 24px; overflow: hidden; aspect-ratio: 1/.85; }
.collage-dots {
  position: absolute; top: 8%; right: -6%; width: 92px; height: 92px; z-index: -1;
  background-image: radial-gradient(var(--green-200) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
}
/* Floating product chips over the collage */
.float-chip {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 14px; box-shadow: var(--lift-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; color: var(--text);
}
.float-chip small { display: block; font-size: .6875rem; color: var(--text-muted); font-weight: 500; }
.float-chip-1 { top: 6%;  left: -4%; }
.float-chip-2 { bottom: 16%; right: -5%; }
@media (max-width: 700px) { .float-chip-1 { left: 0; } .float-chip-2 { right: 0; } }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 30px; height: 30px; border-radius: 50%; margin-left: -8px;
  border: 2px solid #fff; display: grid; place-items: center;
  font-size: .6875rem; font-weight: 700; color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }

/* ── 13. Testimonials over a dark photo ─────────────────────────────────── */
.testi-band {
  position: relative; background: var(--ink-dark) center/cover no-repeat;
  isolation: isolate;
}
.testi-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,43,31,.90), rgba(13,43,31,.80));
}
.testi-band h2 { color: #fff; }
.testi-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: var(--space-8); box-shadow: var(--lift-lg);
  display: flex; flex-direction: column; gap: var(--space-5);
  min-height: 100%;
}
.testi-card .tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.testi-card .tc-title { color: var(--green-600); font-size: 1.0625rem; font-weight: 700; margin: 0; }
.testi-card .tc-quote { font-size: 2.75rem; line-height: 1; color: var(--green-100); font-weight: 800; }
.testi-card .tc-body { color: var(--text); margin: 0; flex: 1; }
.testi-card .tc-who { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.testi-card .tc-who b { font-weight: 700; }
.testi-card .tc-who span { color: var(--text-muted); font-weight: 500; }

/* Honest placeholder for evidence we do not yet hold */
.awaiting {
  border: 1.5px dashed var(--border-dark); border-radius: var(--radius-xl);
  padding: var(--space-8); text-align: center; background: rgba(255,255,255,.05);
}
.awaiting h3 { color: #fff; font-size: 1.0625rem; margin: 0 0 8px; }
.awaiting p  { color: var(--on-dark-soft); font-size: .9rem; margin: 0 auto; max-width: 48ch; }
.awaiting .aw-tag {
  display: inline-block; margin-bottom: var(--space-4);
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid var(--hairline);
  color: #fff; font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ── 14. Closing CTA over a photo ───────────────────────────────────────── */
.jcta {
  position: relative; background: var(--ink-dark) center/cover no-repeat;
  isolation: isolate;
}
.jcta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,43,31,.93) 30%, rgba(13,43,31,.66));
}
.jcta-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .jcta-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-12); } }
.jcta h2 {
  color: #fff; font-size: clamp(1.9rem, 4.8vw, 3.1rem);
  line-height: 1.06; letter-spacing: -.03em; margin: 0; text-wrap: balance;
}
.jcta p { color: var(--on-dark); font-size: 1.0625rem; margin: 0 0 var(--space-7); }
.jcta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ── 15. Footer on the dark shell ───────────────────────────────────────── */
footer { background: var(--ink-dark); }
footer h4 { color: #fff; font-size: 1.0625rem; letter-spacing: -.01em; }
footer a  { color: var(--on-dark); }
footer a:hover { color: #fff; }
.footer-bottom { border-top-color: var(--hairline); }
.newsletter-form {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 6px; margin-top: var(--space-4);
}
.newsletter-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
  color: #fff; font-family: inherit; font-size: .9375rem; padding: 10px 12px;
}
.newsletter-form input::placeholder { color: var(--on-dark-soft); }
.newsletter-form button {
  border: 0; border-radius: 9px; cursor: pointer;
  background: var(--green-500); color: #fff;
  font-family: inherit; font-weight: 700; font-size: .875rem;
  padding: 11px var(--space-5); transition: background var(--t-fast);
}
.newsletter-form button:hover { background: var(--green-400); }
.footer-note { color: var(--on-dark-soft); font-size: .8125rem; margin-top: 10px; }

/* ── 16. Compact photographic page header (inner pages) ─────────────────── */
.page-head {
  position: relative; background: var(--ink-dark) center/cover no-repeat;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + 56px); padding-bottom: var(--space-12);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,43,31,.88), rgba(13,43,31,.72));
}
.page-head h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -.03em; line-height: 1.06; margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.page-head p { color: var(--on-dark); font-size: 1.0625rem; margin: 0; max-width: 60ch; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-5);
  font-size: .875rem; color: var(--on-dark-soft); }
.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color: #fff; }

/* Band rhythm */
.band    { padding-block: clamp(56px, 8vw, 104px); }
.band-sm { padding-block: clamp(40px, 6vw, 72px); }
.band-tint  { background: var(--bg); }
.band-white { background: var(--white); }

/* Footer widens to five columns once the newsletter capture is present */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.35fr; gap: var(--space-8); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 17. Filter console (overlaps the photographic page header) ─────────── */
.filter-console {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--lift-lg); padding: var(--space-6);
  margin-top: calc(var(--space-12) * -1);
  position: relative; z-index: 2;
}
.filter-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .filter-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto; align-items: end; } }
.filter-field label {
  display: block; font-size: .75rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 5px;
}
.filter-field input,
.filter-field select {
  width: 100%; font-family: inherit; font-size: .9375rem; font-weight: 600;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; min-height: 48px; outline: 0; appearance: none;
}
.filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A6A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px;
}
.filter-field input:focus,
.filter-field select:focus { border-color: var(--green-500); background: var(--white); }
.filter-field input::placeholder { color: var(--text-muted); font-weight: 500; opacity: .8; }

/* The four selects sit straight in the grid; on phones (JS only) they fold
   behind a "Filters" toggle so the first results land on the first screen. */
.filter-more { display: contents; }
.filter-toggle { display: none; }
@media (max-width: 699px) {
  .filter-console.is-collapsible .filter-grid { grid-template-columns: minmax(0,1fr) auto; }
  .filter-console.is-collapsible .filter-field { grid-column: 1 / -1; }
  .filter-console.is-collapsible:not(.is-open) .filter-more { display: none; }
  .filter-console.is-collapsible .filter-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 var(--space-5);
    font: inherit; font-size: .9375rem; font-weight: 700; color: var(--green-800);
    background: var(--green-50); border: 1px solid var(--green-100);
    border-radius: var(--radius-md); cursor: pointer;
  }
  .filter-console.is-open .filter-toggle { background: var(--white); border-color: var(--green-500); }
  .filter-console.is-collapsible .filter-go { grid-column: 2; grid-row: 2; padding-inline: var(--space-6); }
  .filter-console.is-collapsible .filter-toggle { grid-column: 1; grid-row: 2; }
  .filter-console.is-open .filter-go { grid-column: 1 / -1; grid-row: auto; }
}
.filter-toggle-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-pill); background: var(--green-800); color: #fff;
  font-size: .75rem; font-weight: 800;
}
.filter-go {
  min-height: 48px; border-radius: var(--radius-md);
  background: var(--green-800); border-color: var(--green-800); color: #fff;
  padding-inline: var(--space-7);
}
.filter-go:hover { background: var(--green-900); border-color: var(--green-900); }

/* Active-filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 8px 6px 13px; border-radius: var(--radius-pill);
  background: var(--green-50); border: 1px solid var(--green-100);
  font-size: .8125rem; font-weight: 600; color: var(--green-800);
}
.chip a {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(27,67,50,.10); color: var(--green-800);
}
.chip a:hover { background: var(--green-800); color: #fff; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-6);
}
.result-count { font-size: .9375rem; color: var(--text-muted); }
.result-count strong { color: var(--text); font-weight: 700; }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: var(--space-12); }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding-inline: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--border-dark);
  background: var(--white); color: var(--text); font-weight: 600; font-size: .9375rem;
  transition: all var(--t-fast);
}
.pager a:hover { border-color: var(--green-800); color: var(--green-800); background: var(--green-50); }
.pager .is-current {
  background: var(--green-800); border-color: var(--green-800); color: #fff;
}

/* Featured flag on a row card */
.rc-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}

/* Scholarship detail hero */
.detail-head { padding-bottom: var(--space-10); }
.detail-head-row { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-6); }
.detail-head-provider {
  color: var(--green-400); font-weight: 700; font-size: .875rem;
  letter-spacing: .01em; margin-bottom: 6px;
}
.detail-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.75rem); }
.detail-head-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── 18. Auth screens: photographic side panel + centred card ───────────── */
.auth-wrapper {
  display: grid; grid-template-columns: 1fr;
  align-items: stretch; justify-content: stretch;
  padding: 0; background: var(--bg);
}
/* Only split when a photographic aside is actually present, so any auth page
   without one still centres its card instead of stranding it in column 1. */
@media (min-width: 960px) {
  .auth-wrapper:has(.auth-aside) { grid-template-columns: 1.02fr 1fr; }
}

.auth-aside {
  display: none; position: relative; isolation: isolate;
  background: var(--ink-dark) center/cover no-repeat;
  padding: var(--space-12);
  align-items: flex-end;
}
@media (min-width: 960px) { .auth-aside { display: flex; } }
.auth-aside::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,43,31,.72), rgba(13,43,31,.94));
}
.auth-aside-body { max-width: 30rem; }
.auth-aside-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: var(--space-10);
}
.auth-aside-brand:hover { color: #fff; }
.auth-aside-brand .logo-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff;
}
.auth-aside h2 {
  color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.14; letter-spacing: -.03em; margin: 0 0 var(--space-8);
  text-wrap: balance;
}
.auth-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.auth-aside-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--on-dark); font-size: .9375rem;
}
.auth-aside-list li svg { color: var(--green-400); flex-shrink: 0; }

/* The card column keeps the old centred look */
.auth-wrapper > .auth-card,
.auth-wrapper > form,
.auth-wrapper > div:not(.auth-aside) { justify-self: center; align-self: center; }
.auth-card { margin: var(--space-12) var(--space-4); }

/* ── 19. Small-screen corrections for the portal shell ──────────────────── */
@media (max-width: 767px) {
  /* The pill actions no longer fit beside the logo; the hamburger owns them.
     !important is needed because the profile link carries an inline display. */
  .navbar-actions > .btn { display: none !important; }
  .navbar-actions { gap: 0; }
  .navbar-inner { min-height: 66px; gap: var(--space-3); }
  :root { --nav-h: 66px; }
}

@media (max-width: 899px) {
  /* Overlapping the header photo needs room the mobile header does not have */
  .filter-console { margin-top: var(--space-6); }
  .page-head { padding-bottom: var(--space-8); }
  .step-cards { margin-top: var(--space-8); }
}
/* The primary CTA sits on the dark menu ground — needs the brighter green */
.mobile-menu .btn-primary {
  background: var(--green-500); border-color: var(--green-500); color: #fff;
}
.mobile-menu .btn-primary:hover { background: var(--green-400); border-color: var(--green-400); }

/* ═════════════════════════════════════════════════════════════════════════
   APP SHELL ↔ PORTAL ALIGNMENT  (2026-08-28)
   Brings the admin + agency consoles onto the same vocabulary as the public
   portal layer: shared green ink, monogram chips, and a themed table head.
   ═════════════════════════════════════════════════════════════════════════ */

/* The agency portal reuses .admin-layout, so it inherits the theme system.
   Its sidebar stays the organisation's brand colour (white-label feature). */
.admin-layout[data-theme="dark"] .admin-sidebar { border-right: 1px solid var(--sidebar-border); }

/* Row-card + monogram vocabulary inside the consoles */
.admin-layout .rc-mono {
  width: 38px; height: 38px; border-radius: 10px; font-size: .8125rem;
}
.admin-layout[data-theme="dark"] .rc-mono { filter: saturate(.85) brightness(.92); }

/* Table heads: a tinted rule rather than a solid brand bar */
.admin-layout table.dataTable thead th,
.admin-layout table.dataTable thead td {
  background: var(--surface-2, var(--green-50)) !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border) !important;
}
.admin-layout table.dataTable thead .sorting:after,
.admin-layout table.dataTable thead .sorting_asc:after,
.admin-layout table.dataTable thead .sorting_desc:after { color: var(--text-muted) !important; }
.admin-layout table.dataTable tbody td { color: var(--text); }

/* Plain (non-DataTables) tables in the consoles follow the same rule */
.admin-layout .table-head-plain th {
  background: var(--surface-2, var(--green-50));
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 11px 14px; text-align: left;
}

/* Topbar sits flush across both consoles */
.admin-layout[data-theme="dark"] .admin-topbar { background: var(--bg); }
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: .8125rem; font-weight: 600;
}
.topbar-link:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 900px) { .topbar-link span { display: none; } }

/* Agency stat cards reuse .astat; give the empty-data case a calmer read */
.astat-value.is-zero { color: var(--text-muted); }

/* Long organisation names must not spill out of the sidebar rail.
   .sidebar-logo-text is a flex column, and text-overflow does not apply to
   flex containers — the name needs its own block to ellipsis against. */
.sidebar-logo-text { min-width: 0; }
.sidebar-logo-name {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Inline links inside dark console surfaces: --green-600 measured 2.0–2.4:1
   against the green card ground (AA needs 4.5:1). --admin-accent-2 measures
   ~6.2:1 on the same ground. */
.admin-layout[data-theme="dark"] table a:not(.btn):not(.badge),
.admin-layout[data-theme="dark"] .card a:not(.btn):not(.badge),
.admin-layout[data-theme="dark"] td a:not(.btn):not(.badge) {
  color: var(--admin-accent-2);
}
.admin-layout[data-theme="dark"] table a:not(.btn):hover,
.admin-layout[data-theme="dark"] .card a:not(.btn):hover { color: #7fdcab; }

/* Nav items that carry an icon (e.g. Agency Portal) must keep it inline */
.navbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.mobile-menu a  { display: flex; align-items: center; gap: 8px; }

/* ── 20. Guides: feature + stack (§9.C, replaces a three-equal grid) ─────── */
.guides-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .guides-grid { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
  .guides-grid > :first-child { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; }
  .guides-grid > :first-child .photo-card-body h3 { font-size: 1.5rem; }
}

/* Lead step card. Must follow .step-card: equal specificity, so source order
   decides which background wins. Also gives the row real visual variation
   rather than three identical white tiles (§4.4). */
.step-card--lead { background: var(--green-50); border-color: var(--green-200); }
.step-card--lead .sc-n { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* Mobile menu sub-items: indentation is the job of CSS, not an em-dash glyph */
.mobile-menu a.mobile-sub { padding-left: var(--space-6); font-size: .9375rem; opacity: .85; }

/* ── 20. Legal / long-form prose (privacy, terms, about) ────────────────── */
.legal { max-width: 72ch; margin: 0 auto; padding-block: clamp(40px, 6vw, 72px); }
.legal h2 { font-size: 1.25rem; margin: 2.25em 0 .5em; letter-spacing: -.01em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { font-size: .875rem; color: var(--text-muted); margin-bottom: 2em; }
/* Visible blank for facts only the owner can supply (evidence rule, DESIGN.md §8) */
.tbs {
  display: inline-block; padding: 1px 8px; border: 1.5px dashed var(--accent);
  border-radius: 6px; color: #9A4A0E; background: var(--orange-50, #FEF0DC);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
}
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .nf-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.04em; color: var(--green-800); line-height: 1; }
.notfound p { color: var(--text-muted); max-width: 46ch; margin: 1em auto 2em; }
.notfound .nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 21. Consent: signup/consent checkboxes, newsletter opt-in, cookie banner ── */
.consent-box { border: 0; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: 12px; }
.consent-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  font-size: .875rem; line-height: 1.55; color: var(--text); cursor: pointer;
}
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-800); cursor: pointer; }
.consent-row a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.consent-optional { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.nl-consent {
  display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin-top: 10px;
  font-size: .8125rem; line-height: 1.5; color: var(--on-dark-soft, rgba(255,255,255,.7)); cursor: pointer;
}
.nl-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green-400, #52B788); }
.nl-consent a { color: inherit; text-decoration: underline; }

.cc-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900;
  max-width: 980px; margin-inline: auto;
  background: var(--ink-dark, #0d2b1f); color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-xl, 16px);
  box-shadow: 0 12px 40px rgba(6,22,15,.35);
  padding: 16px 18px;
}
.cc-banner[hidden], .cc-dialog[hidden] { display: none; }
.cc-inner { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; }
.cc-text { flex: 1 1 360px; margin: 0; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.86); }
.cc-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Accept and reject carry equal weight: no nudging toward "accept" */
.cc-btn {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-md, 10px);
  font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.cc-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cc-btn:focus-visible { outline: 3px solid var(--green-400, #52B788); outline-offset: 2px; }
.cc-dialog {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(6,22,15,.55);
}
.cc-card {
  width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--white, #fff); color: var(--text); border-radius: var(--radius-xl, 16px);
  padding: 24px; box-shadow: 0 20px 60px rgba(6,22,15,.35);
}
.cc-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.cc-sub { color: var(--text-muted); font-size: .875rem; margin: 0 0 16px; }
.cc-cat {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border); cursor: pointer;
}
.cc-cat strong { display: block; font-size: .9375rem; }
.cc-cat { font-weight: 400; margin: 0; }
.cc-cat span { display: block; font-size: .8125rem; font-weight: 400; color: var(--text-muted); line-height: 1.5; }
.cc-always { font-size: .75rem !important; font-weight: 700; color: var(--green-600) !important; white-space: nowrap; }
.cc-switch { width: 20px; height: 20px; accent-color: var(--green-800); flex-shrink: 0; cursor: pointer; }
.cc-card .cc-actions { margin-top: 16px; justify-content: flex-end; }
.cc-card .cc-btn { color: var(--text); border-color: var(--border-dark, #cbd5e1); }
.cc-card .cc-btn:hover { background: var(--bg); border-color: var(--green-800); }
.cc-card .cc-btn-primary { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.cc-card .cc-btn-primary:hover { background: var(--green-900, #081c15); }
/* Lift above the signed-in app's bottom nav on phones */
@media (max-width: 767px) {
  body:has(.bottom-nav) .cc-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cc-actions { width: 100%; }
  .cc-banner .cc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .cc-banner:not([hidden]) { animation: ccIn .35s cubic-bezier(.16,1,.3,1); }
  @keyframes ccIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ── 22. Provider logo carousel (homepage) ─────────────────────────────────── */
.ps-logos { padding: var(--space-8) 0 var(--space-6); }
.ps-label {
  text-align: center; margin: 0 0 var(--space-5);
  font-size: .8125rem; font-weight: 600; color: var(--text-muted);
}
.logo-marquee {
  display: flex; overflow: hidden; width: 100%;
  /* fade the edges so logos glide in rather than pop */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lm-track {
  display: flex; align-items: center; flex-shrink: 0; gap: clamp(40px, 6vw, 72px);
  margin: 0; padding: 6px 0 6px clamp(40px, 6vw, 72px); list-style: none;
  animation: lm-scroll var(--lm-dur, 40s) linear infinite;
}
.logo-marquee:hover .lm-track,
.logo-marquee:focus-within .lm-track { animation-play-state: paused; }
@keyframes lm-scroll { to { transform: translateX(-100%); } }
.lm-item {
  display: flex; align-items: center; height: 56px; padding: 8px 4px; border-radius: 8px;
  opacity: .9; transition: opacity var(--t-fast), transform var(--t-fast);
}
.lm-item:hover, .lm-item:focus-visible { opacity: 1; transform: translateY(-2px); }
.lm-item:focus-visible { outline: 2px solid var(--green-500); outline-offset: 4px; }
.lm-item img { height: 40px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.ps-note {
  text-align: center; margin: var(--space-5) auto 0; max-width: 72ch;
  font-size: .75rem; line-height: 1.5; color: var(--text-muted);
}
@media (max-width: 600px) { .lm-item img { height: 32px; max-width: 150px; } }
/* Reduced motion: a still, swipeable row instead of an endless scroll */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .lm-track { animation: none; }
  .lm-track[aria-hidden="true"] { display: none; }
  .lm-item { scroll-snap-align: center; }
}
