:root {
  --rjp-pink: #ff5f7f;
  --rjp-pink-dark: #c52d54;
  --rjp-pink-pale: #fff5f8;
  --rjp-ink: #242126;
  --rjp-muted: #716b72;
  --rjp-line: #ebe5e8;
  --rjp-white: #fff;
  --rjp-container: 1180px;
  --rjp-shadow: 0 18px 50px rgba(74, 41, 54, 0.09);
}

body.rjp-public-home,
body.rjp-public-school-entry,
body.rjp-public-application-closed {
  margin: 0;
  color: var(--rjp-ink);
  background: var(--rjp-white);
  overflow-x: clip;
}

body.rjp-public-home *,
body.rjp-public-home *::before,
body.rjp-public-home *::after,
body.rjp-public-school-entry *,
body.rjp-public-school-entry *::before,
body.rjp-public-school-entry *::after,
body.rjp-public-application-closed *,
body.rjp-public-application-closed *::before,
body.rjp-public-application-closed *::after {
  box-sizing: border-box;
}

.rjp-container {
  width: min(var(--rjp-container), calc(100% - 48px));
  margin-inline: auto;
}

.rjp-skip-link {
  position: fixed;
  z-index: 99999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--rjp-ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.rjp-skip-link:focus {
  transform: translateY(0);
}

.rjp-site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(235, 229, 232, 0.9);
  backdrop-filter: blur(14px);
}

body.admin-bar .rjp-site-header {
  top: 32px;
}

.rjp-site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.rjp-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--rjp-pink-dark);
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.rjp-brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rjp-site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.rjp-site-nav a {
  color: #514c52;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.rjp-site-nav a:hover,
.rjp-site-nav a:focus-visible {
  color: var(--rjp-pink-dark);
}

.rjp-header-cta {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--rjp-pink-dark);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.rjp-page {
  width: 100%;
  min-width: 0;
}

.rjp-hero {
  padding: 28px 0 64px;
  background: linear-gradient(180deg, #fff 0%, #fff9fb 100%);
}

.rjp-hero__panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--rjp-pink-pale);
  border: 1px solid #f4e1e7;
  border-radius: 30px;
  box-shadow: var(--rjp-shadow);
}

.rjp-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 249, 251, 0.98) 0%, rgba(255, 249, 251, 0.93) 38%, rgba(255, 249, 251, 0.2) 66%, rgba(255, 255, 255, 0) 100%);
}

