/* Native overview figure. All styles stay inside this figure. */
.cel-sources {
  --cel-source-ink: #2b3d45;
  margin-block: 28px 34px;
  position: relative;
}

.cel-sources .cel-source-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.cel-sources .cel-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  row-gap: 0;
  padding: 4px;
  margin: -4px;
  touch-action: auto;
}

.cel-sources .cel-source-card {
  --cel-source-color: #587e93;
  --cel-source-soft: #f4f8fa;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  min-width: 0;
  width: 100%;
  padding: 20px 15px 13px;
  border: 1px solid #dce3e7;
  border-radius: 13px;
  background: #fff;
  color: var(--cel-source-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  touch-action: auto;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.cel-sources .cel-source-card[data-cel-source="corrections"] {
  --cel-source-color: #956b7b;
  --cel-source-soft: #fbf6f8;
}

.cel-sources .cel-source-card[data-cel-source="collective"] {
  --cel-source-color: #527d66;
  --cel-source-soft: #f3f8f4;
}

.cel-sources .cel-source-card.is-active {
  border-color: var(--cel-source-color);
  background: var(--cel-source-soft);
  box-shadow: inset 0 0 0 1px var(--cel-source-color);
}

.cel-sources .cel-source-card.is-preview {
  border-color: var(--cel-source-color);
  background: var(--cel-source-soft);
}

.cel-sources .cel-source-card:focus-visible {
  outline: 2px solid var(--cel-source-color);
  outline-offset: 3px;
}

.cel-sources .cel-source-heading {
  display: block;
  min-height: 0;
  font: 23px/1.2 var(--serif, Georgia, serif);
  letter-spacing: -.35px;
  color: #2b3d45;
}

.cel-sources .cel-source-method {
  display: block;
  min-height: 1.6em;
  margin-top: 6px;
  font: 12px/1.6 var(--mono, monospace);
  color: #687781;
  letter-spacing: .025em;
}

.cel-sources .cel-source-card > svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-top: 8px;
  margin-inline: auto;
  overflow: visible;
  pointer-events: none;
  font-family: var(--sans, Arial, sans-serif);
}

.cel-sources .cel-source-flow {
  fill: none;
  stroke-linecap: round;
}

.cel-sources .cel-source-card.is-flowing .cel-source-flow {
  stroke-dasharray: 5 10;
  animation: cel-source-flow 2.6s linear 2;
}

.cel-sources .cel-source-card.is-flowing .cel-source-signal {
  animation: cel-source-signal 2.6s ease-in-out 2;
}

.cel-sources .cel-supervision {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 5px 16px;
  align-items: center;
  margin: 21px 4px 0;
  color: #687781;
  font: 11px/1.6 var(--mono, monospace);
}

.cel-sources .cel-supervision > span:nth-child(2) {
  text-align: center;
  color: #bd654f;
}

.cel-sources .cel-supervision > span:nth-child(3) {
  text-align: right;
}

.cel-sources .cel-supervision > i {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: 10px;
  background: linear-gradient(to right, #dc795d, #f0d9ce) left center / 100% 2px no-repeat;
}

.cel-sources .cel-supervision > i::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #e2b7a4;
  border-right: 2px solid #e2b7a4;
  transform: rotate(45deg);
}

.cel-sources .cel-source-detail {
  min-height: 3.4em;
  margin: 14px 0 0;
  color: #626e77;
  font: 13px/1.75 var(--sans, Arial, sans-serif);
}

.cel-sources .cel-source-detail strong {
  color: #344750;
  font-weight: 600;
  margin-right: .3em;
}

@keyframes cel-source-flow {
  to { stroke-dashoffset: -60; }
}

@keyframes cel-source-signal {
  0%, 100% { opacity: 1; }
  50% { opacity: .62; }
}

@media (max-width: 1100px) {
  .cel-sources { margin-block: 23px 27px; }
  .cel-sources .cel-source-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(330px, calc((100% - 14px) / 2));
    column-gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scrollbar-width: thin;
    scrollbar-color: #b6c2c7 #eef2f4;
    -webkit-overflow-scrolling: touch;
  }
  .cel-sources .cel-source-grid::-webkit-scrollbar { height: 6px; }
  .cel-sources .cel-source-grid::-webkit-scrollbar-track { background: #eef2f4; }
  .cel-sources .cel-source-grid::-webkit-scrollbar-thumb { background: #b6c2c7; border-radius: 4px; }
  .cel-sources .cel-source-card { padding: 18px 14px 11px; }
  .cel-sources .cel-source-heading { font-size: 22px; }
  .cel-sources .cel-supervision { margin-top: 15px; gap: 5px 10px; font-size: 10px; }
  .cel-sources .cel-source-detail { margin-top: 11px; font-size: 12px; }
}

@media (max-width: 600px) {
  .cel-sources .cel-source-grid { grid-auto-columns: minmax(330px, 90%); }
}

@media (prefers-reduced-motion: reduce) {
  .cel-sources .cel-source-card { transition: none; }
  .cel-sources .cel-source-card.is-flowing .cel-source-flow,
  .cel-sources .cel-source-card.is-flowing .cel-source-signal { animation: none; }
  .cel-sources .cel-source-card.is-flowing .cel-source-flow { stroke-dasharray: none; }
}

@media print {
  .cel-sources .cel-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    column-gap: 12px;
    overflow: visible;
  }
  .cel-sources .cel-source-card { break-inside: avoid; }
  .cel-sources .cel-source-card.is-flowing .cel-source-flow,
  .cel-sources .cel-source-card.is-flowing .cel-source-signal { animation: none; }
  .cel-sources .cel-source-card.is-flowing .cel-source-flow { stroke-dasharray: none; }
}
