/* Page-local additions; typography and colours inherit from the homepage. */
.skip-link {
  position: absolute;
  left: 20px;
  top: -70px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--navy);
}
.skip-link:focus { top: 10px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
.cartography { max-width: 100%; }
.cartography-heading {
  padding: 52px 0 30px;
}
.cartography-affiliation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.cartography-affiliation .mm-symbol {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}
.cartography .cartography-affiliation p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--muted);
}
.cartography-affiliation span {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.cartography-heading h1 {
  font: 500 clamp(2.4rem, 4.5vw, 3.6rem)/1.08 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}
.cartography-subtitle {
  max-width: 790px;
  font-size: 1.13rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.cartography-explanation { padding-bottom: 30px; }
.cartography-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 0 0 32px;
}
.cartography p { margin: 0 0 17px; }
.cartography .cartography-subtitle { margin: 0; }
.cartography-introduction p:last-child,
.chart-overview p:last-child { margin-bottom: 0; }
.cartography figure { margin: 0; }
.cartography figure img { display: block; width: 100%; height: auto; }
.atlas-figure { max-width: 410px; }
.cartography-section { padding-top: 36px; scroll-margin-top: 20px; }
.cartography-section h2 {
  margin: 0 0 22px;
  font: 500 clamp(1.8rem, 3vw, 2.3rem)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -.015em;
}
.chart-catalogue {
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
}
.cartography .catalogue-empty { margin: 0; color: var(--muted); }
.chart-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 30px;
}
.chart-figure { max-width: 380px; justify-self: center; }
.chart-contents { max-width: none; padding: 0; }
.chart-contents:last-of-type { border-bottom: 0; }
.chart-contents summary { padding: 16px 0; font-size: 1rem; color: var(--navy); }
.chart-contents[open] summary { margin-bottom: 6px; }
.cartography .collaboration-note {
  margin: 24px 0 0;
  font-size: .92rem;
  color: var(--muted);
  max-width: 950px;
}
.chart-aspects {
  max-width: none;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  padding: 0;
  margin: 0;
  counter-reset: aspect;
}
.chart-aspects > li {
  position: relative;
  counter-increment: aspect;
  border-top: 1px solid var(--line);
  padding: 19px 0 23px 31px;
}
.chart-aspects > li::before {
  content: counter(aspect) '.';
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
}
.chart-aspects h3 {
  font: 600 1rem/1.4 Arial, Helvetica, sans-serif;
  margin: 0 0 8px;
  color: var(--ink);
}
.chart-aspects p { font-size: .95rem; margin: 0; }
.cartography-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .8rem;
}

/* Shared by the catalogue and generated chart landing pages. */
.chart-record { border-top: 1px solid var(--line); padding: 22px 0; }
.chart-record h3 { margin: 0 0 8px; font: 500 1.35rem/1.3 Georgia, serif; }
.chart-meta { color: var(--muted); font-size: .9rem; }
.cartography .chart-meta { margin: 0 0 10px; }
.chart-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.chart-abstract { max-width: 780px; }
.chart-version-list { padding-left: 24px; }
.chart-version-list li { margin-bottom: 8px; }
.chart-citation {
  padding: 16px 18px;
  border-left: 2px solid var(--line);
  background: var(--soft);
  overflow-wrap: anywhere;
  font-size: .94rem;
}
.chart-breadcrumb { margin: 30px 0 0; font-size: .9rem; }
.cartography-main { max-width: 900px; padding-top: 40px; }
.cartography-main h1 {
  font: 500 clamp(2.1rem, 4vw, 3rem)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}

