/* TW7.info Thames article layout. Software version authority: /release.json. */
.thames-story {
  --plum: #39243d;
  --deep: #28182d;
  --gold: #d6b66c;
  --line: #ded4e1;
  --paper: #fffefb;
  --serif: Georgia, "Times New Roman", serif;
  max-width: 54rem;
  margin-inline: auto;
  padding-block: clamp(1.6rem, 5vw, 3.2rem) 3rem;
}
.thames-story * { box-sizing: border-box; }
.thames-story .story-standfirst { margin-bottom: 1.15rem; }
.thames-story h1, .thames-story h2, .thames-story h3 { color: var(--plum); font-family: var(--serif); line-height: 1.15; }
.thames-story h1 { margin: .4rem 0 .65rem; font-size: clamp(2.05rem, 6vw, 3.4rem); }
.thames-story h2 { margin: 2rem 0 .65rem; font-size: clamp(1.65rem, 4vw, 2.05rem); }
.thames-story h3 { margin: 1.6rem 0 .55rem; font-size: 1.42rem; }
.thames-story img, .thames-story video { display: block; max-width: 100%; height: auto; }
.thames-story a { text-underline-offset: .18em; }
.thames-story .article-version { margin: 1.8rem 0 0; font-size: .86rem; color: var(--muted); }
.thames-story .opening-film { margin: 0 0 1.7rem; }
.thames-story .opening-film video { width: 100%; aspect-ratio: 16 / 9; background: #171322; }
.thames-story .opening-film figcaption { margin-top: .45rem; color: #615b68; font-size: .79rem; }
.thames-story .article-body { max-width: 48rem; margin: auto; font: 1.16rem/1.68 var(--serif); }
.thames-story .article-body p { margin: 0 0 1rem; }
.thames-story .street-examples { padding-left: 1.2rem; }
.thames-story .street-examples li + li { margin-top: .35rem; }
.thames-story .figure-reference {
  padding: .85rem 1rem;
  border-inline-start: 3px solid var(--gold);
  background: #f8f3ec;
  font: .88rem/1.55 Arial, Helvetica, sans-serif;
}
.thames-story .figure-reference p { margin: 0; }
.thames-story .figure-reference p + p { margin-top: .35rem; }
.thames-story table { width: 100%; margin: 1rem 0; border-collapse: collapse; font: .94rem/1.45 Arial, Helvetica, sans-serif; }
.thames-story thead { background: #f4edf6; }
.thames-story th, .thames-story td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.thames-story tbody th { font-weight: normal; }
.thames-story td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.thames-story .screening-media { margin: 1.15rem 0 .65rem; }
.thames-story .screening-media video { width: 100%; aspect-ratio: 16 / 9; background: var(--deep); }
.thames-story .screening-media figcaption, .thames-story .screening-trailer-links {
  color: #615b68;
  font: .83rem/1.55 Arial, Helvetica, sans-serif;
}
.thames-story .screening-media figcaption { margin-top: .45rem; }
.thames-story .research-sources {
  margin: 1.15rem 0;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  background: #f8f3ec;
  font: .91rem/1.55 Arial, Helvetica, sans-serif;
}
.thames-story .research-sources summary { color: var(--plum); font-weight: 600; cursor: pointer; }
.thames-story .research-sources ul { margin-bottom: .1rem; padding-left: 1.2rem; }
.thames-story .research-sources li + li { margin-top: .67rem; }
.thames-story .closeup-intro { padding-top: .2rem; }
.thames-story .creation { font: .83rem/1.5 Arial, Helvetica, sans-serif; color: #615b68; }

/* Shared presentation for the four maps. Their raster data and controls are unchanged. */
.thames-story .map-panel {
  --background: #fbf9f4;
  --foreground: #26232a;
  --muted-foreground: #63596b;
  --blue: #2675c7;
  --orange: #b96729;
  --green: #26834c;
  --purple: #7a41bb;
  --yellow: #cfa62d;
  --viz-series-6: #27a395;
  --font-size-base: 15px;
  min-width: 0;
  margin: 1.5rem 0 1.9rem;
  padding: 1rem;
  border-block: 1px solid var(--line);
  background: var(--background);
  color: var(--foreground);
  font: var(--font-size-base)/1.5 Arial, Helvetica, sans-serif;
}
.thames-story .map-panel section { min-width: 0; }
.thames-story .map-panel h2, .thames-story .map-panel h3 { margin: 0; font: 600 1.08rem/1.35 Arial, Helvetica, sans-serif; }
.thames-story .map-panel p, .thames-story .map-panel .map-footer { margin: 0; }
.thames-story .map-panel .viz-row { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem .65rem; }
.thames-story .map-panel .text-small { font-size: .81rem; }
.thames-story .map-panel .tabular-nums { font-variant-numeric: tabular-nums; }
.thames-story .map-panel .btn, .thames-story .map-panel .form-select {
  min-height: 2.4rem;
  max-width: 100%;
  border: 1px solid #b9a4be;
  border-radius: .45rem;
  background: var(--paper);
  color: var(--plum);
  padding: .35rem .6rem;
  font: inherit;
}
.thames-story .map-panel .btn { cursor: pointer; }
.thames-story .map-panel .btn:hover { background: #f2eaf4; }
.thames-story .map-panel .btn[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: white; }
.thames-story .map-panel .form-range { width: 100%; min-height: 1.8rem; margin: 0; accent-color: var(--plum); cursor: pointer; }
.thames-story .map-panel .form-label { font-weight: 600; }
.thames-story .map-panel .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.thames-story .map-panel footer { overflow-wrap: anywhere; }
.thames-story .map-panel footer a { color: #5a3166; }
.thames-story .map-panel #tw7-riverside-close-up { margin-inline: auto; }
.thames-story .map-panel [hidden] { display: none; }

@media (max-width: 34rem) {
  .thames-story .article-body { font-size: 1.05rem; }
  .thames-story .map-panel { padding: .65rem .45rem; }
}
@media (pointer: coarse) {
  .thames-story .map-panel .btn, .thames-story .map-panel .form-select { min-height: 44px; }
  .thames-story .map-panel .form-range { min-height: 44px; }
}
