/* FrontierSat orbit globe.
   Flat and quiet: the Space ground, panels told apart by a darker fill (no
   borders), Jost throughout with tabular figures, three sizes (20, 16 and
   13px, nothing smaller) and sentence case. Team blue marks only the
   satellite, its orbit and focus rings; selected and pressed states are Ink.

   Sizes are drawn for 1440 × 900. globe.js sets, from the globe's width,
   --cg-s, which grows type and spacing gently (1 to 1.125: values 16 to
   18px), and the column widths (about 11% of the width, never less than
   280 and 300px times --cg-s), so a big monitor keeps narrow corner panels
   and a dominant globe. Two layouts: side panels in the corners where
   they leave the globe its room (from 1180 × 680), otherwise a bottom bar
   with tabbed sheets. .cg-narrow is set from the globe's own size, so an
   embed adapts to its box, not the window. */

.cg {
  --cg-bg: #05070A;
  --cg-panel: #10151B;
  --cg-raised: #1A2129;
  --cg-text: #E6EBF0;
  --cg-muted: #8A96A3;
  --cg-accent: #3C9DF5;
  --cg-link: color-mix(in srgb, var(--cg-text) 40%, transparent);
  --cg-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cg-s: 1;
  --cg-u: calc(var(--cg-s) * 1px);
  --cg-title: calc(20 * var(--cg-u));
  --cg-value: calc(16 * var(--cg-u));
  --cg-small: calc(13 * var(--cg-u));
  --cg-gap: calc(16 * var(--cg-u));
  --cg-pad: calc(16 * var(--cg-u));
  --cg-btn-h: calc(32 * var(--cg-u));
  --cg-clock-h: calc(64 * var(--cg-u));
  --cg-left-w: calc(280 * var(--cg-u));
  --cg-right-w: calc(300 * var(--cg-u));
  --cg-dock-h: 0px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: var(--cg-bg);
  color: var(--cg-text);
  font: 400 var(--cg-value)/1.4 var(--cg-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.cg *,
.cg *::before,
.cg *::after {
  box-sizing: border-box;
}

.cg [hidden] {
  display: none !important;
}

.cg h1,
.cg h2,
.cg h3,
.cg p,
.cg dl,
.cg dd,
.cg ol,
.cg ul {
  margin: 0;
  padding: 0;
}

.cg ol,
.cg ul {
  list-style: none;
}

.cg-fine {
  font-size: var(--cg-small);
  line-height: 1.45;
  color: var(--cg-muted);
}

.cg button {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

.cg button:focus-visible,
.cg a:focus-visible,
.cg input:focus-visible,
.cg summary:focus-visible {
  outline: 2px solid var(--cg-accent);
  outline-offset: 2px;
}

/* ---- stage ---------------------------------------------------------------- */

.cg-stage {
  position: absolute;
  inset: 0;
  user-select: none;
  -webkit-user-select: none;
}

.cg-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.cg-canvas:focus-visible {
  outline: 2px solid var(--cg-accent);
  outline-offset: -2px;
}

.cg .cg-nogl { /* (0,2,0): beats the `.cg p { margin: 0 }` reset, so auto margins centre it */
  position: absolute;
  top: 45%;
  right: 0;
  left: 0;
  margin: 0 auto;
  max-width: 360px;
  padding: 0 16px;
  text-align: center;
  color: var(--cg-muted);
}

/* side panels: centre it in the gap between the columns */
.cg[data-ui="full"]:not(.cg-narrow) .cg-nogl {
  left: calc(var(--cg-left-w) + 2 * var(--cg-gap));
  right: calc(var(--cg-right-w) + 2 * var(--cg-gap));
}

.cg-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cg-label {
  position: absolute;
  top: 0;
  left: 0;
  margin: calc(-9 * var(--cg-u)) 0 0 calc(12 * var(--cg-u));
  font: 500 var(--cg-small)/1.2 var(--cg-sans);
  white-space: nowrap;
  color: var(--cg-text);
  text-shadow: 0 0 2px var(--cg-bg), 0 0 1px var(--cg-bg);
}

.cg-label-sat {
  color: var(--cg-accent);
}

/* On a phone the names sit on a little of the Space ground, so they read even where the chosen
   picture's pin (which always shows) runs under them; the others keep off them (picturepins.js). */
.cg-narrow .cg-label {
  padding: 0 3px;
  background: color-mix(in srgb, var(--cg-bg) 72%, transparent);
}

.cg-tip {
  position: absolute;
  top: 0;
  left: 0;
  margin: calc(12 * var(--cg-u)) 0 0 calc(12 * var(--cg-u));
  padding: calc(4 * var(--cg-u)) calc(8 * var(--cg-u));
  background: var(--cg-panel);
  font-size: var(--cg-small);
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
}

/* ---- header --------------------------------------------------------------- */

.cg-head {
  flex: none;
  padding-bottom: calc(4 * var(--cg-u));
  pointer-events: none;
}

.cg-head a,
.cg-head .cg-fold {
  pointer-events: auto;
}

.cg-narrow .cg-head .cg-fold {
  min-height: 44px;
}

.cg-back {
  display: inline-block;
  margin-bottom: calc(8 * var(--cg-u));
  font: 500 var(--cg-small)/1.45 var(--cg-sans);
  color: var(--cg-text);
  text-decoration: underline;
  text-decoration-color: var(--cg-link);
  text-underline-offset: 3px;
}

.cg-back:hover {
  text-decoration-color: var(--cg-text);
}

.cg-title {
  font: 600 var(--cg-title)/1.2 var(--cg-sans);
  letter-spacing: -0.01em;
}

.cg .cg-sub {
  margin-top: calc(2 * var(--cg-u));
}

.cg .cg-credit {
  margin-top: calc(4 * var(--cg-u));
}

.cg-credit a {
  color: inherit;
  text-decoration-color: var(--cg-link);
  text-underline-offset: 3px;
}

.cg .cg-note {
  margin-top: calc(4 * var(--cg-u));
  color: var(--cg-text);
  pointer-events: auto;
}

/* ---- columns and panels ---------------------------------------------------- */

.cg-col {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--cg-u));
  scrollbar-width: thin;
  scrollbar-color: var(--cg-raised) transparent;
}

/* --cg-top: room the page keeps above the globe's corners for its own nav */
.cg-col-left {
  top: calc(var(--cg-top, 0px) + var(--cg-gap));
  left: var(--cg-gap);
  width: var(--cg-left-w);
  max-height: calc(100% - var(--cg-top, 0px) - var(--cg-clock-h) - 3 * var(--cg-gap) - var(--cg-card-space, 0px));
  overflow-y: auto;
  pointer-events: none;
}

.cg-has-card .cg-keys:not([open]) {
  display: none;
}

.cg-col-left > * {
  pointer-events: auto;
}

.cg-col-left > .cg-head {
  pointer-events: none;
}

.cg-col-right {
  top: calc(var(--cg-top, 0px) + var(--cg-gap));
  right: var(--cg-gap);
  width: var(--cg-right-w);
  max-height: calc(100% - var(--cg-top, 0px) - var(--cg-clock-h) - 3 * var(--cg-gap));
  overflow-y: auto;
  pointer-events: none;
}

.cg-col-right > * {
  pointer-events: auto;
}

.cg-panel {
  flex: none;
  padding: var(--cg-pad);
  background: var(--cg-panel);
}

.cg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--cg-u));
  min-height: var(--cg-btn-h);
  margin-bottom: calc(12 * var(--cg-u));
}