@media (max-width: 800px) {
  .cartography-introduction, .chart-overview { gap: 28px; }
  .cartography-introduction { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); }
  .chart-overview { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; align-items: center; }
  .site-header nav { flex-wrap: wrap; overflow: visible; gap: 10px 15px; }
  .cartography-heading { padding: 38px 0 26px; }
  .cartography-affiliation .mm-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  .cartography-subtitle { font-size: 1.05rem; }
  .cartography-introduction, .chart-overview { grid-template-columns: 1fr; gap: 26px; }
  .atlas-figure, .chart-figure { width: min(100%, 360px); justify-self: center; }
  .cartography-introduction { padding-bottom: 30px; }
  .cartography-section { padding-top: 30px; }
  .chart-aspects { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .site-header nav { width: 100%; }
  .cartography-heading h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Historic map illustrations alongside the project and Atlas introduction. */
.cartography-heading { padding-bottom: 22px; }
.cartography .chart-catalogue { border-top: 0; padding-top: 0; }
.artwork-figure { text-align: left; }
.cartography .artwork-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.cartography-opening {
  display: flow-root;
  position: relative;
  margin-bottom: 24px;
}
.cartography .cartography-introduction {
  display: block;
  padding: 0;
}
.atlas-description { margin-top: 24px; padding-bottom: 82px; }
.cartography .atlas-description p { margin-bottom: 0; }
.cartography .atlas-description h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
}
.cartography .atlas-figure {
  float: right;
  width: min(46%, 400px);
  max-width: 400px;
  margin: 0;
  /* Follow the assembled paper edge, with room for the surrounding text. */
  shape-outside: polygon(1.325% 41.406%, 7.152% 25.651%, 18.278% 12.63%, 33.51% 4.167%, 49.272% 1.432%, 50.728% 1.432%, 63.576% 3.646%, 66.49% 4.167%, 67.682% 4.688%, 81.589% 12.63%, 92.715% 25.521%, 98.675% 41.536%, 98.675% 58.464%, 92.848% 74.219%, 81.987% 86.979%, 81.06% 87.63%, 66.755% 95.703%, 63.046% 96.354%, 49.801% 98.568%, 33.907% 95.833%, 32.45% 95.312%, 18.278% 87.24%, 7.152% 74.219%, 1.325% 58.594%) border-box;
  shape-margin: 30px;
}
.atlas-artwork-window {
  aspect-ratio: 755 / 768;
  overflow: hidden;
}
.cartography .atlas-artwork-window img {
  width: 100%;
  max-height: none;
  /* Preserve the polygonal paper outline; hide only the gray scan background. */
  clip-path: polygon(1.325% 41.406%, 7.152% 25.651%, 18.278% 12.63%, 33.51% 4.167%, 49.272% 1.432%, 50.728% 1.432%, 63.576% 3.646%, 66.49% 4.167%, 67.682% 4.688%, 81.589% 12.63%, 92.715% 25.521%, 98.675% 41.536%, 98.675% 58.464%, 92.848% 74.219%, 81.987% 86.979%, 81.06% 87.63%, 66.755% 95.703%, 63.046% 96.354%, 49.801% 98.568%, 33.907% 95.833%, 32.45% 95.312%, 18.278% 87.24%, 7.152% 74.219%, 1.325% 58.594%);
}
.cartography .atlas-figure figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cartography .chart-figure img { max-height: 260px; }
.cartography .chart-figure figcaption {
  margin: 12px 0 0;
  color: var(--muted);
  font: 400 .72rem/1.5 Arial, Helvetica, sans-serif;
}
.artwork-figure figcaption a { color: inherit; }
.illustrated-chart-overview {
  display: block;
  margin: 24px 0 30px;
}
.illustrated-chart-record {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  border-top: 0;
}
.chart-record-text { grid-column: 2; grid-row: 1; }
.illustrated-chart-record + .illustrated-chart-record {
  border-top: 1px solid var(--line);
}
.chart-thumbnail {
  display: block;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: 190px;
  line-height: 0;
}
.cartography .chart-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}
.cartography .chart-thumbnail--sheet-11 img {
  clip-path: polygon(4.3% 4.8%, 6.5% 3.7%, 24% 3.5%, 48.5% 3.9%, 50.6% 5.5%, 52.7% 4.7%, 93.2% 4.7%, 96.7% 5.5%, 97.2% 8%, 97.4% 27%, 97% 91%, 96.4% 95.1%, 95% 96.5%, 51% 96.6%, 49.6% 97.2%, 43% 96.5%, 6.4% 96.3%, 3.1% 95.5%, 2.5% 92.5%, 3% 51%, 3.4% 20%, 3.8% 8%);
}
.cartography .chart-thumbnail--sheet-01 img {
  clip-path: polygon(3.5% 3.8%, 9% 3.2%, 48.4% 3.7%, 50.9% 4.9%, 54.7% 4.4%, 93% 4.7%, 96.8% 5.5%, 97.3% 19%, 97.2% 93.5%, 96.5% 95.7%, 95% 96.3%, 51% 96.3%, 48.8% 97.3%, 45% 96.5%, 3.6% 97%, 2.8% 96%, 3% 14%);
}
.cartography .chart-thumbnail--sheet-40 img {
  clip-path: polygon(4.5% 5.9%, 5.9% 4.9%, 25% 5.1%, 47.5% 5.5%, 51.8% 6.5%, 65% 5.2%, 90% 4.8%, 96% 4.9%, 96.7% 9%, 97% 27%, 96.8% 60%, 97% 90%, 96.4% 94.8%, 94.6% 95.9%, 54% 96.2%, 50% 96.8%, 45% 96%, 8% 95.9%, 4.7% 95.4%, 3.3% 93.6%, 3.8% 11%);
}
.cartography .chart-thumbnail--sheet-55 img {
  clip-path: polygon(4.4% 6%, 5.6% 5.1%, 25% 5.3%, 46.5% 5.7%, 51.8% 6.6%, 64.7% 4%, 95% 3.6%, 96% 4.4%, 96.7% 15%, 97% 50%, 96.9% 78%, 96.8% 95.5%, 95% 96.4%, 54.4% 96.7%, 50.8% 96.1%, 5% 95.5%, 3.3% 94.2%, 3.5% 43%, 3.6% 13%);
}
.cartography .artwork-credit { font-size: .72rem; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.map-note { max-width: 950px; margin-top: 12px; }
.cartography .map-note h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 .92rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.cartography .map-note > p:not(.artwork-credit) {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.map-note a { color: inherit; }
@media (max-width: 960px) {
  .cartography-opening { display: flex; flex-direction: column; gap: 26px; }
  .cartography .cartography-introduction { order: 0; }
  .atlas-description { order: 2; margin-top: 0; padding-bottom: 0; }
  .cartography .atlas-description h2 { position: static; margin-top: 30px; }
  .cartography .atlas-figure {
    order: 1;
    float: none;
    align-self: center;
    shape-outside: none;
    width: min(100%, 380px);
    margin: 0;
  }
}
@media (max-width: 700px) {
  .cartography .chart-figure img { max-height: 280px; }
  .illustrated-chart-record { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; }
  .chart-thumbnail { width: 140px; }
}
@media (max-width: 430px) {
  .illustrated-chart-record { grid-template-columns: 108px minmax(0, 1fr); gap: 16px; }
  .chart-thumbnail { width: 108px; }
  .illustrated-chart-record h3 { font-size: 1.15rem; }
}
