/* Public demo: the capture list in the same folio panel, over style.css. */

.demo-tag { flex: none; margin-top: 3px; padding: 2px 7px; border: 1px solid var(--rule-strong); border-radius: 2px;
            font: 600 11px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sepia);
            background: var(--field); white-space: nowrap; }

.captures-block { flex: 1; border-bottom: 0; }
.selection-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 8px; }
#captures-empty[hidden], #load-older[hidden] { display: none; }

.captures { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sepia); }
.captures li { border-bottom: 1px solid var(--rule); }
.capture { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
           width: 100%; padding: 8px 6px 8px 0; border: 0; border-radius: 0; background: none; text-align: left;
           font: 13px/1.35 var(--sans); color: var(--ink); }
.capture:hover:not(:disabled) { background: var(--paper-deep); border-color: transparent; }
.capture:active:not(:disabled) { transform: none; }
.capture canvas { display: block; width: 64px; height: 64px; padding: 3px; box-sizing: content-box;
                  background: var(--field); border: 1px solid var(--rule-strong); transition: border-color 160ms var(--ease); }
.capture:hover canvas { border-color: var(--sepia); }
.capture .text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.capture .place { font: 400 14px/1.25 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis;
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.capture .when { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.capture .meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capture .state { color: var(--muted); font-size: 12px; white-space: nowrap; }
.capture[aria-pressed="true"] { background: var(--scarlet-wash); }
.capture[aria-pressed="true"]:hover:not(:disabled) { background: var(--scarlet-wash); }
.capture[aria-pressed="true"] canvas { border-color: var(--scarlet); outline: 2px solid var(--scarlet); outline-offset: -2px; }
.capture[aria-pressed="true"] .place, .capture[aria-pressed="true"] .state { color: var(--scarlet); }
.capture[aria-pressed="true"] .state { font-weight: 600; }
.capture.flash { animation: flash 900ms var(--ease); }
@keyframes flash { from { background: var(--paper-deep); } }

.load-older { width: 100%; justify-content: center; margin-top: 12px; border-style: dashed; background: none;
              font: italic 13px var(--serif); color: var(--muted); }
.load-older:hover:not(:disabled) { background: none; color: var(--sepia); }

/* Esri's credit is long: let it wrap instead of pushing past the globe's edge. */
.demo .maplibregl-ctrl-attrib { max-width: calc(100vw - var(--panel-w) - 20px); }

@media (max-width: 760px) {
  :root { --sheet: 50vh; }
  .demo-tag { margin-top: 1px; }
  .capture { gap: 10px; }
  .capture canvas { width: 52px; height: 52px; padding: 2px; }
  .capture .place { font-size: 13px; }
  /* The chip sits top-left, the logo top-right: keep the chip off the logo on narrow phones. */
  #sat-chip { max-width: calc(100vw - 90px); }
  #sat-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo .maplibregl-ctrl-attrib { max-width: calc(100vw - 20px); }
}
