/* MeMori — gli Autori nello stile «Ritagli» (28/10/2026, prova in tools/prova-autori): titolo col numero,
 * scoperti e da scoprire, ricerca a pillola e Più letti / Alfabetico, filtri; il podio dei tre più letti
 * (ritratti ritagliati in forme di carta, gradini), la galleria in riquadri di carta con la barra della
 * lettura (tratteggiati quelli da scoprire), il dizionario con le iniziali nei bollini. La scheda
 * dell'autore: ritratto grande, professioni a pillola, vita in una riga, dati in bollini, sezioni in
 * riquadri (biografia, «Nel suo tempo», i tuoi libri, le opere in righe, «Dalle sue pagine», autori
 * vicini). La scheda dell'opera come la pagina del libro. Vale solo dentro #authors-view; le copertine
 * prendono le regole della Libreria (libreria.css). Caratteri e colori: ritagli.css. Animazioni:
 * motion.css (D9) e motion.js («Autori»). */

#authors-view {
  position: relative;
  font-family: var(--rt-body);
  color: var(--rt-ink);
}

#authors-view > :not(.au-blobs) {
  position: relative;
  z-index: 1;
}

.au-blobs {
  --au-rise: 200px;
  position: absolute;
  inset: calc(-1 * var(--au-rise)) 0 0 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.au-blob {
  position: absolute;
  will-change: translate;
}

.au-blob path,
.au-blob circle {
  fill: currentColor;
}

.au-blob-1 {
  right: -150px;
  top: calc(var(--au-rise) - 150px);
  width: 460px;
  color: var(--rt-blush);
}

.au-blob-2 {
  right: 330px;
  top: calc(var(--au-rise) - 40px);
  width: 64px;
  color: var(--rt-coral);
}

.au-blob-3 {
  left: -130px;
  top: calc(var(--au-rise) + 760px);
  width: 380px;
  color: var(--rt-sage);
}

#authors-view a {
  color: inherit;
  text-decoration: none;
}

#authors-view h1 {
  margin: 0;
  font: 800 clamp(2.3rem, 5vw, 3.6rem) / 0.9 var(--rt-display);
  letter-spacing: -0.045em;
  text-transform: none;
  overflow-wrap: anywhere;
}

.au-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.au-note:empty {
  display: none;
}

#authors-status:empty {
  display: none;
}

/* I ritratti: ritagliati in una forma di carta, con l'ombra d'inchiostro; senza foto le iniziali su un colore. */
#authors-view .author-avatar,
#authors-view .author-portrait-image {
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  box-shadow: 4px 4px 0 var(--rt-ink);
}

#authors-view .avatar-initials {
  background: hsl(var(--hue, 30) 30% 38%);
  color: #fffaf1;
  font-family: var(--rt-display);
  font-weight: 800;
}

#authors-view .author-avatar.au-mini {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
  box-shadow: 2px 2px 0 var(--rt-ink);
}

/* --- Testa ---------------------------------------------------------------------- */
.au-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.au-count {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  margin-bottom: 0.2rem;
  padding: 0 0.6rem;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--rt-coral);
  color: #161616;
  font: 800 1.25rem var(--rt-display);
  box-shadow: 3px 3px 0 var(--rt-ink);
  rotate: -6deg;
}

.au-count[hidden] {
  display: none;
}

.au-lede {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.au-lede b {
  color: var(--rt-ink);
}

.au-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.au-search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 1.1rem;
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
  background: var(--rt-paper);
  color: var(--muted);
}

.au-search .icon {
  flex: none;
  width: 18px;
  height: 18px;
}

#authors-view .au-search input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--rt-ink);
  font: 500 1rem var(--rt-body);
  box-shadow: none;
}

#authors-view .au-search input:focus-visible {
  outline: none;
}

.au-search:focus-within {
  box-shadow: 3px 3px 0 var(--rt-accent);
}

/* Più letti / Alfabetico: due pillole in una pillola (le radio nascoste restano per la tastiera). */
.au-toggle {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
}

.au-toggle label {
  position: relative;
  cursor: pointer;
}

