/* ===========================================================================
   AuthorJuanJose.io — Steampunk Design System
   Premium steampunk editorial aesthetic
   =========================================================================== */

/* ---------------------------------------------------------------------------
   0. WEB FONTS (Google Fonts)
   Playfair Display = serif headings · Source Sans 3 = clean body
   --------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---------------------------------------------------------------------------
   1. CUSTOM PROPERTIES  (colour palette + spacing + typography tokens)
   --------------------------------------------------------------------------- */
:root {
  /* Parchment & brass palette */
  --bg:             #f5efe2;
  --bg-warm:        #f9f2e6;
  --panel:          #fffaf1;
  --ink:            #2b241d;
  --ink-light:      #5c4f3d;
  --accent:         #9d6a2f;   /* Brass */
  --accent-hover:   #b87a34;
  --accent-dark:    #6a4520;
  --copper:         #b87333;
  --silver:         #8a9a9a;
  --gold:           #d4a437;
  --obsidian:       #1e1e2a;
  --border:         #d8c8ae;
  --border-dark:    #b5a48a;
  --danger:         #9e3030;
  --success:        #3a7d44;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(43,36,29,.1);
  --shadow-md:  0 4px 12px rgba(43,36,29,.12);
  --shadow-lg:  0 8px 30px rgba(43,36,29,.15);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Max widths */
  --max-w: 1100px;
  --max-w-narrow: 720px;
}

/* ---------------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 var(--space-md);
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-light);
  max-width: 42em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

/* ---------------------------------------------------------------------------
   4. LINKS
   --------------------------------------------------------------------------- */
a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   5. LAYOUT — CONTAINER
   --------------------------------------------------------------------------- */
.container {
  width: min(var(--max-w), 92%);
  margin: 0 auto;
}

