.portal-intro {
  padding-top: 8px;
  padding-bottom: 20px;
}

.portal-notice {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid #b9cdfb;
  border-left: 5px solid #2563eb;
  border-radius: 14px;
  background: #edf3ff;
}

.portal-notice span,
.portal-section-heading p:not(.eyebrow),
.portal-link-description {
  color: var(--muted);
}

.portal-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-jump-links a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.portal-section {
  padding-top: 26px;
  padding-bottom: 30px;
  scroll-margin-top: 90px;
}

.portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.portal-section-heading h2,
.portal-section-heading h3 {
  margin: 0;
  color: var(--navy);
}

.portal-section-heading p:not(.eyebrow) {
  margin: 6px 0 0;
}

.portal-color-dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.customer-color {
  background: #7c3aed;
}

.media-color {
  background: #2563eb;
}

.dispatch-color,
.applications-color {
  background: #f28c28;
}

.contractor-color {
  background: #2878d0;
}

.onboarding-color {
  background: #25a66a;
}

.affiliate-color {
  background: #48b8cc;
}

.private-color {
  background: #42526b;
}

.portal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-link-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease;
}

.portal-link-card:hover,
.portal-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.portal-link-title {
  font-weight: 800;
  line-height: 1.4;
}

.portal-link-action {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
}

.portal-link-description {
  font-size: .9rem;
  line-height: 1.5;
}

.private-portals {
  border-top: 1px solid var(--border);
}

.portal-auth-message {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.portal-security-note {
  padding: 12px 15px;
  border-left: 4px solid #f28c28;
  border-radius: 8px;
  background: #fff8ef;
  color: #59432b;
  font-size: .9rem;
}

.portal-auth-message p {
  margin: 0;
}

.portal-auth-message a {
  font-weight: 800;
}

.portal-subsection {
  padding: 24px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-left: 5px solid #42526b;
  border-radius: 18px;
  background: #fff;
}

.dispatch-section {
  border-left-color: #f28c28;
}

.contractor-section {
  border-left-color: #2878d0;
}

.onboarding-section {
  border-left-color: #25a66a;
}

.affiliate-section {
  border-left-color: #48b8cc;
}

.portal-private-content .portal-link-card {
  box-shadow: none;
  background: #fbfcff;
}

@media (max-width: 680px) {
  .portal-link-grid {
    grid-template-columns: 1fr;
  }

  .portal-subsection {
    padding: 18px;
  }

  .portal-section-heading {
    align-items: flex-start;
  }
}
