/* SGC · Context evidence convergence
   Scope: Regional Context + southwest atlas. */

body.sgc-r58 .sgc-r58-context__head::after {
  content: none !important;
  display: none !important;
}

body.sgc-r58 .sgc-r58-context__head {
  align-items: end;
}

body.sgc-r58 .sgc-r58-context__copy {
  gap: 16px;
}

body.sgc-r58 .sgc-r58-context__evidence {
  display: grid;
  grid-template-columns: minmax(260px, .52fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  margin-top: clamp(52px, 6vw, 82px);
  padding: clamp(30px, 3.2vw, 44px) 0;
  border-top: 1px solid var(--sgc58-line);
  border-bottom: 1px solid var(--sgc58-line);
}

body.sgc-r58 .sgc-r58-context__stat {
  display: grid;
  align-content: end;
  gap: 7px;
}

body.sgc-r58 .sgc-r58-context__stat strong {
  color: var(--sgc58-ink);
  font: 500 clamp(5.2rem, 10vw, 9.2rem)/.78 var(--serif, "Playfair Display", serif);
  letter-spacing: -.065em;
}

body.sgc-r58 .sgc-r58-context__stat span {
  color: var(--sgc58-accent);
  font: 600 .72rem/1.4 var(--mono, "JetBrains Mono", monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.sgc-r58 .sgc-r58-context__evidence-copy {
  display: grid;
  gap: 12px;
  max-width: 62ch;
}

body.sgc-r58 .sgc-r58-context__evidence-copy > strong {
  max-width: 23ch;
  color: var(--sgc58-ink);
  font: 500 clamp(1.55rem, 2.4vw, 2.45rem)/1.06 var(--serif, "Playfair Display", serif);
  letter-spacing: -.025em;
}

body.sgc-r58 .sgc-r58-context__evidence-copy p {
  margin: 0;
  color: var(--sgc58-muted);
  font-size: .96rem;
  line-height: 1.58;
}

body.sgc-r58 .sgc-r58-context__boundary {
  color: var(--sgc58-accent) !important;
  font: 600 .68rem/1.4 var(--mono, "JetBrains Mono", monospace) !important;
  letter-spacing: .065em;
  text-transform: uppercase;
}

body.sgc-r58 .sgc-r58-context__source,
body.sgc-r58 .sgc-r58-context__figure a,
body.sgc-r58 .sgc-r58-context__research a {
  width: fit-content;
  color: var(--sgc58-ink);
  font-size: .78rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.sgc-r58 .sgc-r58-context__figure {
  margin: clamp(34px, 4.2vw, 58px) 0 0;
}

body.sgc-r58 .sgc-r58-context__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 48%;
  background: #ddd8ce;
  filter: saturate(.82) contrast(1.025);
}

body.sgc-r58 .sgc-r58-context__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px 30px;
  align-items: baseline;
  margin-top: 10px;
  color: var(--sgc58-muted);
  font-size: .75rem;
  line-height: 1.45;
}

body.sgc-r58 .sgc-r58-context__figure figcaption span {
  max-width: 75ch;
}

body.sgc-r58 .sgc-r58-context__research {
  display: grid;
  grid-template-columns: minmax(210px, .44fr) minmax(0, 1fr) auto;
  gap: 20px clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 0;
  padding: clamp(24px, 2.8vw, 36px) 0;
  border-bottom: 1px solid var(--sgc58-line);
}

body.sgc-r58 .sgc-r58-context__research-label {
  display: grid;
  gap: 6px;
}

body.sgc-r58 .sgc-r58-context__research-label span {
  color: var(--sgc58-accent);
  font: 600 .68rem/1.4 var(--mono, "JetBrains Mono", monospace);
  letter-spacing: .065em;
  text-transform: uppercase;
}

body.sgc-r58 .sgc-r58-context__research-label strong {
  color: var(--sgc58-ink);
  font: 500 clamp(1.7rem, 2.6vw, 2.7rem)/1 var(--serif, "Playfair Display", serif);
  letter-spacing: -.035em;
}

body.sgc-r58 .sgc-r58-context__research p {
  margin: 0;
  max-width: 66ch;
  color: var(--sgc58-muted);
  font-size: .86rem;
  line-height: 1.55;
}

body.sgc-r58 .sgc-r58-context__research a {
  white-space: nowrap;
}

/* Southwest-first atlas. The generic national district mesh is retired here. */
body.sgc-r58 .sgc-r58-atlas {
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, .48fr);
  min-height: 500px;
  margin-top: clamp(52px, 5.8vw, 82px);
  border-top: 1px solid var(--sgc58-line);
  border-bottom: 1px solid var(--sgc58-line);
  background: #e8e4da;
}

body.sgc-r58 .sgc-r58-atlas__field {
  min-height: 500px;
  background: #e8e4da url("sgc-r58-atlas.svg") center / contain no-repeat;
}

body.sgc-r58 .sgc-r58-atlas__field::after,
body.sgc-r58 .sgc-r58-atlas__map,
body.sgc-r58 .sgc-r58-atlas__focus,
body.sgc-r58 .sgc-r58-atlas__label {
  display: none !important;
}

body.sgc-r58 .sgc-r58-atlas__note {
  align-content: center;
  gap: 16px;
  padding: clamp(32px, 3.4vw, 50px);
  border-left: 1px solid var(--sgc58-line);
  background: rgba(247,244,237,.88);
  backdrop-filter: none;
}

body.sgc-r58 .sgc-r58-atlas__note strong {
  font-size: 0;
}

body.sgc-r58 .sgc-r58-atlas__note strong::after {
  content: "SGC operating points";
  display: block;
  max-width: 12ch;
  color: var(--sgc58-ink);
  font: 500 clamp(1.55rem, 2vw, 2.05rem)/1.04 var(--serif, "Playfair Display", serif);
  letter-spacing: -.025em;
}

body.sgc-r58 .sgc-r58-atlas__note p:not(.sgc-r58-kicker):not(.sgc-r58-atlas__boundary) {
  max-width: 31ch;
}

body.sgc-r58 .sgc-r58-atlas__boundary {
  font-size: 0 !important;
}

body.sgc-r58 .sgc-r58-atlas__boundary::after {
  content: "COLLECTION · CONSOLIDATION · PROCESSOR · TO BE SELECTED";
  color: var(--sgc58-accent);
  font: 600 .66rem/1.5 var(--mono, "JetBrains Mono", monospace);
  letter-spacing: .045em;
}

@media (max-width: 960px) {
  /* sgc-r58-art.css is loaded after the base R58 file, so repeat the authored
     one-column context composition here at the final context layer. */
  body.sgc-r58 .sgc-r58-context__head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.sgc-r58 .sgc-r58-context__copy {
    width: 100%;
    min-width: 0;
    align-self: auto;
  }

  body.sgc-r58 .sgc-r58-context__evidence {
    grid-template-columns: minmax(220px, .5fr) minmax(0, 1fr);
    gap: 34px;
  }

  body.sgc-r58 .sgc-r58-context__research {
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
  }

  body.sgc-r58 .sgc-r58-context__research a {
    grid-column: 2;
  }

  body.sgc-r58 .sgc-r58-atlas {
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .55fr);
    min-height: 430px;
  }

  body.sgc-r58 .sgc-r58-atlas__field {
    min-height: 430px;
  }
}

