/*
 * Eidophone's own additions to the kit's page: the note at the top, Pour as a
 * press, the caution line and the plugin's log under the picture. Everything
 * else is vendor/kit.css, unedited. (woofer's and bubble's, laid out as theirs.)
 */

.ed-warning {
  /* #demo is 1400px wide with a 20px gutter: line up with what is inside it. */
  max-width: 1360px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: #1f1a0c;
  border: 1px solid #5a4613;
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  color: #f3e9cf;
}

@media (max-width: 1400px) {
  .ed-warning { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 480px) {
  .ed-warning { margin-left: 16px; margin-right: 16px; padding: 12px 14px; }
}

.ed-warning__title {
  font-size: 17px;
  color: var(--warn);
  margin: 0 0 4px;
}

.ed-warning p { margin: 8px 0 0; max-width: 80ch; font-size: 14px; }

/* body has embed set when ?embed=1: the note is the page's, not the picture's. */
body[data-embed] .ed-warning { display: none; }

/* ---- Pour: a press, not a toggle ----------------------------------------- */

.ed-press { text-align: center; }
.ed-press:active { background: var(--accent-dim); border-color: var(--accent); color: var(--text); }

/* ---- the lines under the picture ----------------------------------------- */

.ed-status { overflow-wrap: anywhere; }

.ed-caution {
  border-color: #5a4613;
  background: #1f1a0c;
  color: #f3e9cf;
}
.ed-caution[hidden] { display: none; }

.ed-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ed-log:empty { display: none; }

/* The host row's file note may run long: let it wrap rather than widen the page. */
#eidophone-audio-note { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