.container--narrow {
  width: min(var(--max-w-narrow), 92%);
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   6. SITE HEADER & NAVIGATION
   --------------------------------------------------------------------------- */
.site-header {
  background: var(--bg-warm);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.site-brand {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Hamburger toggle (visible on mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
}

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

.main-nav {
  display: contents;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}

.nav-list a,
.nav-dropdown-toggle {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.nav-dropdown-toggle {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '▾';
  margin-left: 0.45rem;
  font-size: 0.65rem;
  transition: transform .2s ease;
}

.nav-list a:hover,
.nav-dropdown-toggle:hover {
  background: rgba(157,106,47,.1);
  text-decoration: none;
}
.nav-list a.is-active,
.nav-dropdown-toggle.is-active {
  background: var(--accent);
  color: #fff;
}
.nav-list a.is-active:hover,
.nav-dropdown-toggle.is-active:hover {
  background: var(--accent-hover);
}

.nav-link-cta {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
}

.nav-link-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 13rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 150;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  white-space: nowrap;
}

.nav-item--has-dropdown:hover > .nav-dropdown,
.nav-item--has-dropdown:focus-within > .nav-dropdown,
.nav-item--has-dropdown.is-open > .nav-dropdown {
  display: block;
}

.nav-item--has-dropdown:hover > .nav-dropdown-toggle::after,
.nav-item--has-dropdown:focus-within > .nav-dropdown-toggle::after,
.nav-item--has-dropdown.is-open > .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------------------
   7. SUB-NAVIGATION (ARC + Member bars)
   --------------------------------------------------------------------------- */
.subnav {
  background: #efe2cd;
  border-bottom: 1px solid var(--border);
}

.subnav .container {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.subnav .nav-list a {
  font-size: 0.85rem;
}

.subnav-member {
  background: #e5d2b2;
  border-bottom: 1px solid var(--border-dark);
}

/* ---------------------------------------------------------------------------
   8. HERO SECTION
   --------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(160deg, rgba(43,36,29,.72), rgba(106,69,32,.55)),
    var(--bg-warm);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.hero .lead {
  color: rgba(255,255,255,.88);
  margin: 0 auto var(--space-lg);
  max-width: 38em;
}

.hero--image {
  background-size: cover;
  background-position: center;
}

/* ---------------------------------------------------------------------------
   9. PAGE SHELL & SECTIONS
   --------------------------------------------------------------------------- */
.page-shell {
  padding: var(--space-xl) 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--bg-warm);
}

.section--book-feature::after {
  content: '';
  display: block;
  clear: both;
}

.book-feature-float {
  float: right;
  display: flex;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md) var(--space-lg);
}

.book-feature-float__cover {
  width: clamp(120px, 13vw, 160px);
  aspect-ratio: 2 / 3;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(157,106,47,.12), rgba(0,0,0,.05));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.book-feature-float__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .book-feature-float {
    float: none;
    margin: 0 0 var(--space-md);
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------------
   10. PANELS & CARDS
   --------------------------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: var(--space-md);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
}

/* ---------------------------------------------------------------------------
   11. BUTTONS
   --------------------------------------------------------------------------- */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Primary (brass fill) */
.button--primary,
.button {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover,
.button:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Secondary (outline) */
.button--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.button--outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Dark (obsidian fill) */
.button--dark {
  background: var(--obsidian);
  color: #fff;
}

.button--dark:hover {
  background: #2a2a3a;
  color: #fff;
}

/* Large CTA */
.button--lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
   12. FORMS
   --------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-group small {
  display: block;
  color: var(--ink-light);
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157,106,47,.18);
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  accent-color: var(--accent);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.form-success {
  color: var(--success);
  font-weight: 600;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
  font-weight: 600;
}

.alert--success {
  background: #edf8ef;
  border-color: #a9d8b0;
  color: #2a6732;
}

.alert--error {
  background: #fdeeee;
  border-color: #e5b3b3;
  color: #7f2323;
}

.alert--info {
  background: #eef5fd;
  border-color: #b5d0ef;
  color: #254f7f;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-group--human-check {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
}
.form-group--human-check input[type="range"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.form-group--human-check input[type="range"]:focus {
  outline: none;
}
.human-check-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  color: var(--ink-light);
  font-size: 0.9rem;
}
#human_slider_percent {
  font-size: 1rem;
  color: var(--accent-dark);
}

/* ---------------------------------------------------------------------------
   13. FAQ ACCORDION
   --------------------------------------------------------------------------- */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform .25s ease;
}

.faq-item.is-open .faq-question::after {
  content: '\2212';  /* minus sign */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 0 0;
}

.faq-item.is-open .faq-answer {
  max-height: 40rem;
  padding-bottom: var(--space-md);
}

/* ---------------------------------------------------------------------------
   14. TIER BADGES / DISTINCTION CARDS
   --------------------------------------------------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.tier-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--panel);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tier-card--copper  { border-color: var(--copper); }
.tier-card--silver  { border-color: var(--silver); }
.tier-card--gold    { border-color: var(--gold); }
.tier-card--obsidian {
  border-color: var(--obsidian);
  background: #f3f0ec;
}

.tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  font-size: 2rem;
}

.tier-icon--copper  { background: rgba(184,115,51,.15); color: var(--copper); }
.tier-icon--silver  { background: rgba(138,154,154,.15); color: var(--silver); }
.tier-icon--gold    { background: rgba(212,164,55,.15); color: var(--gold); }
.tier-icon--obsidian { background: rgba(30,30,42,.12); color: var(--obsidian); }

.tier-card h3 {
  margin-top: 0;
}

.tier-card .tier-rank {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------------------
   15. STEPS LIST (How It Works)
   --------------------------------------------------------------------------- */
.steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
   16. BENEFIT LIST (checkmark style)
   --------------------------------------------------------------------------- */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 1.8rem;
}

