:root {
  --ink: #172026;
  --muted: #5d6972;
  --line: #dfe6e8;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --teal: #0f7d7e;
  --amber: #d89a25;
  --graphite: #2d3438;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, "Noto Sans KR", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 232, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 150px;
  margin-top: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
  color: var(--teal);
  background: var(--soft);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: block;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--teal);
}

.site-nav a.active {
  background: rgba(15, 125, 126, 0.1);
  color: var(--teal);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68) 44%, rgba(255, 255, 255, 0.18)),
    linear-gradient(0deg, rgba(23, 32, 38, 0.18), rgba(23, 32, 38, 0));
}

.hero-content {
  position: absolute;
  top: var(--hero-text-top, 84px);
  left: var(--hero-text-left, 5vw);
  z-index: 1;
  width: min(var(--hero-text-width, 720px), 90vw);
  padding: 0 0 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-top: var(--hero-eyebrow-top, 0);
  transform: translate(var(--hero-eyebrow-x, 0), var(--hero-eyebrow-y, 0));
}

.hero-content h1 {
  transform: translate(var(--hero-headline-x, 0), var(--hero-headline-y, 0));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, var(--hero-headline-size, 76px));
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  color: #344047;
  font-size: var(--hero-intro-size, 20px);
  transform: translate(var(--hero-intro-x, 0), var(--hero-intro-y, 0));
}

.page-hero {
  padding: 92px 5vw 66px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)),
    url("assets/lab-hero.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero.muted-hero {
  background: var(--soft);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  transform: translate(var(--hero-actions-x, 0), var(--hero-actions-y, 0));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.notice-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  color: #fff;
  background: var(--graphite);
}

.notice-band strong,
.notice-band span {
  display: block;
}

.notice-band span {
  color: rgba(255, 255, 255, 0.78);
}

.notice-band a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  font-weight: 800;
}

.section {
  padding: 96px 5vw;
}

.section.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.research-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-card,
.news-grid article,
.profile,
.timeline article,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.06);
}

.research-card {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 28px;
  overflow: visible;
}

.research-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -4px 0 18px;
  overflow: hidden;
  background: #eef3f4;
  border: 1px solid #dbe9ea;
  border-radius: 8px;
}

.research-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-card:nth-child(1) .research-visual img {
  object-position: 36% 50%;
}

.research-card:nth-child(2) .research-visual img {
  object-position: 58% 48%;
}

.research-card:nth-child(3) .research-visual img {
  object-position: 76% 52%;
}

.research-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 32, 38, 0.04), rgba(23, 32, 38, 0.44)),
    linear-gradient(90deg, rgba(15, 125, 126, 0.28), rgba(216, 154, 37, 0.08));
}

