body { margin: 0; background: #ffffff; }

#dorl-r-showcase {
  --bg: #ffffff;
  --panel: #f0f5fb;
  --ink: #1e3765;
  --soft: #475c79;
  --accent: #245f92;
  --rule: #c7d6e8;
  background: var(--bg);
  color: var(--ink);
  padding: 0 clamp(18px, 5%, 50px);
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  container-type: inline-size;
  max-width: 1140px;
  margin-inline: auto;
}
#dorl-r-showcase * { box-sizing: border-box; }
#dorl-r-showcase h1, #dorl-r-showcase h2, #dorl-r-showcase h3, #dorl-r-showcase p, #dorl-r-showcase figure { margin: 0; color: inherit; }
#dorl-r-showcase a { color: inherit; text-decoration: none; }
#dorl-r-showcase a:hover { text-decoration: underline; text-underline-offset: 4px; }
#dorl-r-showcase .mono { font: 500 11px/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
#dorl-r-showcase .top,
#dorl-r-showcase footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap;
  padding: 14px 0;
}
#dorl-r-showcase .top { border-bottom: 1px solid var(--rule); }
#dorl-r-showcase .parent { display: inline-block; color: var(--ink); }
#dorl-r-showcase .parent img { display: block; width: clamp(204px, 36cqw, 248px); height: auto; }
#dorl-r-showcase .nav { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--soft); }
#dorl-r-showcase .nav a:hover { color: var(--ink); }

/* Hero & Team Photo Carousel */
#dorl-r-showcase .hero {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(20px, 4.5cqw, 44px); align-items: center;
  padding: 26px 0;
}
#dorl-r-showcase .label { color: var(--accent); }
#dorl-r-showcase .hero h1 img { display: block; width: min(100%, 380px); height: auto; }
#dorl-r-showcase .hero-title p {
  margin-top: 8px;
  font-size: clamp(18px, 2.8cqw, 27px);
  font-weight: 520;
  letter-spacing: -.035em;
}
#dorl-r-showcase .carousel {
  width: 100%;
  max-width: 600px;
  justify-self: end;
}
#dorl-r-showcase .carousel-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
#dorl-r-showcase .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease;
}
#dorl-r-showcase .carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
#dorl-r-showcase .carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#dorl-r-showcase .carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
#dorl-r-showcase .carousel-caption { color: var(--soft); }
#dorl-r-showcase .carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#dorl-r-showcase .carousel-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 0 2px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
#dorl-r-showcase .carousel-arrow:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}
#dorl-r-showcase .carousel-arrow:focus-visible,
#dorl-r-showcase .carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#dorl-r-showcase .carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#dorl-r-showcase .carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--rule);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
#dorl-r-showcase .carousel-dot:hover { background: var(--soft); }
#dorl-r-showcase .carousel-dot.is-active {
  width: 20px;
  background: var(--accent);
}

/* Sections & Projects */
#dorl-r-showcase .section {
  padding: 15px 0 16px;
  border-top: 1px solid var(--rule);
}
#dorl-r-showcase .section-head {
  display: flex; flex-wrap: wrap; gap: 3px 15px; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
#dorl-r-showcase .section-head h2 { font: 570 24px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.04em; }
#dorl-r-showcase .project {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr); gap: 14px 22px; align-items: start;
  border-bottom: 1px solid var(--rule); padding: 18px 0;
}
#dorl-r-showcase .project:last-child { border-bottom: 0; padding-bottom: 4px; }
#dorl-r-showcase .project-cover {
  display: block;
  aspect-ratio: 16 / 10;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
#dorl-r-showcase .project-cover:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(30, 55, 101, 0.08);
  text-decoration: none;
}
#dorl-r-showcase .project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#dorl-r-showcase .project-content { display: grid; gap: 7px; }
#dorl-r-showcase .project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--soft);
}
#dorl-r-showcase .project-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 10px;
}
#dorl-r-showcase .project-badge--highlight {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
#dorl-r-showcase .project-badge--oral {
  background: #dcebf9;
  border-color: #9ec0e2;
  color: var(--ink);
  font-weight: 600;
}
#dorl-r-showcase .project-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
#dorl-r-showcase .project-header h3 { font-size: 17px; line-height: 1.32; font-weight: 600; flex: 1 1 320px; }
#dorl-r-showcase .project-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  white-space: nowrap;
}
#dorl-r-showcase .project-summary { color: var(--soft); font-size: 13px; }
#dorl-r-showcase .project-summary strong {
  display: block;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .06em;
}
#dorl-r-showcase .project-authors {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin: 2px 0 0; padding: 0; list-style: none; font-size: 12px;
}
#dorl-r-showcase .project-authors li { display: inline-flex; align-items: center; }
#dorl-r-showcase .author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
#dorl-r-showcase a.author-chip:hover { color: var(--accent); }
#dorl-r-showcase .author-avatar {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--rule);
  object-fit: cover;
  display: block;
}
#dorl-r-showcase .author-initials {
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--panel);
}

/* Members */
#dorl-r-showcase .advisor {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 16px;
  padding: 8px 0 20px;
}
#dorl-r-showcase .advisor-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
#dorl-r-showcase .advisor-content { display: grid; gap: 4px; max-width: 65ch; }
#dorl-r-showcase .advisor #advisor-name { font-size: 20px; font-weight: 600; }
#dorl-r-showcase .advisor-role { color: var(--soft); font-size: 13px; }
#dorl-r-showcase .advisor-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--accent); font-size: 13px; }
#dorl-r-showcase .groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
#dorl-r-showcase .group { min-height: 54px; border-top: 1px solid var(--rule); padding-top: 8px; }
#dorl-r-showcase .group h3 { color: var(--accent); font-size: 14px; font-weight: 600; }
#dorl-r-showcase .names { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
#dorl-r-showcase .tag { margin-left: 4px; color: var(--soft); font-size: 10px; white-space: nowrap; }
#dorl-r-showcase .alumni { grid-column: 1 / -1; margin-top: 12px; }
#dorl-r-showcase .alumni .names { display: flex; flex-wrap: wrap; gap: 3px 22px; }

/* Footer */
#dorl-r-showcase footer { border-top: 1px solid var(--rule); color: var(--soft); }
#dorl-r-showcase .footer-links { display: inline-flex; align-items: center; gap: 10px; }
#dorl-r-showcase footer a:hover { color: var(--ink); }

@container (max-width: 620px) {
  #dorl-r-showcase .hero { grid-template-columns: 1fr; padding: 19px 0; }
  #dorl-r-showcase .carousel { justify-self: start; width: 100%; max-width: 440px; }
  #dorl-r-showcase .project { grid-template-columns: 1fr; }
}
@container (max-width: 460px) {
  #dorl-r-showcase .parent img { width: min(220px, 68cqw); }
  #dorl-r-showcase .advisor { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  #dorl-r-showcase .groups { grid-template-columns: 1fr; }
}
