/* ============================================================
   ASHER CROSS — AUTHOR THEME
   ------------------------------------------------------------
   Overrides all StackCTL defaults.
   Warm, editorial, literary. Light-first.
   ------------------------------------------------------------
   Palette:
     Ink        #1c1412  — warm near-black text
     Parchment  #fdfcf9  — warm white background
     Cream      #f5f0e8  — card / alt background
     Stone      #7c6f65  — muted text
     Border     #e4ddd4  — subtle warm border
     Green      #2d5a27  — primary brand (deep forest green)
     Amber      #c97d2e  — accent / purchase buttons
     Fan        #8b2252  — fan tier (deep wine/rose)
============================================================ */


/* ============================================================
   CSS VARIABLES
============================================================ */

:root {
    /* Core palette */
    --ink:          #1c1412;
    --parchment:    #fdfcf9;
    --cream:        #f5f0e8;
    --stone:        #7c6f65;
    --border:       #e4ddd4;
    --border-dark:  #cfc5b9;

    /* Brand — forest green */
    --green:        #2d5a27;
    --green-dark:   #1e3d1a;
    --green-light:  #4a7c42;
    --green-tint:   #f0f7ef;

    /* Accent — amber/gold for purchase buttons */
    --amber:        #c97d2e;
    --amber-dark:   #a8651f;
    --amber-tint:   #fdf6ec;

    /* Fan tier — deep wine */
    --fan:          #8b2252;
    --fan-dark:     #6e1a41;
    --fan-tint:     #fdf1f5;

    /* Status */
    --success:      #2d6a4f;
    --success-tint: #d8f3dc;
    --error:        #9b2226;
    --error-tint:   #fde8e8;
    --warning:      #9c6000;
    --warning-tint: #fff3cd;

    /* Typography */
    --font-body:    'Georgia', 'Times New Roman', serif;
    --font-ui:      system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Radius */
    --radius-sm:    0.25rem;
    --radius:       0.5rem;
    --radius-lg:    0.875rem;
    --radius-full:  9999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(28, 20, 18, 0.06);
    --shadow:     0 2px 8px rgba(28, 20, 18, 0.08);
    --shadow-md:  0 4px 16px rgba(28, 20, 18, 0.1);
    --shadow-lg:  0 8px 32px rgba(28, 20, 18, 0.12);
}

/* Dark mode */
.dark {
    --ink:          #f0ebe5;
    --parchment:    #1a1714;
    --cream:        #231f1c;
    --stone:        #a89e97;
    --border:       #38302b;
    --border-dark:  #4a3f38;

    --green-tint:   #0d1f0b;
    --amber-tint:   #271a0a;
    --fan-tint:     #2a1020;

    --success-tint: #0d2b1a;
    --error-tint:   #2a0d0d;
}


/* ============================================================
   GLOBAL BASE
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    background-color: var(--parchment);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--green); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

p { margin: 0 0 1rem 0; }
img { max-width: 100%; display: block; }


/* ============================================================
   CONTAINERS
============================================================ */

.container-page   { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide   { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }


/* ============================================================
   GRID / ROW SYSTEM
============================================================ */

.row     { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.row-auto { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (min-width: 640px)  { .row-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .row-3 { grid-template-columns: repeat(3, 1fr); } .row-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .row-5 { grid-template-columns: repeat(5, 1fr); } .row-6 { grid-template-columns: repeat(6, 1fr); } }


/* ============================================================
   BUTTONS
============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover {
    background: var(--green-dark); border-color: var(--green-dark); color: #fff;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.35); transform: translateY(-1px);
}

.btn-secondary { background: var(--cream); color: var(--ink); border-color: var(--border-dark); }
.btn-secondary:hover { background: var(--border); color: var(--ink); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }

.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #7d1a1e; border-color: #7d1a1e; color: #fff; }

.btn-ghost { background: transparent; color: var(--stone); border-color: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.btn-buy {
    background: var(--amber); color: #fff; border-color: var(--amber);
    padding: 0.65rem 1.5rem; font-size: 0.95rem;
}
.btn-buy:hover {
    background: var(--amber-dark); border-color: var(--amber-dark); color: #fff;
    box-shadow: 0 3px 12px rgba(201, 125, 46, 0.35); transform: translateY(-1px);
}

.btn-sm   { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg   { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

.theme-btn {
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-dark);
    background: var(--cream);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.theme-btn:hover { background: var(--border); }
.theme-btn-active { background: var(--green); color: #fff; border-color: var(--green); }


/* ============================================================
   INPUTS
============================================================ */

.input {
    width: 100%;
    padding: 0.55rem 0.875rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--parchment);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.5;
}

.dark .input { background: var(--cream); border-color: var(--border); color: var(--ink); }
.input::placeholder { color: var(--stone); opacity: 0.7; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12); }
.input-error { border-color: var(--error); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(155, 34, 38, 0.12); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c6f65' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}


/* ============================================================
   LABELS
============================================================ */

.label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; letter-spacing: 0.01em; }
.label-hint { display: block; font-size: 0.8rem; color: var(--stone); margin-top: 0.25rem; }


/* ============================================================
   CARDS
============================================================ */

.card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.dark .card { background: var(--cream); border-color: var(--border); }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }


