/* "Further reading" bookshelf box (includes/further-reading.php). Uses the site tokens from main.css:
   a chart-room panel with a brass double rule, like a cartouche on an old sea chart. */

.further-reading {
  margin: 2.75rem 0 2.25rem;
  padding: 1.4rem 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 0 4px var(--bg-card), inset 0 0 0 5px rgba(201,162,90,.35);
}
.fr-eyebrow {
  margin: 0 0 .3rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.further-reading .fr-eyebrow::before { content: "\2693\00a0"; letter-spacing: 0; }   /* anchor */
.further-reading h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.further-reading ol.fr-shelf { list-style: none; margin: 0; padding: 0; }   /* beats .prose ol indent */
.further-reading .fr-shelf > li { margin: 0; }
.fr-book {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.1rem;
  padding: .95rem 0;
  border-top: 1px solid var(--rule);
}
.fr-book:first-child { border-top: 0; padding-top: .2rem; }

/* Cover: a real cover image, or a typographic one drawn like a leather-bound log with brass lettering. */
.fr-cover {
  display: block;
  width: 72px; height: 108px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.fr-cover img { width: 72px; height: 108px; object-fit: cover; }
.fr-cover--type {
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  padding: .6rem .4rem .5rem .55rem;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0 5px, transparent 5px),
    linear-gradient(160deg, #4a2f1c, #2c1b10);
  outline: 1px solid rgba(201,162,90,.55);
  outline-offset: -5px;
  overflow: hidden;
}
.fr-cover-title {
  font-family: var(--font-serif);
  font-size: .6rem; line-height: 1.2;
  color: #e6c27a;   /* fixed brass: the cover keeps its colours on both the dark and the parchment theme */
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.fr-cover-author {
  font-family: var(--font-sans);
  font-size: .46rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(230,194,122,.75);
}
.fr-cover:hover { box-shadow: 0 0 0 1px var(--accent), 0 6px 14px rgba(0,0,0,.5); }

.fr-text p { margin: 0; }
.fr-title { font-size: 1.02rem; line-height: 1.35; }
.fr-title a { color: var(--ink); text-decoration: none; }
.fr-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.fr-meta {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--ink-mute);
  margin-top: .15rem !important;
}
.fr-note { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); margin-top: .35rem !important; }
.fr-buy {
  display: inline-block;
  margin-top: .4rem;
  font-family: var(--font-sans);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--accent);
  text-decoration: none;
}
.fr-buy:hover { color: var(--accent-ink); text-decoration: underline; }

.fr-disclosure {
  margin: .85rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: .75rem;
  color: var(--ink-mute);
}

@media (max-width: 480px) {
  .further-reading { padding: 1.15rem 1rem .85rem; }
  .fr-book { grid-template-columns: 56px 1fr; gap: .85rem; }
  .fr-cover, .fr-cover img { width: 56px; height: 84px; }
  .fr-cover-title { font-size: .5rem; -webkit-line-clamp: 4; }
  .fr-cover-author { display: none; }
}


/* ---------- Type and reliability marks (as on plausibledenial.org), top right of each book ---------- */
.fr-text { position: relative; }
.fr-text .fr-title { padding-right: 4.2rem; }
.fr-marks { position: absolute; top: .15rem; right: 0; display: inline-flex; align-items: center; gap: .55rem; }
.fr-type { display: inline-flex; align-items: center; color: var(--accent); }
.fr-quality { display: inline-flex; align-items: center; padding: 0 .1rem; }
.fr-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.fr-bars i { display: block; width: 4px; background: var(--rule-strong); }
.fr-bars i:nth-child(1) { height: 7px; } .fr-bars i:nth-child(2) { height: 11px; } .fr-bars i:nth-child(3) { height: 15px; }
.fr-q3 .fr-bars i.on { background: #7fa36a; }          /* weathered green */
.fr-q2 .fr-bars i.on { background: var(--warn); }
.fr-q1 .fr-bars i.on { background: #a2493a; }          /* oxblood */
.fr-mark-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-type, .fr-quality { position: relative; cursor: help; outline: none; }
.fr-type:hover .fr-mark-label, .fr-type:focus-visible .fr-mark-label,
.fr-quality:hover .fr-mark-label, .fr-quality:focus-visible .fr-mark-label {
  clip: auto; width: auto; height: auto; overflow: visible; z-index: 5;
  bottom: calc(100% + 6px); right: 0;
  padding: .25rem .55rem; background: var(--bg-soft); border: 1px solid var(--rule-strong); border-radius: 3px;
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

/* ---------- Key (on the /books page) ---------- */
.fr-keybox { margin: 2rem 0 0; padding: .9rem 0 0; background: var(--bg-card); border: 1px solid var(--rule); border-top: 2px solid var(--accent); }
.fr-key-title { margin: 0 0 .6rem; padding: 0 .8rem; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fr-key { border-collapse: collapse; width: 100%; font-family: var(--font-sans); font-size: .78rem; color: var(--ink-mute); border-top: 1px solid var(--rule-strong); }
.fr-key th, .fr-key td { border: 1px solid var(--rule); padding: .45rem .8rem; vertical-align: middle; }
.fr-key tr > :first-child { border-left: 0; } .fr-key tr > :last-child { border-right: 0; } .fr-key tr:last-child td { border-bottom: 0; }
.fr-key th { text-align: left; font-weight: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-soft); white-space: nowrap; }
.fr-key-item { white-space: nowrap; }
.fr-key-row { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.fr-key-row .fr-type, .fr-key-row .fr-quality { width: 18px; justify-content: center; cursor: default; }
.fr-key .fr-mark-label { display: none; }
.fr-why { color: var(--ink-soft); }
@media (max-width: 560px) { .fr-key th { display: none; } .fr-key td:first-of-type { border-left: 0; } .fr-why { font-size: .72rem; } }

.further-reading--page { margin-top: 0; }
