/* RGU publishes a reversed wordmark, so keep it on its purple backing
   when the demo also shows it in CampusConnect's white header. */
img[src$="/demo-assets/rgu-wordmark.png"] {
  box-sizing: border-box;
  padding: 0.4rem 0.65rem;
  background: #712177;
  border-radius: 0.375rem;
}

.rgu-demo {
  --rgu-purple: #712177;
  --rgu-cyan: #57d4fa;
  margin: 0;
  background: #f8f5f9;
  color: #26182a;
  font: 1rem / 1.55 system-ui, sans-serif;
}

.rgu-shell {
  width: min(76rem, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
}

.rgu-header {
  border-top: 4px solid var(--rgu-cyan);
  border-bottom: 1px solid #e8dcea;
  background: #fff;
}

.rgu-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.8rem;
}

.rgu-wordmark {
  width: clamp(9rem, 25vw, 15rem);
  height: auto;
}

.rgu-demo-label {
  color: var(--rgu-purple);
  font-size: 0.85rem;
  font-weight: 650;
  text-align: right;
}

.rgu-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  margin-top: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid #e8dcea;
  border-radius: 1rem;
  background: #fff;
}

.rgu-intro-copy {
  align-self: center;
  padding: clamp(1.25rem, 3vw, 2.75rem);
}

.rgu-topic {
  margin: 0;
  color: var(--rgu-purple);
  font-weight: 650;
}

.rgu-intro h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rgu-intro h1 + p {
  max-width: 37ch;
  margin: 0;
}

.rgu-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  object-position: 72% 48%;
}

.rgu-footer {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid #e8dcea;
  color: #59455d;
  font-size: 0.9rem;
}

@media (max-width: 42rem) {
  .rgu-intro { grid-template-columns: 1fr; }
  .rgu-photo { min-height: 0; height: clamp(9rem, 40vw, 12rem); }
}
