@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');
/* ============================================================
   HUMAN FIRST — New Starter Portal Styles
   Extends the main site design system (../css/style.css)
   Brand: #FF6020 Vermilion | #2F2F2F Charcoal | General Sans body
   ============================================================ */

/* ── PORTAL LAYOUT ───────────────────────────────────────── */
.portal-wrap {
  min-height: 100vh;
  background: #f2f2f0;
  padding-top: 72px; /* nav height */
}
.portal-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.portal-body--wide {
  max-width: 1100px;
}

/* ── PORTAL NAV (standalone, no public links) ─────────────── */
.portal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dc);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 72px;
}
.portal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: 40px;
}
.portal-nav-logo img { height: 30px; width: auto; }
.portal-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}
.portal-nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 3px;
  transition: all 180ms;
}
.portal-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.portal-nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }
.portal-user-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.portal-logout-btn {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: 3px;
  background: none;
  cursor: pointer;
  transition: all 240ms ease;
}
.portal-logout-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* ── AUTH PAGE (login / register) ────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--dc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-card {
  background: #fff;
  border-radius: 8px;
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.auth-logo {
  display: block;
  height: 28px;
  margin-bottom: 32px;
}
.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
}
.auth-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
}
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 28px;
}
.auth-tab {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 10px 20px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 200ms ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.auth-tab.active {
  color: var(--dc);
  border-bottom-color: var(--vv);
}
.auth-tab:hover:not(.active) { color: var(--dc); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dc);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input {
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--dc);
  transition: border-color 200ms ease;
  background: #fafafa;
}
.form-group input:focus {
  outline: none;
  border-color: var(--vv);
  background: #fff;
}
.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--vv);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 200ms ease;
}
.auth-submit:hover { background: var(--bo); }
.auth-submit:disabled { background: #ccc; cursor: not-allowed; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  display: none;
}
.auth-error.show { display: block; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.portal-header {
  margin-bottom: 40px;
}
.portal-welcome {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dc);
  margin-bottom: 6px;
}
.portal-welcome span { color: var(--vv); }
.portal-tagline {
  font-size: 0.9rem;
  color: #666;
}

/* Progress bar */
.progress-bar-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
}
.progress-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.progress-bar-label span:first-child {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc);
}
.progress-bar-label span:last-child {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vv);
}
.progress-bar-track {
  height: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--vv);
  border-radius: 99px;
  transition: width 600ms ease;
}

/* Section cards grid */
.section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .section-cards { grid-template-columns: 1fr; }
}
.section-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: all 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.section-card:hover {
  border-color: var(--vv);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
}
.section-card.complete {
  border-color: #22c55e;
}
.section-card.complete::before {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--vv);
  line-height: 1;
  opacity: 0.3;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc);
}
.card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}
.card-status {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  width: fit-content;
  margin-top: 4px;
}
.status-not-started { background: #f5f5f5; color: #999; }
.status-complete { background: #dcfce7; color: #16a34a; }

/* ── SECTION PAGES ───────────────────────────────────────── */
.section-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.section-back {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms;
}
.section-back:hover { color: var(--vv); }
.section-back::before { content: '←'; }
.section-divider { color: #ddd; }
.section-breadcrumb {
  font-size: 0.8rem;
  color: #999;
}

.section-header {
  background: var(--dc);
  border-radius: 8px;
  padding: 36px 40px;
  margin-bottom: 32px;
  color: #fff;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 10px;
  display: block;
}
.section-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.15;
}
.section-header p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  max-width: 60ch;
}

/* Content card */
.content-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
}
.content-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dc);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--vv);
}
.content-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc);
  margin-top: 28px;
  margin-bottom: 10px;
}
.content-card p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.content-card ul, .content-card ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.content-card ul { list-style: disc; }
.content-card ol { list-style: decimal; }
.content-card li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}
.content-card a {
  color: var(--vv);
  text-decoration: underline;
}
.content-card a:hover { color: var(--bo); }

