/**
 * FCCP Job Portal — auth screens & in-app dashboard shell.
 */
:root {
  --portal-green: #00401a;
  --portal-green-light: #0d5c2e;
  --portal-bg: #f0f3f1;
  --portal-sidebar: #052e16;
  --portal-sidebar-text: rgba(255, 255, 255, 0.88);
  --portal-sidebar-muted: rgba(255, 255, 255, 0.55);
  --portal-card: #fff;
  --portal-border: #e2e8e4;
  --portal-radius: 12px;
  --portal-shadow: 0 4px 24px rgba(0, 26, 10, 0.08);
}

/* Written test OTP modal lives under `body` (see test.blade.php); keep above sidebar (999) & scrim (998) */
#testSubmitOtpModal {
  z-index: 1080;
}

/* ─── Full-page loader (forms) ─── */
.portal-form-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 20, 12, 0.45);
  backdrop-filter: blur(2px);
}

.portal-form-loader[hidden] {
  display: none !important;
}

.portal-form-loader__box {
  background: var(--portal-card);
  border-radius: var(--portal-radius);
  padding: 1.35rem 1.75rem;
  box-shadow: var(--portal-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  margin-inline: 0.75rem;
  box-sizing: border-box;
}

.portal-form-loader__box .spinner-border {
  color: var(--portal-green);
  width: 1.75rem;
  height: 1.75rem;
}

/* ─── Sidebar & auth hero: institution + site credit ─── */
.portal-sidebar-institution {
  position: relative;
  margin: 0;
  padding: 0.55rem 1.25rem 0.75rem;
  font-size: clamp(0.52rem, 0.38rem + 0.9vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.portal-sidebar-institution::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  pointer-events: none;
  transform-origin: center;
}

a.portal-institution-home-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a.portal-institution-home-link:hover,
a.portal-institution-home-link:focus-visible {
  color: #fff;
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.portal-sidebar-meta {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.85rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--portal-sidebar-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar-meta__line {
  margin: 0 0 0.35rem;
}

.portal-sidebar-meta__line:last-child {
  margin-bottom: 0;
}

.portal-sidebar-meta__line--muted {
  opacity: 0.92;
  font-size: 0.92em;
}

.portal-auth-hero-institution {
  margin: 0 0 0.35rem;
  width: 100%;
  font-size: clamp(0.55rem, 0.4rem + 0.95vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  text-align: left;
}

.portal-auth-hero-core {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 0;
}

@media (min-width: 900px) {
  .portal-auth-hero-core {
    align-items: flex-start;
    text-align: left;
  }
}

.portal-auth-hero-meta {
  flex-shrink: 0;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(0.65rem, 0.58rem + 0.35vw, 0.75rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.portal-auth-hero-meta__line {
  margin: 0.2rem 0;
}

.portal-auth-hero-meta__line--muted {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92em;
}

/* ─── Auth layout ─── */
body.portal-auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--portal-bg);
  color: #1a2e22;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  overflow-x: hidden;
}

.portal-auth-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .portal-auth-page {
    flex-direction: row;
  }
}

.portal-auth-hero {
  flex: 0 0 auto;
  padding: 1.5rem 1rem 2rem;
  padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
  background: linear-gradient(160deg, var(--portal-sidebar) 0%, var(--portal-green) 55%, var(--portal-green-light) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .portal-auth-hero {
    flex: 0 0 42%;
    max-width: 520px;
    align-self: stretch;
    min-height: 100%;
    padding-top: max(3rem, env(safe-area-inset-top, 0px));
    padding-bottom: 3rem;
    padding-left: max(2.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.5rem, env(safe-area-inset-right, 0px));
  }
}

.portal-auth-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -30%;
  background:
    radial-gradient(ellipse 65% 50% at 22% 18%, rgba(255, 255, 255, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 82% 78%, rgba(0, 0, 0, 0.11) 0%, transparent 48%);
  pointer-events: none;
}

.portal-auth-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -30%;
  bottom: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.portal-auth-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 0;
}

@media (min-width: 900px) {
  .portal-auth-hero-inner {
    align-items: flex-start;
    text-align: left;
  }

  .portal-fccp-logo-shell--hero {
    margin-left: 0;
    margin-right: 0;
  }
}

.portal-fccp-logo-shell {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  line-height: 0;
}

.portal-fccp-logo-shell--hero {
  padding: 14px 18px;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.portal-fccp-logo-shell--sidebar {
  width: 100%;
  max-width: 210px;
  padding: 10px 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.portal-fccp-logo-shell--topbar {
  padding: 5px 9px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.portal-fccp-logo {
  display: block;
  object-fit: contain;
}

/* Official mark: light tray; no fixed HTML width/height so aspect ratio stays sharp */
.portal-fccp-logo--hero {
  width: auto;
  height: auto;
  max-width: min(220px, 82vw);
  max-height: min(160px, 28vh);
  margin-bottom: 0;
}

.portal-fccp-logo--sidebar {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  margin-bottom: 0;
  object-position: center center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.portal-fccp-logo--topbar {
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 120px;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 380px) {
  .portal-fccp-logo-shell--topbar {
    display: none;
  }
}

.portal-auth-hero h1 {
  font-size: clamp(1.35rem, 1.05rem + 1.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: min(22rem, 100%);
  padding-inline: 0.25rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .portal-auth-hero h1 {
    max-width: none;
  }
}

.portal-auth-hero p {
  margin: 0;
  font-size: clamp(0.875rem, 0.82rem + 0.35vw, 0.98rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: min(32rem, 100%);
  padding-inline: 0.25rem;
  box-sizing: border-box;
}

@media (max-width: 899.98px) {
  .portal-auth-hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

.portal-auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .portal-auth-panel {
    padding: 2rem 1.25rem 3rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  }
}

.portal-auth-card {
  width: 100%;
  max-width: min(420px, 100%);
  background: var(--portal-card);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  border: 1px solid var(--portal-border);
  padding: 1.35rem 1.1rem 1.65rem;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 480px) {
  .portal-auth-card {
    padding: 2rem 2rem 2.25rem;
  }
}

.portal-auth-card h2 {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f2418;
  position: relative;
  padding-bottom: 0.42rem;
}

.portal-auth-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--portal-green), var(--portal-green-light));
}

.portal-auth-card .portal-auth-lead {
  font-size: 0.875rem;
  color: #5c6f63;
  margin-bottom: 1.35rem;
}

.portal-auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--portal-border);
  font-size: 0.8125rem;
  color: #6b7c71;
  text-align: center;
  overflow-wrap: anywhere;
}

.portal-auth-footer a {
  color: var(--portal-green);
  font-weight: 600;
  text-decoration: none;
}

.portal-auth-footer a:hover {
  text-decoration: underline;
}

/* ─── Numeric CAPTCHA (session-backed, guest portal forms) ─── */
.portal-num-captcha-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3d5246;
  margin-bottom: 0.5rem;
}

.portal-num-captcha-label .fa-shield-halved {
  color: var(--portal-green-light);
  font-size: 0.95rem;
}

.portal-num-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.portal-num-captcha-display {
  position: relative;
  flex: 0 0 auto;
  min-width: 7.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fafcfb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.portal-num-captcha-scribble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.portal-num-captcha-digits {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--portal-green-light);
  font-variant-numeric: tabular-nums;
}

.portal-num-captcha-digits span {
  min-width: 0.65ch;
  text-align: center;
}

.portal-num-captcha-input-wrap {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  min-height: 3rem;
}

.portal-num-captcha-input-wrap:focus-within {
  border-color: rgba(0, 64, 26, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 64, 26, 0.08);
}

.portal-num-captcha-input-wrap.is-invalid-wrap,
.portal-num-captcha-input-wrap:has(.is-invalid) {
  border-color: #c53d3d;
}

.portal-num-captcha-input-wrap:has(.is-invalid):focus-within {
  box-shadow: 0 0 0 3px rgba(197, 61, 61, 0.12);
}

.portal-num-captcha-key {
  flex: 0 0 auto;
  padding: 0 0.65rem 0 0.85rem;
  color: var(--portal-green-light);
  font-size: 0.9rem;
}

.portal-num-captcha-input {
  flex: 1 1 auto;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  min-width: 0;
}

.portal-num-captcha-input:focus {
  box-shadow: none !important;
}

.portal-num-captcha-refresh {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 100%;
  min-height: 2.75rem;
  border: none;
  border-left: 1px solid var(--portal-border);
  background: rgba(13, 92, 46, 0.06);
  color: var(--portal-green);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.portal-num-captcha-refresh:hover:not(:disabled) {
  background: rgba(13, 92, 46, 0.12);
  color: var(--portal-green-light);
}

.portal-num-captcha-refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 520px) {
  .portal-num-captcha-row {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-num-captcha-display {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .portal-num-captcha-input-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .portal-num-captcha-label {
    align-items: flex-start;
    line-height: 1.35;
  }

  .portal-num-captcha-label .fa-shield-halved {
    margin-top: 0.12rem;
  }

  .portal-num-captcha-digits {
    font-size: clamp(1.05rem, 4.5vw + 0.5rem, 1.2rem);
  }
}

.portal-num-captcha-hint.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Auth motion (login, OTP, password, first access) — subtle, institutional ─── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes portalAuthAmbient {
    0% {
      opacity: 0.78;
      transform: translate(-1.5%, -1%);
    }

    100% {
      opacity: 1;
      transform: translate(1.5%, 1%);
    }
  }

  @keyframes portalAuthRise {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes portalAuthRiseTight {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.97);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes portalInstBarReveal {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes portalFooterReveal {
    from {
      opacity: 0;
      transform: translateY(16px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes portalBarShine {
    0%,
    100% {
      transform: translateX(-55%) scaleX(0.85);
      opacity: 0.25;
    }

    50% {
      transform: translateX(55%) scaleX(1);
      opacity: 0.95;
    }
  }

  @keyframes portalAuthCardIntroGlow {
    0% {
      box-shadow: 0 4px 24px rgba(0, 26, 10, 0.08);
    }

    40% {
      box-shadow: 0 12px 40px rgba(0, 64, 26, 0.2);
    }

    100% {
      box-shadow: 0 4px 24px rgba(0, 26, 10, 0.08);
    }
  }

  @keyframes portalAuthHeroGlow {
    0% {
      opacity: 0.55;
      transform: scale(1) translate(0, 0);
    }

    100% {
      opacity: 0.95;
      transform: scale(1.06) translate(2%, -1%);
    }
  }

  .portal-sidebar-institution {
    animation: portalInstBarReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .portal-sidebar-institution::after {
    animation: portalBarShine 3.5s ease-in-out infinite;
  }

  .portal-sidebar-meta {
    animation: portalFooterReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  .portal-auth-hero-institution {
    animation: portalInstBarReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .portal-auth-hero-meta {
    animation: portalFooterReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  .portal-auth-hero::before {
    animation: portalAuthAmbient 18s ease-in-out infinite alternate;
  }

  .portal-auth-hero::after {
    animation: portalAuthHeroGlow 16s ease-in-out infinite alternate;
  }

  .portal-auth-hero-core > .portal-fccp-logo-shell--hero {
    animation: portalAuthRiseTight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    will-change: transform, opacity;
  }

  .portal-auth-hero-core > h1 {
    animation: portalAuthRise 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
  }

  .portal-auth-hero-core > p {
    animation: portalAuthRise 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
  }

  .portal-auth-card {
    animation:
      portalAuthRise 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
      portalAuthCardIntroGlow 2.65s ease-out 0.35s both;
  }

  .portal-auth-card .portal-auth-lead {
    animation: portalAuthRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  }

  .portal-auth-card .alert {
    animation: portalAuthRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }

  .portal-auth-card form {
    animation: portalAuthRise 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
  }

  .portal-auth-card .portal-auth-footer {
    animation: portalAuthRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
  }

  .portal-auth-card .form-control {
    transition:
      border-color 0.22s ease,
      box-shadow 0.28s ease,
      background-color 0.2s ease;
  }

  .portal-auth-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 64, 26, 0.12);
  }

  .portal-auth-card .btn-dark-green {
    transition:
      transform 0.2s ease,
      box-shadow 0.28s ease,
      background-color 0.2s ease,
      border-color 0.2s ease;
  }

  .portal-auth-card .btn-dark-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 64, 26, 0.28);
  }

  .portal-auth-card .btn-dark-green:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 64, 26, 0.2);
  }

  .portal-auth-footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .portal-auth-footer a:hover {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-sidebar-institution,
  .portal-sidebar-institution::after,
  .portal-sidebar-meta,
  .portal-auth-hero-institution,
  .portal-auth-hero-meta {
    animation: none !important;
  }

  .portal-auth-hero::before {
    animation: none !important;
  }

  .portal-auth-hero::after {
    animation: none !important;
  }

  .portal-auth-hero-core > .portal-fccp-logo-shell--hero,
  .portal-auth-hero-core > h1,
  .portal-auth-hero-core > p,
  .portal-auth-card,
  .portal-auth-card .portal-auth-lead,
  .portal-auth-card .alert,
  .portal-auth-card form,
  .portal-auth-card .portal-auth-footer {
    animation: none !important;
  }
}

@keyframes portalAppContentIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .portal-content {
    animation: portalAppContentIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* Font Awesome — keep icon font when body / headings use system UI stack */
.portal-app-body .fa-solid,
.portal-app-body .fas,
.portal-clerkship-apply .fa-solid,
.portal-clerkship-apply .fas,
.portal-sidebar .fa-solid,
.portal-topbar .fa-solid,
.portal-clerkship-apply .part-title .fa-solid,
.portal-clerkship-apply .wizard-nav .fa-solid,
.portal-clerkship-apply .add-btn .fa-solid,
.portal-clerkship-apply .btn .fa-solid,
.portal-clerkship-apply .success-icon .fa-solid {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  line-height: 1;
  font-variant: normal;
  text-rendering: auto;
}

.portal-app-body .fa-regular,
.portal-app-body .far {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.portal-clerkship-apply .part-title i,
.portal-clerkship-apply .wizard-nav i,
.portal-clerkship-apply .add-btn i,
.portal-clerkship-apply .btn i,
.portal-clerkship-apply .success-icon i {
  min-width: 1em;
  text-align: center;
}

/* ─── App shell (dashboard) ─── */
body.portal-app-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--portal-bg);
  color: #1a2e22;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  overflow-x: hidden;
}

.portal-app-wrap {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.portal-sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: visible;
  pointer-events: none;
}

.portal-app-wrap.sidebar-open .portal-sidebar-scrim {
  display: block;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .portal-app-wrap.sidebar-open .portal-sidebar-scrim {
    display: none;
  }
}

.portal-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100dvh;
  height: 100vh;
  width: min(262px, 92vw);
  max-width: 100%;
  background: var(--portal-sidebar);
  color: var(--portal-sidebar-text);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.portal-app-wrap.sidebar-open .portal-sidebar {
  transform: translateX(0);
}

@media (min-width: 992px) {
  .portal-sidebar {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    height: auto;
    min-height: 0;
    transform: none !important;
    flex-shrink: 0;
    box-shadow: none;
  }

  .portal-app-wrap.sidebar-open .portal-sidebar {
    transform: none;
  }
}

.portal-sidebar-brand {
  padding: 1.35rem 1.25rem 1.1rem;
}

.portal-sidebar-brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.portal-sidebar-brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--portal-sidebar-muted);
  margin-top: 0.15rem;
}

.portal-nav {
  flex: 1;
  padding: 1rem 0.65rem;
  overflow-y: auto;
}

.portal-nav-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--portal-sidebar-muted);
  padding: 0.5rem 0.85rem 0.35rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 2px;
  border-radius: 8px;
  color: var(--portal-sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-nav-link i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.portal-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-nav-link.active i {
  opacity: 1;
}

.portal-sidebar-foot {
  padding: 0.65rem 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar-foot .portal-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.portal-sidebar-foot .portal-logout-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .portal-main {
    margin-left: 0;
  }
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.75rem 0.65rem;
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgba(240, 243, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--portal-border);
}

@media (min-width: 768px) {
  .portal-topbar {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  }
}

.portal-topbar .portal-fccp-logo-shell--topbar {
  flex-shrink: 0;
}

.portal-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  color: var(--portal-green);
  cursor: pointer;
}

@media (min-width: 992px) {
  .portal-menu-toggle {
    display: none;
  }
}

.portal-page-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.92rem, 0.82rem + 0.9vw, 1.1rem);
  font-weight: 700;
  color: #0f2418;
  letter-spacing: -0.02em;
}

.portal-content {
  flex: 1;
  padding: 1.25rem 1rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  max-width: min(1100px, 100%);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 768px) {
  .portal-content {
    padding: 1.5rem 1.5rem 3rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  }
}

.portal-panel {
  background: var(--portal-card);
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  padding: 1.25rem 1.15rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .portal-panel {
    padding: 1.5rem 1.5rem;
  }
}

.portal-panel + .portal-panel {
  margin-top: 1rem;
}

.portal-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f2418;
}

.portal-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

@media (min-width: 560px) {
  .portal-kv {
    grid-template-columns: minmax(140px, 34%) 1fr;
  }
}

.portal-kv dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7c71;
  font-weight: 600;
  margin: 0;
}

.portal-kv dd {
  margin: 0;
  font-size: 0.9rem;
  color: #1a2e22;
}

.portal-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .portal-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-stat-card {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.portal-stat-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7c71;
  font-weight: 600;
}

.portal-stat-card .value {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: #0f2418;
}

.portal-stat-card a {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--portal-green);
  text-decoration: none;
}

.portal-stat-card a:hover {
  text-decoration: underline;
}

.portal-subhead {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-green);
  margin: 1.25rem 0 0.65rem;
}

