/* =========================================================
       BOOKS PAGE
       ========================================================= */
    .page-hero { position: relative; padding: 54px 0 50px;
      background: radial-gradient(980px 420px at 88% -20%, rgba(21,111,91,.20), transparent 62%),
                   radial-gradient(820px 380px at -10% 118%, rgba(10,126,232,.13), transparent 60%),
                   linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
      border-bottom: 1px solid var(--line); overflow: hidden; }
    .page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
    .page-hero h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.3rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .35em; }
    .page-hero h1 em { font-style: normal; color: var(--teal-deep); }
    .page-hero__dek { font-family: 'Fraunces', serif; font-size: clamp(1.02rem, .92rem + .45vw, 1.18rem); color: var(--ink-2); line-height: 1.5; max-width: 58ch; margin: 0; }
    .page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
    .page-hero__meta span { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
      color: var(--teal-deep); border: 1.5px solid rgba(21,111,91,.34); background: rgba(21,111,91,.07); padding: 5px 11px; border-radius: 999px; font-weight: 600; }
    .page-hero__creds { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 0; }

    .books-page { padding: 50px 0 76px; background: var(--paper); }
    .shelf-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 34px;
      padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
    .shelf-item { text-align: center; }
    .shelf-item a { display: block; border-radius: 3px 6px 6px 3px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(32,41,58,.18); transition: transform .16s ease; }
    .shelf-item a:hover { transform: translateY(-5px); }
    .shelf-item img { width: 100%; height: 250px; object-fit: contain; display: block; }
    .shelf-item span { display: block; margin-top: 9px; font-family: 'IBM Plex Mono', monospace; font-size: .68rem;
      letter-spacing: .1em; color: var(--teal-deep); font-weight: 700; }

    .bookrow-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
    .bookrow { display: grid; grid-template-columns: 186px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line);
      border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
    .bookrow:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-deep); }
    .bookrow--lead { grid-column: 1 / -1; grid-template-columns: 250px 1fr; gap: 32px; padding: 30px; border-left: 5px solid var(--teal-deep); }
    .bookrow__cover { display: block; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); align-self: start; }
    .bookrow__cover img { width: 100%; height: auto; display: block; }
    .bookrow__year { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; }
    .bookrow h3 { font-family: 'Fraunces', serif; font-size: 1.34rem; line-height: 1.12; letter-spacing: -.018em; margin: 6px 0 4px; }
    .bookrow--lead h3 { font-size: 1.72rem; }
    .bookrow__sub { font-family: 'Fraunces', serif; font-style: italic; font-size: .95rem; color: var(--ink-2); margin: 0 0 10px; line-height: 1.4; }
    .bookrow__desc { font-size: .88rem; color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
    .bookrow__links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .bookrow__alt { font-family: 'IBM Plex Mono', monospace; font-size: .74rem; letter-spacing: .06em; color: var(--teal-deep); font-weight: 600; border-bottom: 1.5px solid rgba(21,111,91,.35); padding-bottom: 3px; }
    .bookrow__alt:hover { border-bottom-color: var(--teal-deep); }
    .bookrow__src { font-size: .7rem; color: var(--muted); margin-top: 14px; font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
    .bookrow__src a { color: var(--teal-deep); }
    .books-note { margin-top: 34px; padding: 26px 30px; background: var(--ink); color: var(--paper); border-radius: var(--radius);
      display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; box-shadow: var(--shadow); }
    .books-note h4 { color: var(--gold); font-family: 'Fraunces', serif; margin: 0 0 6px; font-size: 1.15rem; }
    .books-note p { margin: 0; color: #DBE5F0; font-size: .9rem; max-width: 64ch; }
    .books-note .btn { white-space: nowrap; }
    .books-note .btn--gold:hover { background: var(--teal-deep); color: #fff; }

    @media (max-width: 1180px) { .page-hero__grid { gap: 32px; } .shelf-strip { gap: 14px; } }
    @media (max-width: 1024px) { .bookrow-grid { grid-template-columns: 1fr; } .bookrow--lead { grid-template-columns: 210px 1fr; }
      .shelf-strip { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 960px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__creds { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 720px) { .bookrow, .bookrow--lead { grid-template-columns: 1fr; } .bookrow__cover { max-width: 210px; }
      .shelf-strip { grid-template-columns: repeat(2, 1fr); } .page-hero__creds { grid-template-columns: 1fr; } }
    /* =========================================================
       SHARED PAGE KIT - body band, timeline, about
       ========================================================= */
    .page-body { padding: 50px 0 76px; background: var(--paper); }
    .timeline { list-style: none; margin: 0; padding: 0; }
    .timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
    .timeline li:last-child { border-bottom: 0; }
    .timeline__yr { font-family: 'IBM Plex Mono', monospace; font-size: .76rem; font-weight: 700; color: var(--teal-deep); letter-spacing: .06em; padding-top: 3px; }
    .timeline h4 { font-family: 'Fraunces', serif; font-size: 1.08rem; margin: 0 0 4px; letter-spacing: -.01em; }
    .timeline p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.55; }
    .timeline p a { color: var(--teal-deep); font-weight: 600; }
    .about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
    .about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
    .about-card__photo { width: 150px; height: auto; border-radius: 12px; display: block; margin-bottom: 18px; box-shadow: var(--shadow); }
    .about-card h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.02em; }
    .about-card__role { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--teal-deep); line-height: 1.55; margin: 0 0 16px; }
    .about-card__bio { font-size: .92rem; color: var(--ink-2); line-height: 1.65; margin: 0 0 20px; }
    .about-card__links { display: flex; gap: 10px; flex-wrap: wrap; }
    .about-col .section-head { margin-bottom: 4px; }
    @media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; } }
    @media (max-width: 720px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

    .shelf-tile { text-align: center; }
    .shelf-tile a { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 6px; box-shadow: 0 4px 14px rgba(32,41,58,.18); transition: transform .16s ease; }
    .shelf-tile a:hover { transform: translateY(-5px); }
    .shelf-tile .glyph { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--gold); line-height: 1; }
    .shelf-tile span { display: block; margin-top: 9px; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .1em; color: var(--teal-deep); font-weight: 700; }
    /* ----------------------------------------------------------
       SearchWP search form
       Light fallback so the field still matches the theme if the
       plugin's own stylesheet is slow or unavailable. Scoped to
       .page-hero__meta so the live-search dropdown styling that
       SearchWP ships is never overridden.
       ---------------------------------------------------------- */
    .page-hero__meta .searchwp-form { max-width: 680px; margin: 0; }
    .page-hero__meta .swp-input--search {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-size: .95rem; line-height: 1.4; color: var(--ink);
      background: #fff; border: 1.5px solid var(--line);
      border-radius: var(--radius-sm); padding: 11px 14px;
      min-height: 44px; width: 100%; box-sizing: border-box;
    }
    .page-hero__meta .swp-input--search:focus {
      border-color: var(--teal-deep); outline: 2px solid rgba(21,111,91,.22); outline-offset: 1px;
    }
    .page-hero__meta .swp-form-btn {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-weight: 600; font-size: .9rem; line-height: 1.2;
      background: var(--ink); color: #fff; border: 0; cursor: pointer;
      border-radius: var(--radius-sm); padding: 11px 20px; min-height: 44px;
    }
    .page-hero__meta .swp-form-btn:hover { background: var(--teal-deep); }

