/* All presentation rules are scoped to the portal component. */
.cp-shell{--cp-accent:#007f88;--cp-ink:#102b46;box-sizing:border-box;display:grid;grid-template-columns:minmax(260px,.85fr) minmax(320px,1.15fr);max-width:1080px;margin:36px auto;background:#fff;border:1px solid #e3e9f4;border-radius:24px;overflow:hidden;box-shadow:0 24px 70px #1f3c6a14;color:var(--cp-ink);font-family:Tahoma,Arial,sans-serif;text-align:right;font-size:15px;line-height:1.9}
.cp-shell *{box-sizing:border-box}.cp-story{background:linear-gradient(145deg,#102b46,#007f88);color:#fff;padding:48px 32px;position:relative}.cp-shell h2{font-size:28px;line-height:1.65;margin:20px 0 12px;font-weight:700;color:inherit}.cp-story p{color:#e1eaff}.cp-badge{display:inline-block;padding:5px 14px;border:1px solid #ffffff55;border-radius:24px;font-size:13px}.cp-story ol{padding-right:22px;line-height:2.8}.cp-card{padding:40px;min-width:0}.cp-card>p{color:#68778e;margin-bottom:24px}.cp-kicker{font-size:13px;color:var(--cp-accent);font-weight:bold}.cp-shell .form-item{margin:0 0 18px}.cp-shell label{display:block;color:#263957;font-size:14px;margin-bottom:7px}.cp-shell input[type=text],.cp-shell input[type=email],.cp-shell input[type=password]{width:100%;max-width:100%;height:48px;border:1px solid #ced8e8;border-radius:10px;padding:10px 13px;background:#f9fbff;color:#102b46;font:inherit;box-shadow:none}.cp-shell input:focus{outline:3px solid #9cddd9;border-color:#007f88}.cp-shell input[type=email],.cp-shell input[name=slug],.cp-shell input[name=national_id],.cp-shell input[name=phone]{direction:ltr;text-align:left}.cp-shell .description{color:#6e7b91;font-size:12px;margin-top:5px}.cp-shell .form-type-checkbox label{display:inline}.cp-shell .form-actions{margin:25px 0 0}.cp-shell input[type=submit],.cp-shell button[type=submit]{border:0;border-radius:10px;background:#007f88;color:#fff;width:100%;padding:13px 20px;font:inherit;font-weight:bold;cursor:pointer;min-height:48px}.cp-shell input[type=submit]:hover{background:#00666e}.cp-footer{margin-top:26px;border-top:1px solid #e6edf6;padding-top:20px;color:#64748b}.cp-shell a{color:#007f88}.cp-art{margin:40px 0;display:flex;flex-wrap:wrap;gap:10px;padding:24px;border:1px solid #ffffff38;border-radius:18px;background:#ffffff10;transform:rotate(-3deg)}.cp-art span{padding:12px;border-radius:10px;background:#ffffff20;font-size:13px}.cp-note{font-size:12px}.cp-shell .cp-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.cp-login{min-height:510px}.cp-shell .password-strength,.cp-shell .password-confirm{max-width:100%;font-size:12px}.cp-shell .password-suggestions{max-width:100%}.cp-shell .form-item--error-message{color:#a0162b}
@media(max-width:760px){.cp-shell{grid-template-columns:1fr;margin:16px auto;border-radius:16px}.cp-story{padding:24px}.cp-story h2{font-size:23px}.cp-art,.cp-story ol,.cp-note{display:none}.cp-card{padding:24px}.cp-shell h2{font-size:23px}}

/* Brand assets and applicant dashboard. */
.cp-logo{display:block;max-width:100%;width:230px;height:auto;margin:0 auto 28px;border-radius:14px;background:#fff;padding:10px}.cp-shell .cp-story-link{color:#fff;text-decoration:underline;text-underline-offset:4px}.cp-shell input:focus-visible,.cp-shell a:focus-visible,.cp-shell button:focus-visible{outline:3px solid #48bf91;outline-offset:3px}.cp-details{margin:24px 0}.cp-details>div{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr);gap:12px;padding:12px 0;border-bottom:1px solid #e3edf0}.cp-details dt{color:#556979}.cp-details dd{margin:0;overflow-wrap:anywhere}.cp-reason{background:#fff7e8;border:1px solid #ecd49d;border-radius:12px;padding:16px;margin:20px 0}.cp-reason h3{font-size:16px;margin:0 0 10px}.cp-reason p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.cp-shell .cp-action{display:block;border-radius:10px;padding:12px 20px;background:#007f88;color:#fff;text-align:center;text-decoration:none;font-weight:bold}.cp-shell .cp-action:hover{background:#00666e}.cp-shell textarea{width:100%;border:1px solid #ced8e8;border-radius:10px;padding:12px;font:inherit}.cp-shell .cp-kicker{color:#006d73}.cp-dashboard .cp-badge{border-color:#48bf91}.cp-shell a:hover{text-decoration:underline}@media(max-width:760px){.cp-logo{width:155px;margin:0 0 16px}.cp-details>div{grid-template-columns:1fr;gap:3px}}

/* Compact spacing without replacing Olivero or its navigation. Only the
 * main content that actually renders a portal component opts in. */
.main-content:has(main .cp-shell) .main-content__container {
  max-width: 72rem;
  margin-inline: auto;
  padding-block-start: clamp(12px, 2vw, 24px);
  padding-inline: clamp(12px, 2.5vw, 28px);
}

/* Reclaim the social rail only if the theme rendered no social region. */
.layout-main:not(:has(> .social-bar > *)) > .main-content:has(main .cp-shell) {
  width: 100%;
  margin-inline: 0;
}

.layout-main:has(> .main-content main .cp-shell) > .social-bar:not(:has(*)) {
  display: none;
}

.main-content:has(main .cp-shell) :is(.region--breadcrumb, .block-page-title-block) {
  margin-block-end: 10px;
}

.main-content:has(main .cp-shell) .block-page-title-block h1 {
  margin-block: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
}

.main-content main .block-system-main-block:has(.cp-shell) {
  grid-column: 1 / -1;
  min-width: 0;
}

.cp-shell {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  max-width: 68.5rem;
  margin-block: 0 18px;
  border-radius: 16px;
  line-height: 1.75;
  box-shadow: 0 10px 28px #1f3c6a12;
}

.cp-story,
.cp-card {
  padding: clamp(16px, 3vw, 28px);
}

.cp-shell h2 {
  margin-block: 8px 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
}

.cp-card > p { margin-block: 0 14px; }
.cp-story ol { margin-block: 10px; line-height: 1.85; }
.cp-logo { width: 185px; margin-block-end: 12px; }
.cp-art { margin-block: 14px; padding: 10px; gap: 6px; transform: none; }
.cp-art span { padding: 5px 8px; }
.cp-footer { margin-block-start: 16px; padding-block-start: 12px; }
.cp-login { min-height: 0; }

@media (max-width: 760px) {
  .cp-shell { grid-template-columns: minmax(0, 1fr); }
  .cp-logo { width: 145px; }
}