.au-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.au-toggle span {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.au-toggle input:checked + span {
  background: var(--rt-ink);
  color: var(--rt-bg);
}

.au-toggle input:focus-visible + span {
  outline: 3px solid var(--rt-accent);
  outline-offset: 2px;
}

/* Tutti / Scoperti / Da scoprire. */
.au-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.au-filters[hidden] {
  display: none;
}

.au-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--rt-ink);
  border-radius: 999px;
  background: none;
  color: var(--rt-ink);
  font: 600 0.85rem var(--rt-body);
  cursor: pointer;
}

.au-filter i {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.au-filter-read i {
  background: var(--rt-accent);
}

.au-filter small {
  color: var(--muted);
}

.au-filter[aria-pressed="true"] {
  background: var(--rt-ink);
  color: var(--rt-bg);
}

.au-filter[aria-pressed="true"] small {
  color: inherit;
  opacity: 0.7;
}

/* --- Podio: i tre più letti, il primo al centro più grande e più in alto ----------------- */
.au-podium {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: end;
  gap: 1.4rem;
  max-width: 760px;
  margin: 1.4rem auto 2.4rem;
  padding: 0;
  list-style: none;
}

.au-podium[hidden] {
  display: none;
}

.au-pod-1 {
  order: 2;
}

.au-pod-2 {
  order: 1;
}

.au-pod-3 {
  order: 3;
}

.au-pod a {
  display: grid;
  justify-items: center;
  text-align: center;
}

.au-pod-pic {
  position: relative;
  width: 100%;
  max-width: 170px;
}

.au-pod-1 .au-pod-pic {
  max-width: 210px;
}

#authors-view .au-pod .author-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  font-size: 2.2rem;
  box-shadow: 6px 6px 0 var(--rt-ink);
}

.au-rank {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rt-accent);
  color: var(--rt-accent-ink);
  font: 800 1.1rem var(--rt-display);
  font-style: normal;
  box-shadow: 2px 2px 0 var(--rt-ink);
}

.au-pod b {
  margin-top: 0.9rem;
  font: 800 1.15rem/1.1 var(--rt-display);
}

.au-pod small {
  color: var(--muted);
  font-size: 0.82rem;
}

.au-step {
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
  margin-top: 0.8rem;
  border-radius: 16px 16px 0 0;
  border-bottom: 4px solid var(--rt-ink);
  background: var(--rt-paper);
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font: 800 2rem var(--rt-display);
}

.au-pod-1 .au-step {
  height: 130px;
}

.au-pod-2 .au-step {
  height: 90px;
}

/* --- Galleria: un riquadro di carta per autore ------------------------------------- */
.au-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.au-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  height: 100%;
  padding: 1.1rem 0.9rem 1rem;
  border-radius: 30px 24px 34px 26px;
  background: var(--rt-paper);
  text-align: center;
  transition:
    translate 0.2s,
    box-shadow 0.2s;
}

@media (hover: hover) {
  .au-card:hover {
    translate: 0 -4px;
    box-shadow: 5px 5px 0 var(--rt-ink);
  }
}

.au-card:focus-visible,
.au-pod a:focus-visible,
.au-row:focus-visible {
  outline: 3px solid var(--rt-accent);
  outline-offset: 3px;
}

#authors-view .au-card .author-avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.au-card b {
  font: 800 1.05rem/1.15 var(--rt-display);
}

.au-card small,
.au-countries {
  color: var(--muted);
  font-size: 0.8rem;
}

.au-card .sh-mix {
  width: 100%;
  max-width: 140px;
  min-width: 0;
  margin-top: 0.3rem;
}

/* Da scoprire: tratteggiati, il ritratto un po' spento. */
.au-card.au-todo {
  border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  background: var(--rt-bg);
}

.au-card.au-todo .author-avatar {
  filter: grayscale(0.6);
  opacity: 0.85;
}

/* --- Dizionario: le iniziali nei bollini e le righe come il catalogo della Libreria ---------- */
.au-dict {
  columns: 2 320px;
  column-gap: 2rem;
  margin-top: 1.2rem;
}

.au-group {
  --c: var(--rt-accent);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  break-inside: avoid;
}

.au-group:nth-child(6n + 2) {
  --c: var(--rt-coral);
}

