:root {
  --portal-ink: #000000;
  --portal-muted: #3f3f3f;
  --portal-line: #d8d8d8;
  --portal-surface: #ffffff;
  --portal-accent: #e41c86;
  --portal-accent-deep: #b9156a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--portal-ink);
  background: #fbfbfb;
}

.portal-heading {
  font-family: "Source Serif 4", serif;
  line-height: 1.1;
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.portal-nav {
  background: var(--portal-surface);
  border-bottom: 1px solid var(--portal-line);
}

.site-logo {
  height: 1.7rem;
  width: auto;
  display: block;
}

.logo-mark {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--portal-accent);
}

.brand-copy {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-link {
  color: #000000;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--portal-accent);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--portal-accent);
}

.lead {
  color: var(--portal-muted);
  max-width: 46rem;
}

.btn-portal-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--portal-accent);
  --bs-btn-border-color: var(--portal-accent);
  --bs-btn-hover-bg: var(--portal-accent-deep);
  --bs-btn-hover-border-color: var(--portal-accent-deep);
  --bs-btn-active-bg: #a04627;
  --bs-btn-active-border-color: #a04627;
}

.btn-portal-link {
  --bs-btn-color: #000000;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: #f6eef3;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: #f3e6ee;
  --bs-btn-active-border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.panel-card {
  border: 1px solid var(--portal-line);
  background: #fff;
}

.panel-card p {
  color: var(--portal-muted);
}

.portal-dashboard-page {
  min-height: 100vh;
  background: #f7f7f8;
}

.member-sidebar {
  background: #ffffff;
  border: 1px solid var(--portal-line);
  position: sticky;
  top: 1rem;
}

.member-nav-list .nav-link {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0.75rem;
}

.member-nav-list .nav-link.active {
  background: #f7e6f0;
  color: #000;
  border-color: #efc8df;
}

.member-nav-list .nav-link:not(.active):hover {
  border-color: var(--portal-line);
}

.dashboard-content {
  min-height: calc(100vh - 11rem);
}

.profile-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #f9d8ea;
  color: #6f1142;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dashboard-table thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  border-bottom-width: 1px;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.status-review {
  color: #000;
  background: #f9d8ea;
}

.status-pending {
  color: #000;
  background: #f1f1f1;
}

.status-approved {
  color: #000;
  background: #d7f1de;
}

.status-rejected {
  color: #000;
  background: #fad6e3;
}

.dashboard-table tbody tr.row-link {
  cursor: pointer;
}

.dashboard-table tbody tr.row-link:hover {
  background: #f7e6f0;
}

.dashboard-table tbody tr.row-link:focus-within {
  outline: 2px solid var(--portal-accent);
  outline-offset: -2px;
}

.status-timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
  position: relative;
}

.status-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--portal-line);
}

.status-timeline li {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: 1rem;
}

.status-timeline li:last-child {
  padding-bottom: 0;
}

.status-timeline-dot {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--portal-line);
  box-sizing: border-box;
}

.status-dot-done {
  background: var(--portal-accent);
  border-color: var(--portal-accent);
}

.status-dot-current {
  background: #fff;
  border-color: var(--portal-accent);
  box-shadow: 0 0 0 3px rgba(228, 28, 134, 0.18);
}

.status-dot-future {
  background: #fff;
  border-color: var(--portal-line);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--portal-muted);
}

.section-subhead {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
}

.requirement-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-top: 1px solid var(--portal-line);
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--portal-line);
}

.requirement-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: #f1f1f1;
  color: #555;
}

.requirement-done .requirement-icon {
  background: #d7f1de;
  color: #1f6d3a;
}

.requirement-progress .requirement-icon {
  background: #f7e6f0;
  color: var(--portal-accent-deep);
}

.requirement-attention .requirement-icon {
  background: #fad6e3;
  color: var(--portal-accent-deep);
}

.requirement-pending .requirement-icon {
  background: #f1f1f1;
  color: #555;
}

.btn-action {
  --bs-btn-color: var(--portal-accent);
  --bs-btn-hover-color: var(--portal-accent-deep);
  --bs-btn-padding-x: 0.4rem;
  --bs-btn-padding-y: 0.15rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-action + .btn-action {
  border-left: 1px solid var(--portal-line);
  margin-left: 0.25rem;
  padding-left: 0.6rem;
}

.btn-action-danger {
  --bs-btn-color: #b9156a;
  --bs-btn-hover-color: #8e0f51;
}

.dashboard-activity li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--portal-line);
}

.dashboard-activity li:last-child {
  border-bottom: 0;
}

.wizard-progress {
  height: 0.45rem;
  background: #ececec;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--portal-accent);
  transition: width 180ms ease;
}

.wizard-step {
  min-height: 18rem;
}

.simple-card {
  background: #fff;
  border: 1px solid var(--portal-line);
}

.simple-card p {
  color: var(--portal-muted);
}

.form-shell {
  background: #fff;
  border: 1px solid var(--portal-line);
}

.form-copy {
  color: var(--portal-muted);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: 0;
  border-color: #d6d8db;
  padding: 0.7rem 0.75rem;
}

.field-invalid {
  border-color: #b9156a !important;
  background: #fff7fb;
}

.form-check-input.field-invalid {
  box-shadow: 0 0 0 0.2rem rgba(185, 21, 106, 0.18);
}

.field-error {
  margin: 0.35rem 0 0;
  color: #b9156a;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--portal-accent);
  box-shadow: 0 0 0 0.2rem rgba(228, 28, 134, 0.2);
}

.form-check-input:checked {
  background-color: var(--portal-accent);
  border-color: var(--portal-accent);
}

.form-note {
  font-size: 0.95rem;
  color: var(--portal-muted);
}

.form-note a {
  color: var(--portal-accent);
}

.form-note a:hover {
  color: var(--portal-accent-deep);
}

.signature-pad-shell {
  border: 1px solid #d6d8db;
  background: #fff;
  min-height: 10rem;
}

.signature-pad {
  width: 100%;
  height: 10rem;
  display: block;
  cursor: crosshair;
}

.quote-block {
  border-top: 3px solid var(--portal-accent);
  background: #fff;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.quote-copy {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}

.link-portal {
  color: var(--portal-accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.link-portal:hover {
  color: var(--portal-accent-deep);
}

footer {
  background: #000;
  color: #fff;
}

footer .text-body-secondary {
  color: #fff !important;
}

footer [class*="d-flex"] {
  justify-content: flex-end !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f9f4f7 100%);
}

.login-page > main {
  flex: 1;
}

.login-card {
  background: #fff;
  border: 1px solid var(--portal-line);
}

.login-card hr {
  border-color: var(--portal-line);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    border-top: 1px solid var(--portal-line);
    padding-top: 0.75rem;
  }

  .member-sidebar {
    position: static;
  }
}
