/*
Theme Name: Bryan Charles — Serial Fiction
Theme URI: https://bryancharles.com
Author: Bryan Charles
Description: Custom literary serial fiction theme. Warm light "modern bookstore" design for serialised fiction.
Version: 1.3.2
Last updated: 2026-07-11 — Hero title: smaller on mobile + word swap
  ("Long" on desktop → "Tall" on mobile) via .bc-hero-word-long /
  .bc-hero-word-tall toggled in the 640px media query. No other
  changes from 1.3.1.
Prev: 1.3.1 — Hero shrunk: dropped forced 60vh min-height
  (→ 0) and roughly halved vertical padding so the book grid sits
  higher in the viewport / above the fold. Mobile hero override
  matched. No other changes from 1.3.0.
Prev: 1.3.0 — Book cards now show a featured-image cover
  (Layout A: cover left, text right; restacks to cover-on-top on mobile).
  Cover is optional per book — cards without a featured image fall back to
  text-only. Builds on 1.2.0 linen repalette.
Prev: 1.2.0 — Repalette from dark walnut "brown study" to warm linen
  "modern bookstore": lighter background, cards lifted with soft drop
  shadows, per-book accents deepened, Clem (dust/clay) accent + Coming Soon.
*/

/* ============================================================
   TOKENS
   ------------------------------------------------------------
   LINEN REPALETTE (2026-07-11)
   The old palette was walnut/charcoal — cosy but heavy. This set
   moves to a warm off-white "well-lit bookstore" feel: linen wall,
   slightly-lighter cream cards, warm near-black ink. On a LIGHT
   ground, per-book accents must go DEEPER/richer (not brighter) or
   they look chalky, so navy/amber/clay are all darkened + saturated.
   ============================================================ */
:root {
  --bg:          #e8e0d2;   /* linen wall (was #43321f walnut) */
  --bg-card:     #f2ece0;   /* card — one shade LIGHTER than the wall */
  --bg-read:     #f5ecd9;   /* warm aged paper — reading pages (unchanged) */
  --text:        #2c2620;   /* warm near-black ink (was cream #f0e6d2) */
  --text-muted:  #6b6156;   /* soft grey-brown (was faded tan) */
  --text-read:   #2a2118;   /* dark brown ink — reading pages (unchanged) */
  --accent:      #9a7b2e;   /* deep brass — readable on linen */
  --accent-dim:  #b8a05a;   /* lighter brass — for hovers on light ground */
  --border:      #d4c9b6;   /* soft warm hairline, visible on linen */

  /* Card lift — soft drop shadow replaces dark-on-dark separation.
     This single change is what reads as "modern bookstore" vs
     "recoloured brown study". */
  --card-shadow:       0 1px 2px rgba(60, 50, 35, 0.06),
                       0 4px 16px rgba(60, 50, 35, 0.08);
  --card-shadow-hover: 0 2px 4px rgba(60, 50, 35, 0.08),
                       0 8px 28px rgba(60, 50, 35, 0.14);

  /* Per-book accents — rebalanced for a LIGHT ground.
     Panels are now near-white cream (a whisper of the accent hue),
     not dark panels, so text stays dark and legible. */
  --shadows-accent: #a85d1f;   /* burnt sienna (was #c98a32 amber) */
  --shadows-panel:  #f3ead9;   /* faint warm cream */
  --shadows-border: #d8c39a;
  --forge-accent:   #2f4a7a;   /* deep navy (was #5a86bd steel-blue) */
  --forge-panel:    #eceef2;   /* faint cool cream */
  --forge-border:   #b9c2d2;
  --clem-accent:    #9a4b32;   /* dried-clay red-brown */
  --clem-panel:     #f1e7dd;   /* faint dust cream */
  --clem-border:    #d6bfa8;

  --font-serif:  'EB Garamond', Georgia, serif;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --max-w:       720px;
  --max-w-wide:  1080px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.bc-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.bc-header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.bc-site-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}
.bc-site-title:hover { color: var(--accent); }