.au-group:nth-child(6n + 3) {
  --c: #7d8c6e;
}

.au-group:nth-child(6n + 4) {
  --c: #8e5fd0;
}

.au-group:nth-child(6n + 5) {
  --c: var(--s-da_leggere);
}

.au-group:nth-child(6n) {
  --c: var(--rt-blush);
}

.au-letter {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--c);
  color: #161616;
  font: 800 1.5rem var(--rt-display);
  box-shadow: 3px 3px 0 var(--rt-ink);
}

.au-rows {
  margin: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 22px;
  background: var(--rt-paper);
  list-style: none;
}

.au-rows li + li {
  border-top: 1.5px dashed color-mix(in srgb, var(--muted) 30%, transparent);
}

.au-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem 0.3rem;
}

.au-row-name {
  min-width: 0;
  font-size: 0.95rem;
}

.au-row-name b {
  font-family: var(--rt-display);
}

.au-row-name small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.au-row-count {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.au-found {
  margin-top: 2rem;
}

.au-found h2 {
  margin: 0 0 0.3rem;
  font: 800 1.5rem var(--rt-display);
  text-transform: none;
}

.au-found .au-note {
  margin-bottom: 1rem;
}

/* --- Scheda dell'autore -------------------------------------------------------------- */
#authors-view .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 1.2rem;
  padding: 0.3rem 0.9rem 0.3rem 0.6rem;
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
  color: var(--rt-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

#authors-view .back-link .icon {
  width: 1.1em;
  height: 1.1em;
}

.au-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 2.6rem;
}

#authors-view .author-portrait-image {
  width: 240px;
  height: 240px;
  border: 0;
  outline: 0;
  font-size: 3.2rem;
  box-shadow: 9px 9px 0 var(--rt-ink);
  rotate: -3deg;
}

.author-info {
  display: block;
  min-width: 0;
}

.au-occ {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}

.au-occ:empty {
  display: none;
}

.au-occ li {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--rt-blush);
  font-size: 0.8rem;
  font-weight: 600;
}

#authors-view .author-description {
  margin: 0.6rem 0 0.8rem;
  font-family: var(--rt-body);
  font-style: normal;
  color: var(--muted);
  font-size: 1.1rem;
}

.author-description:empty,
.au-life:empty {
  display: none;
}

.au-life {
  margin: 0;
  font: 700 1.05rem var(--rt-display);
}

.au-life span {
  color: var(--muted);
  font: 400 0.9rem var(--rt-body);
}

.au-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.au-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
  background: none;
  color: var(--rt-ink);
  font: 600 0.82rem var(--rt-body);
  cursor: pointer;
}

.au-pill[hidden] {
  display: none;
}

/* Dati in bollini di carta (anche nella scheda dell'opera). */
.au-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
  margin: 2.2rem 0 0;
}

.au-facts:empty {
  display: none;
}

.au-fact {
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 18px 22px 20px 16px;
  background: var(--rt-paper);
}

.au-fact dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.au-fact dd {
  margin: 0;
  font: 700 1rem/1.2 var(--rt-display);
  overflow-wrap: anywhere;
}

/* Sezioni in riquadri di carta su due colonne. */
.au-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.au-sec {
  min-width: 0;
  padding: 1.4rem 1.5rem;
  border-radius: 30px 24px 34px 26px;
  background: var(--rt-paper);
}

.au-sec[hidden] {
  display: none;
}

.au-wide {
  grid-column: 1 / -1;
}

.au-sec h2 {
  margin: 0 0 0.9rem;
  font: 800 1.45rem/1 var(--rt-display);
  letter-spacing: -0.02em;
  text-transform: none;
}

.au-sec h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  margin-top: 0.4rem;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  background: var(--rt-accent);
}

.au-sec h2 small {
  color: var(--muted);
  font: 400 0.9rem var(--rt-body);
}

/* Biografia col capolettera in un bollino. */
#authors-view .author-bio {
  margin: 0;
  font-family: var(--rt-body);
  font-size: 1.02rem;
  line-height: 1.6;
}

