.rts-showcase {
  --rts-primary: #003e7e;
  --rts-primary-dark: #0a234a;
  --rts-text: #222222;
  --rts-muted: #4f5965;
  --rts-border: #d6dde5;
  --rts-surface: #ffffff;
  --rts-focus: #005ea8;
  --rts-columns: 2;
  width: 100%;
}

.rts-showcase *,
.rts-showcase *::before,
.rts-showcase *::after {
  box-sizing: border-box;
}

.rts-showcase-heading,
.rts-group-heading {
  color: var(--rts-primary-dark);
  margin: 0 0 1rem;
}

.rts-group-description {
  color: var(--rts-text);
  margin: 0 0 1.25rem;
}

.rts-section + .rts-section {
  margin-top: 2.5rem;
}

.rts-grid {
  display: grid;
  grid-template-columns: repeat(var(--rts-columns), minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.rts-card {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 245px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  width: 100%;
}

.rts-card:nth-child(4n + 2) .rts-card-info,
.rts-card:nth-child(4n + 3) .rts-card-info {
  background: var(--rts-primary-dark);
}

.rts-card:nth-child(even) .rts-card-media {
  order: 2;
}

.rts-card:nth-child(even) .rts-card-info {
  order: 1;
}

.rts-card:focus-visible {
  outline: 4px solid var(--rts-focus);
  outline-offset: 3px;
  position: relative;
  z-index: 2;
}

.rts-card-media {
  background: #eef2f5;
  display: block;
  min-height: 245px;
  overflow: hidden;
}

.rts-card-photo {
  display: block;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  width: 100%;
}

.rts-photo-placeholder {
  align-items: center;
  background: #e8edf2;
  color: var(--rts-primary-dark);
  display: flex;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.04em;
  min-height: 245px;
  width: 100%;
}

.rts-photo-placeholder-drawer {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.rts-card-info {
  align-items: center;
  background: var(--rts-primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 245px;
  padding: 1.5rem;
  text-align: center;
}

.rts-card-name {
  color: #ffffff;
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

.rts-card-role {
  color: #ffffff;
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin-top: 0.55rem;
}

.rts-card-linktext {
  color: #ffffff;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.rts-overlay {
  background: rgba(0, 0, 0, 0.55);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 100000;
}

.rts-overlay[hidden] {
  display: none !important;
}

.rts-overlay.is-open {
  opacity: 1;
}

.rts-drawer {
  background: #ffffff;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.2);
  color: var(--rts-text);
  height: 100%;
  max-width: 100%;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: min(480px, 92vw);
}

.rts-overlay.is-open .rts-drawer {
  transform: translateX(0);
}

.rts-drawer:focus {
  outline: none;
}

.rts-drawer-toolbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--rts-border);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.rts-drawer-nav {
  display: flex;
  gap: 6px;
}

.rts-icon-button {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #aeb8c2;
  border-radius: 4px;
  color: var(--rts-primary-dark);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0;
}

.rts-icon-button:hover {
  background: #eef3f7;
}

.rts-icon-button:focus-visible,
.rts-profile a:focus-visible {
  outline: 3px solid var(--rts-focus);
  outline-offset: 3px;
}

.rts-profile-photo-wrap {
  background: #eef2f5;
  width: 100%;
}

.rts-drawer-photo {
  display: block;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  width: 100%;
}

.rts-profile-body {
  padding: 1.5rem 1.75rem 2.25rem;
}

.rts-profile-name {
  color: var(--rts-text);
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.rts-profile-role {
  color: var(--rts-primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0.6rem 0 1.25rem;
}

.rts-profile-bio {
  color: var(--rts-text);
  font-size: 1rem;
  line-height: 1.7;
}

.rts-profile-bio > :first-child {
  margin-top: 0;
}

.rts-profile-bio > :last-child {
  margin-bottom: 0;
}

.rts-profile a {
  color: #005a8b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.rts-profile a:hover {
  text-decoration-thickness: 2px;
}

.rts-profile-contact {
  border-top: 1px solid var(--rts-border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.rts-profile-contact p {
  margin: 0.5rem 0;
}

body.rts-drawer-open {
  overflow: hidden;
}

.rts-empty {
  color: var(--rts-muted);
}

@media (max-width: 900px) {
  .rts-grid {
    grid-template-columns: 1fr;
  }

  .rts-card:nth-child(even) .rts-card-media,
  .rts-card:nth-child(even) .rts-card-info {
    order: initial;
  }

  .rts-card:nth-child(even) .rts-card-media {
    order: 2;
  }
}

@media (max-width: 560px) {
  .rts-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rts-card-media,
  .rts-card-photo {
    min-height: 0;
  }

  .rts-card-photo {
    aspect-ratio: 4 / 3;
  }

  .rts-card-info {
    min-height: 170px;
  }

  .rts-card:nth-child(even) .rts-card-media,
  .rts-card:nth-child(even) .rts-card-info {
    order: initial;
  }

  .rts-drawer {
    width: 100vw;
  }

  .rts-profile-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rts-overlay,
  .rts-drawer {
    transition: none;
  }
}

.rts-card-external { text-decoration: none; }
.rts-profile .rts-extra-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: #005a8b;
  text-decoration: underline;
}
.rts-social-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; list-style: none; }
.rts-skills { padding-inline-start: 1.5rem; }
.rts-skills li { margin-block: 0.5rem; }

@media (forced-colors: active) {
  .rts-card,
  .rts-icon-button,
  .rts-drawer {
    border: 1px solid CanvasText;
  }

  .rts-card:focus-visible,
  .rts-icon-button:focus-visible,
  .rts-profile a:focus-visible {
    outline: 3px solid Highlight;
  }
}