.cg-panel h2 {
  font: 600 var(--cg-value)/1.3 var(--cg-sans);
}

/* takes the focus when a place is chosen: nothing to press, so no ring */
.cg-panel h2[tabindex]:focus {
  outline: none;
}

.cg-panel-head .cg-fine {
  text-align: right;
}

/* "Right now" folds to its heading where the photo card needs the room */
.cg-fold {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--cg-u));
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cg-fold svg {
  width: calc(12 * var(--cg-u));
  height: calc(12 * var(--cg-u));
  color: var(--cg-muted);
}

.cg-fold[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.cg-fold:disabled {
  cursor: default;
}

.cg-fold:disabled svg,
.cg-panel[data-folded] .cg-fold-body {
  display: none;
}

.cg-panel[data-folded] .cg-panel-head {
  margin-bottom: 0;
}

/* "Right now": label over value, two to a row; the long ones take the row */
.cg-readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(10 * var(--cg-u)) calc(12 * var(--cg-u));
}

.cg-readouts > div {
  min-width: 0;
}

.cg-readouts .cg-wide {
  grid-column: 1 / -1;
}

.cg-readouts dt {
  font-size: var(--cg-small);
  line-height: 1.45;
  color: var(--cg-muted);
}

.cg .cg-tle {
  margin-top: calc(14 * var(--cg-u));
}

/* elements more than a week from the time shown */
.cg .cg-tle.cg-warn {
  color: var(--cg-text);
}

/* keys, behind a disclosure */
.cg-keys {
  align-self: flex-start;
}

/* a touch screen has no keys to learn (unless a keyboard's ? opened them) */
@media (hover: none) and (pointer: coarse) {
  .cg-keys:not([open]) {
    display: none;
  }
}

.cg-keys summary {
  font: 500 var(--cg-small)/1.45 var(--cg-sans);
  color: var(--cg-text);
  cursor: pointer;
}

.cg-keys dl {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: calc(8 * var(--cg-u)) calc(12 * var(--cg-u));
  margin-top: calc(8 * var(--cg-u));
  padding: calc(12 * var(--cg-u)) var(--cg-pad);
  background: var(--cg-panel);
  font-size: var(--cg-small);
  line-height: 1.45;
}

.cg-keys dl > div {
  display: contents;
}

.cg-keys dt {
  white-space: nowrap;
}

.cg kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0 calc(6 * var(--cg-u));
  background: var(--cg-raised);
  font: 500 var(--cg-small)/1.6 var(--cg-sans);
  text-align: center;
}

.cg-empty {
  padding: calc(2 * var(--cg-u)) 0;
  font-size: var(--cg-small);
  color: var(--cg-muted);
}

/* passes */

.cg .cg-passes-note {
  margin: calc(-8 * var(--cg-u)) 0 calc(10 * var(--cg-u));
}

.cg-status {
  margin-bottom: calc(8 * var(--cg-u));
}

.cg-pass-day {
  padding: calc(8 * var(--cg-u)) 0 calc(2 * var(--cg-u));
  font-weight: 600;
}

.cg-pass {
  display: block;
  width: calc(100% + 2 * var(--cg-pad));
  margin: 0 calc(-1 * var(--cg-pad));
  padding: calc(6 * var(--cg-u)) var(--cg-pad);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.cg-pass:hover {
  background: var(--cg-raised);
}

.cg-pass-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(12 * var(--cg-u));
  font-weight: 500;
}

.cg-pass .cg-fine {
  display: block;
}

/* pictures */