#authors-view .author-bio::first-letter {
  float: left;
  margin: 0.1rem 0.5rem 0 0;
  padding: 0.35rem 0.55rem;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--rt-accent);
  color: var(--rt-accent-ink);
  font: 800 2.2rem/1 var(--rt-display);
  box-shadow: 3px 3px 0 var(--rt-ink);
}

.au-credit {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.au-credit:empty {
  display: none;
}

.au-credit a {
  text-decoration: underline;
}

/* «Nel suo tempo»: la vita come una striscia, i libri come bollini numerati del colore dello stato;
   quelli vicini salgono di un piano (--lane, con un gambo fino alla striscia). Le opere uscite dopo
   la morte stanno nel tratto tratteggiato «postume». Sotto, l'elenco con gli stessi numeri. */
.au-timeline {
  --lanes: 1;
  position: relative;
  height: calc(50px + var(--lanes) * 30px);
  margin: 0.6rem 14px 0;
}

.au-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--rt-sage) 0 10px, transparent 10px 14px);
}

/* La vita vera piena; dopo la morte (le opere postume) tratteggiata. */
.au-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 100%);
  border-radius: 999px;
  background: var(--rt-sage);
}

.au-tick {
  position: absolute;
  left: var(--x);
  bottom: calc(23px + var(--lane, 0) * 30px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--status-color);
  color: #161616;
  font: 800 0.72rem var(--rt-display);
  box-shadow: 2px 2px 0 var(--rt-ink);
  transition: scale 0.15s;
}

/* Il gambo dei bollini saliti di un piano, fino alla striscia. */
.au-tick::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: calc(var(--lane, 0) * 30px - 2px);
  translate: -50% 0;
  background: color-mix(in srgb, var(--rt-ink) 35%, transparent);
}

@media (hover: hover) {
  .au-tick:hover {
    scale: 1.2;
  }
}

.au-tick:focus-visible {
  outline: 3px solid var(--rt-accent);
  outline-offset: 2px;
}

.au-end,
.au-after {
  position: absolute;
  bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.au-end-start {
  left: 0;
}

.au-end-stop {
  left: var(--x, 100%);
  translate: -100% 0;
}

.au-after {
  left: calc(var(--x) + 6px);
  font-style: italic;
}

/* L'elenco: numero, anno, titolo, quanti anni aveva (o postuma). */
.au-time-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.au-time-list li {
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: center;
}

.au-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--status-color);
  color: #161616;
  font: 800 0.72rem var(--rt-display);
  box-shadow: 2px 2px 0 var(--rt-ink);
}

.au-time-year {
  font: 700 0.85rem var(--rt-display);
}

.au-time-list a {
  font: 700 0.9rem/1.2 var(--rt-display);
}

.au-time-list small {
  grid-column: 3;
  color: var(--muted);
  font-size: 0.75rem;
}

.au-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.au-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: var(--c);
}

.au-key-letto {
  --c: var(--s-letto);
}

.au-key-in_lettura {
  --c: var(--s-in_lettura);
}

.au-key-da_leggere {
  --c: var(--s-da_leggere);
}

.au-key-abbandonato {
  --c: var(--s-abbandonato);
}

/* Le opere: righe di carta con l'anno in un bollino; ✓ ce l'hai o ♡ Wishlist. */
.au-works {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

/* Ridotte: solo le prime opere (CATALOG_SHORT in app.js = 8). */
.au-works.is-short > li:nth-child(n + 9) {
  display: none;
}

.au-more {
  margin-top: 0.9rem;
}

.au-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 18px;
  background: var(--rt-bg);
}

.au-work-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.au-year {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 999px;
  background: var(--rt-paper);
  font: 800 0.85rem var(--rt-display);
  box-shadow: 2px 2px 0 var(--rt-ink);
}

.au-work-text b {
  display: block;
  font: 700 0.95rem/1.2 var(--rt-display);
}

.au-work-text small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.au-have {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--rt-sage);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.au-want {
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
  background: none;
  color: var(--rt-ink);
  font: 700 0.8rem var(--rt-body);
  white-space: nowrap;
  cursor: pointer;
}