/* Info box */
.info-box {
  background: #fef9f5;
  border: 1px solid #fdd9c4;
  border-left: 4px solid var(--vv);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box p {
  font-size: 0.88rem;
  color: #4a2a10;
  margin-bottom: 0;
}
.info-box strong { color: var(--bo); }

/* Step list */
.step-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--vv);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content strong {
  display: block;
  font-weight: 600;
  color: var(--dc);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.step-content span {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* Cert cards */
.cert-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 560px) { .cert-cards { grid-template-columns: 1fr; } }
.cert-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-top: 3px solid var(--vv);
  border-radius: 6px;
  padding: 20px;
}
.cert-code {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 6px;
}
.cert-name {
  font-weight: 600;
  color: var(--dc);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.cert-renewal {
  font-size: 0.8rem;
  color: #777;
}

/* Infographic images */
.infographic {
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.infographic img {
  width: 100%;
  height: auto;
  display: block;
}
.infographic-caption {
  background: #f9f9f9;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: #777;
  border-top: 1px solid #eee;
  font-style: italic;
}

/* Document requirement list */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #eee;
}
.doc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--dc);
  color: var(--vv);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.doc-details strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dc);
  margin-bottom: 3px;
}
.doc-details span { font-size: 0.82rem; color: #666; }

/* Completion section */
.completion-card {
  background: var(--dc);
  border-radius: 8px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.completion-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 6px;
}
.completion-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.checkbox-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--vv);
  cursor: pointer;
}
.checkbox-label span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.complete-btn {
  padding: 14px 28px;
  background: var(--vv);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 200ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.complete-btn:hover:not(:disabled) { background: var(--bo); }
.complete-btn:disabled { background: #22c55e; cursor: default; }
.complete-btn.done { background: #22c55e; }

/* ── PENDING PAGE ────────────────────────────────────────── */
.pending-page {
  min-height: 100vh;
  background: var(--dc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.pending-card {
  background: #fff;
  border-radius: 12px;
  padding: 56px 48px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.pending-icon {
  width: 72px;
  height: 72px;
  background: #fff7ed;
  border: 2px solid var(--vv);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
}
.pending-card h1 {
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 14px;
  color: var(--dc);
}
.pending-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.pending-email {
  font-weight: 700;
  color: var(--dc);
}

/* ── ADMIN PAGE ──────────────────────────────────────────── */
.admin-header {
  background: var(--dc);
  padding: 36px 40px;
  border-radius: 8px;
  margin-bottom: 32px;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.admin-header p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 28px;
}
.admin-tab {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 12px 20px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 200ms;
}
.admin-tab.active { color: var(--dc); border-bottom-color: var(--vv); }
.admin-tab:hover:not(.active) { color: var(--dc); }

.admin-table-wrap { overflow-x: auto; }
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
}
.admin-table th {
  background: #f5f5f5;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  padding: 12px 20px;
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.88rem;
  color: var(--dc);
}
.admin-table tr:hover td { background: #fafafa; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }

.approve-btn {
  padding: 7px 16px;
  background: var(--vv);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 200ms;
}
.approve-btn:hover { background: var(--bo); }
.approve-btn:disabled { background: #ccc; cursor: default; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 0.9rem;
}

/* ── HANDBOOK ────────────────────────────────────────────── */
.handbook-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}
.handbook-header {
  background: var(--dc);
  border-radius: 8px;
  padding: 48px 48px 40px;
  color: #fff;
  margin-bottom: 40px;
}
.handbook-header .eyebrow-hb {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 12px;
  display: block;
}
.handbook-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.handbook-header p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin: 0;
}
.handbook-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 22px;
  background: var(--vv);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 200ms;
  text-decoration: none;
}
.handbook-print-btn:hover { background: var(--bo); }

.handbook-toc {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 40px;
}
.handbook-toc h3 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc);
  margin-bottom: 16px;
}
.handbook-toc ol {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 24px;
}
@media (max-width: 560px) { .handbook-toc ol { columns: 1; } }
.handbook-toc li {
  margin-bottom: 8px;
}
.handbook-toc a {
  font-size: 0.85rem;
  color: var(--dc);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms;
}
.handbook-toc a:hover { color: var(--vv); }
.handbook-toc a::before {
  content: attr(data-num);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--vv);
  min-width: 22px;
}

.handbook-section {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.handbook-section-num {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 8px;
}
.handbook-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dc);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--vv);
}
.handbook-section h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc);
  margin-top: 28px;
  margin-bottom: 10px;
}
.handbook-section p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.handbook-section ul, .handbook-section ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.handbook-section ul { list-style: disc; }
.handbook-section ol { list-style: decimal; }
.handbook-section li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 6px;
}
.handbook-section a { color: var(--vv); }
.handbook-section a:hover { color: var(--bo); }

