/*
 * CRMD Premium 4.26.0
 * Editorial route refinements: structure and reading rhythm only.
 */

/* Master brochure: the supplied PDF is the canonical page content. */
.gd-master-brochure-page .gd-subpage-hero {
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

.gd-master-brochure-page .gd-subpage-hero h1 {
  margin: 0;
}

.gd-master-brochure {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
}

.gd-master-brochure__frame {
  width: min(100%, 960px);
  margin-inline: auto;
}

.gd-master-brochure__pages {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.gd-master-brochure__page {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.08);
}

.gd-master-brochure__page img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared inner-page rhythm: keep titles close to navigation and content. */
.gd-subpage-hero,
.gd-research-hero,
.gd-srof-hero,
.gd-master-hero {
  min-height: 0 !important;
  display: block !important;
  padding: clamp(1.75rem, 3.2vw, 2.75rem) 0 clamp(1.25rem, 2.2vw, 1.75rem) !important;
  margin-bottom: 0 !important;
}

.gd-subpage-hero--compact {
  min-height: 0 !important;
  display: block !important;
}

.gd-research-main .gd-subpage-hero,
.gd-research-main.gd-hub-directory .gd-subpage-hero,
.gd-srof-directory .gd-research-hero,
.gd-hub-directory .gd-research-hero,
.gd-srof-hero--detail {
  min-height: 0 !important;
  display: block !important;
  padding: clamp(1.75rem, 3.2vw, 2.75rem) 0 clamp(1.25rem, 2.2vw, 1.75rem) !important;
}

.gd-subpage-hero + .gd-section,
.gd-research-hero + .gd-section,
.gd-srof-hero + .gd-section,
.gd-master-hero + .gd-section {
  padding-top: clamp(1rem, 1.7vw, 1.35rem) !important;
}

/* Project register: retain the archival list while giving each project a clear record. */
.gd-projects-page .gd-section--paper {
  padding-top: clamp(2rem, 4vw, 3.75rem);
}

.gd-projects-page .gd-project-list {
  width: min(100%, 1120px);
  gap: 0;
}

.gd-projects-page .gd-project-item {
  grid-template-columns: minmax(235px, 30%) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.4vw, 3.2rem);
  padding: clamp(1.75rem, 4vw, 3.15rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.gd-projects-page .gd-project-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.gd-projects-page .gd-project-item__img {
  align-self: start;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: none !important;
}

.gd-projects-page .gd-project-item__img img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gd-projects-page .gd-project-item__img--contain {
  min-height: 190px;
  background: #fff;
}

.gd-projects-page .gd-project-item__img--contain img {
  object-fit: contain;
}

.gd-projects-page .gd-project-item__body {
  padding: 0;
  align-self: center;
}

.gd-projects-page .gd-project-item__body h2 {
  max-width: 31ch;
  margin: 0 0 0.75rem !important;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem) !important;
  line-height: 1.15;
}

.gd-projects-page .gd-project-item__body h2::after {
  width: 3rem;
  margin-top: 0.65rem;
}

.gd-projects-page .gd-project-item__body p {
  max-width: 74ch;
  margin-block: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.72;
}

/* SROF directory: an ordered 3 + 4 research index rather than a generic card wall. */
.gd-srof-directory .gd-section--paper {
  padding-block: clamp(2.2rem, 4.5vw, 4.2rem);
}

.gd-srof-directory .gd-page-shell {
  width: min(100%, 1180px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gd-srof-directory__row {
  display: grid;
  gap: clamp(1rem, 2vw, 1.55rem);
}

.gd-srof-directory__row + .gd-srof-directory__row {
  margin-top: clamp(1rem, 2vw, 1.55rem);
}

.gd-srof-directory__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gd-srof-directory__row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gd-srof-directory__row .gd-hub-card.gd-hub-card--visual {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-top: 3px solid var(--gd-ocean) !important;
  border-radius: 0;
  box-shadow: none !important;
  background: #fff;
}

.gd-research-main.gd-srof-directory .gd-srof-directory__row .gd-hub-card.gd-hub-card--visual {
  grid-column: auto !important;
}

.gd-srof-directory__row .gd-hub-card--visual .gd-hub-card__visual {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 8.5 !important;
  object-fit: cover;
}

.gd-srof-directory__row .gd-hub-card--visual .gd-hub-card__copy {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 1.2rem;
  min-height: 138px;
  padding: 1.1rem 1.15rem 1.2rem !important;
  text-align: left !important;
}

.gd-srof-directory__row .gd-hub-card--visual h2 {
  margin: 0 !important;
  color: var(--gd-ocean);
  font-size: clamp(0.96rem, 1.18vw, 1.16rem) !important;
  line-height: 1.18;
  text-align: left !important;
}

.gd-srof-directory__row .gd-hub-card--visual h2::after {
  display: none !important;
}

.gd-srof-directory__row .gd-hub-card--visual .gd-hub-card__more {
  display: inline-block !important;
  margin-top: auto;
  padding: 0 0 0.35rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gd-terracotta) !important;
  background: transparent !important;
  color: var(--gd-ocean) !important;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left !important;
  text-transform: uppercase;
}

.gd-srof-directory__row .gd-hub-card--visual .gd-hub-card__more::after {
  content: "\2192" !important;
}

.gd-research-main.gd-srof-directory .gd-hub-grid.gd-hub-grid--visual {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.55rem);
}

.gd-research-main.gd-srof-directory .gd-hub-grid.gd-hub-grid--visual > .gd-hub-card:nth-child(n) {
  grid-column: span 3 !important;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden;
}

.gd-research-main.gd-srof-directory .gd-hub-card.gd-hub-card--visual {
  grid-column: span 3 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: initial !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-top: 3px solid var(--gd-ocean) !important;
  border-radius: 0;
  box-shadow: none !important;
  background: #fff;
  color: var(--gd-ink);
  text-decoration: none;
}

.gd-research-main.gd-srof-directory .gd-hub-grid.gd-hub-grid--visual > .gd-hub-card:nth-child(-n + 3) {
  grid-column: span 4 !important;
}

.gd-research-main.gd-srof-directory .gd-hub-card--visual .gd-hub-card__visual {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  align-self: stretch !important;
  aspect-ratio: 16 / 8.5 !important;
  object-fit: cover;
}

.gd-research-main.gd-srof-directory .gd-hub-card--visual .gd-hub-card__copy {
  display: flex !important;
  flex: 1 1 auto;
  width: 100%;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start;
  gap: 1.2rem;
  min-height: 150px;
  padding: 1.15rem 1.2rem 1.2rem !important;
  border-top: 0 !important;
  text-align: left !important;
}

.gd-research-main.gd-srof-directory .gd-hub-card--visual h2 {
  align-self: flex-start !important;
  max-width: 22ch;
  margin: 0 !important;
  margin-inline: 0 !important;
  color: var(--gd-ocean);
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.18;
  text-align: left !important;
}

.gd-research-main.gd-srof-directory .gd-hub-card--visual .gd-hub-card__more {
  align-self: flex-start !important;
  display: inline-block !important;
  margin-inline: 0 !important;
  margin-top: auto;
  padding: 0 0 0.38rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gd-terracotta) !important;
  background: transparent !important;
  color: var(--gd-ocean) !important;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gd-research-main.gd-srof-directory .gd-hub-card--visual .gd-hub-card__more::after {
  content: "\2192" !important;
}

@media (hover: hover) {
  .gd-srof-directory .gd-hub-card.gd-hub-card--visual:hover {
    transform: translateY(-2px);
    border-top-color: var(--gd-terracotta) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
  }
}

/* SROF pages share a quiet, legible research-article frame. Data and manuscript content remain unchanged. */
.gd-srof-content-page .gd-section--paper,
.gd-srof-overview-page .gd-section--paper {
  padding-block: clamp(2rem, 4vw, 4rem);
}

.gd-srof-content-page .gd-page-shell,
.gd-srof-overview-page .gd-page-shell {
  width: min(100%, 1120px);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.gd-srof-content-page .gd-srof-article,
.gd-srof-overview-page .gd-srof-article {
  max-width: 78ch;
}

.gd-srof-content-page .gd-srof-article > h2,
.gd-srof-content-page .gd-srof-article > h3,
.gd-srof-overview-page .gd-srof-article > h2,
.gd-srof-overview-page .gd-srof-article > h3 {
  color: var(--gd-ocean);
  line-height: 1.18;
}

.gd-srof-content-page .gd-srof-article p,
.gd-srof-overview-page .gd-srof-article p {
  max-width: 78ch;
  line-height: 1.72;
}

.gd-srof-content-page .gd-manuscript-figure {
  margin-inline: 0;
  padding: clamp(0.8rem, 2vw, 1.25rem);
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  box-shadow: none;
}

.gd-srof-content-page .gd-manuscript-figure img {
  width: 100%;
  height: auto;
}

.gd-srof-content-page--taxonomy .gd-srof-table,
.gd-srof-content-page--types .gd-interaction-matrix {
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
  box-shadow: none;
}

.gd-srof-content-page--taxonomy .gd-srof-table th,
.gd-srof-content-page--types .gd-interaction-matrix th {
  background: var(--gd-ocean);
  color: #fff;
}

.gd-srof-content-page--types .gd-orthogonal-map {
  padding: clamp(0.7rem, 1.8vw, 1.25rem);
  border: 1px solid rgba(0, 0, 0, 0.17);
  background: #fff;
}

/* Publications: book covers and reference records use separate, deliberate rhythms. */
.gd-publications-page-shell .gd-page-shell {
  width: min(100%, 1120px);
  border: 0;
  box-shadow: none;
}

.gd-publications-page-shell .gd-publications-page__section + .gd-publications-page__section {
  border-top-color: rgba(0, 0, 0, 0.17);
}

.gd-publications-page-shell .gd-publications-page__section h2 {
  margin-bottom: 1.5rem;
  color: var(--gd-ocean);
}

.gd-publications-page-shell .gd-publication-book-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
}

.gd-publications-page-shell .gd-publication-book-grid figure {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  box-shadow: none;
}

.gd-publications-page-shell .gd-publication-book-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gd-publications-page-shell .gd-publication-records {
  max-width: 88ch;
}

.gd-publications-page-shell .gd-publication-records li {
  padding: 1rem 0 1rem 3rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent !important;
}

/* Courses and people remain archives, but their repeated items gain a calmer visual baseline. */
.gd-courses-page .gd-project-list {
  width: min(100%, 1100px);
}

.gd-courses-page .gd-project-item {
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  align-items: start;
}

.gd-courses-page .gd-project-item__img--cover {
  min-height: 300px;
  padding: 0.75rem;
  background: #fff;
}

.gd-courses-page .gd-project-item__img--cover img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
}

