/* The live reader follows the ink, paper and berry palette of the repost maps. */
.reader-mark {
  display: none;
}
body:not(.live-reader) .bar {
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 28px;
}
body:not(.live-reader) .bar .investigation-nav {
  margin-block: 8px;
}
.live-reader {
  --paper: #fbfaf6;
  --ink: #29222e;
  --muted: #625c64;
  --berry: #812e53;
  --line: #d6d0c7;
  --sheet: #fffefa;
  color: var(--ink);
  background: var(--paper);
}
.live-reader main,
.live-reader .bar {
  width: calc(100% - clamp(32px, 8vw, 120px));
  max-width: 1340px;
}
.live-reader header {
  background: var(--ink);
  color: white;
}
.live-reader .bar {
  min-height: 62px;
  gap: clamp(20px, 3vw, 56px);
}
.live-reader .brand {
  color: white;
  font-size: 24px;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.live-reader .mark,
.live-reader #social-example {
  display: none;
}
.live-reader .reader-mark {
  display: inline-block;
}
.live-reader .investigation-nav {
  margin: 0;
  flex: 1;
  gap: 10px 20px;
}
.live-reader .investigation-nav > a {
  color: #eee6ed;
}
.live-reader #new {
  background: #dbedab;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 13px;
}
.live-reader #new:hover {
  background: #ebfac4;
}
.live-reader :focus-visible {
  outline: 3px solid #596cc0;
  outline-offset: 3px;
}
.live-reader header :focus-visible {
  outline-color: #d5efa2;
}
.live-reader .case-poster {
  padding: clamp(24px, 3.4vw, 50px) 0;
  border: 0;
}
.live-reader .hero-art {
  display: none;
}
.live-reader .hero,
.live-reader .hero-copy {
  display: block;
  background: transparent;
  padding: 0;
}
.live-reader #edition {
  font:
    650 12px/1.4 Inter,
    sans-serif;
  letter-spacing: 0.035em;
  text-transform: none;
  color: var(--muted);
}
.live-reader #edition {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  padding: 0;
}
.live-reader #edition::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--berry);
}
.live-reader h1 {
  max-width: 44ch;
  text-transform: none;
  margin: 9px 0 10px;
  font:
    500 clamp(32px, 3.55vw, 57px) / 1.06 Georgia,
    serif;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}