.cg-panel-photos {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* The side column is shared. Pictures gives up its room first (the large
   shrink), down to its heading, the Highlight button, the viewfinder and about
   three rows (--cg-photos-min, from fitRightColumn in globe.js, which also
   shrinks or puts away the viewfinder where that's too tall); only then does
   Passes shrink, scrolling inside what is left. Anything that doesn't fit is a
   scroll away, so nothing hidden can take the focus. */
.cg:not(.cg-narrow) .cg-panel-photos {
  flex: 0 1000 auto;
  min-height: var(--cg-photos-min, calc(288 * var(--cg-u)));
}

.cg:not(.cg-narrow) .cg-vf.cg-vf-away {
  display: none;
}

/* folded to its heading, by fitRightColumn in globe.js */
.cg:not(.cg-narrow) .cg-panel-photos[data-folded] {
  flex: none;
  min-height: 0;
}

.cg:not(.cg-narrow) .cg-panel[data-panel="passes"][data-folded] {
  flex: none;
}

.cg:not(.cg-narrow) .cg-panel[data-panel="passes"] {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cg-raised) transparent;
}

.cg-highlight {
  flex: none;
  width: 100%;
  margin-bottom: calc(12 * var(--cg-u));
}

.cg-highlight[hidden] {
  display: none;
}

/* The viewfinder (explore/viewfinder.js), edge to edge in the Pictures panel, with
   the sizes viewfinder.css asks for and the page's tokens. */
.cg-vf {
  --jy-font: var(--cg-sans);
  --jy-raised: var(--cg-raised);
  --jy-ink: var(--cg-text);
  --jy-muted: var(--cg-muted);
  --jy-small: var(--cg-small);
  --jy-body: var(--cg-value);
  --vf-inset: calc(12 * var(--cg-u));
  --vf-band-top: calc(44 * var(--cg-u));
  --vf-band-bottom: calc(28 * var(--cg-u));
  --vf-pic-h: calc((var(--cg-right-w) - 2 * var(--vf-inset)) * 3 / 4);
  flex: none;
  margin: 0 calc(-1 * var(--cg-pad)) calc(12 * var(--cg-u));
}

.cg-vf .vf {
  height: auto;
  padding-bottom: calc(8 * var(--cg-u));
}

/* in a phone's sheet: small enough that the whole picture shows when it opens */
.cg-narrow .cg-vf {
  --vf-pic-h: min(calc((100vw - 2 * var(--vf-inset)) * 3 / 4), 24vh);
}

/* the picture is in the viewfinder: the card keeps to what it says */
.cg-has-vf:not(.cg-narrow) .cg-card-thumb {
  display: none;
}

.cg-photo-count {
  margin-left: auto;
}

.cg-fold-side {
  justify-content: center;
  flex: none;
  min-width: calc(24 * var(--cg-u));
  min-height: calc(24 * var(--cg-u));
  margin-left: calc(4 * var(--cg-u));
}

.cg-fold-side:disabled {
  display: none;
}

.cg-right-accordion .cg-col-right .cg-panel-head h2 {
  cursor: pointer;
}

/* The pictures on the globe and the map, as on Explore. They only show: the pointer goes through. */
.cg-pins {
  position: absolute;
  inset: 0;
  isolation: isolate; /* so the pins' own stacking stays under the labels and the buttons */
  overflow: hidden;
  pointer-events: none;
}

.cg-pins[hidden] {
  display: none;
}

.cg-pin {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  display: block;
  width: calc(32 * var(--cg-u) + 4px);
  height: calc(24 * var(--cg-u) + 4px);
  border: 2px solid var(--cg-text);
  background: var(--cg-bg);
  will-change: transform;
}

.cg-pin.cg-pin-square {
  width: calc(24 * var(--cg-u) + 4px);
}

.cg-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-pin.is-off {
  visibility: hidden;
}

.cg-pin.cg-pin-dark {
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--cg-text) 55%, transparent);
  background: color-mix(in srgb, var(--cg-bg) 60%, transparent);
}

/* chosen: a size larger, on top of its neighbours. Sizes, not `scale`: that would
   multiply the translate that places the pin, and throw it away from its place. */
.cg-pin.is-selected {
  z-index: 200 !important;
  width: calc(48 * var(--cg-u) + 4px);
  height: calc(36 * var(--cg-u) + 4px);
}

.cg-pin.cg-pin-square.is-selected {
  width: calc(36 * var(--cg-u) + 4px);
}

.cg-pin.cg-pin-dark.is-selected {
  width: 15px;
  height: 15px;
}

.cg-pile-count {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cg-text);
  font-size: var(--cg-small);
  font-weight: 500;
  white-space: nowrap;
}

/* on a phone a pile is one pin with its number on a badge at the corner (picturepins.js) */
.cg-pile-count.is-badge {
  z-index: 300;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--cg-text);
  color: var(--cg-bg);
  font: 600 var(--cg-small)/18px var(--cg-sans);
  text-align: center;
}

/* the preview over a pin; only a pile's list takes the pointer */
.cg-peek {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  max-width: calc(100% - 16px);
  padding: calc(12 * var(--cg-u));
  background: var(--cg-panel);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(.22, 1, .36, 1);
}

.cg-peek.is-on {
  opacity: 1;
}

.cg-peek-item {
  display: block;
  color: var(--cg-text);
}

.cg-peek-item img {
  display: block;
  width: calc(200 * var(--cg-u));
  height: calc(150 * var(--cg-u));
  object-fit: contain;
  background: var(--cg-bg);
}

.cg-peek-item img.is-square {
  width: calc(150 * var(--cg-u));
}

.cg-peek-place {
  display: block;
  margin-top: calc(8 * var(--cg-u));
  font-size: var(--cg-value);
  font-weight: 500;
  line-height: 1.3;
}

.cg-peek-time {
  display: block;
}

.cg-peek.is-list {
  display: grid;
  gap: calc(8 * var(--cg-u));
  max-height: 60%;
  overflow: auto;
  pointer-events: auto;
}