.rjp-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.rjp-hero__copy {
  position: relative;
  z-index: 2;
  width: min(630px, 57%);
  min-height: 610px;
  padding: clamp(58px, 7vw, 94px) clamp(30px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.rjp-eyebrow {
  margin: 0 0 14px;
  color: var(--rjp-pink-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rjp-hero h1,
.rjp-subhero h1 {
  margin: 0;
  color: var(--rjp-ink);
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rjp-hero__copy > p:not(.rjp-eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: #5f5960;
  font-size: 16px;
  line-height: 1.95;
}

.rjp-hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rjp-button {
  min-height: 52px;
  padding: 13px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rjp-button:hover,
.rjp-button:focus-visible {
  transform: translateY(-2px);
}

.rjp-button--primary {
  color: #fff;
  background: var(--rjp-pink-dark);
  box-shadow: 0 10px 24px rgba(197, 45, 84, 0.2);
}

.rjp-button--primary:hover,
.rjp-button--primary:focus-visible {
  color: #fff;
  background: #a92246;
}

.rjp-button--secondary {
  color: var(--rjp-pink-dark);
  background: rgba(255, 255, 255, 0.92);
  border-color: #e9aebe;
}

.rjp-button--secondary:hover,
.rjp-button--secondary:focus-visible {
  color: #9e1e43;
  background: #fff;
}

.rjp-button--dark {
  color: #fff;
  background: var(--rjp-ink);
}

.rjp-button--dark:hover,
.rjp-button--dark:focus-visible {
  color: #fff;
  background: #0c0b0d;
}

.rjp-section {
  padding: clamp(76px, 9vw, 118px) 0;
  scroll-margin-top: 84px;
}

.rjp-section-heading {
  max-width: 700px;
  margin: 0 auto 46px;
  text-align: center;
}

.rjp-section-heading--left {
  max-width: 760px;
  margin-left: 0;
  text-align: left;
}

.rjp-section-heading h2,
.rjp-school-contact h2 {
  margin: 0;
  color: var(--rjp-ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rjp-section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--rjp-muted);
  font-size: 16px;
  line-height: 1.9;
}

.rjp-about {
  background: #fff;
}

.rjp-flow {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
}

.rjp-flow li {
  min-width: 0;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--rjp-line);
  border-radius: 20px;
}

.rjp-flow li > span {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--rjp-pink-dark);
  background: var(--rjp-pink-pale);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
}

.rjp-flow h3,
.rjp-company-card h3,
.rjp-join-card h3,
.rjp-school-benefits h3 {
  margin: 0;
  color: var(--rjp-ink);
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rjp-flow h3 {
  font-size: 19px;
}

.rjp-flow p,
.rjp-company-card p,
.rjp-join-card > p:not(.rjp-join-card__label),
.rjp-school-benefits p,
.rjp-school-contact__panel > div > p:last-child {
  margin: 10px 0 0;
  color: var(--rjp-muted);
  font-size: 14px;
  line-height: 1.85;
}

.rjp-companies {
  background: #faf8f9;
}

.rjp-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rjp-company-card {
  min-width: 0;
  min-height: 180px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--rjp-line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(53, 39, 45, 0.045);
}

.rjp-company-card__logo {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--rjp-pink-dark);
  background: #fff8fa;
  border: 1px solid #f2e4e9;
  border-radius: 16px;
  font-size: 26px;
  font-weight: 850;
}

.rjp-company-card__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px;
}

.rjp-company-card__body {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0;
}

.rjp-company-card h3 {
  font-size: 18px;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.rjp-company-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.rjp-empty {
  margin: 0;
  padding: 36px;
  color: var(--rjp-muted);
  background: #fff;
  border: 1px solid var(--rjp-line);
  border-radius: 18px;
  text-align: center;
}

.rjp-participate {
  background: #fff;
}

.rjp-participate__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rjp-join-card {
  min-width: 0;
  min-height: 330px;
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 26px;
}

.rjp-join-card--company {
  background: var(--rjp-pink-pale);
  border: 1px solid #f3dce3;
}

.rjp-join-card--school {
  background: #f1f0f2;
  border: 1px solid #e4e1e5;
}

.rjp-join-card__label {
  margin: 0 0 12px;
  color: var(--rjp-pink-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rjp-join-card h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.rjp-join-card > p:not(.rjp-join-card__label) {
  max-width: 470px;
  margin-bottom: 28px;
  font-size: 16px;
}

.rjp-join-card .rjp-button {
  margin-top: auto;
}

.rjp-subhero {
  padding: clamp(78px, 10vw, 130px) 0;
  background: linear-gradient(135deg, #fff2f6 0%, #fff 72%);
  border-bottom: 1px solid #f3e1e6;
}

.rjp-subhero__inner {
  max-width: 850px;
  text-align: center;
}

.rjp-subhero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.rjp-subhero__inner > p:last-child {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--rjp-muted);
  font-size: 17px;
  line-height: 1.9;
}

.rjp-school-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rjp-school-benefits article {
  min-width: 0;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--rjp-line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(53, 39, 45, 0.04);
}

.rjp-school-benefits article > span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--rjp-pink-dark);
  font-size: 13px;
  font-weight: 850;
}

.rjp-school-benefits h3 {
  font-size: 20px;
}

.rjp-school-contact {
  padding-top: 20px;
  background: #fff;
}

.rjp-school-contact__panel {
  padding: clamp(38px, 6vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  background: var(--rjp-pink-pale);
  border: 1px solid #f1dce3;
  border-radius: 26px;
}

.rjp-school-contact__panel > div {
  max-width: 700px;
}

.rjp-school-contact__panel .rjp-button {
  flex: 0 0 auto;
}

.rjp-school-contact__notice {
  color: var(--rjp-muted);
  font-weight: 700;
}

.rjp-school-contact__back {
  margin: 28px 0 0;
  text-align: center;
}

.rjp-school-contact__back a {
  color: var(--rjp-pink-dark);
  font-weight: 750;
}

.rjp-site-footer {
  padding: 54px 0 24px;
  color: #fff;
  background: #272329;
}

.rjp-site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.rjp-site-footer__brand strong {
  font-size: 28px;
  letter-spacing: -0.035em;
}

.rjp-site-footer__brand p {
  margin: 9px 0 0;
  color: #cfc9d0;
  font-size: 13px;
}

.rjp-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.rjp-site-footer a {
  color: #eee9ef;
  font-size: 13px;
  text-decoration: none;
}

.rjp-site-footer__copyright {
  width: min(var(--rjp-container), calc(100% - 48px));
  margin: 42px auto 0;
  padding-top: 20px;
  color: #aaa3ab;
  border-top: 1px solid #474148;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .rjp-site-nav {
    display: none;
  }

  .rjp-header-cta {
    margin-left: auto;
  }

  .rjp-hero__panel {
    min-height: 560px;
  }

  .rjp-hero__copy {
    width: min(620px, 66%);
    min-height: 560px;
  }

  .rjp-flow {
    grid-template-columns: 1fr;
  }

  .rjp-flow li {
    align-items: center;
  }

  .rjp-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  body.admin-bar .rjp-site-header {
    top: 46px;
  }

  .rjp-hero {
    padding: 18px 0 48px;
  }

  .rjp-hero__panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }

  .rjp-hero__panel::after {
    display: none;
  }

  .rjp-hero__image {
    position: static;
    order: 2;
    aspect-ratio: 16 / 10;
    height: auto;
    object-position: 72% center;
  }

  .rjp-hero__copy {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 44px 32px 36px;
    background: linear-gradient(160deg, #fff6f8 0%, #fff 100%);
  }

  .rjp-hero h1 br {
    display: none;
  }

  .rjp-hero__actions {
    width: 100%;
  }

  .rjp-hero__actions .rjp-button {
    flex: 1 1 220px;
  }

  .rjp-participate__grid,
  .rjp-school-benefits {
    grid-template-columns: 1fr;
  }

  .rjp-school-contact__panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .rjp-site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .rjp-container {
    width: min(100% - 32px, var(--rjp-container));
  }

  .rjp-site-header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .rjp-brand {
    gap: 7px;
    font-size: 21px;
  }

  .rjp-brand img {
    width: 32px;
    height: 32px;
  }

  .rjp-header-cta {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13px;
  }

  .rjp-hero__copy {
    padding: 36px 22px 30px;
  }

  .rjp-hero h1,
  .rjp-subhero h1 {
    font-size: clamp(30px, 9vw, 39px);
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .rjp-hero__copy > p:not(.rjp-eyebrow) {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.85;
  }

  .rjp-hero__actions {
    margin-top: 26px;
    flex-direction: column;
  }

  .rjp-hero__actions .rjp-button,
  .rjp-button {
    width: 100%;
    flex: 0 0 auto;
  }

  .rjp-section {
    padding: 70px 0;
  }

  .rjp-section-heading {
    margin-bottom: 32px;
    text-align: left;
  }

  .rjp-section-heading h2,
  .rjp-school-contact h2 {
    font-size: clamp(28px, 8vw, 36px);
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .rjp-section-heading > p:last-child {
    font-size: 14px;
  }

  .rjp-flow li {
    padding: 22px;
    align-items: flex-start;
  }

  .rjp-flow li > span {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .rjp-company-grid {
    grid-template-columns: 1fr;
  }

  .rjp-company-card {
    min-height: 0;
    padding: 20px;
    gap: 16px;
  }

  .rjp-company-card__logo {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .rjp-company-card p {
    -webkit-line-clamp: 5;
  }

  .rjp-join-card {
    min-height: 300px;
    padding: 32px 24px;
    border-radius: 22px;
  }

  .rjp-subhero {
    padding: 72px 0;
  }

  .rjp-subhero__inner {
    text-align: left;
  }

  .rjp-subhero__inner > p:last-child {
    font-size: 15px;
  }

  .rjp-school-benefits article {
    padding: 28px 24px;
  }

  .rjp-school-contact__panel {
    padding: 32px 24px;
    gap: 28px;
    border-radius: 22px;
  }

  .rjp-site-footer__copyright {
    width: min(100% - 32px, var(--rjp-container));
  }
}

@media (max-width: 360px) {
  .rjp-container {
    width: min(100% - 24px, var(--rjp-container));
  }

  .rjp-header-cta {
    padding-inline: 13px;
  }

  .rjp-hero__copy {
    padding-inline: 18px;
  }

  .rjp-flow li,
  .rjp-company-card {
    padding: 18px;
  }

  .rjp-company-card {
    flex-direction: column;
  }

  .rjp-company-card__body {
    width: 100%;
  }

  .rjp-site-footer__copyright {
    width: min(100% - 24px, var(--rjp-container));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjp-button {
    transition: none;
  }
}

/* The legacy engine's closed application page shares the public-site shell. */
.rjp-closed-entry {
  min-height: 55vh;
  background: linear-gradient(180deg, var(--rjp-pink-pale), #fff 72%);
}

.rjp-closed-entry .rhrm-container {
  width: min(860px, calc(100% - 48px));
  max-width: none;
  padding: clamp(48px, 7vw, 88px) 0 96px;
}

.rjp-closed-entry .rhrm-apply-title {
  margin: 8px 0 28px;
  color: var(--rjp-ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.rjp-closed-entry .rhrm-complete-card {
  max-width: none;
  padding: clamp(24px, 4vw, 42px);
  border-color: #f0dce3;
  border-radius: 24px;
  box-shadow: var(--rjp-shadow);
}

.rjp-closed-entry .rhrm-complete-card p {
  color: #514c52;
  font-size: 16px;
}

.rjp-closed-entry .rhrm-complete-card__actions {
  gap: 14px;
}

.rjp-closed-entry .rhrm-complete-card__login,
.rjp-closed-entry .rhrm-complete-card__contact {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.rjp-closed-entry .rhrm-complete-card__contact {
  border: 1px solid var(--rjp-pink-dark);
  color: var(--rjp-pink-dark);
  background: #fff;
}

.rjp-closed-entry .rhrm-complete-card__contact:hover,
.rjp-closed-entry .rhrm-complete-card__contact:focus-visible {
  color: #fff;
  background: var(--rjp-pink-dark);
}

.rjp-closed-entry .rhrm-complete-card__contact-unavailable {
  margin: 0;
}

.rjp-closed-entry__back {
  margin: 28px 0 0;
  text-align: center;
}

.rjp-closed-entry__back a {
  color: var(--rjp-pink-dark);
  font-weight: 700;
}

@media (max-width: 640px) {
  .rjp-closed-entry .rhrm-container {
    width: min(100% - 32px, 860px);
    padding: 48px 0 72px;
  }

  .rjp-closed-entry .rhrm-complete-card__actions {
    align-items: stretch;
    flex-direction: column;
  }
}
