/* Car Colours. Quiet views of sample dots, plus the Found Photographs size slider. */

.cc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0.2rem 0 1.5rem;
  position: relative;
  padding-right: 72px;
}

.cc-tone {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cc-swatch,
.cc-switch {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  cursor: pointer;
  box-sizing: border-box;
}

.cc-swatch {
  display: block;
  width: 14px;
  height: 14px;
}

.cc-swatch-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.cc-swatch[aria-pressed="false"] {
  opacity: 0.45;
}

.cc-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 1px 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.cc-swatch[data-cc-tone="real"] .cc-tip {
  left: auto;
  right: 0;
  transform: none;
}

.cc-swatch:hover .cc-tip,
.cc-swatch:focus-visible .cc-tip {
  opacity: 1;
}

.cc-switch {
  display: block;
  width: 28px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #fff;
}

.cc-switch-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  background: #111;
  transition: transform 0.22s ease;
}

.cc-tone.cc-real .cc-switch-knob {
  transform: translateX(14px);
}

.cc-swatch:focus-visible,
.cc-switch:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.cc-tagfold {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-tools {
  display: contents;
}

#cc-city-vancouver {
  margin: 0 0 0.15rem;
}

.cc-tags-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: none;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
}

.cc-tags-name {
  white-space: nowrap;
}

.cc-tags-toggle:hover,
.cc-tags-toggle:focus-visible {
  background: none;
  border: 0;
  box-shadow: none;
}

.cc-tags-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

html.cc-tags-open .cc-tags-toggle svg {
  transform: rotate(180deg);
}

.cc-tagdrop {
  display: grid;
  grid-template-rows: 0fr;
}

html.cc-tags-motion .cc-tagdrop {
  transition: grid-template-rows 0.22s ease;
}

html.cc-tags-open .cc-tagdrop {
  grid-template-rows: 1fr;
}

.cc-tagdrop .cc-cities {
  min-height: 0;
  overflow: hidden;
}

html.cc-tags-open .cc-tagdrop .cc-cities {
  --cc-tag-rows: 4;
  max-height: calc(0.45em + var(--cc-tag-rows) * (1.4em + 0.5em + 2px) + (var(--cc-tag-rows) - 1) * 7px + 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 0.35em;
}

@media (max-width: 767px) {
  html.cc-tags-open .cc-tagdrop .cc-cities {
    --cc-tag-rows: 8;
  }
}

.cc-modes,
.cc-cities {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  margin: 0;
  border: 0;
}

.cc-cities {
  margin: 0;
  row-gap: 7px;
}

.cc-icons {
  display: inline-flex;
  align-items: center;
}

.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 2px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  background: transparent;
  color: #111;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.9;
  transform-origin: center center;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cc-icon:hover {
  opacity: 1;
  border-color: #000;
  background: transparent;
}

.cc-icon:active {
  transform: scale(0.92);
}

.cc-icon.cc-icon-on {
  background: #111;
  border-color: #111;
  color: #fff;
  opacity: 1;
}

.cc-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.cc-icon:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.cc-zoom {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 0.55em;
  margin-left: auto;
  background: transparent;
}

.cc-stage {
  width: 100%;
  min-height: 8rem;
}

.sheet {
  position: relative;
  z-index: 1;
}

.cc-spill {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.cc-spill-disk {
  position: absolute;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  pointer-events: none;
  transform-origin: center center;
}

.cc-dot {
  display: block;
  width: var(--cc-dot, 40px);
  height: var(--cc-dot, 40px);
  transform-origin: center center;
  box-sizing: border-box;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.05);
  flex: 0 0 var(--cc-dot, 40px);
  transition: background-color 0.45s ease;
}

.cc-pop {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #fff;
  color: #111;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cc-pop[hidden] {
  display: none;
}

.cc-pop-chip {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.cc-pop-copy {
  white-space: pre-line;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.cc-label {
  margin: 0 0 0.45rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cc-family {
  margin: 0 0 1.2rem;
}

.cc-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cc-gap, 14px);
}

.cc-regions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.4rem;
  align-items: start;
}

.cc-cluster-field {
  position: relative;
}

.cc-cluster-field .cc-dot {
  position: absolute;
}

.cc-map {
  position: relative;
  width: 100%;
  background: none;
}

.cc-map-tiles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  background: #e4e2dc;
  opacity: 0;
}