.bc-nav ul { list-style: none; display: flex; gap: 2rem; }
.bc-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bc-nav a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ------------------------------------------------------------
   Radial glow softened for the light ground — the old dark-walnut
   vignette (#4d3a24 → walnut) would have muddied the linen. Now a
   gentle warm-white lift at centre fading to the linen wall.

   2026-07-11 (1.3.1): removed the forced 60vh min-height and
   halved the vertical padding. The hero now sizes to its content
   instead of claiming most of the first screen, so the book grid
   rises above the fold. Tune `padding` if you want it tighter.
   ============================================================ */
.bc-hero {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.bc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #f4eee2 0%, var(--bg) 72%);
  z-index: 0;
}
.bc-hero-inner { position: relative; z-index: 1; }

.bc-hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.bc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
/* Hero title word swap: "Long" (desktop) / "Tall" (mobile).
   The mobile variant is hidden by default and revealed in the
   640px media query, where "Long" is hidden in turn. */
.bc-hero-word-tall { display: none; }
.bc-hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.bc-container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.bc-page-content { padding-top: 4rem; }

/* ============================================================
   BOOK GRID (home — side-by-side on desktop)
   ============================================================ */
.bc-book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

/* ============================================================
   BOOK CARD
   ------------------------------------------------------------
   Cards now LIFT off the linen wall with a soft drop shadow rather
   than relying on dark-panel contrast. Border is a hairline; the
   top accent bar and the shadow do the visual work.
   ============================================================ */
.bc-book-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.bc-book-card:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);   /* subtle "pick up off the shelf" lift */
}

/* Inside the grid, cards manage their own spacing */
.bc-book-grid .bc-book-card { margin-bottom: 0; }

/* Per-book accent: The Shadows of Potsdamer Platz — burnt sienna */
.bc-book-card.is-shadows {
  background: var(--shadows-panel);
  border-color: var(--shadows-border);
  border-top-color: var(--shadows-accent);
}
.bc-book-card.is-shadows .bc-book-status { color: var(--shadows-accent); }
.bc-book-card.is-shadows:hover { border-color: var(--shadows-accent); }

/* Per-book accent: The Forge of Austerlitz — deep navy */
.bc-book-card.is-forge {
  background: var(--forge-panel);
  border-color: var(--forge-border);
  border-top-color: var(--forge-accent);
}
.bc-book-card.is-forge .bc-book-status { color: var(--forge-accent); }
.bc-book-card.is-forge:hover { border-color: var(--forge-accent); }

/* Per-book accent: Three Hats for Clem — dried clay (added 2026-07-11) */
.bc-book-card.is-clem {
  background: var(--clem-panel);
  border-color: var(--clem-border);
  border-top-color: var(--clem-accent);
}
.bc-book-card.is-clem .bc-book-status { color: var(--clem-accent); }
.bc-book-card.is-clem:hover { border-color: var(--clem-accent); }

/* ------------------------------------------------------------
   BOOK CARD — FEATURED-IMAGE COVER (Layout A, added 2026-07-11)
   ------------------------------------------------------------
   A card WITH a cover (`has-cover`) becomes a two-column row:
   cover on the left, text body on the right. Cards without a
   cover keep the original single-column block layout untouched.
   On mobile the row restacks to cover-on-top, text-below.
   ------------------------------------------------------------ */
.bc-book-card.has-cover {
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
}

/* Cover column — fixed-width portrait panel. object-fit: cover means
   any aspect ratio (portrait Forge, squarish crops) fills the frame
   cleanly without distortion. */
.bc-book-cover-thumb {
  flex: 0 0 150px;
  width: 150px;
  align-self: flex-start;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(60, 50, 35, 0.16);
  aspect-ratio: 2 / 3;          /* consistent shelf-cover shape */
}
.bc-book-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.bc-book-card.has-cover:hover .bc-book-cover-thumb img { transform: scale(1.03); }

/* Body takes the remaining space; min-width:0 lets long titles wrap
   instead of overflowing the flex row. */
.bc-book-card.has-cover .bc-book-card-body { flex: 1; min-width: 0; }

/* Coming-soon covers don't zoom on hover (nothing to click). */
.bc-book-card.is-coming-soon.has-cover:hover .bc-book-cover-thumb img { transform: none; }

/* "Coming Soon" placeholder card — a book with no live chapters yet.
   Slightly recessed (softer shadow, no hover lift, non-clickable title)
   so it reads as a promise, not a live link. Pairs with .is-clem. */
