.rrwh-registration {
  --rrwh-accent: var(--rr-accent, #7b43c7);
  --rrwh-accent-soft: var(--rr-accent-soft, #6d35b5);
  position: relative;
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  overflow: hidden;
  border: 1px solid #ddd7e8;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 67, 199, .09), transparent 34%),
    #fff;
  color: #17131c;
  box-shadow: 0 18px 40px rgba(35, 24, 48, .1);
}

.rrwh-registration [hidden] {
  display: none !important;
}

.rrwh-registration::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(35,24,48,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(35,24,48,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

.rrwh-registration > * {
  position: relative;
}

.rrwh-registration__eyebrow {
  margin-bottom: .35rem;
  color: var(--rrwh-accent-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rrwh-registration h2,
.rrwh-registration h3 {
  margin: 0;
  color: #17131c;
  line-height: 1.15;
}

.rrwh-registration h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.rrwh-registration__date {
  margin: .4rem 0 1rem;
  color: #7541d8 !important;
  opacity: 1 !important;
  font-weight: 800;
}

.rrwh-registration__form {
  display: grid;
  gap: .7rem;
}

.rrwh-registration__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
}

.rrwh-registration label:not(.rrwh-check):not(.rrwh-honeypot) {
  display: grid;
  gap: .25rem;
}

.rrwh-registration label > span {
  color: #2a2430;
  font-size: .8rem;
  font-weight: 700;
}

.rrwh-registration input[type="text"],
.rrwh-registration input[type="email"],
.rrwh-registration input[type="search"],
.rrwh-registration input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9c2d3;
  border-radius: 9px;
  background: #fff;
  color: #17131c;
  padding: .62rem .72rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.rrwh-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
  margin: .15rem 0 .25rem;
  padding: .75rem;
  border: 1px solid #d8d1e1;
  border-radius: 10px;
  background: #faf8fc;
}

.rrwh-profile-fields small {
  grid-column: 1 / -1;
  color: #62596d;
}

.rrwh-registration input:focus {
  border-color: var(--rrwh-accent);
  box-shadow: 0 0 0 3px rgba(215, 176, 255, .14);
}

.rrwh-country {
  position: relative;
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
}

.rrwh-country__options {
  position: absolute !important;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #c9c2d3;
  border-radius: 9px;
  background: #fff;
  padding: .3rem;
  box-shadow: 0 16px 35px rgba(35, 24, 48, .18);
}

.rrwh-country__options button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: .55rem .65rem;
  color: #211b27;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rrwh-country__options button:hover,
.rrwh-country__options button:focus {
  outline: none;
  background: rgba(123, 67, 199, .1);
  color: #211b27;
}

.rrwh-span-2 {
  grid-column: 1 / -1;
}

.rrwh-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: .55rem;
  padding: .1rem 0;
}

.rrwh-check input {
  margin-top: .16rem;
  accent-color: #a967ee;
}

.rrwh-check span {
  color: #403849 !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

.rrwh-check a {
  color: #6d35b5;
  text-decoration: underline;
}

.rrwh-registration__submit,
.rrwh-registration__success-actions a,
.rrwh-related__submit,
.rrwh-profile-offer__reveal,
.rrwh-profile-offer__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #b979f4, #7541d8);
  color: #fff !important;
  padding: .68rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(117, 65, 216, .28);
}

.rrwh-profile-offer {
  margin-top: 1.15rem;
  padding: 1.1rem;
  border: 1px solid #d8d1e1;
  border-radius: 12px;
  background: #faf8fc;
}

.rrwh-profile-offer > p {
  color: #403849;
}

.rrwh-profile-offer__label {
  margin: 0 0 .25rem;
  color: #6d35b5 !important;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rrwh-profile-offer__form {
  display: grid;
  gap: .65rem;
  margin-top: .8rem;
}

.rrwh-profile-offer__submit:disabled {
  cursor: wait;
  opacity: .65;
}

.rrwh-related {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid #ded7e7;
}

.rrwh-related > p {
  color: #403849;
}

.rrwh-related .rrwh-registration__success-kicker {
  font-size: .9rem;
}

.rrwh-related__list {
  display: grid;
  gap: .65rem;
  margin: .85rem 0;
}

.rrwh-related__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: center;
  border: 1px solid #d8d1e1;
  border-radius: 10px;
  background: #faf8fc;
  padding: .75rem;
  cursor: pointer;
}

.rrwh-related__card.has-image {
  grid-template-columns: auto 128px minmax(0, 1fr);
}

.rrwh-related__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 84px;
  border: 1px solid #e1dbe8;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  overflow: hidden;
}

.rrwh-related__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rrwh-related__card:hover {
  border-color: var(--rrwh-accent);
}

.rrwh-related__card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  align-self: center;
  accent-color: var(--rrwh-accent);
  cursor: pointer;
}