.gd-members-page .gd-member-grid {
  width: min(100%, 1120px);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gd-members-page .gd-person-card {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.gd-members-page .gd-person-card__image {
  border-bottom: 2px solid var(--gd-ocean);
}

.gd-members-page .gd-person-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

/* Preserve the director-approved home copy; only tighten its reading rhythm. */
.gd-home-page .gd-home-narrative {
  max-width: 100ch;
}

.gd-home-page .gd-home-section {
  margin-block: 0;
  padding-block: clamp(1.4rem, 2.7vw, 2.25rem);
  border-top: 1px solid rgba(0, 0, 0, 0.17);
}

.gd-home-page .gd-home-section:first-child {
  border-top: 0;
}

.gd-home-page .gd-home-section--tint {
  background: transparent;
}

.gd-home-page .gd-home-section h2 {
  margin: 0 0 0.85rem;
  color: var(--gd-ocean);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  text-align: left;
}

.gd-home-page .gd-home-section p,
.gd-home-page .gd-home-section li {
  max-width: 100ch;
  line-height: 1.72;
}

@media (max-width: 820px) {
  .gd-projects-page .gd-project-item,
  .gd-courses-page .gd-project-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gd-projects-page .gd-project-item__img,
  .gd-courses-page .gd-project-item__img {
    width: min(100%, 420px);
  }

  .gd-research-main.gd-srof-directory .gd-hub-card.gd-hub-card--visual,
  .gd-research-main.gd-srof-directory .gd-hub-card.gd-hub-card--visual:nth-child(-n + 3) {
    grid-column: span 6 !important;
  }

  .gd-publications-page-shell .gd-publication-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gd-master-brochure {
    padding-inline: 1rem;
  }

  .gd-research-main.gd-srof-directory .gd-hub-card.gd-hub-card--visual,
  .gd-research-main.gd-srof-directory .gd-hub-card.gd-hub-card--visual:nth-child(-n + 3) {
    grid-column: 1 / -1 !important;
  }

  .gd-srof-directory .gd-hub-card--visual .gd-hub-card__copy {
    min-height: 126px;
  }

  .gd-publications-page-shell .gd-publication-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