.cg-peek.is-list .cg-peek-item {
  display: grid;
  grid-template-columns: calc(64 * var(--cg-u)) minmax(0, 1fr);
  column-gap: calc(12 * var(--cg-u));
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cg-peek.is-list .cg-peek-item img {
  grid-row: 1 / 3;
  width: calc(64 * var(--cg-u));
  height: calc(48 * var(--cg-u));
}

.cg-peek.is-list .cg-peek-place {
  margin-top: 0;
}

.cg-peek.is-list .cg-peek-item:hover .cg-peek-place {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cg-photos {
  min-height: 0;
  margin: 0 calc(-1 * var(--cg-pad)) calc(-1 * var(--cg-pad));
  padding-bottom: calc(8 * var(--cg-u));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cg-raised) transparent;
}

.cg-photo {
  display: grid;
  grid-template-columns: calc(40 * var(--cg-u)) minmax(0, 1fr);
  align-items: center;
  column-gap: calc(12 * var(--cg-u));
  width: 100%;
  padding: calc(6 * var(--cg-u)) var(--cg-pad) calc(6 * var(--cg-u)) calc(var(--cg-pad) - 3px);
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.cg-photo:hover {
  background: var(--cg-raised);
}

.cg-photo[aria-current="true"] {
  border-left-color: var(--cg-text);
}

.cg-photo-thumb {
  grid-row: 1 / span 2;
  width: calc(40 * var(--cg-u));
  height: calc(30 * var(--cg-u));
  overflow: hidden;
  background: var(--cg-bg);
}

.cg-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-photo-title {
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cg-list-sub {
  margin-top: calc(8 * var(--cg-u));
  padding: calc(10 * var(--cg-u)) var(--cg-pad) calc(4 * var(--cg-u));
  font-weight: 600;
}

/* ---- photo card ------------------------------------------------------------- */

.cg-card {
  position: absolute;
  bottom: calc(var(--cg-clock-h) + 2 * var(--cg-gap));
  left: var(--cg-gap);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: calc(12 * var(--cg-u));
  width: var(--cg-left-w);
  padding: var(--cg-pad);
  background: var(--cg-panel);
}

/* the picture across the card, under its title (narrow: a small one beside it) */
.cg-card-thumb {
  position: relative;
  display: block;
  grid-row: 2;
  aspect-ratio: 4 / 3;
  margin-top: calc(12 * var(--cg-u));
  overflow: hidden;
  background: var(--cg-bg);
}

.cg-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* pictures are never cropped; square ADCS frames show whole */
}

.cg-card-thumb span {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: var(--cg-small);
  color: var(--cg-muted);
}

.cg-card-thumb.cg-no-thumb span {
  display: flex;
}

.cg-card-head {
  grid-row: 1;
  min-width: 0;
  padding-right: calc(28 * var(--cg-u));
}

.cg-card-title {
  font: 600 var(--cg-value)/1.3 var(--cg-sans);
  overflow-wrap: anywhere;
}

.cg-card-head p,
.cg-card-body p {
  margin-top: calc(2 * var(--cg-u));
  font-size: var(--cg-small);
  line-height: 1.45;
  color: var(--cg-muted);
}

.cg-card-body {
  grid-row: 3;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: calc(10 * var(--cg-u));
}

.cg .cg-card-pos {
  color: var(--cg-text);
}

.cg-card-link {
  display: inline-block;
  margin-top: calc(8 * var(--cg-u));
  font: 500 var(--cg-small)/1.45 var(--cg-sans);
  color: var(--cg-text);
  text-decoration: underline;
  text-decoration-color: var(--cg-link);
  text-underline-offset: 3px;
}

.cg-card-link:hover {
  text-decoration-color: var(--cg-text);
}

.cg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cg-icon-btn svg {
  display: block;
  width: calc(12 * var(--cg-u));
  height: calc(12 * var(--cg-u));
}

.cg-card-close {
  position: absolute;
  top: calc(8 * var(--cg-u));
  right: calc(8 * var(--cg-u));
  width: var(--cg-btn-h);
  height: var(--cg-btn-h);
  background: none;
  border: 0;
  color: var(--cg-muted);
  cursor: pointer;
}

.cg-card-close:hover {
  color: var(--cg-text);
}

/* ---- buttons --------------------------------------------------------------- */

.cg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--cg-btn-h);
  min-width: var(--cg-btn-h);
  padding: 0 calc(12 * var(--cg-u));
  background: var(--cg-raised);
  border: 0;
  font: 500 var(--cg-small)/1 var(--cg-sans);
  white-space: nowrap;
  cursor: pointer;
}

.cg-btn:hover {
  background: color-mix(in srgb, var(--cg-raised), var(--cg-text) 10%);
}

/* (0,2,0): over `.cg button`'s font: inherit, so these have the weight the site's buttons have */
.cg .cg-btn {
  font-weight: 500;
}

/* selected and pressed: Ink */
.cg-btn[aria-pressed="true"] {
  background: var(--cg-text);
  color: var(--cg-bg);
}

/* can't act here (Aurora on the map, a zoom at its limit): dimmed, and it says why in its title */
.cg-btn[aria-disabled="true"],
.cg-btn[aria-disabled="true"]:hover {
  background: var(--cg-panel);
  color: var(--cg-muted);
  cursor: default;
}

/* Now is an action, as on Explore: already now, it rests quiet; away from now, a button */
.cg-btn.cg-now[aria-disabled="true"],
.cg-btn.cg-now[aria-disabled="true"]:hover {
  background: none;
  box-shadow: inset 0 0 0 1px var(--cg-raised);
}

.cg-btn.cg-icon-btn {
  width: var(--cg-btn-h);
  padding: 0;
}

