.rag-page {
  max-width: 1200px;
  padding-bottom: 4rem;
}
.rag-hero {
  padding-block: clamp(2.2rem, 5vw, 4.5rem) 2rem;
}
.rag-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
}
.rag-hero .intro {
  max-width: 49rem;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
}
.rag-hero .scope {
  max-width: 49rem;
  color: var(--muted);
  font-size: .9rem;
}
.rag-index {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.rag-index a {
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.rag-index a span {
  font-family: var(--mono);
  color: var(--blue);
  margin-right: .35rem;
}
.rag-step {
  display: grid;
  grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.45fr);
  gap: clamp(1.3rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  scroll-margin-top: 6rem;
}
.rag-step header .number {
  display: block;
  font: .8rem var(--mono);
  color: var(--blue);
  margin-bottom: .6rem;
}
.rag-step h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  max-width: 17ch;
}
.rag-step .step-body {
  max-width: 51rem;
  font-size: 1.02rem;
}
.rag-step .step-body p:last-child {
  margin-bottom: 0;
}
.rag-step .finding {
  padding: 1rem 1.15rem;
  background: #eaf0fc;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  margin-top: 1.25rem;
}
.rag-step figure {
  grid-column: 1 / -1;
  min-width: 0;
  margin: .25rem 0 0;
  background: #fff;
  border: 1px solid var(--line);
}
.rag-step figure img {
  display: block;
  width: 100%;
  height: auto;
}
.rag-step figcaption {
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.rag-step figcaption a {
  white-space: nowrap;
}
.rag-wide-image {
  overflow-x: auto;
}
.rag-wide-image img {
  min-width: 1300px;
}
.rag-step figure.rag-focus-figure {
  width: min(100%, 55rem);
  justify-self: center;
}
.rag-diagram {
  overflow-x: auto;
}
.rag-diagram img {
  min-width: 650px;
}
.rag-close {
  max-width: 51rem;
  margin: 2.5rem 0 0 auto;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 3px solid var(--blue);
}
.rag-close p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .rag-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  .rag-step figure {
    grid-column: 1;
  }
  .rag-wide-image img {
    min-width: 1100px;
  }
}

@media (min-width: 761px) {
  .rag-step figure { width: 65%; justify-self: center; }
  .rag-step figure.rag-focus-figure { width: min(100%, 55rem); }
}

#banco figure.rag-lab-overview{width:100%;justify-self:stretch}
#banco .rag-lab-overview img{width:100%;min-width:0;height:auto}
