.spaces-editorial-intro,
.spaces-editorial-catalog,
.spaces-editorial-request {
  padding-inline: var(--editorial-edge);
}

.spaces-editorial-intro {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  gap: 4rem;
  border-bottom: 1px solid var(--editorial-line);
  padding-block: 5rem;
}

.spaces-editorial-intro h2,
.spaces-editorial-heading h2,
.spaces-editorial-request h2 {
  max-width: 18ch;
  margin: 1rem 0 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.spaces-editorial-intro__copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  border-left: 1px solid var(--editorial-line);
  padding-left: 3rem;
}

.spaces-editorial-intro__copy p {
  max-width: 50rem;
  margin: 0;
  color: #536176;
  font-size: 0.98rem;
  line-height: 1.75;
}

.spaces-editorial-intro__copy p:first-child { color: #101a30; font-size: 1.1rem; font-weight: 650; }

.spaces-editorial-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
}

.spaces-editorial-stats div {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--editorial-line);
  padding: 1.4rem 1.5rem;
}

.spaces-editorial-stats div:last-child { border-right: 0; }
.spaces-editorial-stats dt { color: #627087; font-size: 0.65rem; font-weight: 750; text-transform: uppercase; }
.spaces-editorial-stats dd { margin: 0; color: #0a4660; font-family: "Unbounded", "Manrope", sans-serif; font-size: 1.75rem; }

.spaces-editorial-catalog { padding-block: 5rem; }
.spaces-editorial-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr); align-items: end; gap: 3rem; }
.spaces-editorial-heading > p { margin: 0; color: #627087; font-size: 0.92rem; line-height: 1.7; }

.spaces-editorial-group { margin-top: 4rem; scroll-margin-top: 7rem; }
.spaces-editorial-group > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 1.25rem; border-bottom: 1px solid var(--editorial-line); padding-bottom: 1.25rem; }
.spaces-editorial-group > header > span { color: #0f7180; font-size: 0.68rem; font-weight: 800; }
.spaces-editorial-group > header p { margin: 0; color: #627087; font-size: 0.62rem; font-weight: 750; text-transform: uppercase; }
.spaces-editorial-group > header h3 { margin: 0.35rem 0 0; font-family: "Unbounded", "Manrope", sans-serif; font-size: clamp(1.45rem, 2vw, 2.2rem); font-weight: 500; }
.spaces-editorial-group > header > strong { color: #0f7180; font-size: 1.25rem; }

.spaces-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--editorial-line); }
.spaces-editorial-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 54rem; }
.spaces-editorial-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spaces-editorial-card { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr); background: #fff; color: #07102d; text-decoration: none; transition: background 180ms ease; }
.spaces-editorial-card:hover { background: #f4faf9; }
.spaces-editorial-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e5edf0; }
.spaces-editorial-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.spaces-editorial-card:hover .spaces-editorial-card__media img { transform: scale(1.025); }
.spaces-editorial-card__media i { position: absolute; right: 0.85rem; bottom: 0.85rem; padding: 0.45rem 0.6rem; background: #fff; color: #0b5863; font-size: 0.58rem; font-style: normal; font-weight: 750; }
.spaces-editorial-card__body { display: flex; min-width: 0; flex-direction: column; padding: 1.4rem; }
.spaces-editorial-card__body > small { color: #0f7180; font-size: 0.58rem; font-weight: 750; text-transform: uppercase; }
.spaces-editorial-card__body > strong { margin-top: 0.75rem; font-family: "Unbounded", "Manrope", sans-serif; font-size: 1.08rem; font-weight: 550; line-height: 1.25; }
.spaces-editorial-card__body > p { margin: 0.85rem 0 0; color: #637087; font-size: 0.82rem; line-height: 1.65; }
.spaces-editorial-card__facts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.spaces-editorial-card__facts i { border: 1px solid #d8e3e6; padding: 0.38rem 0.5rem; color: #536176; font-size: 0.58rem; font-style: normal; }
.spaces-editorial-card__body > b { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; border-top: 1px solid var(--editorial-line); padding-top: 1.2rem; color: #0b5863; font-size: 0.72rem; }

.spaces-editorial-request {
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
  gap: 4rem;
  scroll-margin-top: 7rem;
  border-top: 1px solid var(--editorial-line);
  padding-block: 5rem;
  background: linear-gradient(110deg, #eef7f5 0%, #f7fafc 56%, #eaf2f6 100%);
}

.spaces-editorial-request > div > p:last-child { max-width: 40rem; margin: 1.4rem 0 0; color: #59677b; line-height: 1.75; }
.spaces-editorial-request ol { display: grid; margin: 0; padding: 0; list-style: none; }
.spaces-editorial-request li { display: grid; grid-template-columns: 2.5rem minmax(0, 0.48fr) minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid #cbdadd; padding: 1.25rem 0; }
.spaces-editorial-request li:first-child { border-top: 1px solid #cbdadd; }
.spaces-editorial-request li span { color: #0f7180; font-size: 0.62rem; font-weight: 800; }
.spaces-editorial-request li strong { font-size: 0.86rem; }
.spaces-editorial-request li p { margin: 0; color: #5e6c80; font-size: 0.78rem; line-height: 1.55; }
.spaces-editorial-request > button { grid-column: 2; display: inline-flex; min-height: 3.2rem; width: fit-content; align-items: center; justify-content: space-between; gap: 2.5rem; border: 0; padding: 0 1.2rem; background: #0b5863; color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

.spaces-detail-page {
  min-height: calc(100vh - 5rem);
}

.spaces-page-navigation {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--editorial-line);
  padding: 0 var(--editorial-edge);
}

.spaces-breadcrumbs,
.spaces-page-navigation__links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.spaces-breadcrumbs {
  overflow: hidden;
  color: #718096;
  font-size: 0.68rem;
  font-weight: 650;
}

.spaces-breadcrumbs a,
.spaces-page-navigation__links a {
  color: inherit;
  text-decoration: none;
}

.spaces-breadcrumbs a:hover,
.spaces-page-navigation__links a:hover {
  color: #0b5863;
}

.spaces-breadcrumbs > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: #172238;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spaces-page-navigation__links {
  flex: 0 0 auto;
  gap: 1.25rem;
  color: #536176;
  font-size: 0.66rem;
  font-weight: 750;
}

.spaces-page-navigation__links a[aria-current="page"] {
  color: #0b5863;
}

.public-editorial-resource-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  margin: 2.25rem 0 0;
  overflow: hidden;
  background: #e7eef0;
}

.public-editorial-resource-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .spaces-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces-editorial-intro,
  .spaces-editorial-request { grid-template-columns: 1fr; gap: 2.5rem; }
  .spaces-editorial-intro__copy { border-left: 0; border-top: 1px solid var(--editorial-line); padding: 2rem 0 0; }
  .spaces-editorial-request > button { grid-column: 1; }
}

@media (max-width: 720px) {
  .spaces-editorial-intro,
  .spaces-editorial-catalog,
  .spaces-editorial-request { padding-inline: 1rem; padding-block: 3.25rem; }
  .spaces-editorial-stats { grid-template-columns: 1fr; }
  .spaces-editorial-stats div { border-right: 0; border-bottom: 1px solid var(--editorial-line); }
  .spaces-editorial-stats div:last-child { border-bottom: 0; }
  .spaces-editorial-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .spaces-editorial-grid { grid-template-columns: 1fr; }
  .spaces-editorial-request li { grid-template-columns: 2rem minmax(0, 1fr); }
  .spaces-editorial-request li p { grid-column: 2; }
  .spaces-editorial-request > button { width: 100%; }
  .spaces-page-navigation {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-inline: 1rem;
  }
  .spaces-breadcrumbs {
    min-height: 3rem;
  }
  .spaces-page-navigation__links {
    min-height: 3rem;
    overflow-x: auto;
    border-top: 1px solid var(--editorial-line);
    white-space: nowrap;
  }
  .public-editorial-resource-cover {
    aspect-ratio: 4 / 3;
    margin-top: 1.75rem;
  }
}