.cc-map.cc-map-in .cc-map-tiles {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.cc-map-tiles .maplibregl-map,
.cc-map-tiles .maplibregl-canvas-container {
  width: 100%;
  height: 100%;
}

.cc-map-credit {
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
}

.cc-map .cc-dot {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.cc-map-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-map-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.cc-map-zoom-btn:hover,
.cc-map-zoom-btn:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
}

.cc-map-zoom-btn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.cc-gather {
  position: relative;
  width: 100%;
}

.cc-gather .cc-dot {
  position: absolute;
}

.cc-map-spot {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cc-map-spot .cc-label {
  white-space: nowrap;
  margin: 0.45rem 0 0;
}

.cc-hue {
  display: grid;
  gap: var(--cc-gap, 14px);
  justify-content: start;
}

.cc-hue .cc-dot {
  justify-self: center;
  align-self: center;
  min-width: 0;
  min-height: 0;
}

.cc-zslider {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 22px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
}

.cc-zslider:active {
  cursor: grabbing;
}

.cc-zslider:focus {
  outline: none;
}

.cc-zslider::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75) var(--cc-p, 0%), rgba(0, 0, 0, 0.14) var(--cc-p, 0%));
}

.cc-zslider::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.14);
}

.cc-zslider::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
}

.cc-zslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.18s ease;
}

.cc-zslider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
}

html.cc-paged .cc-zslider::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, 0.25);
}

html.cc-paged .cc-zslider::-moz-range-thumb {
  box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cc-zslider:hover::-webkit-slider-thumb,
.cc-zslider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
}

.cc-zslider:active::-webkit-slider-thumb {
  transform: scale(1.22);
}

html.cc-sizing {
  overflow-anchor: none;
  cursor: grabbing;
}

html.cc-sizing .cc-dot {
  pointer-events: none;
}

@media (max-width: 767px) {
  .cc-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.6rem;
    row-gap: 0.35rem;
    padding-right: 0;
  }

  .cc-tagfold {
    display: contents;
  }

  #cc-city-vancouver,
  .cc-tags-toggle {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .cc-tagdrop {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cc-tools {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem 0.5rem;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
  }

  .cc-tone {
    position: static;
    flex: 0 0 auto;
  }

  .cc-zoom {
    flex: 1 1 172px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    min-width: min(100%, 172px);
    max-width: min(100%, max-content);
    margin-left: 0;
  }

  .cc-zslider {
    flex: 1 1 auto;
    width: 150px;
    min-width: 96px;
    max-width: 150px;
  }
}

@media (min-width: 560px) {
  .cc-regions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .cc-regions {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Title disclosure. Opens under the page heading; later notes can be another section here. */
.cc-about-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.cc-about-toggle:hover,
.cc-about-toggle:focus-visible {
  text-decoration: underline;
}

.cc-about-toggle:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.cc-about.cc-open {
  background: #fff;
}

.cc-about-panel {
  display: grid;
  grid-template-rows: 0fr;
  background: #fff;
  transition: grid-template-rows 0.42s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.cc-about-panel[hidden] {
  display: none;
}

.cc-about.cc-open .cc-about-panel {
  grid-template-rows: 1fr;
}

.cc-about-clip {
  min-height: 0;
  overflow: hidden;
}

.cc-about-body {
  max-width: 36em;
  padding: 0.85rem 0 0.15rem;
  transform-origin: center center;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.45, 0.05, 0.55, 0.95), opacity 0.32s ease;
}

.cc-about.cc-open .cc-about-body {
  transform: scale(1);
  opacity: 1;
}

.cc-about-block {
  margin: 0 0 0.85rem;
}

.cc-about-block h2 {
  margin: 0 0 0.2rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cc-about-block p {
  margin: 0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.cc-about-video:empty {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cc-about-panel,
  .cc-about-body {
    transition: none;
  }

  .cc-about-body {
    transform: none;
    opacity: 1;
  }
}