.research-visual-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  color: #fff;
  background: rgba(23, 32, 38, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.research-card span {
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
}

.research-card h3 {
  margin-bottom: 10px;
}

.research-summary {
  margin-bottom: 18px;
  font-size: 16px;
}

.research-detail {
  margin: 0 0 10px;
  font-size: 14px;
}

.research-detail strong {
  color: var(--ink);
}

.research-points {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.research-keywords span {
  padding: 5px 8px;
  color: var(--teal);
  background: #eaf5f5;
  border: 1px solid #cce3e4;
  border-radius: 999px;
  font-size: 12px;
}

.research-card p,
.profile p,
.timeline p,
.news-grid p,
.contact-copy p,
.contact-card span {
  color: var(--muted);
}

.people-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.4fr;
  gap: 18px;
}

.profile {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.profile.lead {
  align-items: flex-start;
  min-height: 230px;
}

.members-section {
  display: grid;
  gap: 28px;
}

.member-subsection {
  display: grid;
  gap: 16px;
}

.section-heading.compact {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.section-heading.compact h2 {
  margin: 0;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-card {
  align-items: flex-start;
}

.member-photo-wrap {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 150px;
  height: 180px;
  overflow: hidden;
  background: var(--graphite);
  border-radius: 4px;
}

.member-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo[hidden] {
  display: none;
}

.member-photo-wrap .avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.empty-note {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.custom-section {
  max-width: 980px;
  min-height: 120px;
  margin-right: auto;
  margin-left: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.06);
  overflow: hidden;
}

.custom-section-inner {
  display: grid;
  gap: 18px;
}

.embedded-blocks {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.custom-text-block,
.custom-figure,
.embedded-block {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.custom-text-block {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.custom-text-block h2 {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.custom-text-block p {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.research-card,
.research-card h3,
.research-card p {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.custom-figure {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 260px;
}

.custom-image,
.custom-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 40px;
  border-radius: 8px;
}

.custom-image {
  display: block;
  object-fit: cover;
}

.custom-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  font-weight: 800;
}

.editor-add-member {
  display: none;
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

body.editor-controls-mode .editor-add-member {
  display: inline-flex;
  align-items: center;
}

.editor-photo-upload {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: none;
  min-height: 28px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(15, 125, 126, 0.94);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.editor-photo-upload input {
  display: none;
}

body.editor-controls-mode .editor-photo-upload,
body.editor-controls-mode .editor-photo-upload:focus {
  display: inline-flex;
  align-items: center;
}

body.insert-mode [data-drag-key] {
  cursor: crosshair !important;
  outline: 2px dashed rgba(15, 125, 126, 0.65);
  outline-offset: 6px;
}

[data-drag-key].editor-scaled-content {
  overflow: hidden;
}

[data-drag-key].editor-scaled-content > :not([data-editor-resize-handle]) {
  transform: scale(var(--editor-content-scale, 1));
  transform-origin: top left;
}

body.insert-mode a {
  pointer-events: none;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--graphite);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.member-list {
  display: grid;
  gap: 14px;
}

.profile a {
  color: var(--teal);
  font-weight: 800;
}

.professor-profile {
  align-items: flex-start;
  max-width: 980px;
  margin-bottom: 18px;
}

.professor-profile .member-photo-wrap {
  width: 220px;
  height: 260px;
}

.professor-profile .member-name {
  margin-top: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.member-name,
.lab-member {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.role,
.date-note {
  font-weight: 800;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cv-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.06);
}

.cv-card ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 20px;
}

.cv-card li span {
  display: block;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 24px;
}

.timeline time,
.news-grid time {
  color: var(--teal);
  font-weight: 900;
}

.news-grid article {
  padding: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.contact-copy {
  max-width: 720px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  font-style: normal;
}

.contact-card a {
  color: var(--teal);
  font-weight: 900;
}

.scholar-button {
  margin-top: 22px;
}

.publications {
  display: grid;
  gap: 34px;
}

.publication-year {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.publication-year h2 {
  position: sticky;
  top: 92px;
  align-self: start;
  margin: 0;
  color: var(--teal);
  font-size: 30px;
}

.publication-year ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 24px;
}

.publication-year li {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.06);
}

.publication-year li::marker {
  color: var(--teal);
  font-weight: 900;
}

.publication-year-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.editor-publication-year-tools {
  display: none;
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
  padding: 16px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.editor-publication-year-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.editor-publication-year-tools input {
  width: 140px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.editor-add-publication {
  display: none;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

body.editor-controls-mode .editor-add-publication {
  display: inline-flex;
  align-items: center;
}

body.editor-controls-mode .editor-publication-year-tools {
  display: flex;
}

.jcr-note {
  max-width: 760px;
  margin-top: -8px;
  color: var(--muted);
  font-size: 14px;
}
.authors {
  color: var(--muted);
  font-size: 14px;
}

.pub-title {
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 8px;
  color: #fff;
  background: var(--amber);
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.jcr-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 8px;
  color: #075f62;
  background: #e6f5f4;
  border: 1px solid #a7d8d5;
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 8px;
  padding: 4px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-submenu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0 0 4px 14px;
    padding: 4px;
    border: 0;
    box-shadow: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8) 58%, rgba(255, 255, 255, 0.36));
  }

  .hero-content {
    padding-top: 0;
  }

  .notice-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-grid,
  .news-grid,
  .people-layout,
  .member-card-grid,
  .contact-section,
  .cv-grid,
  .publication-year {
    grid-template-columns: 1fr;
  }

  .publication-year h2 {
    position: static;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile {
    align-items: flex-start;
  }

  .professor-profile .member-photo-wrap,
  .member-photo-wrap {
    width: 150px;
    height: 180px;
  }

  .professor-profile .member-name {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-content {
    width: min(var(--hero-text-width, 720px), 90vw);
    padding-bottom: 90px;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .profile {
    flex-direction: column;
  }

  .section {
    padding: 72px 5vw;
  }
}

/* Research page: editorial theme layout */
.research-framework {
  background: var(--soft);
}

.research-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-model-grid article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.research-model-grid h3 {
  margin: 6px 0 10px;
  font-size: 21px;
}

.research-model-grid article > p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.research-themes {
  padding-top: 72px;
}

.research-themes-list {
  display: grid;
  gap: 44px;
}

.research-theme-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.research-theme-card:nth-child(even) .research-theme-image {
  order: 2;
}

.research-theme-image {
  min-height: 420px;
}

.research-theme-card .research-visual {
  height: 100%;
  min-height: 420px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.research-theme-card .research-visual img {
  object-position: center;
}

.research-theme-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px);
}

.research-theme-copy .eyebrow {
  margin-bottom: 12px;
}

.research-theme-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 3vw, 40px);
}

.research-theme-copy .research-summary {
  font-size: 18px;
  line-height: 1.7;
}

.research-theme-copy .research-keywords {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .research-model-grid,
  .research-theme-card {
    grid-template-columns: 1fr;
  }

  .research-theme-card:nth-child(even) .research-theme-image {
    order: 0;
  }

  .research-theme-image,
  .research-theme-card .research-visual {
    min-height: 260px;
  }
}
/* Compact Research theme layout for laptop screens */
.research-themes {
  padding-top: 28px;
}

.research-theme-card {
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
}

.research-theme-image,
.research-theme-card .research-visual {
  min-height: 380px;
}

.research-theme-copy {
  padding: 38px 44px;
}

.research-theme-copy h2 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.research-theme-copy .research-summary {
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.6;
}

.research-theme-copy .research-detail {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.research-theme-copy .research-points {
  gap: 6px;
  margin: 8px 0 12px;
}

@media (max-width: 1100px) {
  .research-theme-card {
    grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
  }

  .research-theme-image,
  .research-theme-card .research-visual {
    min-height: 330px;
  }

  .research-theme-copy {
    padding: 30px 32px;
  }
}

@media (max-width: 760px) {
  .research-theme-card {
    grid-template-columns: 1fr;
  }

  .research-theme-image,
  .research-theme-card .research-visual {
    min-height: 230px;
  }
}
/* Keep every theme image in a stable frame independent of text length. */
.research-theme-card {
  align-items: start;
}

.research-theme-image {
  min-height: 0;
  align-self: start;
}

.research-theme-card .research-visual {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1100px) {
  .research-theme-image,
  .research-theme-card .research-visual {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .research-theme-image,
  .research-theme-card .research-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
/* Research themes are responsive content blocks, not free-size editor canvases. */
.research-theme-card {
  width: 100% !important;
  min-width: 0 !important;
  transform: none !important;
  grid-template-columns: minmax(380px, 46%) minmax(0, 54%) !important;
}

.research-theme-copy,
.research-theme-copy > * {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  transform: none !important;
}

.research-theme-copy h2 {
  word-break: keep-all !important;
  overflow-wrap: break-word;
  white-space: normal !important;
}

@media (max-width: 900px) {
  .research-theme-card {
    grid-template-columns: 1fr !important;
  }
}
/* Empty member-photo state after an editor removes only the image. */
.member-photo-wrap .avatar.photo-placeholder {
  position: relative;
  color: transparent;
  background: #edf4f4;
}

.member-photo-wrap .avatar.photo-placeholder::before {
  content: "";
  width: 46px;
  height: 34px;
  border: 2px solid #7c9ca0;
  border-radius: 4px;
  background: linear-gradient(145deg, transparent 48%, #a7c1c3 49% 57%, transparent 58%);
}

.member-photo-wrap .avatar.photo-placeholder::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -9px 0 0 22px;
  background: #7c9ca0;
  border-radius: 50%;
}
/* Person silhouette for empty member photos. */
.member-photo-wrap .avatar.photo-placeholder::before {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 28%, #6f9094 0 11px, transparent 12px),
    radial-gradient(ellipse at 50% 100%, #6f9094 0 28px, transparent 29px);
}

.member-photo-wrap .avatar.photo-placeholder::after {
  display: none;
}
/* Outlined profile icon for empty member photos. */
.member-photo-wrap .avatar.photo-placeholder::before {
  width: 104px;
  height: 104px;
  border: 3px solid #263238;
  border-radius: 50%;
  background: transparent;
}

.member-photo-wrap .avatar.photo-placeholder::after {
  display: block;
  width: 62px;
  height: 72px;
  margin: 12px 0 0 0;
  border: 3px solid #263238;
  border-top: 0;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(ellipse at 50% 17px, transparent 0 16px, #263238 17px 20px, transparent 21px),
    linear-gradient(#edf4f4, #edf4f4);
  clip-path: polygon(0 42%, 18% 34%, 25% 0, 75% 0, 82% 34%, 100% 42%, 100% 100%, 0 100%);
}
/* Generated profile placeholder image used after a member photo is removed. */
.member-photo-wrap .avatar.photo-placeholder {
  background: #fff url("assets/profile-placeholder.png") center / 74% auto no-repeat;
}

.member-photo-wrap .avatar.photo-placeholder::before,
.member-photo-wrap .avatar.photo-placeholder::after {
  display: none;
}
.editor-controls-mode .research-keyword-add {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: #0f7d7e;
  background: #fff;
  border: 1px dashed #8fc4c6;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.editor-controls-mode .research-keyword-add:hover {
  color: #fff;
  background: #0f7d7e;
}
.editor-controls-mode .research-keyword-delete {
  width: 18px;
  height: 18px;
  margin: 0 1px 0 -12px;
  padding: 0;
  color: #fff;
  background: #c74436;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.editor-controls-mode .research-keyword-delete:hover {
  background: #982d23;
}

/* Balanced desktop proportions for image-led research themes. */
@media (min-width: 901px) {
  .research-theme-card {
    grid-template-columns: minmax(340px, 42%) minmax(0, 58%) !important;
  }

  .research-theme-card .research-visual {
    aspect-ratio: 2 / 1;
  }

  .research-theme-copy {
    padding: 30px 44px;
  }
}

/* Shared desktop geometry: laptop and wide desktop use the same content scale. */
@media (min-width: 901px) {
  .hero-content {
    width: min(var(--hero-text-width, 720px), calc(100vw - 10vw));
  }

  .hero-content h1 {
    max-width: 680px;
    font-size: var(--hero-headline-size, 76px);
  }

  .hero-content > p:not(.eyebrow) {
    max-width: 620px;
    font-size: var(--hero-intro-size, 20px);
  }

  .research-theme-card .research-visual {
    aspect-ratio: 2 / 1;
  }
}
/* Mobile-first overrides: saved desktop positions never control the phone layout. */
@media (max-width: 820px) {
  .hero {
    min-height: max(620px, calc(100svh - 66px));
  }

  .hero img {
    object-position: center;
  }

  .hero-content {
    top: clamp(86px, 14svh, 118px) !important;
    left: 6vw !important;
    width: 88vw !important;
    max-width: 620px;
    padding-bottom: 56px;
  }

  .hero-content h1 {
    max-width: 620px;
    font-size: 56px !important;
    line-height: 1.04;
  }

  .hero-content > p:not(.eyebrow) {
    max-width: 560px;
    font-size: 18px !important;
    line-height: 1.65;
  }

  .page-hero {
    padding: 66px 6vw 48px;
  }

  .page-hero h1 {
    font-size: 48px;
  }

  .section,
  .research-themes {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .research-theme-copy {
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 610px;
  }

  .hero-content {
    top: 82px !important;
  }

  .hero-content h1 {
    font-size: 42px !important;
    line-height: 1.06;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 16px !important;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .research-theme-copy {
    padding: 24px 20px;
  }

  .research-theme-copy h2 {
    font-size: 28px;
  }
}
/* Keep every desktop research image flush with its matching description card. */
@media (min-width: 901px) {
  .research-theme-card {
    align-items: stretch;
  }

  .research-theme-image {
    display: block;
    align-self: stretch;
    min-height: 0;
  }

  .research-theme-card .research-visual {
    display: block;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .research-theme-card .research-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* Keep the image-to-copy ratio identical when even research themes reverse sides. */
@media (min-width: 901px) {
  .research-theme-card:nth-child(even) {
    grid-template-columns: minmax(0, 58%) minmax(340px, 42%) !important;
  }
}
/* Fixed desktop research-theme ratio: image 42%, copy 58%. */
@media (min-width: 901px) {
  .research-theme-card {
    grid-template-columns: 42% 58% !important;
  }

  .research-theme-card:nth-child(even) {
    grid-template-columns: 58% 42% !important;
  }
}
/* EED Lab logo in the site header. */
.brand-mark { overflow: hidden; background: #ffffff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Keep the header mark circular as well as the browser favicon. */
.brand-mark { border-radius: 50%; }
/* Compact home recruiting and footer information into one bar. */
body[data-page="home"] .notice-band {
  gap: 20px;
  padding: 16px 5vw;
}
body[data-page="home"] .notice-summary {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
body[data-page="home"] .notice-summary [data-home-notice-text] {
  color: #fff;
  font-weight: 700;
}
body[data-page="home"] .notice-copyright {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 700px) {
  body[data-page="home"] .notice-band { align-items: flex-start; }
  body[data-page="home"] .notice-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  body[data-page="home"] .notice-band a { margin-top: 1px; }
}
/* Home bottom bar: recruiting message above copyright, action on the right. */
body[data-page="home"] .notice-band {
  min-height: 86px;
  padding: 18px 5vw;
}
body[data-page="home"] .notice-summary {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
body[data-page="home"] .notice-summary [data-home-notice-text] {
  font-size: 1.08rem;
  line-height: 1.35;
}
body[data-page="home"] .notice-copyright {
  font-size: 0.82rem;
}
@media (max-width: 700px) {
  body[data-page="home"] .notice-band { min-height: 0; }
}