/* a minor action in a line of text or a heading: underlined words, no fill */
.cg-textbtn {
  display: inline-flex;
  align-items: center;
  min-height: calc(24 * var(--cg-u));
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--cg-text);
  text-decoration: underline;
  text-decoration-color: var(--cg-link);
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.cg .cg-textbtn {
  font-weight: 500;
}

.cg-textbtn:hover {
  text-decoration-color: var(--cg-text);
}

/* Passes: "Change place" under its heading (still there when the panel folds to it), which
   opens the search for another country or sea */
.cg-panel[data-panel="passes"] .cg-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  row-gap: calc(2 * var(--cg-u));
}

.cg-panel[data-panel="passes"] .cg-panel-head h2 {
  grid-column: 1;
  grid-row: 1;
}

.cg-panel[data-panel="passes"] .cg-fold-side {
  grid-column: 2;
  grid-row: 1;
}

.cg .cg-change-place {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  font-size: var(--cg-small);
}

/* Pictures: the dark and mostly missing frames left out, and the switch that brings them in */
.cg .cg-tucked {
  flex: none;
  margin: calc(-4 * var(--cg-u)) 0 calc(8 * var(--cg-u));
}

.cg-tucked .cg-textbtn {
  min-height: 0;
  font-size: var(--cg-small);
}

/* Stats away from now: the time they're for */
.cg .cg-at {
  margin: calc(-4 * var(--cg-u)) 0 calc(10 * var(--cg-u));
  color: var(--cg-text);
}

/* a word for a key that can't do its job here (A on the map), under the view's buttons */
.cg-toast {
  position: absolute;
  top: calc(var(--cg-top, 0px) + var(--cg-gap) + var(--cg-btn-h) + 8 * var(--cg-u));
  left: 50%;
  z-index: 4;
  max-width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.cg-toast:not(:empty) {
  padding: calc(8 * var(--cg-u)) calc(12 * var(--cg-u));
  background: var(--cg-panel);
  font-size: var(--cg-small);
  line-height: 1.45;
  text-align: center;
}

.cg-narrow .cg-toast {
  top: calc(var(--cg-head-h, 44px) + 8px);
}

/* Copy link: in the clock bar, and on a phone an icon at the end of the Globe / Map row
   (see the narrow layout) */
.cg-head-share {
  display: none;
}

.cg .cg-head-share {
  background: var(--cg-panel);
}

.cg .cg-head-share:hover {
  background: var(--cg-raised);
}

.cg .cg-head-share svg {
  width: 20px;
  height: 20px;
}

/* ---- clock bar --------------------------------------------------------------- */

.cg-dock {
  display: contents;
}

.cg-clock {
  position: absolute;
  right: var(--cg-gap);
  bottom: var(--cg-gap);
  left: var(--cg-gap);
  display: flex;
  align-items: center;
  gap: calc(16 * var(--cg-u));
  height: var(--cg-clock-h);
  padding: 0 var(--cg-pad);
  background: var(--cg-panel);
}

.cg-time {
  flex: none;
  min-width: calc(220 * var(--cg-u));
}

.cg-utc {
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.cg-time .cg-fine {
  white-space: nowrap;
}

/* the time and its calendar stay together when a phone breaks the line after the date */
.cg-utc-tail {
  white-space: nowrap;
}

.cg-transport {
  display: flex;
  flex: none;
  align-items: center;
  gap: calc(8 * var(--cg-u));
}

/* [step back] [play or pause] [step forward] */
.cg-steps {
  display: flex;
  gap: 2px;
}

/* tapped again and again: no double-tap zoom on a phone */
.cg-step {
  touch-action: manipulation;
}

.cg-speeds {
  display: flex;
  gap: 2px;
}

.cg-speed-cycle {
  display: none;
}

.cg-scrub {
  position: relative;
  flex: 1 1 auto;
  min-width: calc(160 * var(--cg-u));
  padding-top: calc(8 * var(--cg-u));
}

.cg-scrub input[type="range"] {
  display: block;
  width: 100%;
  height: calc(20 * var(--cg-u));
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cg-scrub input[type="range"]:focus-visible {
  outline: none;
}

.cg-scrub input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--cg-raised);
}

.cg-scrub input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--cg-raised);
}

.cg-scrub input[type="range"]::-webkit-slider-thumb {
  width: calc(10 * var(--cg-u));
  height: calc(18 * var(--cg-u));
  margin-top: calc(1px - 9 * var(--cg-u));
  background: var(--cg-text);
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.cg-scrub input[type="range"]::-moz-range-thumb {
  width: calc(10 * var(--cg-u));
  height: calc(18 * var(--cg-u));
  background: var(--cg-text);
  border: 0;
  border-radius: 0;
}

/* focus ring on the thumb, the one thing that moves */
.cg-scrub input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--cg-accent);
  outline-offset: 2px;
}

.cg-scrub input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--cg-accent);
  outline-offset: 2px;
}

.cg-ticks {
  position: absolute;
  top: calc(4 * var(--cg-u));
  right: calc(5 * var(--cg-u));
  left: calc(5 * var(--cg-u));
  height: calc(8 * var(--cg-u));
  pointer-events: none;
}

.cg-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: calc(7 * var(--cg-u));
  background: var(--cg-muted);
}

.cg-tick-on {
  width: 2px;
  background: var(--cg-text);
}

.cg-scrub-labels {
  display: flex;
  justify-content: space-between;
  gap: calc(8 * var(--cg-u));
}

.cg-scrub-short {
  display: none;
}

/* The bottom bar's slider is short: its ends say it short, "−1 day" and "+1 day" (on a phone
   only once the middle says how far from now, which takes the room) */
