/* The page deliberately scrolls on desktop. Native PNGs are never cropped. */
.dmp-page,
.dmp-image-dialog {
  --dmp-bg: #121c19;
  --dmp-text: #f0f3e9;
  --dmp-body: #d5dfd7;
  --dmp-muted: #a2b0a8;
  --dmp-rule: #35453d;
  --dmp-lime: #d0f5a5;
  --dmp-lavender: #c2b8ff;
  --dmp-accent: var(--dmp-lime);
  box-sizing: border-box;
  color: var(--dmp-text);
  background: var(--dmp-bg);
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dmp-page *, .dmp-page *::before, .dmp-page *::after,
.dmp-image-dialog *, .dmp-image-dialog *::before, .dmp-image-dialog *::after { box-sizing: border-box; }
.dmp-page :where(h1, h2, h3, p, figure, dl, dd),
.dmp-image-dialog :where(h2, p) { margin: 0; }
.dmp-page :where(div, section, header, figure, figcaption, dl, dt, dd),
.dmp-image-dialog :where(div, header, footer, p, label) { min-width: 0; }
.dmp-page [hidden], .dmp-image-dialog [hidden] { display: none !important; }
.dmp-page :where(button, select), .dmp-image-dialog :where(button, select) { font: inherit; }
.dmp-page button, .dmp-image-dialog button { cursor: pointer; }
.dmp-page button:disabled, .dmp-image-dialog :disabled { cursor: default; opacity: .55; }
.dmp-page a, .dmp-image-dialog a { color: inherit; text-decoration: none; }
.dmp-page :is(a, button):focus-visible,
.dmp-image-dialog :is(a, button, select, [tabindex]):focus-visible { outline: 2px solid var(--dmp-lavender); outline-offset: 4px; }
.dmp-page .dmp-icon, .dmp-image-dialog .dmp-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.dmp-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 34px 40px 64px;
  overflow-wrap: break-word;
}
.dmp-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin-bottom: 30px; }
.dmp-eyebrow { color: var(--dmp-muted); font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.dmp-heading h1 { margin-top: 12px; font-size: clamp(44px, 4.3cqw, 66px); font-weight: 550; line-height: 1.04; letter-spacing: -.065em; }
.dmp-heading h1 span { color: var(--dmp-lime); }
.dmp-total { display: flex; flex-direction: column; gap: 5px; max-width: 260px; padding-bottom: 3px; color: var(--dmp-body); font-size: 16px; line-height: 1.45; }
.dmp-total strong { color: var(--dmp-lime); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.dmp-overview { display: flex; flex-direction: column; }
.dmp-figure-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; }
.dmp-figure-heading h2, .dmp-figure-heading h3 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.dmp-figure-heading p { margin-top: 5px; color: var(--dmp-muted); font-size: 15px; line-height: 1.5; }
.dmp-button, .dmp-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--dmp-rule); border-radius: 8px; background: transparent; color: var(--dmp-lime); font-size: 15px; line-height: 1.4; }
.dmp-button { background: var(--dmp-lime); border-color: var(--dmp-lime); color: var(--dmp-bg); }
.dmp-button:hover:not(:disabled) { background: #e0f8c4; }
.dmp-text-button:hover:not(:disabled) { border-color: var(--dmp-lavender); color: var(--dmp-lavender); }
.dmp-guide { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 10px 0; border-top: 1px solid var(--dmp-rule); }
.dmp-guide-button { min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--dmp-muted); font-size: 16px; line-height: 1.3; }
.dmp-guide-button[aria-pressed="true"] { background: #22332a; color: var(--dmp-lime); }
.dmp-guide-button:hover { color: var(--dmp-text); border-color: var(--dmp-rule); }
.dmp-focus-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; min-height: 60px; padding: 0 0 12px; }
.dmp-select { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--dmp-muted); text-align: left; font-size: 15px; line-height: 1.4; }
.dmp-select[aria-pressed="true"] { color: var(--dmp-text); }
.dmp-number { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 4px; border: 1px solid var(--dmp-rule); border-radius: 50%; color: var(--dmp-lime); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: -.025em; }
.dmp-select[aria-pressed="true"] .dmp-number { border-color: var(--dmp-lime); background: var(--dmp-lime); color: var(--dmp-bg); }
.dmp-media-frame { position: relative; width: 100%; isolation: isolate; box-shadow: 0 0 0 1px #45564b, 0 18px 40px #0002; }
.dmp-image-link { display: block; width: 100%; cursor: zoom-in; }
.dmp-native-image { display: block; width: 100%; max-width: 100%; height: auto; padding: 0; border: 0; border-radius: 0; }
.dmp-annotation { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dmp-page [data-dmp-tone="lavender"], .dmp-image-dialog [data-dmp-tone="lavender"] { --dmp-accent: var(--dmp-lavender); }
.dmp-target, .dmp-target-halo, .dmp-leader, .dmp-leader-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dmp-target-halo, .dmp-leader-halo { stroke: #121c19; stroke-width: 5px; stroke-opacity: .9; }
.dmp-target, .dmp-leader { stroke: var(--dmp-accent); stroke-width: 2px; }
.dmp-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 2px solid var(--dmp-bg); border-radius: 50%; background: var(--dmp-accent); color: var(--dmp-bg); box-shadow: 0 0 0 1px var(--dmp-accent), 0 3px 12px #0005; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 15px; font-weight: 600; }
.dmp-pin:hover { box-shadow: 0 0 0 3px var(--dmp-accent), 0 3px 12px #0005; }
.dmp-pending { display: grid; place-content: center; gap: 12px; min-height: 260px; padding: 32px; border: 1px dashed var(--dmp-rule); color: var(--dmp-muted); text-align: center; }
.dmp-pending strong { color: var(--dmp-body); font-size: 24px; font-weight: 500; }
.dmp-pending p { font-size: 16px; line-height: 1.5; }
.dmp-media-status { margin-top: 12px !important; color: var(--dmp-lavender); font-size: 15px; line-height: 1.5; }
.dmp-legend { margin-top: 64px; }
.dmp-section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 34px; }
.dmp-section-heading h2 { margin-top: 12px; font-size: 42px; line-height: 1.12; font-weight: 500; letter-spacing: -.055em; }
.dmp-section-heading > p { max-width: 32ch; color: var(--dmp-muted); font-size: 17px; line-height: 1.55; }
.dmp-legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 52px; }
.dmp-legend-group { padding-top: 20px; border-top: 1px solid var(--dmp-rule); }
.dmp-legend-group h3 { color: var(--dmp-lime); font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.dmp-legend-group--lavender h3, .dmp-legend-group--lavender .dmp-number { color: var(--dmp-lavender); }
.dmp-group-intro { margin-top: 12px !important; color: var(--dmp-body); font-size: 17px; line-height: 1.55; }
.dmp-legend-group dl { display: grid; gap: 18px; margin-top: 20px; }
.dmp-anchor-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 2px 0; border: 0; background: transparent; color: var(--dmp-text); text-align: left; font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.dmp-anchor-link .dmp-icon { width: 16px; height: 16px; color: var(--dmp-muted); }
.dmp-anchor-link:hover:not(:disabled) { color: var(--dmp-lime); }
.dmp-definition dd { margin: 3px 0 0 40px; color: var(--dmp-body); font-size: 17px; line-height: 1.55; }
.dmp-analytics { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--dmp-rule); }
.dmp-analytics .dmp-eyebrow { color: var(--dmp-lavender); }
.dmp-analytics-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.dmp-analytics-shot .dmp-figure-heading h3 { color: var(--dmp-lavender); }
.dmp-metrics { display: grid; gap: 22px; }
.dmp-metrics dt { margin-bottom: 6px; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.dmp-metrics dd { color: var(--dmp-body); font-size: 17px; line-height: 1.55; }
.dmp-metric-note { margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--dmp-rule); color: var(--dmp-lavender); font-size: 16px; line-height: 1.55; }

/* Mounted in the document top layer and removed by the page's mount cleanup. */
.dmp-image-dialog {
  width: calc(100vw - 40px);
  max-width: 1800px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #45564b;
  border-radius: 12px;
  overflow: hidden;
  overscroll-behavior: contain;
}
.dmp-image-dialog[open] { display: flex; flex-direction: column; }
.dmp-image-dialog::backdrop { background: #050b08e8; }
.dmp-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 18px 22px 12px; }
.dmp-modal-heading p { margin-bottom: 4px; color: var(--dmp-muted); font-size: 13px; line-height: 1.4; }
.dmp-modal-heading h2 { font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.dmp-modal-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--dmp-rule); border-radius: 50%; background: transparent; color: var(--dmp-text); }
.dmp-modal-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex: 0 0 auto; padding: 0 22px 12px; }
.dmp-zoom-controls { display: flex; flex: 0 0 auto; gap: 6px; }
.dmp-zoom-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--dmp-rule); border-radius: 7px; background: transparent; color: var(--dmp-body); font-size: 15px; line-height: 1.4; }
.dmp-zoom-controls button[aria-pressed="true"] { background: var(--dmp-lime); border-color: var(--dmp-lime); color: var(--dmp-bg); }
.dmp-modal-close:hover, .dmp-zoom-controls button:hover:not([aria-pressed="true"]) { background: #24372c; }
.dmp-area-picker { display: flex; align-items: center; gap: 10px; max-width: 55%; color: var(--dmp-muted); font-size: 14px; }
.dmp-area-picker select { width: 340px; min-width: 0; max-width: 100%; min-height: 44px; padding: 7px 28px 7px 10px; border: 1px solid var(--dmp-rule); border-radius: 7px; color: var(--dmp-text); background: #1a2821; font-size: 15px; text-overflow: ellipsis; }
.dmp-modal-context { display: flex; align-items: start; gap: 12px; flex: 0 0 auto; max-height: 140px; padding: 12px 22px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--dmp-rule); background: #1a2821; }
.dmp-modal-context p { display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.dmp-modal-context strong { color: var(--dmp-lime); font-size: 17px; font-weight: 500; }
.dmp-modal-context p > span { color: var(--dmp-body); }
.dmp-modal-viewport { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #6a8071 #18261e; background: #0b110f; outline-offset: -3px !important; }
.dmp-modal-canvas { position: relative; isolation: isolate; margin-inline: auto; }
.dmp-modal-image { display: block; width: 100%; max-width: none; height: auto; padding: 0; border: 0; border-radius: 0; }
.dmp-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex: 0 0 auto; padding: 12px 22px; color: var(--dmp-muted); font-size: 13px; line-height: 1.5; }
.dmp-modal-metadata { color: var(--dmp-body); font-variant-numeric: tabular-nums; }
.dmp-original { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: 0 0 auto; color: var(--dmp-lavender) !important; font-size: 15px; }
.dmp-original:hover { color: var(--dmp-lime) !important; }

@container reader (max-width: 1100px) {
  .dmp-page { padding: 28px 28px 52px; }
  .dmp-heading { gap: 24px; }
  .dmp-heading h1 { max-width: 13ch; font-size: 54px; }
  .dmp-guide { gap: 4px; }
  .dmp-guide-button { padding-inline: 12px; }
  .dmp-legend-grid { column-gap: 32px; }
  .dmp-analytics-layout { gap: 30px; }
  .dmp-section-heading h2 { font-size: 38px; }
}

@container reader (max-width: 760px) {
  .dmp-page { padding: 28px 22px 44px; }
  .dmp-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
  .dmp-heading h1 { max-width: none; font-size: 48px; }
  .dmp-total { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; max-width: none; }
  .dmp-total strong { font-size: 30px; }
  .dmp-legend-grid, .dmp-analytics-layout { grid-template-columns: minmax(0, 1fr); }
  .dmp-legend-grid { gap: 30px; }
  .dmp-section-heading { gap: 16px; margin-bottom: 26px; }
  .dmp-section-heading h2 { font-size: 36px; }
  .dmp-section-heading > p { max-width: 40ch; }
  .dmp-analytics-shot { max-width: 560px; width: 100%; }
}

@container reader (max-width: 480px) {
  .dmp-page { padding: 24px 18px 40px; }
  .dmp-eyebrow { font-size: 11px; }
  .dmp-heading h1 { font-size: clamp(38px, 11cqw, 48px); }
  .dmp-total { font-size: 16px; }
  .dmp-figure-heading { align-items: start; gap: 14px; }
  .dmp-figure-heading h2 { font-size: 24px; }
  .dmp-figure-heading p { font-size: 16px; }
  .dmp-overview > .dmp-figure-heading { order: 0; }
  .dmp-overview > .dmp-media-slot { order: 1; }
  .dmp-guide { order: 2; gap: 5px; margin-top: 16px; padding-top: 12px; }
  .dmp-guide-button { padding-inline: 10px; font-size: 15px; }
  .dmp-focus-strip { order: 3; display: grid; gap: 4px; padding: 2px 0 0; }
  .dmp-select { font-size: 16px; }
  .dmp-overview .dmp-pin { display: none; }
  .dmp-legend { margin-top: 36px; }
  .dmp-section-heading h2 { font-size: 33px; }
  .dmp-section-heading > p { font-size: 17px; }
  .dmp-legend-group h3 { font-size: 25px; }
  .dmp-definition dd { margin-left: 0; margin-top: 5px; }
  .dmp-anchor-link { font-size: 18px; }
  .dmp-group-intro, .dmp-definition dd, .dmp-metrics dd { font-size: 17px; }
  .dmp-analytics { margin-top: 40px; padding-top: 26px; }
  .dmp-pending { min-height: 220px; padding: 24px; }
}

@container reader (max-width: 360px) {
  .dmp-page .dmp-legend h2 { text-wrap: balance; }
}

/* The document-level dialog is outside the reader container. */
@media (max-width: 700px) {
  .dmp-image-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 9px; }
  .dmp-modal-heading { padding: 12px 12px 10px; gap: 12px; }
  .dmp-modal-heading h2 { font-size: 22px; }
  .dmp-modal-tools { display: grid; gap: 10px; padding: 0 12px 10px; }
  .dmp-area-picker { max-width: 100%; width: 100%; font-size: 13px; }
  .dmp-area-picker select { flex: 1 1 0; width: 0; font-size: 14px; }
  .dmp-zoom-controls { flex-wrap: wrap; }
  .dmp-zoom-controls button { padding-inline: 12px; font-size: 14px; }
  .dmp-modal-context { gap: 9px; max-height: 122px; padding: 10px 12px; }
  .dmp-modal-context p { font-size: 14px; }
  .dmp-modal-context strong { font-size: 16px; }
  .dmp-modal-footer { flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; font-size: 12px; }
  .dmp-modal-footer > div { flex: 1 1 100%; }
  .dmp-original { font-size: 14px; }
}

@media (max-height: 520px) {
  .dmp-image-dialog .dmp-modal-heading { padding-block: 8px; }
  .dmp-image-dialog .dmp-modal-heading p { display: none; }
  .dmp-image-dialog .dmp-modal-tools { display: flex; padding-bottom: 8px; }
  .dmp-image-dialog .dmp-area-picker { max-width: 50%; }
  .dmp-image-dialog .dmp-modal-context { max-height: 70px; padding-block: 6px; }
  .dmp-image-dialog .dmp-modal-footer { flex-wrap: nowrap; padding-block: 4px; }
  .dmp-image-dialog #dmp-modal-hint { display: none; }
}
