/* ==========================================================================
   Certiva design system — hand-written, no build step, no external assets.
   Brand: navy #0B1D3D · blue #1F4DB8 · gold #C8A24A · teal #0E7C86 · gray #E6E8EC
   ========================================================================== */

:root {
  --navy: #0B1D3D;
  --navy-700: #142d55;
  --blue: #1F4DB8;
  --blue-600: #1b44a3;
  --gold: #C8A24A;
  --gold-600: #b08e3a;
  --teal: #0E7C86;
  --gray: #E6E8EC;

  --ink: #16233d;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy-grad: linear-gradient(135deg, #0B1D3D 0%, #142d55 60%, #1b3a6b 100%);
  --line: #dfe3e8;

  --ok: #0E7C86;
  --warn: #C8A24A;
  --danger: #b4232a;
  --info: #1F4DB8;

  --font-serif: Georgia, 'Times New Roman', 'Playfair Display', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 61, .06), 0 1px 3px rgba(11, 29, 61, .08);
  --shadow: 0 2px 6px rgba(11, 29, 61, .08), 0 10px 30px rgba(11, 29, 61, .07);
  --shadow-lg: 0 12px 40px rgba(11, 29, 61, .16);

  --container: 1140px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.075rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
small { font-size: .8125rem; }
::selection { background: rgba(200, 162, 74, .28); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 820px; }
.section { padding: var(--space-10) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-soft); }
.section-navy { background: var(--bg-navy-grad); color: #dbe4f2; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-600); margin-bottom: .5rem; }
.lead { font-size: 1.175rem; color: var(--muted); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 1px 2px rgba(11,29,61,.14)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-mark { transform: rotate(-3deg) scale(1.04); }
.logo-lockup { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: .015em; }
.logo-sub { font-family: var(--font-sans); font-size: .56rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-top: .28em; }
.logo-lg .logo-mark { width: 104px; height: 104px; }
.logo-lg .logo-word { font-size: 2.4rem; }
.logo-lg .logo-sub { font-size: .74rem; }
.on-navy .logo-word { color: #fff; }
.on-navy .logo-sub { color: var(--gold); }

/* Hero "living" seal — gentle certifying-star twinkle + soft gold halo */
.logo-hero { position: relative; display: inline-grid; place-items: center; }
.logo-hero .logo-mark { width: min(340px, 62vw); height: auto; filter: drop-shadow(0 18px 44px rgba(11,29,61,.45)); }
.logo-hero::before { content: ""; position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,162,74,.28), rgba(200,162,74,0) 72%); z-index: -1; }
.logo-star { transform-box: fill-box; transform-origin: center; animation: star-pulse 4.5s ease-in-out infinite; }
@keyframes star-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .logo-star { animation: none; } .logo:hover .logo-mark { transform: none; } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: var(--space-4); }
.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-3); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .5rem; border-radius: var(--radius-sm); }
  .nav-links a:hover { background: var(--bg-soft); }
  .nav-right .btn-text { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .72rem 1.2rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0b656d; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #96191f; color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: transparent; padding-left: .4rem; padding-right: .4rem; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: var(--space-5); }
.card-header { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.card-header h3 { margin: 0; font-size: 1.1rem; }
.card-body { padding: var(--space-5); }
.card-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); background: var(--bg-soft); }
.card-hover { transition: box-shadow .18s, transform .18s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-card { padding: var(--space-5); }
.feature-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,77,184,.1); color: var(--blue); margin-bottom: var(--space-3); font-size: 1.3rem; }