.portal-subhead:first-child {
  margin-top: 0;
}

.portal-read-block {
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.clerkship-test-page .form-control:focus {
  border-color: var(--portal-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 64, 26, 0.15);
}

/* ─── Application readonly (PDF-style sections & tables) ─── */
.app-ro-doc {
  max-width: 100%;
}

.app-ro-block {
  margin-bottom: 1.35rem;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--portal-shadow);
}

.app-ro-title {
  background: #144b17;
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.app-ro-body {
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-ro-sub {
  font-weight: 700;
  font-size: 0.8125rem;
  margin: 0.85rem 0 0.45rem;
  color: #0d4a1f;
}

.app-ro-sub:first-child {
  margin-top: 0;
}

table.app-ro-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

table.app-ro-grid td {
  border: 1px solid #dee5e0;
  padding: 0.5rem 0.65rem;
  vertical-align: top;
}

table.app-ro-grid td.app-ro-lbl {
  font-weight: 600;
  background: #f0f5f2;
  width: 24%;
  min-width: 7rem;
  color: #3d5247;
}

table.app-ro-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-bottom: 0.65rem;
}

table.app-ro-list th {
  background: #095e0d;
  color: #fff;
  text-align: left;
  padding: 0.45rem 0.6rem;
  font-weight: 600;
  font-size: 0.72rem;
}

table.app-ro-list td {
  border: 1px solid #dee5e0;
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}

table.app-ro-list tbody tr:nth-child(even) td {
  background: #f9fbf9;
}

table.app-ro-grid td,
table.app-ro-list td,
table.app-ro-list th {
  word-break: break-word;
  overflow-wrap: anywhere;
}

table.app-ro-profile {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

table.app-ro-profile td.app-ro-photo {
  width: 112px;
  vertical-align: top;
  padding-right: 12px;
}

@media (max-width: 575.98px) {
  table.app-ro-profile > tbody > tr {
    display: flex;
    flex-direction: column;
  }

  table.app-ro-profile > tbody > tr > td.app-ro-photo,
  table.app-ro-profile > tbody > tr > td:not(.app-ro-photo) {
    display: block;
    width: 100% !important;
  }

  table.app-ro-profile > tbody > tr > td.app-ro-photo {
    padding-right: 0;
    padding-bottom: 0.85rem;
    text-align: center;
  }

  table.app-ro-profile .app-ro-profile-img,
  table.app-ro-profile .app-ro-profile-ph {
    margin-left: auto;
    margin-right: auto;
  }

  table.app-ro-grid td.app-ro-lbl {
    width: 32%;
    min-width: 5.25rem;
  }

  table.app-ro-grid,
  table.app-ro-list {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .app-ro-body {
    padding: 0.75rem 0.65rem;
  }

  .app-ro-title {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.65rem;
  }
}

@media (min-width: 1400px) {
  .portal-content {
    max-width: min(1100px, 94vw);
  }
}

.app-ro-profile-img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border: 2px solid #1a2e22;
  border-radius: 4px;
  display: block;
}

.app-ro-profile-ph {
  width: 100px;
  min-height: 120px;
  border: 2px dashed #b8c8be;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #6b7c71;
  text-align: center;
  padding: 0.4rem;
  background: #f5f8f6;
}

.app-ro-statement {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.875rem;
  border: 1px solid #dee5e0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: #fafdfb;
}

.app-ro-badge-yes {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f5e9;
  color: #1b5e20;
}

.app-ro-badge-no {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fce4ec;
  color: #b71c1c;
}

/* Match main site primary actions (portal does not load style2.css) */
.btn-dark-green {
  background-color: var(--portal-green);
  border-color: var(--portal-green);
  color: #fff;
}

.btn-dark-green:hover,
.btn-dark-green:focus {
  background-color: #003015;
  border-color: #003015;
  color: #fff;
}

/* iOS: avoid focus-zoom on small auth fields */
@media (max-width: 576px) {
  .portal-auth-card .form-control {
    font-size: 1rem;
  }
}

.clerkship-test-page .test-answer-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Clerkship apply wizard (inside applicant portal) ── */
.portal-clerkship-apply {
  --primary: var(--portal-green);
  --primary-dark: #003015;
  --primary-light: var(--portal-green-light);
  --accent: #c9a84c;
  --card-bg: var(--portal-card);
  --border: var(--portal-border);
  --radius: var(--portal-radius);
  --shadow: var(--portal-shadow);
  --text-muted: #64748b;
  --text-main: #1e293b;
}

.portal-clerkship-intro .portal-panel-title {
  font-size: 1.15rem;
}

.portal-clerkship-apply.wizard-wrapper {
  padding: 0 0 1.5rem;
}

.portal-clerkship-apply .step-bar {
  background: var(--portal-card);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--portal-border);
}

.portal-clerkship-apply .steps-track {
  display: flex;
  align-items: flex-start;
  min-width: 700px;
  padding-bottom: 0.25rem;
}

.portal-clerkship-apply .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  /* Fixed rail height: bubble + label area below the connector line */
  padding-bottom: 3.25rem;
}