@media (max-width: 719px) {
  body.sgc-r58 .sgc-r58-context__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  body.sgc-r58 .sgc-r58-context__head > div,
  body.sgc-r58 .sgc-r58-context__copy {
    width: 100%;
    min-width: 0;
  }

  body.sgc-r58 .sgc-r58-context .sgc-r58-title {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.8vw, 2.9rem);
    line-height: .98;
  }

  body.sgc-r58 .sgc-r58-context__copy {
    margin: 0;
    padding: 0;
  }

  body.sgc-r58 .sgc-r58-context__source,
  body.sgc-r58 .sgc-r58-context__figure a,
  body.sgc-r58 .sgc-r58-context__research a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body.sgc-r58 .sgc-r58-context__evidence {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 0 30px;
  }

  body.sgc-r58 .sgc-r58-context__stat strong {
    font-size: clamp(5rem, 25vw, 7rem);
  }

  body.sgc-r58 .sgc-r58-context__evidence-copy > strong {
    max-width: 100%;
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }

  body.sgc-r58 .sgc-r58-context__figure {
    margin-top: 30px;
  }

  body.sgc-r58 .sgc-r58-context__figure img {
    aspect-ratio: 4 / 3;
    object-position: center 48%;
  }

  body.sgc-r58 .sgc-r58-context__figure figcaption {
    display: grid;
    gap: 8px;
    margin-top: 9px;
  }

  body.sgc-r58 .sgc-r58-context__research {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0 26px;
  }

  body.sgc-r58 .sgc-r58-context__research a {
    grid-column: auto;
  }

  body.sgc-r58 .sgc-r58-atlas {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 40px;
  }

  body.sgc-r58 .sgc-r58-atlas__field {
    min-height: 300px;
    background-size: contain;
    background-position: center;
  }

  body.sgc-r58 .sgc-r58-atlas__note {
    padding: 25px 20px 28px;
    border-left: 0;
    border-top: 1px solid var(--sgc58-line);
  }

  body.sgc-r58 .sgc-r58-atlas__note strong::after {
    max-width: 16ch;
  }
}

/* Rendered-QA correction: use the authored HTML copy instead of generated pseudo-copy.
   This removes the zero-font parent that collapsed the atlas title to one character per line. */
body.sgc-r58 .sgc-r58-atlas__note strong {
  max-width: 16ch;
  color: var(--sgc58-ink);
  font: 500 clamp(1.45rem, 2vw, 2.05rem)/1.08 var(--serif, "Playfair Display", serif);
  letter-spacing: -.025em;
}

body.sgc-r58 .sgc-r58-atlas__note strong::after,
body.sgc-r58 .sgc-r58-atlas__boundary::after {
  content: none;
}

body.sgc-r58 .sgc-r58-atlas__boundary {
  color: var(--sgc58-accent) !important;
  font: 600 .66rem/1.5 var(--mono, "JetBrains Mono", monospace) !important;
  letter-spacing: .045em;
}
