/* ===== Custom styles on top of Pico CSS ===== */

/* Color palette - dark literary theme */
:root {
  --sc-gold: #c8a84e;
  --sc-dark: #1a1a2e;
  --sc-darker: #12121f;
  --sc-accent: #e07a2f;
  --sc-text: #e0ddd5;
  --sc-muted: #9a978f;
  --sc-card-bg: #222238;
  --sc-border: #333355;
}

/* Override Pico theme colors */
[data-theme="dark"] {
  --pico-primary: var(--sc-gold);
  --pico-primary-hover: var(--sc-accent);
  --pico-background-color: var(--sc-dark);
  --pico-card-background-color: var(--sc-card-bg);
  --pico-card-border-color: var(--sc-border);
  --pico-color: var(--sc-text);
  --pico-muted-color: var(--sc-muted);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== Navigation ===== */
nav.site-nav {
  background: var(--sc-darker);
  border-bottom: 2px solid var(--sc-gold);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.site-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.site-nav .site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sc-gold);
  text-decoration: none;
}

nav.site-nav .site-title:hover {
  color: var(--sc-accent);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  color: var(--sc-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  background: var(--sc-gold);
  color: var(--sc-darker);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sc-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav.site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--sc-darker);
    padding: 0.5rem;
    border-bottom: 2px solid var(--sc-gold);
  }

  nav.site-nav ul.open {
    display: flex;
  }

  nav.site-nav .container {
    flex-wrap: wrap;
  }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--sc-darker), var(--sc-dark));
  padding: 3rem 1rem;
  text-align: center;
  border-bottom: 3px solid var(--sc-gold);
}

.hero h1 {
  color: var(--sc-gold);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  color: var(--sc-muted);
  font-size: 1.15rem;
  font-style: italic;
}

.hero-featured {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: left;
}

.hero-featured img {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero-featured .hero-text h2 {
  color: var(--sc-gold);
  margin-bottom: 0.5rem;
}

.hero-featured .hero-text .badge {
  display: inline-block;
  background: var(--sc-accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-featured {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--sc-darker), var(--sc-dark));
  padding: 2rem 1rem;
  border-bottom: 3px solid var(--sc-gold);
  text-align: center;
}

.page-header h1 {
  color: var(--sc-gold);
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--sc-muted);
  font-style: italic;
}

/* ===== Book Card Grid ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.book-card {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--sc-text);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--sc-gold);
}

.book-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.book-card .card-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card .card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--sc-gold);
}

.book-card .card-body .series-label {
  font-size: 0.75rem;
  color: var(--sc-muted);
}

.book-card .card-body .book-order {
  font-size: 0.7rem;
  color: var(--sc-accent);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ===== Series Section ===== */
.series-section {
  margin-bottom: 2.5rem;
}