.portal-clerkship-apply .step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--portal-border);
  z-index: 0;
  pointer-events: none;
  transition: background 0.25s ease;
}

.portal-clerkship-apply .step-item.segment-complete:not(:last-child)::after {
  background: var(--portal-green);
}

.portal-clerkship-apply .step-bubble {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--portal-border);
  background: #fff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.portal-clerkship-apply .step-item.active .step-bubble,
.portal-clerkship-apply .step-item.completed .step-bubble {
  background: var(--portal-green);
  border-color: var(--portal-green);
  color: #fff;
}

.portal-clerkship-apply .step-item.active .step-bubble {
  box-shadow: 0 0 0 4px rgba(0, 64, 26, 0.15);
}

.portal-clerkship-apply .step-label {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 7.5rem;
  margin-top: 0;
  padding: 0 0.15rem;
  font-size: 0.65rem;
  line-height: 1.25;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
}

.portal-clerkship-apply .step-item.active .step-label,
.portal-clerkship-apply .step-item.completed .step-label {
  color: var(--portal-green);
}

.portal-clerkship-apply .form-card {
  background: var(--portal-card);
  border-radius: var(--portal-radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--portal-shadow);
  border: 1px solid var(--portal-border);
  scroll-margin-top: 1rem;
}

.portal-clerkship-apply .step-panel {
  display: none;
}