/* «Dalle sue pagine»: le citazioni come ritagli col dorso senape. */
.au-quote {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-left: 26px solid var(--rt-accent);
  border-radius: 8px 18px 20px 8px;
  background: var(--rt-bg);
  filter: drop-shadow(3px 3px 0 var(--rt-ink));
}

#authors-view .au-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 1rem/1.35 var(--rt-display);
}

#authors-view .au-quote blockquote::before {
  content: "«";
  position: static;
  color: inherit;
  font: inherit;
}

#authors-view .au-quote blockquote::after {
  content: "»";
}

#authors-view .au-quote figcaption {
  margin-top: 0.35rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font: 400 0.78rem var(--rt-body);
}

#author-quotes-source {
  font: 400 1rem var(--rt-body);
}

/* Autori vicini: pillole col ritratto piccolo e gli scaffali in comune. */
.au-near {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.au-near a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border: 1.5px solid var(--rt-ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

#authors-view .au-near .author-avatar {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.au-near small {
  color: var(--muted);
  font-weight: 400;
}

/* --- Scheda dell'opera: come la pagina del libro ------------------------------------------ */
#wp-body:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.au-kicker {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font: 700 0.75rem var(--rt-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wp-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 2.6rem;
}

#wp-cover .book-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  box-shadow: 9px 9px 0 var(--rt-ink);
  rotate: -2deg;
}

/* Aperta da un consiglio con un altro titolo dell'opera: «Titolo alternativo: …», una riga sola. */
.wp-via {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.wp-via[hidden] {
  display: none;
}

.wp-author {
  margin: 0.6rem 0 0;
  font-size: 1.2rem;
}

.wp-author a {
  border-bottom: 2px solid var(--rt-accent);
  font-weight: 600;
}

#authors-view .wp-facts {
  margin-top: 1.4rem;
}

.wp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

#authors-view .wp-actions .btn {
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 22px 28px 24px 26px;
  background: var(--rt-accent);
  color: var(--rt-accent-ink);
  font: 800 1.05rem var(--rt-display);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 4px 4px 0 var(--rt-ink);
}

/* Le edizioni: righe di carta come le opere (le stesse righe si usano, nel vecchio stile, in altre finestre). */
#author-work .lookup-results {
  display: grid;
  gap: 0.5rem;
  max-height: none;
  margin: 0.8rem 0 0;
}

#author-work .lookup-item {
  border: 0;
  border-radius: 18px;
  background: var(--rt-bg);
}

#author-work .lookup-text strong,
#author-work .lookup-text b {
  font-family: var(--rt-display);
  font-weight: 700;
}

#author-work .lookup-thumb {
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--rt-ink);
}

#author-work .lookup-add {
  border: 2px solid var(--rt-ink);
  border-radius: 999px;
  background: none;
  color: var(--rt-ink);
  font: 700 0.8rem var(--rt-body);
  letter-spacing: 0;
  text-transform: none;
}

.wp-plot {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* --- Telefono ---------------------------------------------------------------------- */
@media (max-width: 760px) {
  .au-blob {
    scale: 0.6;
  }

  .au-blob-2 {
    right: 30px;
    top: calc(var(--au-rise) - 10px);
  }

  .au-count {
    min-width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .au-podium {
    gap: 0.6rem;
  }

  .au-pod b {
    font-size: 0.85rem;
  }

  .au-pod small {
    font-size: 0.7rem;
  }

  .au-rank {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .au-step {
    height: 30px;
    font-size: 1.3rem;
  }

  .au-pod-1 .au-step {
    height: 65px;
  }

  .au-pod-2 .au-step {
    height: 45px;
  }

  .au-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  #authors-view .au-card .author-avatar {
    width: 76px;
    height: 76px;
  }

  .au-dict {
    columns: 1;
  }

  .au-hero,
  .wp-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.2rem;
    text-align: center;
  }

  #authors-view .author-portrait-image {
    width: 170px;
    height: 170px;
  }

  .au-occ,
  .au-links,
  .wp-actions {
    justify-content: center;
  }

  #wp-cover {
    width: 170px;
  }

  .au-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.6rem;
  }

  .au-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.6rem;
  }

  .au-sec {
    padding: 1.1rem;
  }

}