.benefit-list li::before {
  content: '\2713'; /* checkmark */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
   17. DECORATIVE ELEMENTS
   --------------------------------------------------------------------------- */
/* Gear divider */
.divider-gear {
  text-align: center;
  padding: var(--space-lg) 0;
  color: var(--border-dark);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
}

.divider-gear::before {
  content: '\2699  \2699  \2699'; /* gear unicode */
}

/* Ornamental rule */
.ornament-rule {
  border: none;
  border-top: 2px solid var(--border);
  width: 60px;
  margin: var(--space-lg) auto;
}

/* ---------------------------------------------------------------------------
   18. SITE FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-warm);
  border-top: 2px solid var(--border);
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.88rem;
  color: var(--ink-light);
}

.site-footer a {
  color: var(--accent);
}
.backtotop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.backtotop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.backtotop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.90), rgba(6, 5, 8, 0.84));
  box-shadow: 0 18px 48px rgba(0,0,0,0.60);
  color: #f8efe0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.backtotop a:hover,
.backtotop a:focus-visible {
  color: #f8efe0;
  text-decoration: none;
  border-color: rgba(64, 224, 208, 0.65);
  box-shadow: 0 20px 55px rgba(0,0,0,0.72);
}

/* ---------------------------------------------------------------------------
   19. BOOK DETAIL LAYOUT
   --------------------------------------------------------------------------- */
.book-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.book-detail__cover {
  position: sticky;
  top: calc(60px + var(--space-lg));
}

.book-detail__cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.book-detail__info {
  min-width: 0;
}

@media (max-width: 720px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .book-detail__cover {
    max-width: 220px;
    margin: 0 auto;
    position: static;
  }
}

/* Book prose (synopsis / premise) */
.book-prose {
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Book excerpt blockquote */
.book-excerpt {
  border-left: 4px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink-light);
  max-width: 65ch;
}

/* ---------------------------------------------------------------------------
   20. BOOK CARDS (catalog grids)
   --------------------------------------------------------------------------- */
a.book-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: var(--ink);
}

a.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
}

.book-card--coming-soon {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: .85;
}

.book-card__cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-warm);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__info {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.book-card__info h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.book-card__info p {
  font-size: 0.92rem;
  color: var(--ink-light);
}

.book-card__series {
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-sm);
}
/* ---------------------------------------------------------------------------
   20A. STACKED PLACEHOLDER BOOK LIST (DrJessie structure)
   --------------------------------------------------------------------------- */
.book-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.book-list .book-card {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: var(--space-lg);
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.book-list .book-card figure {
  margin: 0;
}

.book-placeholder-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(157,106,47,.12), rgba(0,0,0,.05));
  overflow: hidden;
  position: relative;
}

.book-placeholder-cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-placeholder-cover.is-coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45));
}

.book-placeholder-cover__label {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f9f2e4;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  z-index: 1;
}

.book-list .book-meta h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.book-list .book-meta .tagline {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: var(--space-xs);
}

.book-list .book-meta .desc {
  margin: 0 0 var(--space-sm);
  color: var(--ink-light);
}

.kdp-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(157,106,47,.08);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.buy-btn.is-disabled {
  border-style: dashed;
  opacity: .65;
}

.buy-btn.x-out {
  text-decoration: line-through;
}

@media (max-width: 720px) {
  .book-list .book-card {
    grid-template-columns: 1fr;
  }

  .book-list .book-card figure {
    max-width: 180px;
  }
}

/* ---------------------------------------------------------------------------
   20B. DRJESSIE CARD CSS PORT (fiction/non-fiction/library)
   --------------------------------------------------------------------------- */
.cards-4up .book-list {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.cards-4up .book-list .book-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.90), rgba(6, 5, 8, 0.84));
  box-shadow: 0 18px 48px rgba(0,0,0,0.90);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cards-4up .book-list .book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(182, 25, 98, 0.22), transparent 58%),
    radial-gradient(circle at 85% 85%, rgba(10, 148, 158, 0.20), transparent 62%);
  opacity: 0.78;
}

.cards-4up .book-list .book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 78px rgba(0,0,0,0.95);
}