.series-section h2 {
  color: var(--sc-gold);
  border-bottom: 2px solid var(--sc-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ===== Book Detail Page ===== */
.book-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.book-detail .book-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.book-detail .book-info h1 {
  color: var(--sc-gold);
  margin-bottom: 0.25rem;
}

.book-detail .book-meta {
  color: var(--sc-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.book-detail .book-synopsis {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .book-detail {
    grid-template-columns: 1fr;
  }
  .book-detail .book-cover {
    text-align: center;
  }
  .book-detail .book-cover img {
    max-width: 220px;
  }
}

/* ===== Buy Links ===== */
.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.buy-links a {
  display: inline-block;
  background: var(--sc-gold);
  color: var(--sc-darker);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.buy-links a:hover {
  background: var(--sc-accent);
  color: white;
}

/* ===== Review Banner ===== */
.review-banner {
  background: var(--sc-darker);
  border: 1px solid var(--sc-border);
  border-left: 4px solid var(--sc-gold);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  min-height: 80px;
  transition: opacity 0.3s ease;
}

.review-banner blockquote {
  border: none;
  padding: 0;
  margin: 0;
  font-style: italic;
  color: var(--sc-text);
  line-height: 1.6;
}

.review-banner .review-source {
  color: var(--sc-gold);
  font-weight: 600;
  margin-top: 0.5rem;
  font-style: normal;
}

.review-banner .starred {
  color: var(--sc-accent);
}

/* ===== Audio Player ===== */
.audio-sample {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--sc-darker);
  border-radius: 8px;
  border: 1px solid var(--sc-border);
}

.audio-sample h3 {
  font-size: 0.9rem;
  color: var(--sc-gold);
  margin-bottom: 0.5rem;
}

.audio-sample audio {
  width: 100%;
}

/* ===== More in Series ===== */
.more-in-series {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--sc-border);
}

.more-in-series h2 {
  color: var(--sc-gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ===== Interview Cards ===== */
.interview-card {
  display: flex;
  gap: 1.5rem;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.interview-card:hover {
  border-color: var(--sc-gold);
}

.interview-card img {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.interview-card h3 {
  color: var(--sc-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.interview-card p {
  color: var(--sc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.interview-card .related-tags {
  margin-top: 0.5rem;
}

.interview-card .related-tags span {
  display: inline-block;
  background: var(--sc-border);
  color: var(--sc-text);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .interview-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== Resource Cards ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}

.resource-card:hover {
  border-color: var(--sc-gold);
}

.resource-card img {
  max-width: 160px;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.resource-card h3 {
  color: var(--sc-gold);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.resource-card a.download-btn {
  display: inline-block;
  background: var(--sc-gold);
  color: var(--sc-darker);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.resource-card a.download-btn:hover {
  background: var(--sc-accent);
  color: white;
}

/* ===== About Page ===== */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.about-layout .author-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.about-layout .author-bio {
  line-height: 1.8;
}

.about-layout .author-bio p {
  margin-bottom: 1rem;
}

/* ===== Award Cards ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.award-card {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-gold);
}

.award-card .award-icon {
  font-size: 2rem;
  color: var(--sc-gold);
  margin-bottom: 0.5rem;
}

.award-card h3 {
  font-size: 0.95rem;
  color: var(--sc-gold);
  margin-bottom: 0.4rem;
}

.award-card p {
  font-size: 0.8rem;
  color: var(--sc-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-layout .author-photo {
    text-align: center;
  }
  .about-layout .author-photo img {
    max-width: 220px;
  }
}

/* ===== News Badges ===== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.news-list li {
  background: var(--sc-darker);
  border-left: 3px solid var(--sc-accent);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
}

/* ===== Formats Badges ===== */
.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.format-badges span {
  background: var(--sc-border);
  color: var(--sc-text);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--sc-darker);
  border-top: 2px solid var(--sc-gold);
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

footer.site-footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer.site-footer a {
  color: var(--sc-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

footer.site-footer a:hover {
  color: var(--sc-gold);
}

footer.site-footer .footer-vendors {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sc-border);
}

footer.site-footer .footer-vendors span {
  color: var(--sc-muted);
  font-size: 0.8rem;
}

footer.site-footer .copyright {
  color: var(--sc-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ===== Utility ===== */
/* Override Pico's restrictive container widths at all breakpoints */
.container,
main.container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

.section {
  padding: 2rem 0;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* =============================================================
   ENHANCEMENTS — Aligned to Strategic Recommendations
   ============================================================= */

/* ===== 1. Content Purpose Labels (Goal Alignment) ===== */
.purpose-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(200, 168, 78, 0.12);
  border: 1px solid rgba(200, 168, 78, 0.3);
  color: var(--sc-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  vertical-align: middle;
}

.purpose-icon {
  font-size: 0.75rem;
}

.section-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-header-row h1,
.section-header-row h2,
.section-header-row h3 {
  margin-bottom: 0;
}

/* ===== 2. Filter Controls — Books Page (Fixed Taxonomy) ===== */
.filter-bar {
  background: var(--sc-darker);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  color: var(--sc-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.25rem;
  min-width: 55px;
}

.filter-btn {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  color: var(--sc-text);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: var(--sc-gold);
  color: var(--sc-gold);
}

.filter-btn.active {
  background: var(--sc-gold);
  color: var(--sc-darker);
  border-color: var(--sc-gold);
  font-weight: 700;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sc-muted);
}

.no-results p:first-child {
  font-size: 1.1rem;
  color: var(--sc-text);
  margin-bottom: 0.5rem;
}

.no-results-hint {
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== 3. Mobile Priority-Based Display Rules ===== */
/* Priority classes: high = always visible, low = collapse on mobile */
@media (max-width: 768px) {

  /* --- Global spacing: override Pico's narrow mobile container --- */
  .container,
  main.container {
    max-width: 100% !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  main {
    padding-block: 0 !important;
  }

  .section {
    padding: 1.5rem 0;
  }

  .hero {
    padding: 2rem 1.25rem;
  }

  .page-header {
    padding: 1.5rem 1.25rem;
  }

  /* --- Book grids: more breathing room --- */
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .book-card .card-body {
    padding: 0.6rem;
  }

  .book-card .card-body h3 {
    font-size: 0.85rem;
  }

  /* --- Series sections --- */
  .series-section {
    margin-bottom: 2rem;
  }

  .series-section h2 {
    font-size: 1.15rem;
  }

  /* --- Book detail --- */
  .book-detail .book-info h1 {
    font-size: 1.5rem;
  }

  .book-detail .book-synopsis {
    line-height: 1.6;
  }

  .buy-links {
    gap: 0.4rem;
  }

  .buy-links a {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  /* --- Priority display --- */
  .priority-high {
    order: -1;
  }

  .priority-low blockquote {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-list {
    display: none;
  }

  /* --- Related content hub --- */
  .related-content-hub {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .related-content-hub .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  /* --- Filter bar --- */
  .filter-bar {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
  }

  .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
  }

  /* --- Interview & resource cards --- */
  .interview-card-enhanced {
    padding: 1rem;
    gap: 1rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resource-card-enhanced {
    padding: 1rem;
  }

  /* --- Mini book cards --- */
  .mini-book-card img {
    width: 32px;
    height: 48px;
  }

  .mini-book-card span {
    font-size: 0.65rem;
  }

  /* --- Award cards --- */
  .awards-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .award-card {
    padding: 1rem;
  }

  /* --- About layout --- */
  .about-layout .author-bio {
    line-height: 1.7;
  }

  .about-layout .author-bio p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  /* --- Section headers --- */
  .section-header-row {
    gap: 0.5rem;
  }

  /* --- Sticky buy bar --- */
  .sticky-buy-bar .sticky-buy-title {
    display: none;
  }

  .sticky-buy-links a {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  /* --- Footer --- */
  footer.site-footer {
    padding: 1.5rem 1.25rem;
  }

  footer.site-footer .footer-links {
    gap: 0.75rem;
  }
}

/* ===== 4. Sticky Buy Now Bar (Goal Alignment: Conversion) ===== */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sc-darker);
  border-top: 2px solid var(--sc-gold);
  padding: 0.6rem 0;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-buy-title {
  color: var(--sc-gold);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy-links {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sticky-buy-links a {
  display: inline-block;
  background: var(--sc-gold);
  color: var(--sc-darker);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.sticky-buy-links a:hover {
  background: var(--sc-accent);
  color: white;
}

/* Add padding to body so footer isn't hidden behind sticky bar */
body:has(.sticky-buy-bar) main {
  padding-bottom: 60px;
}

/* ===== 5. Related Content Hub (COPE + Taxonomy) ===== */
.related-content-hub {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--sc-gold);
}

.related-content-hub h2 {
  color: var(--sc-gold);
}

.hub-subtitle {
  color: var(--sc-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hub-section {
  margin-bottom: 1.5rem;
}

.hub-section-title {
  color: var(--sc-gold);
  font-size: 1rem;
  border-bottom: 1px solid var(--sc-border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Collapsible sections (Priority-based display) */
.collapse-toggle {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  color: var(--sc-gold);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}

.collapse-toggle:hover {
  background: var(--sc-border);
}

.collapse-icon {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.collapse-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.collapse-content.collapsed {
  display: none;
}

/* ===== 6. Bidirectional Relationships — Mini Book Cards ===== */
.mini-book-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  text-decoration: none;
  color: var(--sc-text);
  font-size: 0.75rem;
  transition: border-color 0.2s;
}

.mini-book-card:hover {
  border-color: var(--sc-gold);
  color: var(--sc-gold);
}

.mini-book-card img {
  width: 28px;
  height: 42px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.mini-book-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.related-label {
  font-size: 0.75rem;
  color: var(--sc-muted);
  font-weight: 600;
}

/* Enhanced interview card with bidirectional links */
.interview-card-enhanced {
  display: flex;
  gap: 1.5rem;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.interview-card-enhanced:hover {
  border-color: var(--sc-gold);
}

.interview-card-enhanced .interview-thumb {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.interview-card-enhanced .interview-body h3 {
  color: var(--sc-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.interview-card-enhanced .interview-body p {
  color: var(--sc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.interview-related {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sc-border);
}

@media (max-width: 768px) {
  .interview-card-enhanced {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Enhanced resource card with bidirectional links */
.resource-card-enhanced {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}

.resource-card-enhanced:hover {
  border-color: var(--sc-gold);
}

.resource-card-enhanced img {
  max-width: 160px;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.resource-card-enhanced h3 {
  color: var(--sc-gold);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.resource-related {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sc-border);
  text-align: left;
}

/* Review book title badge in rotating banner */
.review-book {
  display: inline-block;
  background: var(--sc-border);
  color: var(--sc-text);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
