/* Terra Incognita. The page shell, type scale, link and footer treatment come from
 * base.css — this file holds only what is particular to the essay: its figures,
 * the key-idea callout, the takeaways grid and the source notes. */

.figure-ref { white-space: nowrap; }

.research-intro h1 {
  margin: 0 0 24px;
}

.research-intro p {
  margin: 0 0 1.6em;
  text-align: left;
}

.story-section {
  margin-top: 48px;
}

.story-section h2,
.takeaways h2,
.go-deeper h2 {
  margin: 0 0 18px;
}

.story-section > p:last-child { margin-bottom: 0; }

.story-figure {
  width: 100%;
  margin: 34px 0 48px;
}

.story-figure.figure-table {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  width: 100%;
  margin: 36px 0 54px;
  border-top: 1px solid #d8dde2;
  border-bottom: 1px solid #d8dde2;
}

.figure-table-image {
  display: flex;
  align-items: center;
  padding: 28px 30px 28px 0;
}

.figure-table figcaption {
  max-width: none;
  margin: 0;
  padding: 28px 0 28px 30px;
  border-left: 1px solid #d8dde2;
  color: var(--text);
  font-size: 15px;
  line-height: 1.62;
}

.story-figure img,
.program-map-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Stays inside the text column; the scroll container below handles the overflow
 * when the map is wider than the column. */
.program-map-figure {
  width: 100%;
  margin: 34px 0 46px;
}

.program-map-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.program-map-image { min-width: 920px; }

.program-map-caption {
  margin: 14px 0 0;
}

.key-idea {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #111;
  background: #f5f5f2;
}

.recognition-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.takeaways {
  margin-top: 56px;
}

.takeaways ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style-position: inside;
}

.takeaways li {
  padding: 22px;
  border: 1px solid #111;
  background: #fff;
}

.takeaways .citation {
  display: block;
  margin-top: 12px;
}

.go-deeper {
  margin-top: 54px;
}

.media-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.source-notes {
  margin-top: 42px;
  padding-top: 1.6em;
  border-top: 1px solid #d8dde2;
  font-size: 14.5px;
}

.source-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.source-notes summary::-webkit-details-marker {
  display: none;
}

.source-notes summary::after {
  content: "+";
  color: #7c8a97;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.source-notes[open] summary {
  margin-bottom: 0.55em;
}

.source-notes[open] summary::after {
  content: "\2212";
}

.source-notes summary:focus-visible {
  outline: 2px solid #7c8a97;
  outline-offset: 5px;
}

.source-list {
  margin: 24px 0 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.58;
}

.source-item {
  break-inside: avoid;
  margin: 0 0 24px;
  scroll-margin-top: 20px;
}

.source-title {
  display: grid;
  grid-template-columns: 2.35em minmax(0, 1fr);
  column-gap: 0.2em;
  margin-bottom: 5px;
  font-size: 15.5px;
  line-height: 1.35;
}

.source-number {
  color: #405c6b;
  font-weight: 700;
}

.source-authors,
.source-publication {
  display: block;
  margin-left: 2.55em;
}

.source-authors { color: #364148; }
.source-publication { color: var(--muted); }

.source-item a {
  color: inherit;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .research-intro h1 { font-size: 24px; }
  .takeaways ol { grid-template-columns: 1fr; }
  .story-figure.figure-table { grid-template-columns: 1fr; }
  .figure-table-image { padding: 22px 0; }
  .figure-table figcaption {
    padding: 22px 0;
    border-top: 1px solid #d8dde2;
    border-left: 0;
  }
}