.portal-clerkship-apply .step-panel.active {
  display: block;
}

.portal-clerkship-apply .part-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--portal-green);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.5rem;
}

.portal-clerkship-apply .section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--portal-green-light);
  background: #f0f6f1;
  padding: 0.4rem 0.8rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  margin: 1.2rem 0 0.9rem;
}

.portal-clerkship-apply .radio-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.portal-clerkship-apply .radio-btn input[type='radio'] {
  display: none;
}

.portal-clerkship-apply .radio-btn label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--portal-border);
  border-radius: var(--portal-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  background: #f8faf8;
}

.portal-clerkship-apply .radio-btn input[type='radio']:checked + label {
  background: var(--portal-green);
  color: #fff;
  border-color: var(--portal-green);
}

.portal-clerkship-apply .yn-group {
  display: flex;
  gap: 0.6rem;
}

.portal-clerkship-apply .yn-btn input[type='radio'] {
  display: none;
}

.portal-clerkship-apply .yn-btn label {
  padding: 0.38rem 0.9rem;
  border: 1.5px solid var(--portal-border);
  border-radius: var(--portal-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: #f8faf8;
}

.portal-clerkship-apply .yn-btn.yes input[type='radio']:checked + label {
  background: #006622;
  color: #fff;
  border-color: #006622;
}

.portal-clerkship-apply .yn-btn.no input[type='radio']:checked + label {
  background: #a81c1c;
  color: #fff;
  border-color: #a81c1c;
}

.portal-clerkship-apply .rep-block {
  border: 1.5px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  background: #fafcfa;
  position: relative;
}

.portal-clerkship-apply .rep-block .remove-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: #fdecea;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
  font-size: 0.8rem;
  cursor: pointer;
}