.cg-narrow .cg-scrub-long {
  display: none;
}

.cg-narrow .cg-scrub-short {
  display: inline;
}

@media (max-width: 759px) {
  .cg-narrow.cg-live .cg-scrub-long {
    display: inline;
  }

  .cg-narrow.cg-live .cg-scrub-short {
    display: none;
  }
}

.cg-share {
  flex: none;
}

.cg-panels-btn {
  flex: none;
  min-width: calc(104 * var(--cg-u)); /* "Hide" and "Show" panels: no shift when it flips */
}

/* panels hidden: just the globe, the photo card and the clock */
.cg-panels-off:not(.cg-narrow) .cg-panel[data-panel],
.cg-panels-off:not(.cg-narrow) .cg-keys {
  display: none;
}

.cg-tabs {
  display: none;
}

/* touch screens: controls at least 44px */
@media (pointer: coarse) {
  .cg {
    --cg-btn-h: max(44px, calc(32 * var(--cg-u)));
  }

  .cg-pass,
  .cg-photo {
    min-height: 44px;
  }

  /* the standalone text links and buttons: a 44px tap area without moving anything */
  .cg-back,
  .cg-card-link,
  .cg-textbtn {
    position: relative;
  }

  .cg-back::after,
  .cg-card-link::after,
  .cg-textbtn::after {
    content: "";
    position: absolute;
    inset: -13px -8px;
  }

  /* the two that sit on lines of their own, "Change place" and "Show them": 44px of their own */
  .cg .cg-change-place,
  .cg .cg-tucked .cg-textbtn {
    min-height: 44px;
  }

  .cg .cg-change-place::after,
  .cg .cg-tucked .cg-textbtn::after {
    inset: 0 -8px;
  }

  /* the time button: the row's 44px, not just its two lines */
  .cg-time {
    min-height: 44px;
  }

  /* The time slider's handle: a finger has to grab it (iPhone won't jump to a tap on the
     track), so a 28 × 44px handle, drawn 12 × 22 by its clear border, on a 44px slider that
     takes only 36px of the bar (its margins), so nothing moves. */
  .cg-scrub input[type="range"] {
    height: 44px;
    margin: -4px 0;
  }

  .cg-scrub input[type="range"]::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 28px;
    height: 44px;
    margin-top: -21px;
    border: solid transparent;
    border-width: 11px 8px;
    background-clip: padding-box;
  }

  .cg-scrub input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: 28px;
    height: 44px;
    border: solid transparent;
    border-width: 11px 8px;
    background-clip: padding-box;
  }

  /* the ticks line up with the handle's middle, which now stops 14px from each end */
  .cg-ticks {
    top: 12px;
    right: 14px;
    left: 14px;
  }

  /* the ring would sit on the clear border: it goes round the drawn handle instead */
  .cg-scrub input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline-offset: -5px;
  }
}

/* ---- narrow: bottom bar and tabbed sheets ------------------------------------ */

.cg-narrow {
  --cg-gap: 12px;
  --cg-btn-h: 44px;
}

/* a solid band under the site's nav, so the words never sit on the Earth;
   the sources are in Credits */
.cg-narrow .cg-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: calc(var(--cg-top, 0px) + 12px) 12px 8px;
  background: var(--cg-bg);
}

.cg[data-ui="full"].cg-narrow .cg-credit {
  display: none;
}

.cg-narrow .cg-col {
  display: contents;
}

.cg-narrow .cg-keys:not([open]) {
  display: none;
}

/* opened by ? on a narrow screen with a keyboard: a small panel over the stage */
.cg-narrow .cg-keys[open] {
  position: absolute;
  top: calc(var(--cg-head-h, 44px) + 8px);
  left: 12px;
  z-index: 4;
  max-width: calc(100% - 24px);
  padding: 8px 12px 12px;
  background: var(--cg-panel);
}

.cg-narrow .cg-keys[open] dl {
  padding: 0;
}

/* A phone's sheet stands on the tabs (--cg-tabs-h, from globe.js), over the clock, which makes
   way while it's open (below) without the bar changing its height, so nothing shifts. It always
   leaves a window of stage, at least 140px, above it, so the globe keeps a good share. */
.cg-narrow .cg-panel[data-panel] {
  position: absolute;
  right: 0;
  bottom: var(--cg-tabs-h, var(--cg-dock-h));
  left: 0;
  z-index: 4;
  display: none;
  max-height: max(120px, min(42%, calc(100% - var(--cg-tabs-h, 0px) - var(--cg-head-h, 0px) - 140px)));
  overflow-y: auto;
}

.cg-narrow[data-tab="sat"] [data-panel="sat"],
.cg-narrow[data-tab="passes"] [data-panel="passes"] {
  display: block;
}

/* Pictures opens on its list, the first rows in view; the viewfinder follows the list */
.cg-narrow[data-tab="photos"] [data-panel="photos"] {
  display: flex;
}

.cg-narrow .cg-panel-photos > * {
  flex: none;
}

.cg-narrow .cg-panel-photos .cg-vf {
  order: 1;
  margin: calc(12 * var(--cg-u)) calc(-1 * var(--cg-pad)) 0;
}

.cg-narrow .cg-photos {
  margin-bottom: 0;
}

/* Typing a place on a phone (globe.js setTyping): the Passes sheet stands from under the header to
   the top of the keyboard, over the stage, so the keyboard covers neither the box nor its suggestions */
.cg-narrow.cg-typing .cg-panel[data-panel="passes"] {
  top: var(--cg-head-h, 0px);
  bottom: max(var(--cg-tabs-h, 0px), var(--cg-kb, 0px));
  max-height: none;
}

