/* A completed folio: observation, documented place, then the source record. */
.reveal { margin-top: 2.5rem; padding-top: 1.7rem; border-top: 6px solid var(--forest, #203f34); }
.reveal > .eyebrow { display: inline-block; margin-bottom: .9rem; padding: .4rem .65rem; background: var(--gold, #f4c768); color: var(--ink); font-family: var(--mono, monospace); line-height: 1.4; }
.reveal > h2 { scroll-margin-top: 1rem; max-width: 25ch; font-family: var(--display, sans-serif); font-size: clamp(2.1rem, 4.2vw, 3.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
.reveal-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.reveal-comparison > section { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-top: 4px solid var(--accent, #8f432d); background: var(--paper); }
.reveal-comparison > section + section { border-top-color: var(--forest, #203f34); background: #e7ebdf; }
.reveal-comparison h3 { margin-bottom: .9rem; font-family: var(--mono, monospace); font-size: .9rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
.reveal-comparison p:last-child { margin-bottom: 0; }
.reveal-comparison blockquote { margin: .8rem 0 0; padding: .3rem 0 .3rem 1rem; border-left: 3px solid var(--accent, #8f432d); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.reveal-pin-key { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border: 2px solid #fff; border-radius: 50%; color: #fff; font: 700 .9rem Arial, sans-serif; vertical-align: middle; margin-right: .3rem; }
.guess-key { background: #8f432d; }
.answer-key { background: #203f34; }
.reveal-comparison .answer-name { font-family: var(--display, sans-serif); font-weight: 700; font-size: 1.6rem; line-height: 1.3; letter-spacing: -.025em; }
.reveal-top { gap: clamp(1.25rem, 3vw, 3rem); }
.reveal-top h3 { max-width: 25ch; font-family: var(--display, sans-serif); font-size: 1.8rem; font-weight: 750; line-height: 1.15; letter-spacing: -.03em; }
.reveal-top > div > p { max-width: 45rem; line-height: 1.7; }
.reveal .button-row { align-items: stretch; }
.reveal .button-row button { border-color: var(--forest, #203f34); border-radius: 0; line-height: 1.45; }
.reveal .evidence-crop { padding: .65rem; border: 1px solid var(--forest, #203f34); border-bottom: 4px solid var(--forest, #203f34); background: var(--paper); }
.reveal .evidence-crop img { display: block; max-height: 420px; background: #e3e1d7; }
.reveal .evidence-crop figcaption { padding: .2rem .2rem 0; font-size: .95rem; line-height: 1.6; }
.reveal .evidence-crop figcaption > strong { display: block; margin-bottom: .35rem; font-family: var(--mono, monospace); font-size: .85rem; letter-spacing: .02em; }
.reveal-photo-credit { display: block; margin: .7rem 0; font-family: var(--mono, monospace); font-size: .82rem; line-height: 1.55; color: var(--muted, #4c5d53); overflow-wrap: anywhere; }
.reveal .evidence-crop button { margin-top: .4rem; min-height: 48px; border-color: var(--forest, #203f34); border-radius: 0; }
.reveal-map { margin: 2rem 0; max-width: 1100px; }
.reveal-map > p { max-width: 55rem; padding-left: 1rem; border-left: 3px solid var(--gold, #f4c768); line-height: 1.65; }
/* Colliding labels move; the small anchor dots retain the recorded coordinates. */
.surface-panel .marker-callout {
  --pin-color: #8f432d;
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: var(--pin-color);
  box-shadow: 0 0 0 1px var(--pin-color);
  z-index: 2;
}
.surface-panel .marker-callout.correct { --pin-color: #203f34; background: var(--pin-color); box-shadow: 0 0 0 1px var(--pin-color); }
.surface-panel .marker-callout::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stem-length);
  height: 2px;
  background: var(--pin-color);
  transform: rotate(var(--stem-angle));
  transform-origin: 0 50%;
  z-index: -1;
}
.surface-panel .marker-callout .marker-letter {
  position: absolute;
  left: calc(50% + var(--label-x));
  top: calc(50% + var(--label-y));
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pin-color);
  color: #fff;
  box-shadow: 0 0 0 1px var(--pin-color);
  line-height: 1;
}
.surface-panel .marker-callout.same-point.correct { background: linear-gradient(90deg, #8f432d 50%, #203f34 50%); }
.marker-comparison { margin: 0; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .95rem; line-height: 1.6; }
@media (forced-colors: active) {
  .surface-panel .marker-callout .marker-letter { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .surface-panel .marker-callout::before { background: CanvasText; }
}
.reveal-next { border-top: 2px solid var(--forest, #203f34); border-bottom: 1px solid var(--line); padding: 2rem 0; margin: 2rem 0; }
.reveal-next h2, .reveal-sources-heading { font-family: var(--display, sans-serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 750; line-height: 1.1; letter-spacing: -.035em; }
.reveal-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.reveal-choice { min-width: 0; border: 1px solid var(--forest, #203f34); background: var(--paper); }
.reveal-choice-link { display: block; height: 100%; text-decoration: none; }
.reveal-choice-link:hover { background: #e7ebdf; }
.reveal-choice-link:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.reveal-choice img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; background: #e3e1d7; border-bottom: 3px solid var(--forest, #203f34); }
.reveal-choice-copy { padding: 1.1rem; }
.reveal-choice-reason { display: inline-block; margin-bottom: .8rem; padding: .3rem .5rem; color: var(--ink); background: var(--gold, #f4c768); font-family: var(--mono, monospace); font-size: .8rem; font-weight: 600; line-height: 1.5; }
.reveal-choice h3 { margin-bottom: .6rem; font-family: var(--display, sans-serif); font-size: 1.8rem; font-weight: 750; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.reveal-choice-copy > p:not(.reveal-choice-reason) { font-size: .9rem; margin-bottom: 1rem; line-height: 1.5; }
.reveal-choice-action { display: block; font-size: .95rem; font-weight: 700; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.reveal-next-links { margin-top: 1.3rem; gap: .8rem 1.5rem; }
.reveal-next-links a { display: inline-flex; align-items: center; min-height: 48px; }
.reveal-sources-heading { margin-top: 2rem; }
.reveal .source-list { gap: 1.5rem 2.5rem; }
.reveal .source-item { border-color: var(--forest, #203f34); }
.reveal .source-item h3 { font-family: var(--display, sans-serif); font-weight: 700; line-height: 1.25; }
.reveal .source-item p { font-size: .95rem; line-height: 1.65; }
.reveal-detail { clear: both; }
.reveal-detail h2 { font-family: var(--display, sans-serif); font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -.035em; }
.reveal-detail > p { max-width: 65rem; line-height: 1.6; }
.reveal-detail .toolbar { gap: .5rem; padding: .65rem; background: var(--paper); border: 1px solid var(--forest, #203f34); }
.reveal-detail .toolbar button { min-height: 48px; min-width: 48px; border-color: var(--forest, #203f34); border-radius: 0; font-size: 1rem; }
.reveal-detail .zoom-level { font-family: var(--mono, monospace); min-width: 4rem; }
#inspection .reveal-detail .viewport { height: 55vh; height: 55dvh; cursor: auto; border: 1px solid var(--forest, #203f34); background: #e3e1d7; }
.reveal-detail .viewport img { display: block; max-width: none; height: auto; margin: 0 auto; }
.reveal-detail .small { margin-top: 1rem; color: var(--muted, #4c5d53); font-family: var(--mono, monospace); font-size: .85rem; line-height: 1.6; }
@media (max-width: 720px) {
  .reveal { margin-top: 1.5rem; padding-top: 1.2rem; }
  .reveal-comparison, .reveal-choices { grid-template-columns: 1fr; }
  .reveal-comparison { gap: .8rem; margin-top: 1.1rem; }
  .reveal-comparison > section { padding: 1rem; }
  .reveal-comparison .answer-name { font-size: 1.45rem; }
  .reveal-top h3 { font-size: 1.65rem; }
  .reveal-choice img { aspect-ratio: 2.3/1; }
  .reveal-choice-copy { padding: 1rem; }
  .reveal-next { padding: 1.5rem 0; }
  .reveal .button-row button { width: 100%; text-align: left; }
  .reveal-detail h2 { font-size: 1.6rem; }
  #inspection .reveal-detail .viewport { height: 48vh; height: 48dvh; }
}
.strong-contrast .reveal-comparison > section + section { background: var(--paper); border-color: var(--ink); }
.strong-contrast :is(.reveal-photo-credit, .reveal-detail .small) { color: var(--ink); }
@media (forced-colors: active) {
  .reveal-pin-key { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .reveal-choice-link:focus-visible { outline: 3px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { .reveal *, .reveal-detail * { scroll-behavior: auto !important; } }