#live-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
#live-totals strong {
  color: var(--ink);
  font-weight: 650;
}
#live-totals span::before {
  content: "·";
  margin-right: 10px;
}
#live-finding {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  padding: 10px clamp(16px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
  background: #f5f4ed;
}
#live-finding p { margin: 0; }
#live-origin { font-weight: 650; }
#live-origin::before, .paper-verification::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #9c7527;
}
#live-finding[data-verified="true"] #live-origin::before,
.paper-verification[data-state="traced"]::before { background: #367058; }
.paper-verification[data-state="unresolved"]::before { background: #78737b; }
#live-counts, #live-baseline, .paper-verification {
  color: var(--muted);
  font: 500 12px/1.45 Inter, sans-serif;
}
#live-baseline { flex-basis: 100%; }
#search-stop { flex-basis: 100%; color: var(--ink); font-size: 16px; line-height: 1.5; }
#search-stop:not([hidden]) { margin-bottom: 5px; }
.review-state[data-verdict="contradicts"]::before, .paper-verification[data-state="contradicts"]::before { background: #aa3045; }
.review-state[data-verdict="insufficient"]::before { background: #78737b; }
.paper-verification[data-state="supports"]::before { background: #367058; }
#search-stop button { margin-left: 8px; border: 0; background: transparent; padding: 2px; color: var(--berry); font-size: inherit; text-decoration: underline; }
.paper-verification { display: block; margin-top: 6px; }
#live-research,
#reader-citations button,
#reader-passage button,
.back-to-pages {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--berry);
  font:
    650 13px/1.55 Inter,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#live-research:hover,
#reader-citations button:hover,
#reader-passage button:hover {
  color: var(--ink);
}
#live-map {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
  background: var(--sheet);
  scroll-margin: 12px;
}
.live-map-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px clamp(16px, 2vw, 30px);
}
.live-map-heading {
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
#live-map-title,
#reader-heading {
  margin: 0;
  font:
    500 clamp(25px, 2.2vw, 33px) / 1.12 Georgia,
    serif;
  letter-spacing: -0.04em;
  text-transform: none;
}
.live-map-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
#search-history {
  margin: 0;
  max-width: 100%;
}
#search-history[open] {
  flex-basis: 100%;
}
#search-history summary,
#reader-record summary {
  border: 0;
  padding: 4px 0;
  font:
    550 13px/1.4 Inter,
    sans-serif;
  color: var(--muted);
}
#search-runs {
  margin: 6px 0;
  padding-inline-start: 20px;
}
#search-runs li span {
  margin-left: 8px;
}
#live-map-empty {
  margin: 0;
  padding: 24px;
}
#live-map-chart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: stretch;
}
#live-map-chart:has(#live-map-layout[hidden]) { grid-template-columns: 1fr; }
#live-map-layout { min-width: 0; }
#live-map-chart .map-timeline { border: 0; }
#live-map-chart .timeline-viewport { min-height: 180px; }
#live-map-chart:has(#live-map-layout[hidden]) .timeline-viewport { min-height: 0; }
.source-paper {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid #c8c3b8;
  border-radius: 8px;
  padding: 11px 14px;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.source-paper:hover {
  background: #f7eef2;
  border-color: #a36c84;
}
.source-paper[aria-pressed="true"] {
  color: #fff;
  background: #572941;
  border-color: #572941;
}
.paper-byline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 4px;
}
.paper-byline strong {
  font-size: 14px;
  font-weight: 730;
}
.paper-byline small {
  flex-shrink: 0;
  font: 11px/1.3 var(--mono);
  color: var(--muted);
}
.source-paper[aria-pressed="true"] .paper-byline small {
  color: #f5dfe9;
}
#live-map-detail {
  position: relative;
  min-width: 0;
  padding: clamp(15px, 2vw, 30px);
  background: var(--sheet);
  border-left: 1px solid #d2cdc2;
  min-height: 100%;
  overflow-wrap: anywhere;
  scroll-margin-top: 12px;
}
.reader-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 13px;
}
#reader-outlet {
  font:
    650 13px/1.4 Inter,
    sans-serif;
  color: var(--berry);
}
#reader-link {
  color: var(--muted);
  font-size: 12px;
}
#reader-heading {
  font-size: clamp(25px, 1.95vw, 31px);
}
#live-map-quotes {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-block: 10px;
}
#live-map-quotes span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
}
#live-map-quotes:empty {
  display: none;
}
#live-map-quotes button {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 13px;
}
#live-map-quotes button[aria-pressed="true"] {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}
#live-map-quotes button:hover {
  border-color: var(--berry);
}
#reader-passage blockquote {
  border-left: 3px solid #cda0b3;
  padding-left: 14px;
  margin: 11px 0 17px;
  font:
    500 clamp(19px, 1.65vw, 25px) / 1.33 Georgia,
    serif;
  color: #362a34;
}
.attribution {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.review-state {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font:
    670 13px/1.45 Inter,
    sans-serif;
}
.review-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3e7560;
}
.review-state[data-verdict="qualifies"]::before, .paper-verification[data-state="qualifies"]::before {
  background: #b18029;
}
.attribution p,
#reader-metadata,
.passage-links {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
#reader-passage button {
  margin-top: 4px;
}
#reader-record {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
#reader-metadata p {
  margin: 4px 0;
}
.passage-links {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
#reader-citations button { justify-self: start; }
.back-to-pages {
  display: none;
}
.reader-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.map-actions, .map-reference {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.map-actions #export {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: 550 13px/1.5 Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#map-controls .controls, .map-reference, #map-context {
  padding: 9px clamp(16px, 2vw, 30px);
  border-color: var(--line);
}
#map-controls select, #map-controls button, .map-reference input,
.map-reference select, .map-reference button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--sheet);
  max-width: 100%;
}
.map-reference { border-top: 1px solid var(--line); }
.map-reference:not(:has(details:not([hidden]))) { display: none; }
.map-reference details { min-width: 0; margin: 0; max-width: 100%; }
.map-reference details[open] { flex-basis: 100%; }
.map-reference summary {
  border: 0;
  padding: 4px 0;
  font: 550 13px/1.4 Inter, sans-serif;
  color: var(--muted);
}
.map-reference ul { padding-left: 20px; overflow-wrap: anywhere; }
#map-context { margin: 0; font-size: 13px; }
.passage-links p { margin: 2px 0; }
.live-reader footer {
  color: var(--muted);
  font-size: 14px;
}

#reader-article { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  #live-map-chart { grid-template-columns: minmax(0, 1fr); }
  #live-map-detail { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .live-reader .bar {
    gap: 16px;
  }
  .live-reader .investigation-nav {
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .live-reader .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding-block: 12px;
  }
  .live-reader .brand {
    font-size: clamp(16px, 5vw, 22px);
    gap: 7px;
  }
  .live-reader #new {
    font-size: 12px;
    justify-self: end;
  }
  .live-reader .investigation-nav > a {
    justify-self: end;
  }
  #reader-article {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: -4px 0 10px;
  }
  .live-reader .investigation-nav {
    display: contents;
  }
  .live-reader .investigation-nav > a {
    margin-left: 0;
    font-size: 12px;
  }
  .live-reader .case-poster {
    padding-block: 22px;
  }
  .source-paper {
    padding: 8px 10px;
    font-size: 13px;
  }
  .back-to-pages {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
  }

}