.cards-4up .book-list .book-card figure {
  width: 100%;
  max-width: none;
  margin: 0;
  flex-basis: auto;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.95rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(182, 25, 98, 0.22), rgba(182, 25, 98, 0) 62%),
    radial-gradient(circle at 82% 88%, rgba(10, 148, 158, 0.18), rgba(10, 148, 158, 0) 66%),
    linear-gradient(145deg, rgba(12, 10, 16, 0.95), rgba(7, 6, 10, 0.90));
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.cards-4up .book-placeholder-cover {
  width: 100%;
  min-height: 240px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.32);
  background:
    radial-gradient(circle at 20% 15%, rgba(204, 154, 162, 0.32), rgba(204, 154, 162, 0) 58%),
    radial-gradient(circle at 82% 88%, rgba(204, 172, 0, 0.24), rgba(204, 172, 0, 0) 60%),
    linear-gradient(145deg, rgba(204, 132, 0, 0.32), rgba(204, 153, 54, 0.15));
  color: rgba(255,255,255,0.88);
  box-shadow: 0 24px 60px rgba(0,0,0,0.75);
}

.cards-4up .book-placeholder-cover__label {
  color: rgba(255,255,255,0.94);
}


.cards-4up .book-list .book-meta {
  flex: 1;
  padding: 0.95rem 0.95rem 1.05rem;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-width: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.04));
}

.cards-4up .book-list .book-meta .tagline {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 226, 208, 0.88);
  opacity: 0.92;
}

.cards-4up .book-list .book-meta h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.22;
  color: #f8efe0;
}

.cards-4up .book-list .book-meta .desc {
  margin: 0;
  color: rgba(236, 226, 208, 0.76);
  font-size: 0.9rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards-4up .book-list .kdp-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.cards-4up .book-list .buy-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.57rem 0.93rem;
  border-radius: 999px;
  border: 1px solid rgba(64, 224, 208, 0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(64, 224, 208, 0.52), rgba(64, 224, 208, 0.20)),
    rgba(64, 224, 208, 0.12);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    filter .18s ease;
}

.cards-4up .book-list .buy-btn::before {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 45%,
    rgba(255,255,255,0) 70%);
  transform: translateX(-55%) rotate(8deg);
  opacity: 0.35;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}

.cards-4up .book-list .buy-btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(250, 128, 114, 0.78);
  filter: brightness(1.06) saturate(1.12);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.72),
    0 0 24px rgba(64, 224, 208, 0.28),
    0 0 18px rgba(250, 128, 114, 0.20);
}

.cards-4up .book-list .buy-btn:hover::before {
  transform: translateX(10%) rotate(8deg);
  opacity: 0.55;
}

.cards-4up .book-list .buy-btn.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.22) saturate(0.85);
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.14);
}

.cards-4up .book-list .buy-btn.x-out::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,0.62) 47%, rgba(255,255,255,0.62) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(255,255,255,0.62) 47%, rgba(255,255,255,0.62) 53%, transparent 54%);
  opacity: 0.42;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .cards-4up .book-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .cards-4up .book-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-4up .book-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   20C. DRJESSIE CARD CSS PORT — REMAINING CATALOG SURFACES
   --------------------------------------------------------------------------- */
.cards-drjessie .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.cards-drjessie .card-grid a.book-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.90), rgba(6, 5, 8, 0.84));
  box-shadow: 0 18px 48px rgba(0,0,0,0.90);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: #f8efe0;
}

.cards-drjessie .card-grid a.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(182, 25, 98, 0.22), transparent 58%),
    radial-gradient(circle at 85% 85%, rgba(10, 148, 158, 0.20), transparent 62%);
  opacity: 0.78;
}

.cards-drjessie .card-grid a.book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 78px rgba(0,0,0,0.95);
  color: #f8efe0;
}

.cards-drjessie .card-grid .book-card__cover {
  aspect-ratio: auto;
  min-height: 240px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at 20% 15%, rgba(182, 25, 98, 0.22), rgba(182, 25, 98, 0) 62%),
    radial-gradient(circle at 82% 88%, rgba(10, 148, 158, 0.18), rgba(10, 148, 158, 0) 66%),
    linear-gradient(145deg, rgba(12, 10, 16, 0.95), rgba(7, 6, 10, 0.90));
  padding: 0.95rem;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.cards-drjessie .card-grid .book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.88);
}

.cards-drjessie .card-grid .book-card__info {
  padding: 0.95rem 0.95rem 1.05rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.04));
}

.cards-drjessie .card-grid .book-card__info h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.22;
  color: #f8efe0;
}

