/* =====================================================================
   /books -- "Books & Publications" public page (Piano definitivo, Fase
   1-3, 2026-10-26). Loaded alongside css/doors.css, which already supplies
   the shared tokens (--cream-bg, --maroon, etc.) and the door-header/
   door-back-link/field/btn/form-card/blocked-note/fulfillment-note/hidden
   classes this page reuses as-is. Everything in this file is additions
   specific to this one page -- nothing here is referenced by any other
   page, and nothing in doors.css was changed to support it. ===========
   ===================================================================== */

footer.books-footer { padding: 26px 20px 40px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---- smaller header than the homepage, per piano sez. 4.1 ---- */
.books-header {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 26px 20px 6px;
}
.books-header a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.books-header-logo { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; }
.books-header-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 16px; color: var(--ink); }
.books-header-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.books-nav {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding-block: 2px 26px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.books-nav a { text-decoration: none; color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 3px; }
.books-nav a:hover { color: var(--maroon); border-color: var(--maroon); }
.books-nav a[aria-current="page"] { color: var(--maroon); font-weight: 700; border-color: var(--maroon); }

/* ---- title block, once, large, centered (sez. 4.2) ---- */
.books-title-block { text-align: center; padding: 10px 20px 36px; }
.books-title-block h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.1; }
.books-title-block .books-subline { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-top: 12px; }

/* ---- generic section scaffolding ---- */
.books-section { padding-block: 48px; }
.books-section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.books-section-head .lead { color: var(--muted); margin-top: 10px; }
.books-tan { background: var(--tan-panel); }
.books-cream { background: var(--cream-panel); }
.books-dark { background: var(--dark-panel); color: var(--dark-text); }

/* ---- Opening (sez. 4.3) ---- */
.opening-grid { display: flex; flex-wrap: wrap-reverse; gap: 36px; align-items: center; }
.opening-photo { flex: 1 1 380px; min-width: 260px; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(44,36,34,0.3); }
.opening-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.opening-text { flex: 1 1 420px; min-width: 260px; }
.opening-text .lead { font-size: 17px; line-height: 1.6; }
.authors-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.authors-row { display: flex; gap: 18px; margin-bottom: 26px; }
.author-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.author-initial {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Libre Baskerville', Georgia, serif; font-size: 14px; flex-shrink: 0;
}
.author-initial-cristian { background: #6B1F2A; }
.author-initial-walter { background: #5F6B4E; }
.author-initial-dario { background: #8A5A2B; }
.opening-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.opening-actions .btn { width: auto; }

/* Solid maroon button -- doors.css only has outline variants (those pages
   never needed a solid primary CTA); this page's main actions (Send my
   ideas, Keep me posted, Follow the project) do. */
.btn-maroon-solid { background: var(--maroon); color: #fff; }
.btn-maroon-solid:hover { background: var(--maroon-hover); }

/* ---- On our desk (sez. 4.4) ---- */
.book-card-wrap { max-width: 720px; margin: 0 auto; }
.book-card { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--border-tan); border-radius: 18px; padding: 24px; }
.book-card-photo { flex: 1 1 220px; min-width: 180px; border-radius: 14px; overflow: hidden; }
.book-card-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.book-card-body { flex: 2 1 280px; min-width: 220px; }
.coming-soon-label {
  display: inline-block; margin-top: 10px; background: var(--maroon); color: #fff; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; font-weight: 700;
}

/* ---- Feedback poll (sez. 4.5 / 5.1) ---- */
.feedback-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border-tan); border-radius: 18px; padding: 28px 24px; }
.chip-field-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.chip-field-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border-tan2); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-family: 'Lato', sans-serif; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.chip-counter { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.books-field-group { margin-bottom: 20px; }
.books-field-group label.field-label { margin-bottom: 8px; }
.anon-note { font-size: 12px; color: var(--muted); margin: 18px 0 14px; }
.topic-ranking { margin-top: 24px; border-top: 1px solid var(--border-tan); padding-top: 20px; }
.topic-ranking-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.topic-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.topic-bar-label { flex: 0 0 180px; display: flex; align-items: center; gap: 6px; }
.topic-bar-you { background: var(--maroon); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; }
.topic-bar-track { flex: 1; height: 10px; background: var(--border-cream); border-radius: 6px; overflow: hidden; }
.topic-bar-fill { height: 100%; background: var(--maroon); border-radius: 6px; }
.topic-bar-pct { flex: 0 0 42px; text-align: right; color: var(--muted); }

/* ---- Newsletter (sez. 4.6 / 5.3) ---- */
.newsletter-grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.newsletter-receive { flex: 1 1 340px; min-width: 260px; background: rgba(233,222,203,0.06); border: 1px solid rgba(233,222,203,0.2); border-radius: 18px; padding: 24px; }
.newsletter-receive-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.newsletter-receive-head h3 { font-size: 17px; color: #fff; }
.newsletter-occasional { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #D7A9A0; }
.receive-item { margin-bottom: 16px; }
.receive-item-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #D7A9A0; margin-bottom: 4px; }
.receive-item p { font-size: 14px; line-height: 1.5; color: var(--dark-text); margin: 0; }
.receive-item a { color: #D7A9A0; text-decoration: none; font-weight: 700; font-size: 13px; }
.receive-item a:hover { text-decoration: underline; }
.receive-authors { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(233,222,203,0.2); font-size: 13px; color: var(--dark-text); }
.receive-authors .author-initial { width: 22px; height: 22px; font-size: 11px; }
.newsletter-form-card { flex: 1 1 340px; min-width: 260px; background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; }
.newsletter-form-card .form-card-title { color: var(--ink); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.consent-row label { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.form-note a { color: var(--maroon); }

/* ---- Ask the chefs (sez. 4.7 / 5.2) ---- */
.ask-card { max-width: 640px; margin: 0 auto; background: var(--tan-panel); border: 1px solid var(--border-tan); border-radius: 18px; padding: 28px 24px; }

/* ---- FAQ "Good to know" (sez. 4.8) ---- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-tan); padding: 16px 4px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--maroon); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }

@media (min-width: 760px) {
  .side-margin { padding-inline: clamp(20px, 5vw, 64px); }
  .newsletter-grid { flex-wrap: nowrap; }
}
