/* The surface matches Contact; the centered reading layout lives inside it. */
.curation-study main :is(.hero-panel, .section-panel) {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: left;
  overflow-wrap: break-word;
}

.curation-study main :is(h1, h2, h3) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.curation-study main .channel-study > .content-prose > p {
  /* Keep the existing text treatment inside the separate reading column. */
  color: #1F2937;
  letter-spacing: 0.02em;
  padding: 0;
  font-size: var(--content-font-body);
  line-height: var(--content-leading-body);
}

.curation-study .hero .curation-status {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.curation-study .toc-nav {
  justify-content: flex-start;
}

.curation-study .toc-btn {
  color: #00647d;
}

.curation-study .toc-btn:hover {
  background: #00647d;
  color: #fff;
}

.curation-capture {
  /* Preserve the native capture size so small interface text stays sharp. */
  width: min(100%, 448px);
  margin: 1rem auto 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.curation-capture > a {
  display: block;
  width: 100%;
  max-width: 100%;
}

.curation-capture img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.curation-capture figcaption {
  margin-top: 0.625rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.curation-capture a:focus-visible {
  outline: 3px solid #00647d;
  outline-offset: 5px;
}

.curation-study main .section {
  scroll-margin-top: 7.5rem;
}

/* The diagram keeps translated text live and switches to a readable mobile layout. */
.curation-architecture {
  margin: 1.75rem 0 2.5rem;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.curation-architecture > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.curation-architecture .curation-architecture__narrow {
  display: none;
}

.architecture-cloud {
  fill: #e6f0f5;
  stroke: #8fa8b7;
  stroke-width: 1.5;
}

.architecture-cloud-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1a2a3a;
  font-size: 17px;
  line-height: 1.35;
}

.architecture-cloud-heading strong {
  font-size: 20px;
}

.architecture-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  border: 1px solid #8fa8b7;
  border-radius: 8px;
  background: #f8fbfd;
  color: #1a2a3a;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.architecture-node strong {
  font-size: 18px;
  font-weight: 650;
}

.architecture-node--bot {
  background: #d3eaf2;
  border-color: #00647d;
}

.architecture-node--external {
  background: #edf1f4;
}

.architecture-edge {
  fill: none;
  stroke: #526c7d;
  stroke-width: 1.5;
}

.architecture-edge--control {
  stroke-dasharray: 4 4;
}

.curation-architecture marker path {
  fill: #526c7d;
}

.architecture-edge-label {
  fill: #344f60;
  font-size: 16px;
}

@media (max-width: 47.999rem) {
  .curation-architecture .curation-architecture__wide {
    display: none;
  }

  .curation-architecture .curation-architecture__narrow {
    display: block;
    max-width: 22rem;
    margin-inline: auto;
  }

  .curation-architecture__narrow .architecture-node,
  .curation-architecture__narrow .architecture-cloud-heading {
    font-size: 20px;
  }

  .curation-architecture__narrow .architecture-node strong,
  .curation-architecture__narrow .architecture-cloud-heading strong {
    font-size: 22px;
  }

  .curation-architecture__narrow .architecture-edge-label {
    font-size: 19px;
  }
}

/* Let navigation scroll away when it would cover the reading column. */
@media (max-width: 64rem) {
  .curation-study :is(.nav, .back-btn, .lang-toggle) {
    position: absolute;
  }

  .curation-study .back-to-top {
    position: static;
    margin: 1.5rem auto;
  }

  .curation-study main .section {
    scroll-margin-top: 1rem;
  }
}