/* an open sheet takes the place of the photo card */
.cg-narrow[data-tab="sat"] .cg-card,
.cg-narrow[data-tab="passes"] .cg-card,
.cg-narrow[data-tab="photos"] .cg-card {
  display: none;
}

.cg-narrow .cg-photos {
  overflow: visible;
}

.cg-narrow .cg-sub {
  display: none;
}

.cg-narrow .cg-card {
  top: calc(var(--cg-head-h, 44px) + 8px);
  right: 12px;
  bottom: auto;
  left: 12px;
  z-index: 3;
  width: auto;
  max-width: 440px;
  grid-template-columns: 80px 1fr;
}

.cg-narrow .cg-card-thumb {
  grid-row: 1;
  width: 80px;
  height: 60px;
  margin-top: 0;
}

.cg-narrow .cg-card-body {
  grid-row: 2;
}

.cg-narrow .cg-card-close {
  top: 0;
  right: 0;
}

.cg-narrow .cg-dock {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--cg-panel);
}

/* [Stats] [Passes] [Pictures], icons over their names, as Explore's bar on a phone
   (explore/journey.css .jy-tabbar): what's open has the Ink line, at the top because the
   bar is at the bottom */
.cg-narrow .cg-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  order: 2;
  box-shadow: inset 0 1px 0 var(--cg-raised);
}

.cg-narrow .cg-tabs .cg-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 0;
  background: none;
  border: 0;
  font: 500 13px/1.1 var(--cg-sans);
  letter-spacing: 0.01em;
  color: var(--cg-muted);
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), color 180ms cubic-bezier(.22, 1, .36, 1);
}

.cg-narrow .cg-tabs .cg-tab svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.cg-narrow .cg-tabs .cg-tab[aria-pressed="true"] {
  background: var(--cg-raised);
  box-shadow: inset 0 2px 0 var(--cg-text);
  color: var(--cg-text);
}

.cg-narrow .cg-clock {
  position: static;
  order: 1;
  flex-wrap: wrap;
  gap: 4px 8px;
  height: auto;
  padding: 12px 12px 4px;
  background: none;
}

.cg-narrow .cg-time {
  flex: 1 1 0;
  min-width: 0;
}

/* the UTC line stays one line, so the bar keeps its height (narrow phones leave out the year, below) */
.cg-narrow .cg-utc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-narrow .cg-speeds,
.cg-narrow .cg-panels-btn {
  display: none;
}

.cg-narrow .cg-speed-cycle {
  display: inline-flex;
  min-width: 56px;
}

.cg-narrow .cg-scrub {
  flex: 1 0 100%;
  order: 3;
  padding-top: 6px;
}

@media not (pointer: coarse) {
  .cg-narrow .cg-scrub input[type="range"] {
    height: 36px;
  }
}

.cg-narrow .cg-ticks {
  top: 12px;
}

/* A phone: [clock] [speed] [Now] over [step, play, step] [scrubber]. The transport's parts
   join the clock's own rows, so the clock keeps its width. */
@media (max-width: 759px) {
  .cg-narrow .cg-time {
    flex: 1 1 calc(100% - 140px);
  }

  .cg-narrow .cg-transport {
    display: contents;
  }

  .cg-narrow .cg-steps {
    order: 2;
    flex: none;
  }

  /* room for the whole UTC line, its calendar too, beside the speed and Now (both still 44px+) */
  .cg-narrow .cg-now {
    padding: 0 8px;
  }

  .cg-narrow .cg-speed-cycle {
    min-width: 48px;
    padding: 0 8px;
  }

  .cg-narrow .cg-scrub {
    flex: 1 1 0;
    order: 3;
    min-width: 0;
  }

  /* On a phone the clock makes way while a sheet is open, so the globe isn't squeezed into a
     strip; Stats says what time it's showing when that isn't now. The sheet covers it, and the
     bar keeps its height. */
  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-clock {
    visibility: hidden;
  }

  /* Copy link is an icon at the end of the Globe / Map row here (the clock bar has no room for it) */
  .cg-narrow .cg-clock > .cg-share {
    display: none;
  }

  .cg-narrow .cg-head-share {
    display: inline-flex;
  }

  /* The header is one row: the title, with "Over …" under it, left of the Globe / Map row
     (map2d.css; its width is --cg-views-w, from globe.js). Folding the title takes "Over …"
     away and the row stays as it is, so nothing under it moves. A long place takes a second
     line, in the band's own height (4px under the nav to 2px above its foot), so the band
     keeps its height as the places change. */
  .cg-narrow .cg-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(var(--cg-top, 0px) + 12px + 44px + 8px);
    padding-top: calc(var(--cg-top, 0px) + 4px);
    padding-bottom: 2px;
    padding-right: calc(var(--cg-views-w, 220px) + 12px + 8px);
  }

  .cg-narrow .cg-head > [data-ref="headBody"] {
    min-width: 0;
  }

  .cg.cg-narrow .cg-title {
    min-height: 0;
  }

  /* the title's own line is 24px: its tap area reaches the row's 44 */
  .cg.cg-narrow .cg-head .cg-fold {
    position: relative;
    min-height: 0;
  }

  .cg-narrow .cg-head .cg-fold::after {
    content: "";
    position: absolute;
    inset: -10px -8px;
  }

  .cg.cg-narrow .cg-over {
    display: -webkit-box;
    margin-top: 0;
    overflow: hidden;
    font-size: var(--cg-small);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: break-word;
  }
}

/* the narrowest phones: the clock leaves out the year, so the line fits beside the speed and Now */
@media (max-width: 374px) {
  .cg-narrow .cg-utc-year {
    display: none;
  }
}