.cards-drjessie .card-grid .book-card__info p {
  margin: 0;
  color: rgba(236, 226, 208, 0.76);
  font-size: 0.9rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards-drjessie .card-grid .book-card__series {
  margin-top: 0.4rem;
  color: rgba(236, 226, 208, 0.85) !important;
}

.cards-drjessie .series-book-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.90), rgba(6, 5, 8, 0.84));
  box-shadow: 0 18px 48px rgba(0,0,0,0.90);
  color: #f8efe0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cards-drjessie .series-book-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 78px rgba(0,0,0,0.95);
  color: #f8efe0;
}

.cards-drjessie .series-book-item__info p {
  color: rgba(236, 226, 208, 0.76);
}

@media (max-width: 1280px) {
  .cards-drjessie .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cards-drjessie .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-drjessie .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   21. BUY LINKS
   --------------------------------------------------------------------------- */
.buy-links {
  margin-top: var(--space-lg);
}

.buy-links__heading {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.buy-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.buy-links__btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
}

/* ---------------------------------------------------------------------------
   22. REVIEW & ENDORSEMENT CARDS
   --------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.review-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.review-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--ink-light);
}

.review-card cite {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.review-source {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* ---------------------------------------------------------------------------
   23. TAGS
   --------------------------------------------------------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-dark);
  border-radius: 2rem;
  color: var(--ink-light);
  background: var(--bg-warm);
}

.tag--lg {
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
}

/* ---------------------------------------------------------------------------
   24. BOOK BADGES
   --------------------------------------------------------------------------- */
.book-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
}

.book-badge--coming-soon {
  background: rgba(157,106,47,.12);
  color: var(--accent-dark);
}

/* ---------------------------------------------------------------------------
   25. READING ORDER LIST
   --------------------------------------------------------------------------- */
.reading-order {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: reading-order;
}