.bc-book-card.is-coming-soon {
  box-shadow: var(--card-shadow);
  opacity: 0.92;
}
.bc-book-card.is-coming-soon:hover {
  transform: none;                 /* doesn't lift — nothing to click */
  box-shadow: var(--card-shadow);
}
.bc-book-card.is-coming-soon .bc-book-title { color: var(--text); cursor: default; }
.bc-book-card .bc-coming-soon-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.bc-book-card.is-clem .bc-coming-soon-note em { color: var(--clem-accent); font-style: italic; }

/* ============================================================
   BOOK COVER (single book page)
   ------------------------------------------------------------
   The cover <img> carries no aspect-ratio constraint, so on
   narrow viewports it was stretching vertically. Cap the wrapper
   width and force the image to scale by its natural ratio.
   Shadow lightened for the linen ground.
   ============================================================ */
.bc-book-cover {
  max-width: 340px;        /* stops the cover ballooning on mobile */
  margin: 0 auto 2rem;     /* centre it, add breathing room below */
}
.bc-book-cover img {
  width: 100%;
  height: auto;            /* preserve the real aspect ratio */
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(60, 50, 35, 0.18);
}

.bc-book-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}
.bc-book-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; margin-bottom: 1rem; }
.bc-book-title a { color: var(--text); }
.bc-book-title a:hover { color: var(--accent); }
.bc-book-title-large { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; margin-bottom: 1.5rem; color: var(--text); }

.bc-book-excerpt { color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; line-height: 1.8; }
.bc-book-blurb { color: var(--text); line-height: 1.9; margin-bottom: 2rem; font-size: 1.05rem; }

.bc-latest-chapter { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.bc-latest-chapter a { color: var(--text-muted); text-decoration: underline; }
.bc-latest-chapter a:hover { color: var(--accent); }

.bc-chapter-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.bc-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.6rem 1.4rem;
  transition: background 0.2s, color 0.2s;
}
.bc-btn:hover { background: var(--accent); color: var(--bg-card); }
.bc-btn-sm { padding: 0.4rem 1rem; font-size: 0.65rem; }

/* ============================================================
   CHAPTER LIST (on book page)
   ============================================================ */
.bc-section-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.bc-chapters-ol { list-style: none; }
.bc-chapter-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.bc-chapter-item a { display: flex; align-items: baseline; gap: 1rem; flex: 1; color: var(--text); }
.bc-chapter-item a:hover .bc-ch-title { color: var(--accent); }
.bc-ch-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
  min-width: 6rem;
}
.bc-ch-title { font-family: var(--font-serif); font-size: 1rem; }
.bc-ch-date { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================================
   READING EXPERIENCE
   ------------------------------------------------------------
   Reading header sits on the linen wall now (light), reading body
   stays on warm paper — the contrast is gentler than before but
   the paper still lifts clearly out of the linen frame.
   ============================================================ */
.bc-reading-wrap {
  min-height: 100vh;
}
.bc-reading-header {
  background: var(--bg);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.bc-back-to-book {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 2rem;
}
.bc-back-to-book:hover { color: var(--accent); }
.bc-reading-chapter-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.bc-reading-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.bc-reading-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Reading body — light paper for comfort */
.bc-reading-content {
  background: var(--bg-read);
  color: var(--text-read);
  padding: 4rem 2rem 5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);  /* faint top sheen on the paper */
}
.bc-reading-content > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.bc-reading-content p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.bc-reading-content h1,
.bc-reading-content h2,
.bc-reading-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 2rem 0 1rem;
  color: #2a2118;
}
.bc-reading-content em { font-style: italic; }
.bc-reading-content strong { font-weight: 600; }
.bc-reading-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  font-style: italic;
  color: #5c5347;
  margin: 2rem 0;
}

/* Chapter navigation */
.bc-chapter-nav {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.bc-chapter-nav-prev,
.bc-chapter-nav-next {
  padding: 2rem;
}
.bc-chapter-nav-next { text-align: right; border-left: 1px solid var(--border); }
.bc-chapter-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bc-chapter-nav a:hover { color: var(--accent); }
.bc-chapter-nav a span { font-family: var(--font-serif); font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--text); }

/* ============================================================
   STORY CARD
   ============================================================ */