.leader-card {
  border: 1px solid #eee;
  border-left: 3px solid var(--vv);
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.leader-role {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 4px;
}
.leader-name {
  font-weight: 700;
  color: var(--dc);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.leader-bio {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.highlight-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--vv);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
}
.highlight-box p {
  font-size: 0.88rem;
  color: #7c2d12;
  margin: 0;
  line-height: 1.6;
}

.case-note-template {
  background: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 28px;
  font-size: 0.85rem;
  color: #333;
  margin: 20px 0;
}
.case-note-template h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc);
  margin-bottom: 14px;
}
.case-note-field {
  margin-bottom: 14px;
}
.case-note-field label {
  display: block;
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--dc);
  margin-bottom: 4px;
}
.case-note-field .blank {
  display: inline-block;
  min-width: 200px;
  border-bottom: 1px solid #bbb;
  height: 16px;
  vertical-align: bottom;
}
.case-note-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.case-note-check input { flex-shrink: 0; accent-color: var(--vv); }

/* ── UTILITIES ───────────────────────────────────────────── */
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-20 { margin-bottom: 20px; }
.text-vv { color: var(--vv); }
.text-muted { color: #888; font-size: 0.85rem; }

/* ── PRINT STYLES ────────────────────────────────────────── */
@media print {
  .portal-nav, .handbook-print-btn, .handbook-toc { display: none; }
  .handbook-wrap { padding: 0; max-width: 100%; }
  .handbook-header { border-radius: 0; }
  .handbook-section {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  body { background: #fff; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Gap 2 — Portal mobile nav: 8 links scroll horizontally on narrow screens */
@media (max-width: 960px) {
  .portal-nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* nudge away from edge when scrolled */
    padding-inline: 0;
  }
  .portal-nav-links::-webkit-scrollbar { display: none; }
  .portal-nav-link { padding: 6px 10px; flex-shrink: 0; }
  .portal-nav-inner { padding-inline: 16px; }
}

@media (max-width: 640px) {
  /* Collapse user name on very small screens to save space */
  .portal-user-name { display: none; }
}

@media (max-width: 768px) {
  .portal-body { padding: 32px 16px 60px; }
  .content-card { padding: 28px 24px; }
  .completion-card { flex-direction: column; padding: 24px; }
  .section-header { padding: 28px 24px; }
  .admin-header { padding: 28px 24px; }
  .handbook-section { padding: 28px 24px; }
  .handbook-header { padding: 36px 28px; }
  .handbook-toc { padding: 20px 24px; }
}


/* ── ARCHETYPE BADGES ────────────────────────────────────── */
.badge-worker      { background: #e5e7eb; color: #374151; }
.badge-team_leader { background: #dbeafe; color: #1d4ed8; }
.badge-founder     { background: #fef3c7; color: #92400e; }

.archetype-select {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: var(--dc);
  cursor: pointer;
  transition: border-color 180ms;
}
.archetype-select:hover { border-color: var(--vv); }

/* ============================================================
   SOFTENED PALETTE v2 (2026-06-09)
   Aligns the portal with the rebuilt marketing site:
   cool near-white surfaces, calmer hairlines, lighter shadows,
   orange kept as a sparing accent (CTAs / focus / numbers / hover),
   and a small contrast lift on faint text.
   Additive override block — selectors mirror the rules above so
   the cascade wins. No HTML/JS changes; revert = delete this block.
   ============================================================ */
:root {
  --surface-0: #FBFBFC;   /* page / cards baseline */
  --surface-1: #F4F5F7;   /* alt / inset surfaces */
  --surface-2: #EEF0F3;   /* deeper inset (tracks, hovers) */
  --hairline:  #E7E9ED;   /* borders, dividers */
  --accent-wash: rgba(255, 96, 32, 0.05); /* faint orange for info/highlight */
  /* contrast-safe text on white (≥4.5:1) */
  --p-text-muted: #5E5E5E;
  --p-text-faint: #6E6E73;
  /* lighter, cooler elevation */
  --p-shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.05), 0 3px 10px rgba(20, 23, 28, 0.04);
  --p-shadow-md: 0 4px 14px rgba(20, 23, 28, 0.10), 0 2px 4px rgba(20, 23, 28, 0.05);
}

/* — Page canvas — */
.portal-wrap { background: var(--surface-1); }

/* — Cool the warm inset greys — */
.form-group input,
.admin-table tr:hover td,
.case-note-template,
.cert-card,
.infographic-caption,
.handbook-toc,
.doc-item,
.admin-table th { background: var(--surface-1); }
.doc-item { border-color: var(--hairline); }

/* generic faint inset/hover greys -> cool neutral */
.admin-table tr:hover td { background: var(--surface-2); }
.status-not-started { background: var(--surface-2); color: var(--p-text-faint); }

/* — Hairlines & tracks — */
.auth-tabs { border-bottom-color: var(--hairline); }
.progress-bar-track { background: var(--surface-2); }
.section-divider { color: var(--hairline); }
.form-group input { border-color: var(--hairline); }

/* — Soften elevation everywhere cards live — */
.progress-bar-wrap,
.section-card,
.content-card,
.handbook-section,
.pending-card,
.admin-table-wrap,
.scoreboard-card { box-shadow: var(--p-shadow-sm); }
.section-card:hover { box-shadow: var(--p-shadow-md); }

/* — Orange tints -> faint, calm wash (purposeful emphasis only) — */
.info-box,
.highlight-box,
.pending-icon { background: var(--accent-wash); }

/* — Contrast lift on faint text (a11y ≥4.5:1) — */
.portal-tagline,
.card-desc,
.section-back,
.auth-subtitle { color: var(--p-text-muted); }
.section-breadcrumb,
.auth-tab { color: var(--p-text-faint); }

/* — Inputs settle to true white on focus (unchanged behaviour, cool default) — */
.form-group input { background: var(--surface-0); }
.form-group input:focus { background: #fff; border-color: var(--vv); }

@media (prefers-reduced-motion: reduce) {
  .section-card,
  .progress-bar-fill { transition: none; }
  .section-card:hover { transform: none; }
}

/* ============================================================
   v5 BRAND ALIGNMENT (2026-06-09)
   Brings the portal into the rebuilt marketing-site language:
   General Sans type, warm paper surfaces, ink/orange accents.
   Kept calm (this is an app) — no colour-drench, just the brand.
   ============================================================ */
:root {
  --font-display: 'General Sans', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, sans-serif;
  /* warm surfaces to match the marketing site */
  --surface-0: #FBF7F3;
  --surface-1: #F3EEE9;
  --surface-2: #EBE4DC;
  --hairline:  #E6DED5;
  --ink-v5:    #1B1714;
}
body, .portal-body, .auth-page { font-family: var(--font-body); color: var(--ink-v5); }
.portal-wrap { background: var(--surface-1); }

/* headings -> General Sans, slightly tighter */
.portal-welcome, .section-header h1, .auth-card h1, .admin-section-title,
.handbook-section h2, .content-card h2, .card-title, .scoreboard-title {
  font-family: var(--font-display); letter-spacing: -0.01em;
}

/* nav -> warm ink, General Sans */
.portal-nav { background: var(--ink-v5); }
.auth-page { background: var(--ink-v5); }
.section-header { background: var(--ink-v5); }

/* orange accents stay; numbers/dots/links already var(--vv) */
.portal-welcome span, .hf-glyph { color: var(--vv); }

/* buttons -> pill, brand */
.auth-submit, .handbook-print-btn, .btn-primary,
button.primary, .admin-btn-primary {
  border-radius: 999px;
}
.auth-submit { background: var(--vv); }
.auth-submit:hover { background: #ED4F12; }

/* cards: keep the warm paper inset surfaces (override the cool v2 greys) */
.form-group input,
.admin-table th,
.cert-card, .infographic-caption, .handbook-toc, .doc-item,
.case-note-template { background: var(--surface-1); }
.admin-table tr:hover td, .status-not-started { background: var(--surface-2); }
.info-box, .highlight-box, .pending-icon { background: rgba(255,96,32,0.06); }

/* --- portal-wide contrast floor (root fix, all pages) --- */
/* orange-fill buttons -> ink text (AA) like the marketing site */
.auth-submit, .handbook-print-btn, .complete-btn:not(.done):not(:disabled),
button.primary, .admin-btn-primary, .btn-primary { color: var(--ink-v5) !important; }
/* faint accents/labels that failed AA */
.kanban-col-num { color: #6A645D !important; }
.leader-role, .handbook-section-num, .section-eyebrow { color: #9A370B !important; }
.handbook-foot, .handbook-foot * { color: #6A645D !important; }

/* --- gate fixes: contrast --- */
/* accessible green (was #22c55e at 2.28:1 white-on-green) */
.section-card.complete { border-color: #15803D; }
.section-card.complete::before { background: #15803D; }
.complete-btn:disabled, .complete-btn.done { background: #15803D; }
/* faint empty-state + view-all text */
.empty-state { color: var(--p-text-muted); }
/* body-size orange links on light surfaces -> darker rust (was ~3:1) */
.content-card a:not(.btn), .info-box a, .doc-item a, .section-body a,
.case-note-template a { color: #9A370B; }
