:root {
  --rcp-bg: #1e293b;
  --rcp-bg-deep: #0f172a;
  --rcp-border: #334155;
  --rcp-text: #e2e8f0;
  --rcp-muted: #94a3b8;
  --rcp-accent: #4ade80;
  --rcp-accent-dark: #22c55e;
}

.rcp-modal-open { overflow: hidden; }

.rcp-bio-button {
  appearance: none;
  border: 1px solid var(--rcp-border);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: .55em 1em;
}

.rcp-bio-button:hover { border-color: var(--rcp-accent-dark); color: var(--rcp-accent-dark); }
.rcp-bio-button:focus-visible,
.rcp-dialog button:focus-visible,
.rcp-dialog a:focus-visible { outline: 3px solid var(--rcp-accent); outline-offset: 3px; }

.rcp-dialog {
  background: transparent;
  border: 0;
  color: var(--rcp-text);
  height: auto;
  margin: auto;
  max-height: calc(100vh - 40px);
  max-width: min(1120px, calc(100vw - 40px));
  padding: 0;
  width: 100%;
}

.rcp-dialog::backdrop { background: rgba(2, 8, 23, .78); backdrop-filter: blur(3px); }

.rcp-dialog-shell {
  background: var(--rcp-bg);
  border: 1px solid var(--rcp-border);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
}

.rcp-dialog-close {
  align-items: center;
  appearance: none;
  background: var(--rcp-bg-deep);
  border: 1px solid var(--rcp-border);
  border-radius: 50%;
  color: var(--rcp-text);
  cursor: pointer;
  display: flex;
  font-size: 30px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  z-index: 2;
}

.rcp-dialog-close:hover { background: var(--rcp-accent-dark); color: #08210f; }
.rcp-dialog-content { padding: clamp(44px, 6vw, 78px); }

.rcp-person { display: grid; gap: clamp(30px, 6vw, 80px); grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; }
.rcp-person + .rcp-person { border-top: 1px solid var(--rcp-border); margin-top: 50px; padding-top: 50px; }
.rcp-person-image img { aspect-ratio: 1; border: 8px solid var(--rcp-accent) !important; border-bottom:  8px solid var(--rcp-accent); border-radius: 50%; display: block; height: auto; object-fit: cover; width: 100%; }
.rcp-person-position { color: var(--rcp-accent); font-size: .82rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 14px; text-transform: uppercase; }
.rcp-person-name { color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 300; line-height: 1.12; margin: 0 60px 4px 0; }
.rcp-person-company { color: #9cc3df; font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 10px 0 22px; }
.rcp-person-bio { color: var(--rcp-text); font-size: clamp(1rem, 1vw, 1.12rem); line-height: 1.65; }
.rcp-person-bio > :first-child { margin-top: 0; }
.rcp-person-bio > :last-child { margin-bottom: 0; }
.rcp-person-bio a { color: var(--rcp-accent); }

.rcp-person-highlights { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; }
.rcp-person-highlights li { border: 1px solid var(--rcp-border); border-radius: 999px; color: #9cc3df; font-size: .8rem; padding: 7px 14px; }
.rcp-linkedin { align-items: center; border: 1px solid var(--rcp-border); border-radius: 8px; color: #fff; display: inline-flex; font-weight: 700; gap: 9px; margin-top: 26px; padding: 11px 16px; text-decoration: none; }
.rcp-linkedin > span:first-child { border: 1px solid currentColor; border-radius: 2px; font-size: .72em; font-weight: 900; line-height: 1; padding: 2px; }
.rcp-linkedin:hover { border-color: var(--rcp-accent); color: var(--rcp-accent); }

/* Geography: Regions > Locations > Companies */
.rcp-geography-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--rcp-border);
  border: 1px solid var(--rcp-border);
  border-radius: 15px;
  gap: 1px;
  overflow: hidden;
}

.rcp-geography-region {
  background: var(--rcp-bg-deep);
  min-width: 0;
  padding: 28px 24px 26px;
}

.rcp-geography-region-title {
  align-items: center;
  color: var(--rcp-accent);
  display: flex;
  font-family: var(--font-display, "Jost", sans-serif);
  font-size: .78rem;
  font-weight: 700;
  gap: 9px;
  letter-spacing: .09em;
  line-height: 1.3;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.rcp-geography-region-title > span {
  background: var(--rcp-accent-dark);
  border-radius: 50%;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

.rcp-geography-locations {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.rcp-geography-location h4 {
  color: #fff;
  font-family: var(--font-display, "Jost", sans-serif);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 3px;
}

.rcp-geography-location ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rcp-geography-location li {
  color: #6880a6;
  font-size: .78rem;
  line-height: 1.45;
  margin: 0;
}

.rcp-geography-location li:not(:last-child)::after {
  content: " · ";
  white-space: pre;
}

.rcp-geography-location a {
  color: inherit;
  text-decoration: none;
}

.rcp-geography-location a:hover { color: var(--rcp-accent); }

@media (max-width: 900px) {
  .rcp-geography-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .rcp-geography-grid { grid-template-columns: 1fr; }
  .rcp-geography-region { padding: 25px 22px; }
}

@media (max-width: 720px) {
  .rcp-dialog { max-height: calc(100vh - 16px); max-width: calc(100vw - 16px); }
  .rcp-dialog-shell { border-radius: 14px; max-height: calc(100vh - 16px); }
  .rcp-dialog-content { padding: 70px 25px 35px; }
  .rcp-dialog-close { right: 14px; top: 14px; }
  .rcp-person { grid-template-columns: 1fr; }
  .rcp-person-image { max-width: 220px; }
  .rcp-person-name { margin-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .rcp-dialog[open] { animation: rcp-fade .2s ease-out; }
  .rcp-dialog[open] .rcp-dialog-shell { animation: rcp-rise .25s ease-out; }
  @keyframes rcp-fade { from { opacity: 0; } }
  @keyframes rcp-rise { from { transform: translateY(14px); } }
}
/* Firefox */
.rcp-dialog-shell {
	scrollbar-width: thin;
	scrollbar-color: #64748b #1e293b;
}

/* Chrome, Edge and Safari */
.rcp-dialog-shell::-webkit-scrollbar {
	width: 10px;
}

.rcp-dialog-shell::-webkit-scrollbar-track {
	background: #1e293b;
	border-radius: 0 18px 18px 0;
}

.rcp-dialog-shell::-webkit-scrollbar-thumb {
	background: #52627a;
	border: 2px solid #1e293b;
	border-radius: 999px;
}

.rcp-dialog-shell::-webkit-scrollbar-thumb:hover {
	background: #4ade80;
}

/* Remove the bright scrollbar buttons */
.rcp-dialog-shell::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}