/* the scrubber is short beside the steps here: its ends give way */
@media (max-width: 359px) {
  .cg-narrow .cg-scrub-labels {
    justify-content: center;
  }

  .cg-narrow .cg-scrub-labels > span:first-child,
  .cg-narrow .cg-scrub-labels > span:last-child {
    display: none;
  }
}

/* Room to the side: a sheet comes in from the right and the stage keeps its
   height (a phone on its side, tablets, short laptop windows). */
@media (min-width: 760px), (min-width: 480px) and (orientation: landscape) {
  .cg-narrow .cg-panel[data-panel] {
    top: var(--cg-top, 0px);
    bottom: var(--cg-dock-h);
    left: auto;
    width: min(360px, 45%);
    max-height: none;
  }

  /* the header keeps left of the Globe / Map row, which keeps left of the sheet (map2d.css) */
  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-head {
    padding-right: calc(min(360px, 45%) + var(--cg-views-w, 180px) + 24px);
  }

  .cg-narrow.cg-typing .cg-panel[data-panel="passes"] {
    top: var(--cg-top, 0px);
    bottom: max(var(--cg-dock-h, 0px), var(--cg-kb, 0px));
  }
}

/* A phone on its side: the sheet takes the full height at the right, and the bar keeps to its
   left with only the tabs, so the globe keeps the rest of the screen rather than a strip. */
@media (max-height: 500px) and (min-width: 480px) and (orientation: landscape) {
  .cg-narrow .cg-panel[data-panel] {
    bottom: 0;
    padding-bottom: calc(var(--cg-pad) + env(safe-area-inset-bottom, 0px));
  }

  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-dock {
    right: min(360px, 45%);
  }

  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-clock {
    visibility: hidden;
  }

  /* and the header keeps to its one row beside the switch: where it is shows in Stats, and
     Copy link is back when the sheet is put away */
  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-over,
  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-head-share {
    display: none;
  }

  /* typing a place: the sheet ends at the keyboard's top */
  .cg-narrow.cg-typing .cg-panel[data-panel="passes"] {
    bottom: var(--cg-kb, 0px);
  }

  /* The header is its one row of 44px with 6px above and below it, under the site's 52px nav,
     and Copy link is the icon in the Globe / Map row, as on a phone held upright. */
  .cg-narrow .cg-head {
    min-height: calc(var(--cg-top, 0px) + 6px + 44px + 6px);
    padding-top: calc(var(--cg-top, 0px) + 6px);
    padding-bottom: 6px;
  }

  .cg-narrow .cg-clock > .cg-share {
    display: none;
  }

  .cg-narrow .cg-head-share {
    display: inline-flex;
  }

  /* The bar is one band: the tabs at its left, beside the clock, rather than a row of their own
     under it, so the globe has more than half the height. */
  .cg-narrow .cg-dock {
    flex-direction: row;
    align-items: stretch;
  }

  .cg-narrow .cg-tabs {
    order: 0;
    flex: none;
    grid-template-columns: repeat(3, 60px);
    box-shadow: inset -1px 0 0 var(--cg-raised);
  }

  .cg-narrow .cg-clock {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Wide but short, or a tablet: one row for the clock, with the speeds, title
   and place side by side, as on the bigger layout. */
@media (min-width: 760px) {
  .cg-narrow .cg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    padding-right: calc(var(--cg-views-w, 180px) + 24px); /* the Globe / Map row sits here */
  }

  .cg-narrow:is([data-tab="sat"], [data-tab="passes"], [data-tab="photos"]) .cg-head {
    padding-right: calc(min(360px, 45%) + var(--cg-views-w, 180px) + 24px);
  }

  .cg-narrow .cg-over {
    margin-top: 0;
  }

  .cg-narrow .cg-clock {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 8px 12px;
  }

  .cg-narrow .cg-time {
    flex: none;
  }

  .cg-narrow .cg-utc {
    white-space: nowrap;
  }

  .cg-narrow .cg-scrub {
    flex: 1 1 auto;
    order: 0;
    min-width: 0;
    padding-top: 0;
  }
}

/* a phone on its side, where the clock is one row beside the tabs: closer gaps, so the slider
   keeps some length */
@media (max-height: 500px) and (min-width: 760px) and (orientation: landscape) {
  .cg-narrow .cg-clock {
    gap: 12px;
    padding: 6px 12px;
  }
}

/* room for all the speeds in that row; below this they stay one button, for the scrubber's sake */
@media (min-width: 1000px) {
  .cg-narrow .cg-speeds {
    display: flex;
  }

  .cg-narrow .cg-speed-cycle {
    display: none;
  }
}

/* the ends of the scrubber need more room than that row has here */
@media (min-width: 760px) and (max-width: 899px) {
  .cg-narrow .cg-scrub-labels {
    justify-content: center;
  }

  .cg-narrow .cg-scrub-labels > span:first-child,
  .cg-narrow .cg-scrub-labels > span:last-child {
    display: none;
  }
}

/* ---- compact (embedded) ------------------------------------------------------- */

.cg[data-ui="compact"] .cg-panel[data-panel],
.cg[data-ui="compact"] .cg-keys,
.cg[data-ui="compact"] .cg-panels-btn,
.cg[data-ui="compact"] .cg-head-share,
.cg[data-ui="compact"] .cg-tabs {
  display: none !important;
}

.cg[data-ui="compact"] .cg-sub {
  display: none;
}

/* embedded next to the photo itself: no thumbnail or link back to it */
.cg[data-ui="compact"] .cg-card {
  grid-template-columns: 1fr;
}

.cg[data-ui="compact"] .cg-card-thumb,
.cg[data-ui="compact"] .cg-card-link {
  display: none;
}

.cg[data-ui="compact"] .cg-card-body {
  margin-top: 4px;
}
