.fathom-points { position: relative; --point-ink: #123c49; --point-font: var(--sans, system-ui, sans-serif); }
.points-frame { position: relative; }
/* A long, low picture (data-pan, set by the build) keeps the width its points need (--points-w) and scrolls sideways
   where the page is narrower; the hint then says so (data-panning, points-client.js). */
.fathom-points[data-pan] .points-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.fathom-points[data-pan] .points-frame { min-width: var(--points-w); }
.points-pan { display: none; }
.fathom-points[data-panning] .points-pan { display: inline; }
.points-hint { display: none; color: var(--point-ink); font: 600 13px/1.4 var(--point-font); }
.fathom-points[data-ready] .points-hint { display: block; margin-bottom: .45rem; }

/* A tip is a corner of the target. Its 26px head lies diagonally away from the detail. */
.fathom-points .point-pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(var(--left, 0), var(--top, 0));
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin: 0; border: 0;
  background: transparent; color: white; opacity: 1; cursor: pointer; touch-action: manipulation;
}
.point-pin[data-head$=left] { --left: -100%; --flip-x: -1; }
.point-pin[data-head^=upper] { --top: -100%; }
.point-pin[data-head^=lower] { --flip-y: -1; }
.point-pin svg {
  position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(var(--flip-x,1),var(--flip-y,1));
  fill: var(--point-ink); stroke: white; stroke-width: 1.8; filter: drop-shadow(0 0 1px #123c49);
}
.point-pin span { position: relative; font: 700 14px/1 var(--point-font); }
.point-pin[aria-expanded=true] { color: #12323b; }
.point-pin[aria-expanded=true] svg { fill: #ffe299; stroke: #12323b; }
.point-pin:disabled { cursor: default; }
.point-pin:focus-visible { outline: none; z-index: 2; }
.point-pin:focus-visible::after {
  content: ""; position: absolute; width: 35px; height: 35px; box-sizing: border-box;
  border: 4px solid #08777b; border-radius: 50%; box-shadow: 0 0 0 2px white, inset 0 0 0 1px white;
}
.fathom-points .point-note { font: 400 15px/1.45 var(--point-font); color: #233f4b; }
.fathom-graphic.fathom-points .points-list { margin: .9rem 0 0; padding: 0; list-style: none; counter-reset: point-number; }
.points-list li { position: relative; padding-left: 1.6em; counter-increment: point-number; }
.points-list li::before { content: counter(point-number); position: absolute; left: 0; color: #0b6b6f; font-weight: 700; }
.points-list strong::after { content: " ·"; }
.long-read .fathom-points.fathom-graphic > figcaption::before { content: none; }

@media screen {
  .fathom-points[data-ready] .point-note {
    display: none; box-sizing: border-box; background: #fffdf7; border: 1px solid var(--point-ink);
    border-left-width: 4px; border-radius: 2px; overflow-wrap: anywhere;
  }
  .fathom-points[data-ready] .points-list { margin: 0; padding: 0; }
  .fathom-points[data-ready] .points-list li { display: none; margin: 0; padding: 9px 58px 10px 12px; }
  .fathom-points[data-ready] .points-list li::before { content: none; }
  .fathom-points[data-ready] .points-list li[data-selected] { display: block; }
  .fathom-points[data-ready] .points-list strong { display: block; }
  .fathom-points[data-ready] .points-list strong::before { content: attr(data-number) ". "; }
  .fathom-points[data-ready] .points-list strong::after { content: none; }
  .fathom-points[data-open] .point-note { display: block; }
  .fathom-points[data-ready]:not([data-strip]) .point-note {
    position: absolute; z-index: 3; width: min(19rem, 100% - 8px); overflow: auto; box-shadow: 0 3px 12px #071f2e29;
  }
  .point-close:not([hidden]) {
    position: absolute; right: 3px; top: 0; min-height: 44px; min-width: 44px; padding: 0 4px;
    border: 0; background: none; color: #0b6064; text-decoration: underline; cursor: pointer; font: 600 13px var(--point-font);
  }
  .point-close:focus-visible { outline: 3px solid #08777b; outline-offset: -3px; }
  .fathom-points[data-strip][data-ready] {
    display: grid; grid-template-areas: "picture" "strip" "caption"; grid-template-columns: minmax(0,1fr);
  }
  .fathom-points[data-strip] .points-scroll { grid-area: picture; }
  .fathom-points[data-strip] figcaption { grid-area: caption; }
  .fathom-points[data-strip][data-ready] .point-note {
    grid-area: strip; display: block; position: relative; font-size: 14px;
    border: 0; border-bottom: 1px solid #c4cfcd; border-top: 2px solid #23738c; border-radius: 0; background: #f4f7f5;
  }
  .fathom-points[data-strip][data-ready] .points-hint {
    grid-area: strip; z-index: 1; align-self: center; margin: 0; padding: .35rem 12px; pointer-events: none;
  }
  .fathom-points[data-strip][data-open] .points-hint { visibility: hidden; }
}
@media (max-width: 600px), (hover: none) {
  .points-hover { display: none; }
}
@media print {
  .fathom-points[data-ready] .points-hint, .fathom-points .point-close { display: none; }
  .point-pin svg { print-color-adjust: exact; }
}