.rrwh-related__content {
  display: grid;
  gap: .2rem;
  color: #403849;
}

.rrwh-related__title {
  color: #17131c;
  font-size: 1.08rem;
  line-height: 1.25;
}

.rrwh-registration .rrwh-related__date {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #6d35b5;
  font-size: .92rem !important;
  font-weight: 800;
  line-height: 1.3;
}

.rrwh-related__date-icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

.rrwh-registration .rrwh-related__excerpt {
  color: #51485c;
  font-size: .86rem !important;
  font-weight: 500;
  line-height: 1.4;
}

.rrwh-related__content strong {
  color: #17131c;
}

.rrwh-related__content small {
  color: #6d35b5;
  font-weight: 700;
}

.rrwh-related__submit:disabled {
  cursor: wait;
  opacity: .65;
}

.rrwh-registration__submit:disabled {
  cursor: wait;
  opacity: .65;
}

.rrwh-registration__status {
  min-height: 1.2em;
  margin: 0;
  color: #5b5267;
  font-size: .85rem;
}

.rrwh-registration__status.is-error {
  color: #b4233b;
}

.rrwh-registration__success {
  padding: .65rem 0 .2rem;
}

.rrwh-registration__success-kicker {
  margin: 0 0 .25rem;
  color: #16794c !important;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rrwh-registration__success p {
  color: #403849;
}

.rrwh-registration__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .8rem 0;
}

.rrwh-registration__success-actions [data-rrwh-calendar] span {
  margin-right: .42rem;
  font-size: 1.05em;
  line-height: 1;
}

.rrwh-registration__success-actions a + a {
  border: 1px solid #bdb5c9;
  background: #fff;
  color: #2a2430 !important;
  box-shadow: none;
}

.rrwh-registration__test-notice {
  border: 1px solid #8b6b2e;
  border-radius: 8px;
  background: #fff8df;
  padding: .55rem .65rem;
  color: #6b4e00 !important;
  font-size: .8rem;
}

.rrwh-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rrwh-admin-note {
  border: 1px solid #8b6b2e;
  border-radius: 8px;
  background: rgba(139, 107, 46, .18);
  color: #ffe5a6;
  padding: .65rem;
}

.rrwh-library,
.rrwh-detail {
  margin-top: 1.1rem;
  margin-bottom: 1.5rem;
}

