/* Soft Bauhaus audio player (site addition; not part of design-handoff/reference/).
   Built by js/audio.js. No frame or background (Thomas, 2026-11-05); a red circle for play,
   a blue progress line with a red dot for the position. */

.content-prose .article-audio { margin: 31px 0; }
.content-prose .article-audio-label {
  margin: 0 0 6px; font: 11px/1.6 var(--accent-font); letter-spacing: .4px;
  text-transform: uppercase; color: var(--muted);
}
.content-prose .article-audio audio { margin: 6px 0 8px; }
.content-prose .article-audio.is-enhanced audio { display: none; }

.audio-controls {
  display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
  align-items: center; column-gap: 14px;
}
.audio-controls button {
  min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none;
  font: 12px/1 var(--accent-font); color: var(--ink); cursor: pointer;
}
.audio-controls button:hover { color: var(--link); }
.audio-controls .audio-skip { min-width: 34px; }

/* Play / pause: a red circle with a paper-coloured triangle or two bars. */
.audio-controls .audio-play { display: grid; place-items: center; width: 44px; border-radius: 50%; background: var(--red); }
.audio-play-icon {
  width: 0; height: 0; margin-left: 3px;
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--paper);
}
.is-playing .audio-play-icon {
  width: 11px; height: 14px; margin-left: 0; border: 0;
  background: linear-gradient(90deg, var(--paper) 0 4px, transparent 4px 7px, var(--paper) 7px);
}

/* Seek bar: thin rule, blue elapsed part, red dot. */
.audio-seek {
  --progress: 0%;
  width: 100%; min-width: 0; height: 44px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.audio-seek::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(90deg, var(--blue) var(--progress), var(--rule) var(--progress));
}
.audio-seek::-moz-range-track { height: 2px; background: var(--rule); }
.audio-seek::-moz-range-progress { height: 2px; background: var(--blue); }
.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 11px; height: 11px; margin-top: -4.5px;
  border: 0; border-radius: 50%; background: var(--red);
}
.audio-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--red); }

.audio-time { font: 12px/1 var(--accent-font); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.audio-controls .audio-rate { min-width: 40px; color: var(--muted); }

@media (max-width: 560px) {
  .audio-controls {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "play back fwd time rate" "seek seek seek seek seek";
  }
  .audio-play { grid-area: play; }
  .audio-skip[data-skip="-15"] { grid-area: back; }
  .audio-skip[data-skip="15"] { grid-area: fwd; }
  .audio-time { grid-area: time; justify-self: end; }
  .audio-rate { grid-area: rate; }
  .audio-seek { grid-area: seek; height: 32px; }
}