/* ============================================================
   ALERTS
============================================================ */

.alert { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; border: 1px solid transparent; }
.alert-success { background: var(--success-tint); color: var(--success); border-color: #a8d5b5; }
.alert-error   { background: var(--error-tint);   color: var(--error);   border-color: #f5b8b8; }
.alert-warning { background: var(--warning-tint); color: var(--warning); border-color: #f8d87a; }
.dark .alert-success { background: var(--success-tint); color: #74c69d; border-color: #1b4332; }
.dark .alert-error   { background: var(--error-tint);   color: #f4a0a0; border-color: #5c1a1a; }


/* ============================================================
   NAVIGATION
============================================================ */

.nav-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--cream); color: var(--green); }
.dark .nav-link:hover { background: var(--border); }
.nav-link-active { background: var(--green-tint); color: var(--green); font-weight: 600; }
.dark .nav-link-active { background: var(--green-tint); color: var(--green-light); }

.nav-section { display: block; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.nav-section-label { display: block; padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }


/* ============================================================
   BADGES
============================================================ */

.badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.2rem 0.65rem; font-size: 0.7rem; font-weight: 700;
    border-radius: var(--radius-full); text-transform: uppercase;
    letter-spacing: 0.06em; white-space: nowrap;
}

.badge-admin   { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.badge-manager { background: #2563a8; color: #fff; }
.badge-fan     { background: var(--fan); color: #fff; animation: fan-pulse 3s ease-in-out infinite; }
.badge-user    { background: var(--cream); color: var(--stone); border: 1px solid var(--border-dark); }

@keyframes fan-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

.badge-published    { background: var(--success);      color: #fff; }
.badge-draft        { background: var(--stone);         color: #fff; }
.badge-archived     { background: var(--border-dark);   color: var(--ink); }
.badge-available    { background: var(--success);       color: #fff; }
.badge-coming-soon  { background: var(--amber);         color: #fff; }
.badge-pre-order    { background: var(--green-light);   color: #fff; }
.badge-out-of-print { background: var(--stone);         color: #fff; }


/* ============================================================
   HERO SECTION
============================================================ */

.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d1f0b 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-title    { font-family: var(--font-body); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin: 0 0 1rem 0; position: relative; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.3rem); opacity: 0.88; margin: 0 0 2rem 0; font-style: italic; position: relative; }
.hero-actions  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

@media (max-width: 768px) { .hero { padding: 3rem 1.25rem; border-radius: 0; } }


/* ============================================================
   BOOK CARDS
============================================================ */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 480px) { .books-grid { grid-template-columns: 1fr; } }

.book-card {
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; display: flex;
    flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dark .book-card { background: var(--cream); }
.book-card-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: linear-gradient(160deg, var(--green-dark) 0%, #0d1f0b 100%); }
.book-card-body  { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.book-card-title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.35rem 0; color: var(--ink); line-height: 1.25; }
.book-card-subtitle { font-size: 0.82rem; color: var(--stone); font-style: italic; margin-bottom: 0.75rem; }
.book-card-excerpt  { font-size: 0.875rem; color: var(--stone); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.book-card-footer   { border-top: 1px solid var(--border); padding: 1rem 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; background: var(--cream); }
.dark .book-card-footer { background: var(--border); }


/* ============================================================
   POST CARDS
============================================================ */

.post-card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.dark .post-card { background: var(--cream); }
.post-card-type  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 0.5rem; }
.post-card-title { font-family: var(--font-body); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.6rem 0; line-height: 1.2; }
.post-card-title a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
.post-card-title a:hover { color: var(--green); }
.post-card-meta  { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--stone); margin-bottom: 0.875rem; flex-wrap: wrap; }
.post-card-excerpt { font-size: 0.9rem; color: var(--stone); line-height: 1.6; }
.post-card-footer  { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-visibility-lock { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--fan); font-weight: 600; }


/* ============================================================
   COMMENTS
============================================================ */

.comment { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.875rem; }
.dark .comment { background: var(--cream); }
.comment-reply { margin-left: 2.5rem; border-left: 3px solid var(--green-light); }
.comment-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.5rem; }
.comment-author { font-weight: 700; font-size: 0.9rem; color: var(--ink); display: flex; align-items: center; gap: 0.4rem; }
.comment-date   { font-size: 0.8rem; color: var(--stone); }
.comment-body   { font-size: 0.9rem; color: var(--ink); line-height: 1.6; }
.comment-actions { margin-top: 0.6rem; display: flex; gap: 1rem; }
.comment-action-btn { font-size: 0.8rem; color: var(--stone); background: none; border: none; cursor: pointer; padding: 0; transition: color 0.15s ease; font-family: var(--font-ui); }
.comment-action-btn:hover { color: var(--green); }


/* ============================================================
   AUTHOR BIO
============================================================ */

.author-bio { display: flex; gap: 2rem; align-items: flex-start; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.author-bio-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green); flex-shrink: 0; box-shadow: var(--shadow-md); }
.author-bio-name    { font-family: var(--font-body); font-size: 1.75rem; font-weight: 700; margin: 0 0 0.4rem 0; color: var(--ink); }
.author-bio-tagline { font-style: italic; color: var(--green); margin-bottom: 0.875rem; font-size: 0.95rem; }
.author-bio-text    { font-size: 0.92rem; color: var(--stone); line-height: 1.7; }

@media (max-width: 640px) { .author-bio { flex-direction: column; align-items: center; text-align: center; } }


/* ============================================================
   NEWSLETTER BOX
============================================================ */

.newsletter-box {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
    text-align: center; margin: 3rem 0; position: relative; overflow: hidden;
}
.newsletter-box h3 { font-family: var(--font-body); font-size: 1.6rem; margin: 0 0 0.5rem 0; color: #fff; }
.newsletter-box p  { opacity: 0.88; margin-bottom: 1.5rem; font-style: italic; }
.newsletter-form   { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto; }
.newsletter-input  { flex: 1; padding: 0.65rem 1rem; border: none; border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-ui); background: rgba(255,255,255,0.95); color: var(--ink); }
.newsletter-input:focus { outline: 3px solid rgba(255,255,255,0.5); }
@media (max-width: 600px) { .newsletter-form { flex-direction: column; } }


/* ============================================================
   MESSAGES / CHAT
============================================================ */

.message-bubble      { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.75rem; max-width: 80%; }
.message-bubble-self { background: var(--green-tint); border-color: #b5d4b2; margin-left: auto; text-align: right; }
.dark .message-bubble      { background: var(--cream); }
.dark .message-bubble-self { background: var(--green-tint); }
.message-meta { font-size: 0.75rem; color: var(--stone); margin-top: 0.25rem; }


/* ============================================================
   DIVIDERS & SPACING
============================================================ */

.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.divider-fancy { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; color: var(--stone); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.divider-fancy::before, .divider-fancy::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-spacing { margin: 3rem 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }


/* ============================================================
   TEXT UTILITIES
============================================================ */

.text-muted  { color: var(--stone); }
.text-brand  { color: var(--green); }
.text-accent { color: var(--amber); }
.text-fan    { color: var(--fan); }
.dark .text-muted { color: var(--stone); }

blockquote, .pull-quote {
    border-left: 4px solid var(--green);
    margin: 1.5rem 0; padding: 0.75rem 1.5rem;
    background: var(--green-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-body); font-style: italic;
    font-size: 1.05rem; color: var(--green-dark); line-height: 1.65;
}
.dark blockquote, .dark .pull-quote { background: var(--green-tint); color: var(--green-light); }


/* ============================================================
   PUBLIC NAV — desktop + mobile hamburger
============================================================ */

.pub-nav {
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.pub-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.pub-nav-logo { font-family: var(--font-body); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.pub-nav-logo span { color: var(--green); }

.pub-nav-links { display: flex; align-items: center; gap: 0.25rem; }
.pub-nav-auth  { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger — hidden on desktop */
.pub-nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}

.pub-nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Hamburger animation when open */
.pub-nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.pub-nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .pub-nav-links    { display: none; }
    .pub-nav-auth     { display: none; }
    .pub-nav-hamburger { display: flex; }
}


/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 18, 0.5);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.open { display: block; opacity: 1; }

/* Mobile drawer — slides in from right */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--parchment);
    z-index: 101;
    padding: 0;
    box-shadow: var(--shadow-lg);
    transition: right 0.28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--stone);
    line-height: 1;
    padding: 0.25rem;
}
.mobile-nav-close:hover { color: var(--ink); }

.mobile-nav-body { padding: 0.75rem; flex: 1; }

.mobile-nav-body .nav-link {
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
}

.mobile-nav-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* ============================================================
   ADMIN SIDEBAR — always dark
============================================================ */

.admin-sidebar {
    background: #1c1412;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    width: 240px;
    flex-shrink: 0;
}
.admin-sidebar .nav-link         { color: rgba(255,255,255,0.75); font-size: 0.875rem; }
.admin-sidebar .nav-link:hover   { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .nav-link-active  { background: var(--green); color: #fff; }
.admin-sidebar .nav-section      { border-top-color: rgba(255,255,255,0.1); }
.admin-sidebar .nav-section-label { color: rgba(255,255,255,0.3); }

.admin-logo { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; color: #fff; padding: 0.5rem 0.75rem; margin-bottom: 1.5rem; display: block; text-decoration: none; }
.admin-logo span { color: var(--green-light); }


/* ============================================================
   MOBILE GENERAL
============================================================ */

@media (max-width: 768px) {
    .book-listing-row  { flex-direction: column !important; align-items: center !important; text-align: center; }
    .book-detail-header { flex-direction: column !important; align-items: center !important; text-align: center; }
    section { padding-left: 1rem !important; padding-right: 1rem !important; }
    .row-2, .row-3, .row-4 { grid-template-columns: 1fr !important; }

    /* Admin sidebar hidden on mobile for now */
    .admin-sidebar { display: none; }
    main[style*="margin-left: 240px"] { margin-left: 0 !important; }
}