.rrwh-library__hero {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--rr-border, #2a2f3b);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(215, 176, 255, .24), transparent 28%),
    linear-gradient(130deg, #16111f, #0e1420 70%);
  color: #fff;
}

.rrwh-library__hero h1 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.rrwh-library__hero > p:last-child {
  max-width: 68ch;
  margin: 0;
  color: #d7deef;
  font-size: 1rem;
}

.rrwh-library__eyebrow,
.rrwh-detail__eyebrow {
  margin: 0 0 .38rem;
  color: var(--rr-accent-soft, #e8ccff);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rrwh-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}

.rrwh-card {
  overflow: hidden;
  border: 1px solid var(--rr-border, #2a2f3b);
  border-radius: 13px;
  background: #0d111b;
  transition: transform .18s ease, border-color .18s ease;
}

.rrwh-card:hover {
  transform: translateY(-3px);
  border-color: #8061a7;
}

.rrwh-card > a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rrwh-card__media img,
.rrwh-card__placeholder {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.rrwh-card__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #25183a, #141e2c);
  color: rgba(255, 255, 255, .22);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -.08em;
}

.rrwh-card__body {
  padding: .82rem;
}

.rrwh-card__status {
  margin: 0 0 .32rem !important;
  color: var(--rr-accent-soft, #e8ccff) !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rrwh-card h2 {
  margin: 0 0 .4rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.28;
}

.rrwh-card__meta {
  color: #c2ccdf !important;
  font-size: .8rem;
}

.rrwh-card__body > p:last-child {
  color: #dde3f1;
  font-size: .88rem;
  line-height: 1.45;
}

.rrwh-detail {
  padding: 1rem;
  border: 1px solid var(--rr-border, #2a2f3b);
  border-radius: 16px;
  background: rgba(15, 17, 21, .9);
}

.rrwh-detail__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  color: #bbc5da;
  font-size: .82rem;
}

.rrwh-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr);
  gap: 1rem;
  margin-top: .8rem;
  align-items: start;
}

.rrwh-detail h1 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.rrwh-detail__meta {
  margin: 0 0 .75rem;
  color: #d1d9ec;
}

.rrwh-detail__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid #31384a;
  border-radius: 12px;
  background: #070b12;
}

.rrwh-detail__media iframe,
.rrwh-detail__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}

.rrwh-detail__abstract {
  margin-top: .75rem;
  padding: .9rem;
  border: 1px solid #31384a;
  border-radius: 12px;
  background: #0d111b;
}

.rrwh-detail__abstract h2 {
  margin: 0 0 .4rem;
  color: #fff;
  font-size: 1.2rem;
}

.rrwh-detail__abstract p {
  margin: 0;
  color: #dbe3f7;
  line-height: 1.6;
}

.rrwh-question {
  margin-top: .75rem;
  padding: .9rem;
  border: 1px solid #31384a;
  border-radius: 12px;
  background: #0d111b;
}

.rrwh-question h2 {
  margin: 0 0 .3rem;
  color: #fff;
  font-size: 1.2rem;
}

.rrwh-question > p:not(.rrwh-detail__eyebrow) {
  margin: 0 0 .65rem;
  color: #cfd7ea;
}

.rrwh-question form,
.rrwh-question label {
  display: grid;
  gap: .45rem;
}

.rrwh-question form {
  gap: .6rem;
}

.rrwh-question label span {
  color: #dbe3f7;
  font-size: .8rem;
  font-weight: 700;
}

.rrwh-question input,
.rrwh-question textarea {
  width: 100%;
  border: 1px solid #3d4560;
  border-radius: 9px;
  background: #070b12;
  color: #fff;
  padding: .62rem .72rem;
}

.rrwh-question button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #b979f4, #7541d8);
  color: #fff;
  padding: .6rem .9rem;
  font-weight: 800;
  cursor: pointer;
}

.rrwh-question [data-rrwh-question-status] {
  min-height: 1.2em;
  margin: 0;
  color: #cfd7ea;
  font-size: .84rem;
}

.rrwh-detail__side .rrwh-registration {
  margin: 0;
  position: sticky;
  top: 1rem;
}

@media (max-width: 620px) {
  .rrwh-registration__grid {
    grid-template-columns: 1fr;
  }

  .rrwh-span-2 {
    grid-column: auto;
  }

  .rrwh-registration__success-actions {
    display: grid;
  }

  .rrwh-profile-fields {
    grid-template-columns: 1fr;
  }

  .rrwh-profile-fields small {
    grid-column: auto;
  }

  .rrwh-related__card.has-image {
    grid-template-columns: auto 92px minmax(0, 1fr);
  }

  .rrwh-related__image-wrap {
    width: 92px;
    height: 68px;
    padding: 4px;
  }
}

@media (max-width: 960px) {
  .rrwh-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rrwh-detail__layout {
    grid-template-columns: 1fr;
  }

  .rrwh-detail__side .rrwh-registration {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .rrwh-library__grid {
    grid-template-columns: 1fr;
  }
}
