/* The book of the year's entry on the artist page and in a room's by-age
   view (D-025). The book itself is styled by book.css. */

.book-entry { margin: 2rem 0 0; }
.book-entry h2.eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.book-entry h2.eyebrow .icon { width: 1.1rem; height: 1.1rem; }
.book-entry .book-years { margin: 0 0 0.5rem; }
.book-entry .book-years a { display: inline-flex; gap: 0.4rem; }
.book-entry .book-years strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.book-entry .muted { margin: 0; }
.book-sharing-link { text-decoration: underline; text-underline-offset: 0.2em; }
.gallery-room .book-entry { margin: 0 0 1.5rem; }
.book-years li, .book-other-years .room-chips li { padding: 0; }
.book-years a, .book-other-years .room-chips a {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  align-items: center;
}
.book-other-years .room-chips a { display: inline-flex; }
.book-years a:hover, .book-other-years .room-chips a:hover { text-decoration: none; background: var(--hover); }

/* ---------- Suggest with AI (D-026) ---------- */
.ai-suggest {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.ai-suggest .ai-button { justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
.ai-suggest[aria-busy="true"] .ai-button .icon { animation: ai-glow 1.2s ease-in-out infinite; }
@keyframes ai-glow { 50% { opacity: 0.35; transform: scale(0.85); } }
.ai-status { margin: 0; font-size: 0.9rem; color: var(--muted); }
.ai-status:empty { display: none; }
.ai-status.is-error { color: var(--danger); }
.ai-note { margin: 0; font-size: 0.8rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ai-chips:empty { display: none; }
button.ai-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
button.ai-chip:hover { border-color: var(--ink); background: var(--field); }
.ai-chip-label { flex: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ai-chip span:last-child { overflow-wrap: anywhere; }
.ai-filled { animation: ai-filled 1.6s var(--ease); }
@keyframes ai-filled { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 45%, transparent); } }
.batch-item .ai-suggest { margin: 0 0 0.5rem; padding: 0.6rem 0.75rem; }
.ai-consent-form { margin-top: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .ai-suggest[aria-busy="true"] .ai-button .icon, .ai-filled { animation: none; }
}
/* A long consent label must not squeeze its checkbox to a dot. */
.ai-consent-form label.check, .sharing-form label.check { align-items: flex-start; }
.ai-consent-form label.check input, .sharing-form label.check input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; }