.portal-clerkship-apply .add-btn {
  border: 1.5px dashed var(--portal-green);
  background: transparent;
  color: var(--portal-green);
  border-radius: var(--portal-radius);
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-clerkship-apply .lang-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.4rem;
}

.portal-clerkship-apply .lang-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
}

.portal-clerkship-apply .wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--portal-border);
}

.portal-clerkship-apply .btn-prev,
.portal-clerkship-apply .btn-next,
.portal-clerkship-apply .btn-submit {
  padding: 0.6rem 1.6rem;
  border-radius: var(--portal-radius);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.portal-clerkship-apply .btn-prev {
  background: #f0f6f1;
  color: var(--portal-green);
}

.portal-clerkship-apply .btn-next {
  background: var(--portal-green);
  color: #fff;
}

.portal-clerkship-apply .btn-submit {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.portal-clerkship-apply .btn-prev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.portal-clerkship-apply .step-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.portal-clerkship-apply #successScreen {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.portal-clerkship-apply #successScreen .success-icon {
  width: 72px;
  height: 72px;
  background: #e8f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--portal-green);
  margin: 0 auto 1.2rem;
}

.portal-clerkship-apply #successScreen h2 {
  color: var(--portal-green);
  font-size: 1.7rem;
}

@media (max-width: 576px) {
  .portal-clerkship-apply .form-card {
    padding: 1.3rem 1rem;
  }

  .portal-clerkship-apply .step-bar {
    padding: 0.9rem 0.8rem;
  }
}

.portal-clerkship-apply .profile-image-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.portal-clerkship-apply .profile-image-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid var(--portal-border, #d1e7d9);
  background: #fff;
}

.portal-instructions-box {
  background: #f4f8f5;
  border: 1px solid #d1e7d9;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.portal-instructions-box--content {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  word-break: break-word;
}

.portal-instructions-plain {
  white-space: pre-wrap;
}

.portal-instructions-box--content h1,
.portal-instructions-box--content h2,
.portal-instructions-box--content h3,
.portal-instructions-box--content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #1e293b;
}

.portal-instructions-box--content h1:first-child,
.portal-instructions-box--content h2:first-child,
.portal-instructions-box--content h3:first-child,
.portal-instructions-box--content p:first-child {
  margin-top: 0;
}

.portal-instructions-box--content p {
  margin-bottom: 0.65rem;
}

.portal-instructions-box--content ul,
.portal-instructions-box--content ol {
  margin-bottom: 0.65rem;
  padding-left: 1.35rem;
}

.portal-instructions-box--content li {
  margin-bottom: 0.35rem;
}

.portal-instructions-box--content strong {
  font-weight: 700;
}