.reading-order li {
  counter-increment: reading-order;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.reading-order li:last-child {
  border-bottom: none;
}

.reading-order li::before {
  content: counter(reading-order);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.reading-order li.is-current {
  background: rgba(157,106,47,.06);
  border-radius: var(--radius-sm);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.reading-order__badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: auto;
}

/* ---------------------------------------------------------------------------
   26. SERIES BOOK LIST (series detail page)
   --------------------------------------------------------------------------- */
.series-book-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.series-book-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

.series-book-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
}

.series-book-item__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.series-book-item__cover {
  flex-shrink: 0;
  width: 80px;
}

.series-book-item__cover img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.series-book-item__info h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.series-book-item__info p {
  font-size: 0.92rem;
  color: var(--ink-light);
  margin-bottom: var(--space-xs);
}

@media (max-width: 720px) {
  .series-book-item {
    flex-direction: column;
    align-items: stretch;
  }
  .series-book-item__cover {
    width: 100px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   27. DASHBOARD — TIER DISPLAY
   --------------------------------------------------------------------------- */
.dash-tier {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.dash-tier__icon {
  flex-shrink: 0;
}

.dash-tier__info {
  min-width: 0;
}

/* ---------------------------------------------------------------------------
   28. PROGRESS BAR
   --------------------------------------------------------------------------- */
.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: var(--space-sm) 0;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 6px;
  transition: width .4s ease;
}

.progress-bar__fill--none    { background: var(--border-dark); }
.progress-bar__fill--copper  { background: var(--copper); }
.progress-bar__fill--silver  { background: var(--silver); }
.progress-bar__fill--gold    { background: var(--gold); }
.progress-bar__fill--obsidian { background: var(--obsidian); }

.progress-label {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   29. CAMPAIGN CARDS & LIST
   --------------------------------------------------------------------------- */
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.campaign-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.campaign-card--closed {
  opacity: .65;
}

.campaign-card__info h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.campaign-card__deadline {
  font-size: 0.85rem;
  color: var(--ink-light);
}

.campaign-card__actions {
  flex-shrink: 0;
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

/* ---------------------------------------------------------------------------
   30. CAMPAIGN STATUS BADGES
   --------------------------------------------------------------------------- */
.campaign-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-right: var(--space-xs);
}

.campaign-status--invited    { background: #eef5fd; color: #254f7f; }
.campaign-status--accepted   { background: #edf8ef; color: #2a6732; }
.campaign-status--declined   { background: #fdeeee; color: #7f2323; }
.campaign-status--completed  { background: #edf8ef; color: #2a6732; }
.campaign-status--active     { background: #edf8ef; color: #2a6732; }
.campaign-status--draft      { background: #f5f0e0; color: var(--accent-dark); }
.campaign-status--closed     { background: #eee; color: #666; }
.campaign-status--pending    { background: #fdf6e3; color: var(--accent-dark); }
.campaign-status--suspended  { background: #fdeeee; color: #7f2323; }

/* ---------------------------------------------------------------------------
   31. REVIEW LIST (dashboard/archive)
   --------------------------------------------------------------------------- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.review-list-item:last-child {
  border-bottom: none;
}

.review-list-item__platform {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-left: var(--space-sm);
}

.review-list-item__date {
  font-size: 0.82rem;
  color: var(--ink-light);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   32. ADMIN LIST
   --------------------------------------------------------------------------- */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-list-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.admin-list-item__email {
  font-size: 0.88rem;
  color: var(--ink-light);
}

.admin-list-item__meta {
  font-size: 0.82rem;
  color: var(--ink-light);
}

.admin-list-item__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

/* Locked/earned tier card states */
.tier-card--locked {
  opacity: .5;
}

.tier-card--earned {
  opacity: 1;
}

@media (max-width: 720px) {
  .dash-tier {
    flex-direction: column;
  }
  .campaign-card {
    flex-direction: column;
  }
  .admin-list-item {
    flex-direction: column;
  }
  .review-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* ---------------------------------------------------------------------------
   33. JOURNAL ENTRIES
   --------------------------------------------------------------------------- */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.journal-entry {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.journal-entry:last-child {
  border-bottom: none;
}

.journal-entry__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.journal-entry__date {
  font-size: 0.82rem;
  color: var(--ink-light);
}

.journal-entry__title {
  margin-top: 0;
}

/* ---------------------------------------------------------------------------
   34. NEWSLETTER SIGNUP
   --------------------------------------------------------------------------- */
.newsletter-signup {
  margin: var(--space-lg) 0;
}

.newsletter-signup__heading {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.newsletter-signup__text {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.newsletter-form--inline .newsletter-form__field--name {
  display: none;
}

.newsletter-form__field input:not([type="checkbox"]),
.newsletter-form__field select {
  width: 100%;
}

.newsletter-form__lists {
  margin: 0;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.newsletter-form__lists legend {
  font-size: 0.78rem;
  color: var(--ink-light);
  padding: 0 var(--space-xs);
}

.newsletter-form__checkbox {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  margin-bottom: var(--space-xs);
}

.newsletter-form__checkbox:last-child {
  margin-bottom: 0;
}

.newsletter-form__checkbox small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
}

.newsletter-form--inline .newsletter-form__field {
  flex: 1;
  min-width: 140px;
}
.newsletter-form--inline .newsletter-form__field--lists {
  flex-basis: 100%;
}

.newsletter-form--inline .newsletter-form__field:last-child {
  flex: 0;
}

/* ---------------------------------------------------------------------------
   35. GALLERY
   --------------------------------------------------------------------------- */
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-grid--admin {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item--admin {
  cursor: default;
}

.gallery-item--admin:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-item__info {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.gallery-item__info strong {
  font-size: 0.9rem;
}

.gallery-item__info p {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin: var(--space-xs) 0 0;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gallery-pagination__info {
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ---------------------------------------------------------------------------
   36. LIGHTBOX
   --------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}

/* ---------------------------------------------------------------------------
   37. NOTIFICATIONS
   --------------------------------------------------------------------------- */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-item__date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-light);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   38. FOOTER GRID
   --------------------------------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.footer-grid__copy {
  text-align: right;
}

.footer-grid__copy p {
  margin-bottom: var(--space-xs);
}

.footer-grid__policy-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.footer-grid__policy-links span {
  color: var(--border-dark);
}

.footer-grid__utility-link {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer-grid__copy {
    text-align: left;
  }
  .footer-grid__policy-links {
    justify-content: flex-start;
  }
  .newsletter-form--inline {
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* ---------------------------------------------------------------------------
   39. TAG CLOUD
   --------------------------------------------------------------------------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag-cloud__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.tag-cloud__item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.tag-cloud__count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-light);
  background: rgba(0,0,0,.06);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-cloud__item:hover .tag-cloud__count {
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.2);
}

/* Clickable tags (in book detail pages) */
a.tag {
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
a.tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   40. LIBRARY FILTERS
   --------------------------------------------------------------------------- */
.library-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.library-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.library-filters__group strong {
  margin-right: var(--space-xs);
  font-size: 0.88rem;
  color: var(--ink-light);
}

.library-filters__group .button {
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
}

/* ---------------------------------------------------------------------------
   41. SEARCH
   --------------------------------------------------------------------------- */
.search-form__row {
  display: flex;
  gap: var(--space-sm);
}

.search-form__row input[type="search"] {
  flex: 1;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.search-result {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result__title {
  margin: var(--space-xs) 0 var(--space-xs);
}

.search-result__excerpt {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.search-result__excerpt mark {
  background: rgba(212,164,55,.25);
  color: var(--ink);
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------------
   42. START HERE
   --------------------------------------------------------------------------- */
.start-here-step {
  margin: var(--space-lg) 0;
}

.start-here-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.start-here-option {
  display: block;
  padding: var(--space-lg);
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.start-here-option:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
}

.start-here-option h3 {
  margin-top: 0;
  color: var(--accent);
}

.start-here-option p {
  font-size: 0.92rem;
  color: var(--ink-light);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   43. BOOK TYPE BADGES
   --------------------------------------------------------------------------- */
.book-badge--fiction {
  background: rgba(157,106,47,.12);
  color: var(--accent-dark);
}

.book-badge--nonfiction,
.book-badge--non-fiction {
  background: rgba(138,154,154,.15);
  color: #4a5a5a;
}

.book-badge--journal {
  background: rgba(212,164,55,.15);
  color: #8a6a20;
}

.book-badge--page {
  background: rgba(43,36,29,.08);
  color: var(--ink-light);
}

@media (max-width: 720px) {
  .search-form__row {
    flex-direction: column;
  }
  .start-here-options {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   44. ACCESSIBILITY
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 200;
  transition: top .2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
  text-decoration: none;
  color: #fff;
}

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ---------------------------------------------------------------------------
   45. UTILITY CLASSES
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-0  { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0  { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------------------------------------------------------------------------
   20. RESPONSIVE — TABLET (<=960px)
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid,
  .tier-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ---------------------------------------------------------------------------
   21. RESPONSIVE — MOBILE (<=720px)
   --------------------------------------------------------------------------- */
@media (max-width: 720px) {
  /* Show hamburger, collapse nav */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-top: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.3rem;
    border-radius: 0;
  }

  .nav-dropdown-toggle {
    display: block;
    padding: 0.6rem 0.3rem;
    border-radius: 0;
    text-align: left;
    width: 100%;
  }

  .nav-dropdown-toggle::after {
    float: right;
    margin-left: 0;
  }

  .nav-dropdown {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    border: none;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 var(--space-md);
  }

  .nav-item--has-dropdown:hover > .nav-dropdown {
    display: none;
  }

  .nav-item--has-dropdown.is-open > .nav-dropdown,
  .nav-item--has-dropdown:focus-within > .nav-dropdown {
    display: block;
  }

  .nav-dropdown li {
    border-top: 1px solid var(--border);
  }

  .nav-dropdown a {
    white-space: normal;
  }

  .nav-link-cta {
    margin-top: var(--space-xs);
    text-align: center;
  }

  /* Sub-nav also goes vertical */
  .subnav .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .subnav .nav-list li {
    border-top: 1px solid var(--border);
  }

  /* Smaller hero */
  .hero {
    padding: var(--space-xl) 0;
  }

  /* Steps go vertical */
  .steps li {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Tier cards single column */
  .tier-grid {
    grid-template-columns: 1fr;
  }
}
