

/* Extracted from page/lordre_de_lheresie.html */

      .book-retailers { max-width: 1040px; margin: 26px auto 38px; padding: 18px 24px; border: 1px solid rgba(185,153,99,.55); border-radius: 10px; }
      .book-retailers h3 { margin: 0 0 14px; }
      .book-retailers__links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
      .book-retailers__links a { display: inline-flex; align-items: center; justify-content: center; min-width: 65px; }
      .book-retailers__links .book_shop_img { width: 58px; height: 58px; object-fit: contain; transition: transform .2s ease; }
      .book-retailers__links a:hover img { transform: scale(1.08); }
      /* Book-specific enhancements, built on the existing character-page stylesheet. */
      /* The character and location cards deliberately inherit the Grimoire codex-grid styles. */
      .lore > div:last-child > p + p{margin-top:1.65em}
      .book-author-photo{display:block;width:min(240px,100%);height:auto;max-height:340px;object-fit:cover;border:1px solid rgba(185,153,99,.65);border-radius:8px;margin:8px 0 22px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
      @media(max-width:600px){.book-author-photo{width:min(190px,100%);margin-inline:auto}}
      .codex-card--static{cursor:default}
      .book-social{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
      .book-social a{display:inline-block;border:1px solid rgba(185,153,99,.65);padding:9px 16px;border-radius:6px;color:inherit}
      .hero .portrait{object-fit:contain;background:rgba(0,0,0,.2)}
      .hero .hero-rank{line-height:1.5}
      /* Book-only layout: keep the chapter heading but give cards the full page width. */
      .lore.book-card-chapter {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      column-gap: 24px;
      }
      .lore.book-card-chapter > .book-chapter-content { display: contents; }
      .lore.book-card-chapter .chapter-mark { grid-column: 1; grid-row: 1; }
      .lore.book-card-chapter h2 { grid-column: 2; grid-row: 1; align-self: center; }
      .lore.book-card-chapter .codex-grid {
      grid-column: 1 / -1;
      grid-row: 2;
      width: 100%;
      min-width: 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
      margin-top: 24px;
      }
      /* Same card anatomy as grimoire.html: image above, name below. */
      .lore.book-card-chapter .codex-card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      text-decoration: none;
      }
      .lore.book-card-chapter .codex-card-image {
      display: block;
      width: 100%;
      overflow: hidden;
      }
      .lore.book-card-chapter .codex-card-image img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      }
      .lore.book-card-chapter .codex-card-text { width: 100%; }
      /* Show the Doimh Neacht and Ween maps in full, like the Grimoire. */
      .lore.book-card-chapter .codex-card[href="doimh_neacht.html"] .codex-card-image {
      background: #fff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      }
      .lore.book-card-chapter .codex-card[href="doimh_neacht.html"] .codex-card-image img {
      object-fit: contain !important;
      object-position: center !important;
      }
      /* Ween: original map, fully visible on a white card background. */
      .lore.book-card-chapter .codex-card[href="ylluf.html"] .codex-card-image,
      .lore.book-card-chapter .codex-card[href="ween.html"] .codex-card-image,
      .lore.book-card-chapter .codex-card[href="freea.html"] .codex-card-image,
      .lore.book-card-chapter .codex-card[href="heara.html"] .codex-card-image {
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
      }
      .lore.book-card-chapter .codex-card[href="ylluf.html"] .codex-card-image img,
      .lore.book-card-chapter .codex-card[href="ween.html"] .codex-card-image img,
      .lore.book-card-chapter .codex-card[href="freea.html"] .codex-card-image img,
      .lore.book-card-chapter .codex-card[href="heara.html"] .codex-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
      }
      @media (max-width: 900px) {
      .lore.book-card-chapter .codex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      }
      @media (max-width: 650px) {
      .lore.book-card-chapter { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
      .lore.book-card-chapter .codex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      }
      /* Keep the long book title inside its column at every viewport width. */
      .hero-copy { min-width: 0; }
      #book-title.character-name-fixed.character-name-force {
      max-width: 100%;
      font-size: clamp(1.75rem, 3.3vw, 3.15rem) !important;
      line-height: 1.12 !important;
      overflow-wrap: break-word;
      hyphens: auto;
      }
      @media (max-width: 650px) {
      #book-title.character-name-fixed.character-name-force { font-size: clamp(1.65rem, 7vw, 2.5rem) !important; }
      }

      /* Résumés : mise en page claire, texte d’origine conservé. */
      #resumes .spoiler-content p { margin: 0 0 1.4em; line-height: 1.85; text-align: justify; hyphens: auto; overflow-wrap: break-word; }
      #resumes .spoiler-content p:last-child { margin-bottom: 0; }
      #resumes .previous-books-spoilers { margin-top: 24px; min-width: 0; }
      #resumes .previous-books-spoilers summary { color: #c5a46d; cursor: pointer; font-weight: 600; line-height: 1.6; padding: 14px 16px; border: 1px solid rgba(185,153,99,.65); border-radius: 8px; background: rgba(125,100,64,.09); }
      #resumes .previous-books-spoilers summary:hover, #resumes .previous-books-spoilers summary:focus-visible { background: rgba(185,153,99,.16); }
      #resumes .spoiler-content { padding: 22px 0 4px; }
      #resumes .camps-figure { margin: 24px 0; text-align: center; }
      #resumes .camps-zoom-trigger { display: block; width: 100%; padding: 0; cursor: zoom-in; background: transparent; border: none; border-radius: 0; }
      #resumes .camps-zoom-trigger img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
      #resumes .camps-figure figcaption { margin-top: 9px; font-size: .85rem; opacity: .8; }
      .camps-lightbox { position: fixed; inset: 0; width: min(96vw, 1500px); max-width: 96vw; max-height: 94vh; padding: 36px 12px 12px; border: 1px solid #c5a46d; border-radius: 8px; background: #101018; color: white; }
      .camps-lightbox::backdrop { background: rgba(0,0,0,.88); }
      .camps-lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 60px); margin: auto; object-fit: contain; }
      .camps-close { position: absolute; top: 0; right: 10px; background: transparent; border: 0; color: white; font-size: 2rem; cursor: pointer; }
      @media(max-width:600px) { #resumes .spoiler-content p { line-height: 1.75; } #resumes .previous-books-spoilers summary { padding: 12px; } }
    
