/* Interactive figures for the skating music page.

   Tango palette, this page only (this file loads only here): a wine accent on
   warm cream (light) or warm black (dark), with the two recordings in old gold
   (Por Una Cabeza, 1935) and crimson (Libertango, 1974). The gold/crimson
   pairs are separated mostly by lightness so they stay apart under color-vision
   deficiency; both pairs pass the dataviz validator on their surface
   (CVD dE 16.1 light / 10.2 dark, normal-vision dE 21.2 / 19.1, >= 3:1). */
:root {
    --background-color: #f6f0e6;
    --block-background-color: #f6f0e6;
    --font-color: #1f1718;
    --invert-font-color: #f6f0e6;
    --primary-color: #8c1c2c;
    --secondary-color: #6e625c;
    --error-color: #8c1c2c;
    --code-bg-color: #ece2d4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1b1516;
        --block-background-color: #1b1516;
        --font-color: #efe6da;
        --invert-font-color: #1b1516;
        --primary-color: #e0707c;
        --secondary-color: #a89d94;
        --error-color: #e0707c;
        --code-bg-color: #2c2224;
    }
}

.sk {
    --sk-puc: #b07d18;
    --sk-lib: #a3202f;
    --sk-grid: rgba(0, 0, 0, 0.08);
    --sk-panel: rgba(0, 0, 0, 0.025);
    --sk-mono: "Fira Code", Menlo, Monaco, monospace;
    margin: calc(var(--global-space, 10px) * 3) 0;
    padding: 0;
}

@media (prefers-color-scheme: dark) {
    .sk {
        --sk-puc: #b98a2e;
        --sk-lib: #cc3646;
        --sk-grid: rgba(255, 255, 255, 0.1);
        --sk-panel: rgba(255, 255, 255, 0.03);
    }
}

.sk figcaption {
    margin-bottom: 0.9em;
    text-align: left;
}

.sk figcaption ul {
    margin-top: 0.4em;
}

.sk-body {
    position: relative;
    border: 1px solid var(--sk-grid);
    background: var(--sk-panel);
    padding: 12px;
}

.sk-body canvas {
    display: block;
    width: 100%;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.sk-body canvas:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Rows of controls ------------------------------------------------------ */

.sk-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 10px;
    font-family: var(--sk-mono);
    font-size: 0.8rem;
}

.sk-row:last-child {
    margin-bottom: 0;
}

.sk-row + canvas,
canvas + .sk-row {
    margin-top: 10px;
}

.sk-spacer {
    flex: 1;
}

.sk-btn {
    font: inherit;
    font-family: var(--sk-mono);
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--font-color);
    background: transparent;
    border: 1px solid var(--secondary-color);
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.sk-btn:hover {
    border-color: var(--font-color);
}

.sk-btn[aria-pressed="true"] {
    background: var(--font-color);
    border-color: var(--font-color);
    color: var(--background-color);
}

.sk-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sk-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.sk-play {
    min-width: 6.5em;
}

.sk-seg {
    display: inline-flex;
    flex-wrap: wrap;
}

.sk-seg .sk-btn + .sk-btn {
    border-left-width: 0;
}

.sk-time {
    font-variant-numeric: tabular-nums;
    color: var(--secondary-color);
}

.sk-swatch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--font-color);
}

.sk-swatch::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--c);
}

.sk-muted {
    color: var(--secondary-color);
}

/* Sliders ---------------------------------------------------------------- */

.sk-slider {
    display: grid;
    grid-template-columns: minmax(9em, auto) 1fr minmax(5.5em, auto);
    align-items: center;
    gap: 10px;
    width: 100%;
}

.sk-slider label {
    color: var(--secondary-color);
}

.sk-slider output {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sk-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
    margin: 0;
}

@media only screen and (max-width: 560px) {
    .sk-slider {
        grid-template-columns: 1fr auto;
    }

    .sk-slider input[type="range"] {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* Edit chips under the program map --------------------------------------- */

.sk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.sk-chip {
    text-align: left;
}

.sk-chip b {
    font-weight: 700;
    margin-right: 0.4em;
}

/* Readouts, notes and tooltips ------------------------------------------- */

.sk-readout {
    min-height: 1.4em;
    font-family: var(--sk-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
}

.sk-note {
    font-size: 0.9rem;
    margin: 8px 0 0;
}

.sk-verdict {
    font-family: var(--sk-mono);
    font-size: 0.8rem;
}

.sk-verdict b {
    font-weight: 700;
}

.sk-tip {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    max-width: 18em;
    padding: 6px 8px;
    font-family: var(--sk-mono);
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--font-color);
    background: var(--background-color);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.sk-tip[hidden] {
    display: none;
}

.sk-tip .sk-k {
    color: var(--secondary-color);
}

/* Square layout for the self-similarity map */
.sk-ssm-wrap {
    max-width: 560px;
    margin: 0 auto;
}

/* Original working figures ------------------------------------------------ */

.sk-orig {
    margin-top: 8px;
    font-size: 0.85rem;
}

.sk-orig summary {
    cursor: pointer;
    color: var(--secondary-color);
    font-family: var(--sk-mono);
    font-size: 0.8rem;
}

.sk-orig img {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    background: #fff;
}

/* Edit list table */
.sk-table {
    margin-top: 10px;
    font-size: 0.85rem;
}

.sk-table summary {
    cursor: pointer;
    color: var(--secondary-color);
    font-family: var(--sk-mono);
    font-size: 0.8rem;
}

.sk-table table {
    margin-top: 8px;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

/* Hide the plain audio player once the interactive map has taken over. */
.sk.is-live > .sk-fallback {
    display: none;
}

.sk-fallback audio {
    width: 100%;
}

/* Embedded video */
.sk-video video {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--sk-grid);
}