.stat-card { text-align: center; padding: var(--space-5) var(--space-4); }
.stat-card .num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card .label { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.section-navy .stat-card .num { color: var(--gold); }
.section-navy .stat-card .label { color: #b9c6dc; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-navy-grad); color: #e7eefb; padding: var(--space-10) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,162,74,.18), transparent 70%); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #c3d0e6; max-width: 52ch; }
.hero-search { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--space-3); display: flex; gap: .5rem; max-width: 560px; }
.hero-search input { flex: 1; border: 0; padding: .7rem .9rem; font-size: 1rem; border-radius: var(--radius-sm); color: var(--ink); }
.hero-search input:focus { outline: 2px solid var(--blue); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.form-label .req { color: var(--danger); }
.form-control, .form-select, .form-textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .62rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus, .form-textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,77,184,.14); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .3rem; }
.is-invalid { border-color: var(--danger) !important; }
.form-check { display: flex; align-items: flex-start; gap: .55rem; }
.form-check input { margin-top: .25rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; }
.input-inline { display: flex; gap: .5rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
.table th, .table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: rgba(31,77,184,.04); }
.table td.actions { white-space: nowrap; text-align: right; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.badge-accredited { background: var(--navy); color: var(--gold); }
.badge-conditions { background: rgba(200,162,74,.2); color: var(--gold-600); }
.badge-active { background: rgba(14,124,134,.14); color: var(--teal); }
.badge-in-review { background: rgba(31,77,184,.12); color: var(--blue); }
.badge-probation { background: rgba(200,162,74,.22); color: #9a7b2e; }
.badge-expired { background: var(--gray); color: var(--muted); }
.badge-revoked { background: rgba(180,35,42,.12); color: var(--danger); }
.badge-muted { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Rating pills ---------- */
.rating { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: .24rem .55rem; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .02em; }
.rating-exemplary { background: rgba(14,124,134,.15); color: var(--teal); }
.rating-proficient { background: rgba(31,77,184,.13); color: var(--blue); }
.rating-developing { background: rgba(200,162,74,.2); color: var(--gold-600); }
.rating-unsatisfactory { background: rgba(180,35,42,.12); color: var(--danger); }

/* ---------- Alerts / flash ---------- */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: var(--space-4); display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.alert-success { background: rgba(14,124,134,.08); border-color: rgba(14,124,134,.35); color: #0b656d; }
.alert-error { background: rgba(180,35,42,.07); border-color: rgba(180,35,42,.3); color: #8f1c22; }
.alert-info { background: rgba(31,77,184,.07); border-color: rgba(31,77,184,.3); color: var(--blue-600); }
.alert-warning { background: rgba(200,162,74,.1); border-color: rgba(200,162,74,.4); color: #8a6d24; }

/* ---------- Progress ---------- */
.progress { height: 10px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 999px; transition: width .3s; }
.progress-lg { height: 16px; }

/* ---------- Steps / wizard ---------- */
.steps { display: flex; gap: 0; counter-reset: step; margin: var(--space-5) 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; text-align: center; position: relative; padding-top: 42px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-sans); color: var(--muted); }
.step::after { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.step:last-child::after { display: none; }
.step.done { color: var(--teal); }
.step.done::before { background: var(--teal); border-color: var(--teal); color: #fff; content: "\2713"; }
.step.done::after { background: var(--teal); }
.step.active { color: var(--navy); }
.step.active::before { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px rgba(31,77,184,.14); }

/* ---------- App shell (authenticated) ---------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--navy); color: #c3d0e6; padding: var(--space-4); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-sidebar .brand { padding: .3rem .3rem var(--space-4); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: var(--space-4); }
.sidebar-group { text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; color: #7f92b3; margin: var(--space-4) .5rem var(--space-2); }
.sidebar-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: #c3d0e6; font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar-link.active { background: var(--blue); color: #fff; }
.sidebar-link .ic { width: 18px; text-align: center; opacity: .9; }
.app-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-soft); }
.app-topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-5); position: sticky; top: 0; z-index: 20; }
.app-content { padding: var(--space-6) var(--space-5); flex: 1; }
.app-content-inner { max-width: 1080px; margin: 0 auto; }
.page-head { margin-bottom: var(--space-5); }
.page-head h1 { font-size: 1.7rem; margin-bottom: .2rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumbs a { color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.sidebar-toggle { display: none; background: none; border: 0; cursor: pointer; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; z-index: 60; width: 250px; left: -260px; transition: left .2s; box-shadow: var(--shadow-lg); }
  .app-sidebar.open { left: 0; }
  .sidebar-toggle { display: block; }
}

/* ---------- Directory / school cards ---------- */
.school-card { display: flex; flex-direction: column; height: 100%; }
.school-card .school-logo { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.3rem; flex: none; }
.school-card .meta { color: var(--muted); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Verification result ---------- */
.verify-result { border-left: 5px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); padding: var(--space-5); }
.verify-result.ok { border-left-color: var(--teal); }
.verify-result.warn { border-left-color: var(--gold); }
.verify-result.bad { border-left-color: var(--danger); }
.cert-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }
.cert-meta .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.cert-meta .v { font-weight: 600; color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial { padding: var(--space-5); }
.testimonial .quote { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); font-style: italic; margin-bottom: var(--space-3); }
.testimonial .who { font-weight: 700; color: var(--navy); font-size: .92rem; }
.testimonial .who span { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; }

/* ---------- Prose (articles / resources) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Accordion (domains / faq) ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-3); background: #fff; overflow: hidden; }
.accordion-head { width: 100%; text-align: left; padding: var(--space-4); background: none; border: 0; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-serif); }
.accordion-head:hover { background: var(--bg-soft); }
.accordion-head .plus { color: var(--gold); font-size: 1.3rem; transition: transform .2s; }
.accordion-item.open .accordion-head .plus { transform: rotate(45deg); }
.accordion-body { padding: 0 var(--space-4) var(--space-4); display: none; color: var(--muted); }
.accordion-item.open .accordion-body { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b8d4; padding: var(--space-8) 0 var(--space-5); font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.site-footer a { color: #a9b8d4; display: block; padding: .22rem 0; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--space-5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--space-6); padding-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; color: #7f92b3; font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--bg-navy-grad); color: #cdd9ee; padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; }
.auth-aside ul { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.auth-aside li { padding: .5rem 0 .5rem 1.8rem; position: relative; }
.auth-aside li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--space-6); background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-6); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold-600); }
.text-serif { font-family: var(--font-serif); }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.fw-700 { font-weight: 700; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); }
.w-full { width: 100%; }
.hidden { display: none; }
.divider { height: 1px; background: var(--line); margin: var(--space-4) 0; }
.pill-nav { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pill-nav a { padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.pill-nav a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--muted); }
.empty-state .ic { font-size: 2.4rem; margin-bottom: var(--space-2); opacity: .5; }
.dl-grid { display: grid; grid-template-columns: 180px 1fr; gap: .5rem var(--space-4); font-size: .95rem; }
.dl-grid dt { color: var(--muted); font-weight: 600; }
.dl-grid dd { margin: 0; color: var(--navy); }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; gap: .1rem var(--space-4); } .dl-grid dd { margin-bottom: .6rem; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid rgba(31,77,184,.5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Error pages ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-8) 0;
  background: radial-gradient(ellipse at top, #12274d 0%, var(--navy) 60%); color: #fff; }
.error-page .error-logo { display: inline-block; margin-bottom: var(--space-6); color: #fff; }
.error-page .error-logo .logo-word { color: #fff; }
.error-code { font-family: var(--font-serif); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--gold);
  margin: 0; letter-spacing: -.02em; }
.error-title { color: #fff; margin: var(--space-2) 0 var(--space-3); font-size: clamp(1.5rem, 4vw, 2.25rem); }
.error-message { color: #c3d0e6; max-width: 34rem; margin: 0 auto var(--space-6); font-size: 1.05rem; }
.error-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ================================================================
   AI-Ready brand components (2026 marketing refresh)
   ================================================================ */

/* --- Typography polish --- */
h1 { letter-spacing: -.01em; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.08; }
.display { font-family: var(--font-serif); font-weight: 700; color: var(--navy); line-height: 1.06; letter-spacing: -.015em; font-size: clamp(2.6rem, 6vw, 4rem); }
.lead-lg { font-size: 1.3rem; line-height: 1.5; color: var(--muted); }
.section-intro { max-width: 720px; margin: 0 auto var(--space-8); text-align: center; }
.section-intro.left { margin-left: 0; text-align: left; }
.section-intro p.lead { margin-top: .6rem; }
.section-navy .section-intro .lead, .section-navy .lead { color: #b9c6dc; }
.text-gold { color: var(--gold-600); }
.on-navy .eyebrow, .section-navy .eyebrow, .hero .eyebrow { color: var(--gold); }

/* --- Standards alignment trust bar --- */
.trust-bar { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: var(--space-4) 0; }
.trust-bar .trust-inner { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap; }
.trust-bar .trust-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.trust-bar .trust-item { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: #eaf0fb; letter-spacing: .01em; }
.trust-bar.on-light { border-color: var(--line); }
.trust-bar.on-light .trust-label { color: var(--gold-600); }
.trust-bar.on-light .trust-item { color: var(--navy); }
.trust-dot { color: var(--gold); opacity: .7; }

/* --- Offerings / flywheel (3-up) --- */
.offering-card { display: flex; flex-direction: column; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.offering-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-600)); opacity: 0; transition: opacity .25s ease; }
.offering-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.offering-card:hover::before { opacity: 1; }
.offering-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.offering-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(23,59,98,.09), rgba(31,77,184,.12)); color: var(--navy); margin-bottom: var(--space-4); font-size: 1.6rem; }
.offering-card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.offering-card .verb { color: var(--teal); }
.offering-card p { color: var(--muted); flex: 1; }
.offering-card .offering-link { margin-top: var(--space-4); font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .35rem; }
.offering-card .offering-link::after { content: "→"; transition: transform .2s ease; }
.offering-card:hover .offering-link::after { transform: translateX(4px); }

/* --- Six-domain grid --- */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.domain-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.domain-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.domain-num { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--gold); width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: var(--space-3); background: var(--bg-soft); }
.domain-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.domain-card p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .domain-grid { grid-template-columns: 1fr; } }

/* --- Four-level readiness scale --- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.level { border-radius: var(--radius); padding: var(--space-4); border: 1px solid var(--line); background: #fff; position: relative; }
.level .lvl-n { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.level h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: .2rem 0 .3rem; }
.level p { font-size: .88rem; color: var(--muted); margin: 0; }
.level.is-threshold { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.level.is-threshold::after { content: "Accreditation threshold"; position: absolute; top: -.7rem; left: var(--space-4); background: var(--gold); color: var(--navy); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.level-bar { height: 6px; border-radius: 999px; margin-bottom: var(--space-3); background: linear-gradient(90deg, #d9dee6 0%, #b9c3d1 33%, var(--teal) 66%, var(--gold) 100%); }
@media (max-width: 720px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* --- AI-Ready seal mark badge --- */
.mark-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mark-badge .logo-mark { width: 30px; height: 30px; }
.mark-badge .mb-text { display: flex; flex-direction: column; line-height: 1.05; }
.mark-badge .mb-text strong { font-family: var(--font-serif); font-size: .92rem; color: var(--navy); }
.mark-badge .mb-text span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

/* --- Accreditation outcomes --- */
.outcome-card { border-left: 4px solid var(--line); padding: var(--space-4) var(--space-5); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.outcome-card.ok { border-left-color: var(--teal); }
.outcome-card.best { border-left-color: var(--gold); }
.outcome-card.warn { border-left-color: var(--blue); }
.outcome-card.no { border-left-color: var(--muted); }
.outcome-card h4 { margin-bottom: .2rem; font-size: 1.05rem; }
.outcome-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* --- Checklist --- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(14,124,134,.12); color: var(--teal); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.checklist.on-navy li { color: #dbe4f2; }

/* --- Numbered process timeline --- */
.timeline { display: grid; gap: var(--space-3); counter-reset: phase; }
.timeline .phase { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.timeline .phase .pn { counter-increment: phase; font-family: var(--font-serif); font-weight: 700; color: #fff; background: var(--bg-navy-grad); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.timeline .phase .pn::before { content: counter(phase); }
.timeline .phase h4 { margin: 0 0 .15rem; font-size: 1.05rem; }
.timeline .phase p { margin: 0; color: var(--muted); font-size: .92rem; }
.timeline .phase .dur { font-size: .78rem; font-weight: 700; color: var(--gold-600); white-space: nowrap; }
@media (max-width: 620px) { .timeline .phase { grid-template-columns: auto 1fr; } .timeline .phase .dur { grid-column: 2; } }

/* --- Hero refinements + AI circuit accent --- */
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-8); align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; text-align: center; } .hero-split .logo-hero { order: -1; } .hero-split .hero-search, .hero-split .cluster { margin-left: auto; margin-right: auto; } }
.hero .eyebrow { color: var(--gold); }
.circuit { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.page-hero { background: var(--bg-navy-grad); color: #dbe4f2; padding: var(--space-10) 0 var(--space-8); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(200,162,74,.16), transparent 70%); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c3d0e6; max-width: 60ch; }
.page-hero > .container { position: relative; z-index: 1; }

/* --- Gated "request a proposal" CTA band --- */
.proposal-cta { background: var(--bg-navy-grad); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; position: relative; overflow: hidden; }
.proposal-cta::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(200,162,74,.18), transparent 70%); }
.proposal-cta h2 { color: #fff; position: relative; }
.proposal-cta p { color: #c3d0e6; max-width: 54ch; margin: .5rem auto var(--space-5); position: relative; }
.proposal-cta .cluster { justify-content: center; position: relative; }

/* --- Watermark seal on navy sections --- */
.wm-seal { position: absolute; right: -60px; bottom: -60px; width: 320px; opacity: .06; pointer-events: none; z-index: 0; }

/* --- Misc --- */
.pill { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: rgba(200,162,74,.14); color: var(--gold-600); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.pill.teal { background: rgba(14,124,134,.12); color: var(--teal); }
.divider-gold { width: 56px; height: 3px; background: var(--gold); border: 0; border-radius: 3px; margin: var(--space-4) 0; }
.section-intro .divider-gold { margin-left: auto; margin-right: auto; }

/* --- Legal pages --- */
.legal-nav { position: sticky; top: 90px; }
.legal-nav a { display: block; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: .92rem; border-left: 2px solid transparent; }
.legal-nav a:hover { background: var(--bg-soft); color: var(--navy); text-decoration: none; }
.legal-nav a.active { color: var(--navy); border-left-color: var(--gold); background: var(--bg-soft); }
.callout-note { background: rgba(200,162,74,.08); border: 1px solid rgba(200,162,74,.35); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: .9rem; color: var(--muted); margin-bottom: var(--space-5); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-family: var(--font-sans); color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .grid[style*="240px"] { grid-template-columns: 1fr !important; } .legal-nav { position: static; } }