.bc-story-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.bc-story-card h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
.bc-story-card h2 a { color: var(--text); }
.bc-story-card h2 a:hover { color: var(--accent); }
.bc-story-date { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.bc-about { max-width: var(--max-w); }
.bc-about-content p { font-size: 1.1rem; line-height: 1.9; margin-bottom: 1.5rem; }

/* ============================================================
   PAGE HEADINGS
   ============================================================ */
.bc-page-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.bc-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.bc-footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .bc-header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bc-hero { min-height: 0; padding: 2.25rem 1.5rem; }
  /* Hero title: smaller on mobile, and swap "Long" → "Tall" */
  .bc-hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .bc-hero-word-long { display: none; }
  .bc-hero-word-tall { display: inline; }
  .bc-container { padding: 2.5rem 1.5rem; }
  .bc-book-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bc-book-card { padding: 1.5rem; }
  /* Cover cards restack: cover on top (centred, capped), text below */
  .bc-book-card.has-cover { flex-direction: column; gap: 1.25rem; }
  .bc-book-cover-thumb { flex-basis: auto; width: 160px; margin: 0 auto; align-self: center; }
  .bc-chapter-nav { grid-template-columns: 1fr; }
  .bc-chapter-nav-next { text-align: left; border-left: none; border-top: 1px solid var(--border); }
  .bc-reading-content { padding: 2.5rem 1.5rem 3rem; }
  .bc-chapter-item { flex-direction: column; gap: 0.25rem; }
}


/* =============================================================
   CHAPTER NAVIGATION
   ------------------------------------------------------------
   Dropdown panel shadow lightened for the linen ground; hover
   state now uses the light border token instead of a dark fill.
   ============================================================= */

.bc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.bc-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.bc-breadcrumb a:hover { color: var(--accent); }
.bc-breadcrumb-sep { opacity: 0.4; }
.bc-breadcrumb-home { color: var(--accent-dim) !important; }

.bc-chapter-select-wrap { position: relative; }
.bc-chapter-select-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 0;
  display: flex; align-items: center; gap: 0.3rem;
}
.bc-chapter-select-btn:hover { color: var(--text); }
.bc-select-caret { font-size: 0.6rem; transition: transform 0.2s; }
.bc-chapter-select-btn[aria-expanded="true"] .bc-select-caret { transform: rotate(180deg); }
.bc-chapter-dropdown {
  display: none; position: absolute;
  top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  list-style: none; margin: 0; padding: 0.25rem 0;
  min-width: 280px; z-index: 100; box-shadow: 0 8px 32px rgba(60,50,35,0.18);
}
.bc-chapter-dropdown.is-open { display: block; }
.bc-chapter-dropdown li a {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.55rem 1rem; text-decoration: none;
  color: var(--text-muted); font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}
.bc-chapter-dropdown li a:hover,
.bc-chapter-dropdown li[aria-selected="true"] a { background: var(--border); color: var(--text); }
.bc-chapter-dropdown li[aria-selected="true"] a { color: var(--accent); }
.bc-drop-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; color: var(--accent-dim);
  flex-shrink: 0; min-width: 2.5rem;
}
.bc-drop-title { font-family: var(--font-serif); }

.bc-chapter-nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg); font-size: 0.8rem;
}
.bc-chapter-nav-prev { text-align: left; }
.bc-chapter-nav-next { text-align: right; }
.bc-chapter-nav-home { text-align: center; }
.bc-chapter-nav a {
  text-decoration: none; color: var(--text-muted);
  display: inline-flex; align-items: center;
  gap: 0.6rem; transition: color 0.2s; line-height: 1.3;
}
.bc-chapter-nav a:hover { color: var(--accent); }
.bc-chapter-nav span { display: flex; flex-direction: column; }
.bc-chapter-nav em {
  font-style: normal; font-family: var(--font-serif);
  font-size: 0.75rem; color: var(--text-muted); display: block;
}
.bc-nav-book-link {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-dim) !important;
  border: 1px solid var(--border); padding: 0.3rem 0.8rem;
  border-radius: 2px; transition: border-color 0.2s, color 0.2s !important;
}
.bc-nav-book-link:hover { border-color: var(--accent-dim); color: var(--accent) !important; }

@media (max-width: 600px) {
  .bc-chapter-nav { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .bc-chapter-nav-home { grid-column: 1 / -1; order: -1; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
}