/* SPEC-065 / SPEC-065b · «Arte gráfico» (js/arte-interior.js). Everything is scoped to
   .arte-interior, except the grayscale of the spread in the covers' viewer (.cover-viewer lives
   on <body>, css/caratulas.css). */
.arte-interior .art-title { margin: 0; }
.arte-interior .art-notice:empty { display: none; }
.arte-interior .art-state { margin: .75rem 0; }
.arte-interior .art-failed { color: #b3452c; }
.arte-interior .art-locked {
  margin: .75rem 0; padding: .9rem 1rem; border: 1px dashed var(--line-2, #cdc4b0); border-radius: 8px;
  color: var(--muted, #4f5257); background: var(--surface-2, #f5f1e7);
}
.arte-interior .art-decided { margin: .5rem 0 .25rem; }
.arte-interior .art-decision { margin: 0; font-weight: 600; color: var(--ink); }
.arte-interior .art-hint { display: block; margin: .25rem 0; font-size: .8rem; color: #b3452c; }

/* The chosen cover next to the line that says the plates follow its style. */
.arte-interior .art-cover-line { display: flex; align-items: center; gap: .75rem; margin: .75rem 0; }
.arte-interior .art-cover-thumb {
  flex: 0 0 auto; width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px;
  box-shadow: var(--sh-card, 0 14px 32px rgba(60, 50, 25, .10));
}
.arte-interior .art-follows { margin: 0; font-size: .9rem; }

/* «Color» / «Escala de grises»: two buttons, the one in use in gold. */
.arte-interior .art-tone { margin: .5rem 0 .75rem; }
.arte-interior .art-tone-label { margin: 0 0 .35rem; font-size: .8rem; font-weight: 600; color: var(--muted, #4f5257); }
.arte-interior .art-tone-options { display: inline-flex; border: 1px solid var(--line-2, #cdc4b0); border-radius: 999px; overflow: hidden; }
.arte-interior .art-tone-option {
  min-height: 40px; padding: .35rem .9rem; border: 0; background: transparent; color: var(--muted, #4f5257);
  font: inherit; font-size: .85rem; cursor: pointer;
}
.arte-interior .art-tone-option + .art-tone-option { border-left: 1px solid var(--line-2, #cdc4b0); }
.arte-interior .art-tone-option[aria-pressed="true"] { background: rgba(205, 169, 78, .16); color: var(--gold-soft, #7d6114); font-weight: 600; }
.arte-interior .art-tone-option:focus-visible { outline: 2px solid var(--gold, #9a7a1c); outline-offset: 2px; }
.arte-interior .art-tone-hint { margin: .35rem 0 0; }

/* The spread (landscape, two pages): the covers' sweep while it is made or downloading. */
.arte-interior .art-sample { max-width: 46rem; margin: .5rem 0 .75rem; display: flex; flex-direction: column; gap: 6px; }
.arte-interior .art-sample-image {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px;
  background: var(--surface, #fffdf8); box-shadow: var(--sh-card, 0 14px 32px rgba(60, 50, 25, .10)); cursor: zoom-in;
  transition: filter .2s ease;
}
.arte-interior .art-sample-image[hidden] { display: none; }
.arte-interior .art-sample-image:focus-visible { outline: 2px solid var(--gold, #9a7a1c); outline-offset: 3px; }
/* SPEC-066 RF4: «Escala de grises» is the print grayscale, the SVG filter js/arte-interior.js puts
   once in the page (#avl-print-gray: Rec. 601 luminance, then 0.10 + 0.90 * in^0.80). Its numbers
   must match layout_engine/compose.py print_gray() in ~/Desktop/Diagramación (the same curve). */
.arte-interior .art-gray,
.cover-viewer .cover-viewer-image.art-gray { filter: url(#avl-print-gray); }
.arte-interior .art-sample-caption { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; }
.arte-interior .art-sample-demo { color: var(--muted, #4f5257); }
.arte-interior .art-wait {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: .5rem; padding: .75rem;
  width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-2, #cdc4b0);
  background-color: var(--line, #e4ddcd);
  background-image:
    linear-gradient(100deg, transparent 30%, rgba(205,169,78,.38) 43%, rgba(255,255,255,.5) 50%, rgba(205,169,78,.38) 57%, transparent 70%),
    linear-gradient(160deg, var(--line, #e4ddcd), var(--line-2, #cdc4b0));
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 120% 0, 0 0;
  animation: cover-sweep 1.6s linear infinite;
}
.arte-interior .art-wait-text {
  padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: var(--surface, #fffdf8); color: var(--muted, #4f5257); border: 1px solid var(--line, #e4ddcd);
}
.arte-interior .art-wait--failed {
  justify-content: center; text-align: center; animation: none;
  background-image: none; background-color: var(--surface-2, #f5f1e7); border-style: dashed;
}
.arte-interior .art-wait--failed .art-wait-text { background: none; border: 0; padding: 0; }
.arte-interior .art-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 .25rem; }
.arte-interior .art-mark { font-weight: 600; color: var(--gold-soft, #7d6114); }
.arte-interior .art-left { margin: .25rem 0 1rem; }
@keyframes cover-sweep { from { background-position: 120% 0, 0 0; } to { background-position: -20% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .arte-interior .art-wait { animation: none; background-position: 50% 0, 0 0; }
  .arte-interior .art-sample-image { transition: none; }
}
