/* ── Dispatch design tokens (Direction A — dark only) ───────────────────────── */
:root {
    --bg:             #14120f;   /* warm near-black */
    --bg-deep:        #0e0c0a;   /* strips / footer */
    --surface:        #1a1712;   /* sidebar blocks / cards */
    --surface-2:      #1d1813;   /* release panel */
    --accent-gold:    #c6a45a;   /* brass gold */
    --accent-red:     #8B2020;
    --text:           #ece5d8;
    --headline:       #f4eee2;
    --body:           #cabfac;   /* long-form body */
    --text-muted:     #a89e8c;
    --faint:          #8a8070;
    --border:         rgba(255,255,255,0.08);
    --border-gold:    rgba(198,164,90,0.30);
    --font-head:      'Oswald', 'Arial Narrow', sans-serif;
    --font-body:      'Spectral', Georgia, serif;
    --font-ui:        'Oswald', 'Arial Narrow', sans-serif;
    --max-width:      1240px;
    --sidebar-w:      340px;
    --gap:            1.5rem;
    --radius:         4px;
    --header-bg:      #0e0c0a;
    --header-bg-blur: rgba(20,18,15,0.92);
    --header-text:    #ece5d8;
    --header-muted:   #9a8f7d;
    --on-gold:        #14120f;
}

/* ── Reset / Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-gold); text-decoration: none; }
a:hover { color: #e0c060; }

img { max-width: 100%; display: block; }

/* ── Header Banner ──────────────────────────────────────────────────────────── */
.site-banner {
    width: 100%;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 1.5rem;
    flex-wrap: wrap;
}
.banner-img { display: block; object-fit: contain; }
.banner-text { display: inline-block; }
.banner-link {
    display: block;
    text-decoration: none;
}
.banner-link:hover { opacity: 0.85; }

/* ── Site Wrapper ───────────────────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    width: 100%;
}

/* ── Header / Nav ───────────────────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: var(--header-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.site-nav { margin-left: auto; }

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--header-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--accent-gold); background: rgba(200,169,74,0.08); }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(232,228,217,0.3);
    border-radius: var(--radius);
    color: var(--header-text);
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
    margin: 0 0.25rem;
}

.theme-toggle:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(200,169,74,0.08);
}

.nav-has-dropdown { position: relative; }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--header-bg);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent-gold);
    border-radius: 0 0 var(--radius) var(--radius);
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 200;
}

.nav-has-dropdown.nav-open .nav-dropdown { display: block; }

.nav-dropdown-link {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--header-muted);
    padding: 0.5rem 1rem;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown-link:hover { color: var(--accent-gold); background: rgba(200,169,74,0.06); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--header-text); border-radius: 2px; }

/* ── Page + Sidebar Layout ──────────────────────────────────────────────────── */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 54px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 40px 80px;
}

/* ── Hero Grid (homepage first load) ───────────────────────────────────────── */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.hero-sub-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--gap);
}

/* ── Post Grid ──────────────────────────────────────────────────────────────── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ── Post Card ──────────────────────────────────────────────────────────────── */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }

.post-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-image { transform: scale(1.03); }

.post-card-no-image {
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.post-card-no-image span {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--border);
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.post-card-category {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(200,169,74,0.1);
    border: 1px solid rgba(200,169,74,0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.post-card-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.post-card-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent-gold); }

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.post-card-read-more {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-top: auto;
}

/* Hero card overrides — make first card larger */
.hero-grid > .post-card .post-card-title { font-size: 1.5rem; }
.hero-grid > .post-card .post-card-excerpt { -webkit-line-clamp: 5; }

/* ── Single Post ─────────────────────────────────────────────────────────────── */
.single-post { max-width: 780px; }

.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }

.post-title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-meta-category {
    color: var(--accent-gold);
    background: rgba(200,169,74,0.1);
    border: 1px solid rgba(200,169,74,0.25);
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-meta-series {
    color: var(--text-muted);
    font-style: italic;
}
.post-meta-series a { color: var(--text-muted); }
.post-meta-series a:hover { color: var(--accent-gold); }

.post-featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.featured-img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
}

.post-content h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

.post-content p { margin-bottom: 1.25rem; }

.post-content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

/* WordPress alignment classes */
.post-content .aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.post-content .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.post-content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.post-content .alignnone,
.post-content img:not([class]) {
    display: block;
    margin: 1.5rem auto;
}

/* Clear floats after content blocks */
.post-content p::after,
.post-content h2::after,
.post-content h3::after {
    content: '';
    display: table;
    clear: both;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    font-style: italic;
    color: var(--text-muted);
}

.post-content a { color: var(--accent-gold); border-bottom: 1px solid rgba(200,169,74,0.3); }
.post-content a:hover { border-bottom-color: var(--accent-gold); }

.post-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.tags-label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-tag {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    transition: color 0.15s, border-color 0.15s;
}
.post-tag:hover { color: var(--accent-gold); border-color: rgba(200,169,74,0.4); }

/* ── Related Posts ───────────────────────────────────────────────────────────── */
.related-posts { margin-top: 3rem; }

.related-title {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ── Archive / Category Header ───────────────────────────────────────────────── */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.archive-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.archive-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
}

.archive-description { margin-top: 0.75rem; color: var(--text-muted); }

/* ── Series Book Grid ────────────────────────────────────────────────────────── */
.series-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap);
}

.series-book-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.series-book-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }

.series-book-link { display: block; text-decoration: none; color: inherit; }

.series-book-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--surface-2);
}

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

.book-number-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: var(--on-gold);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.series-book-info { padding: 0.75rem; }

.series-book-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.series-book-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.widget-header {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
}

.widget-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.widget-progress { padding: 1rem; }

.progress-cover {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 1rem;
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.progress-book-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.progress-bar-track {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 2px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent-gold), #e0c060);
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.progress-pct { color: var(--accent-gold); font-weight: 600; }

.widget-buy-btn {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: var(--on-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.15s;
}
.widget-buy-btn:hover { background: #e0c060; color: var(--on-gold); }

.sidebar-category-list,
.sidebar-archive-list { list-style: none; padding: 0.5rem 0; }

.sidebar-category-link,
.sidebar-archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 1rem;
    transition: color 0.15s, background 0.15s;
}
.sidebar-category-link:hover,
.sidebar-archive-link:hover { color: var(--accent-gold); background: rgba(200,169,74,0.05); }

.sidebar-category-count {
    font-size: 0.72rem;
    color: var(--border);
    background: var(--surface-2);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

/* ── Search ──────────────────────────────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.65rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent-gold); }
.search-input::placeholder { color: var(--text-muted); }

.search-btn,
.btn-primary {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: var(--on-gold);
    border: none;
    border-radius: var(--radius);
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}
.search-btn:hover, .btn-primary:hover { background: #e0c060; }

.search-results-count {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ── Pager ───────────────────────────────────────────────────────────────────── */
.pager {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.pager-btn {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pager-btn:hover:not(:disabled) { color: var(--accent-gold); border-color: rgba(200,169,74,0.4); }
.pager-btn.active { background: var(--accent-gold); color: var(--on-gold); border-color: var(--accent-gold); }
.pager-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--header-bg);
    border-top: 2px solid var(--border);
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent-gold); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

.footer-social { display: flex; gap: 1rem; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--accent-gold); border-color: rgba(200,169,74,0.5); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Error / 404 ─────────────────────────────────────────────────────────────── */
.error-page {
    max-width: 500px;
    margin: 5rem auto;
    text-align: center;
    padding: 2rem;
}
.error-code {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-title { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1rem; }
.error-message { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.loading-pulse {
    text-align: center;
    font-family: var(--font-ui);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    padding: 3rem;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.empty-state { color: var(--text-muted); font-style: italic; padding: 2rem 0; }

#blazor-error-ui {
    background: var(--accent-red);
    color: var(--text);
    padding: 0.75rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}
#blazor-error-ui .reload { color: var(--accent-gold); }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .page-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-sub-grid { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .header-inner { height: 56px; }
    .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--header-bg); border-bottom: 1px solid var(--border); padding: 1rem 0; }
    .site-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; padding: 0 var(--gap); }
    .nav-has-dropdown.nav-open .nav-dropdown { position: static; border: none; box-shadow: none; padding-left: 1rem; }
    .nav-toggle { display: flex; }
    .post-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .hero-sub-grid { grid-template-columns: 1fr; }
    .series-book-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Comments ───────────────────────────────────────────────────────────────── */
.comment-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}
.comment-section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.comment-item { display: flex; gap: 1rem; }
.comment-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #111;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-ui);
    font-weight: 700; font-size: 1rem;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .4rem; }
.comment-author { font-family: var(--font-ui); font-size: .95rem; color: var(--text); }
.comment-date { font-size: .8rem; color: var(--text-muted); }
.comment-content { font-size: .95rem; line-height: 1.65; color: var(--text); white-space: pre-wrap; }

.comment-form { max-width: 640px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comment-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.comment-label { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.comment-label .req { color: var(--accent-gold); }
.comment-hint { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.comment-input, .comment-textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
    padding: .55rem .75rem;
    transition: border-color .15s;
    width: 100%;
}
.comment-input:focus, .comment-textarea:focus {
    outline: none; border-color: var(--accent-gold);
}
.comment-textarea { resize: vertical; min-height: 110px; }
.comment-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.comment-btn-primary {
    background: var(--accent-gold); color: #111;
    border: none; border-radius: var(--radius);
    font-family: var(--font-ui); font-weight: 700; font-size: .9rem;
    padding: .55rem 1.25rem; cursor: pointer; transition: opacity .15s;
}
.comment-btn-primary:hover { opacity: .85; }
.comment-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.comment-btn-secondary {
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); border-radius: var(--radius);
    font-family: var(--font-ui); font-size: .9rem;
    padding: .5rem 1rem; cursor: pointer; transition: border-color .15s;
}
.comment-btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.comment-success {
    background: rgba(42,122,64,.15); border: 1px solid #2a7a40;
    border-radius: var(--radius); padding: 1rem 1.25rem;
    color: #6dcf8a; margin-bottom: 1rem; font-size: .95rem;
}
.comment-error {
    background: rgba(139,32,32,.15); border: 1px solid #8B2020;
    border-radius: var(--radius); padding: .75rem 1rem;
    color: #e57777; margin-bottom: .75rem; font-size: .9rem;
}
@media (max-width: 600px) {
    .comment-form-row { grid-template-columns: 1fr; }
}

/* ── MudBlazor integration helpers ──────────────────────────────────────────── */
/* Header strip for sidebar MudPaper widgets (keeps the gold uppercase label) */
.widget-header-mud {
    background: var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-divider);
    padding: 0.6rem 1rem;
}
.nav-btn {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
/* Keep the 3-line excerpt clamp when reused inside a MudCard */
.post-card-mud .post-card-excerpt { margin-bottom: 0.75rem; }

/* Align the app-bar content with the centered .site-main container */
.rd-appbar .mud-toolbar { padding-left: 0; padding-right: 0; }
.header-inner-mud {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
}

/* Quill WYSIWYG — themed to the admin palette (Quill is admin-only; data-theme aware).
   Quill inserts the toolbar as a SIBLING of the container and loads quill.snow.css after
   app.css, so these use direct .ql-* selectors with !important to win the cascade. */
.ql-toolbar.ql-snow {
    background: var(--surface-2) !important;
    border-color: var(--border) !important;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.ql-container.ql-snow {
    background: var(--surface);
    border-color: var(--border) !important;
    color: var(--text);
    min-height: 320px;
    font-family: var(--font-body);
    font-size: 1rem;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}
.ql-snow .ql-editor { min-height: 320px; color: var(--text); }
.ql-snow .ql-editor.ql-blank::before { color: var(--text-muted) !important; font-style: italic; }

/* Toolbar icons / labels */
.ql-snow .ql-stroke { stroke: var(--text) !important; }
.ql-snow .ql-fill { fill: var(--text) !important; }
.ql-snow .ql-picker { color: var(--text) !important; }
.ql-snow .ql-picker-options {
    background: var(--surface-2) !important;
    border-color: var(--border) !important;
    color: var(--text);
}

/* Hover + active = gold accent */
.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke { stroke: var(--accent-gold) !important; }
.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill { fill: var(--accent-gold) !important; }
.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active,
.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active,
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected { color: var(--accent-gold) !important; }

/* Link editor tooltip */
.ql-snow .ql-tooltip {
    background: var(--surface-2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
}
.ql-snow .ql-tooltip input[type=text] {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

/* ════════════════════════════════════════════════════════════════════════════
   DISPATCH redesign (Direction A) — header, hero, feed, books, about, footer
   ════════════════════════════════════════════════════════════════════════════ */

/* Tagline strip */
.tagline-strip {
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    padding: 9px 16px;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--header-muted);
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--header-bg-blur);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198,164,90,0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
}
.rd-wordmark { text-decoration: none; flex-shrink: 0; }
.rd-wordmark-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1;
}
.rd-wordmark-sub {
    display: block;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-top: 3px;
}
.rd-nav { display: flex; align-items: center; gap: 30px; }
.rd-nav-link {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--body);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}
.rd-nav-link:hover { color: var(--accent-gold); }
.rd-nav-link.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.rd-nav-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.14); }
.rd-nav-muted {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--header-muted);
    text-decoration: none;
    cursor: pointer;
}
.rd-nav-muted:hover { color: var(--accent-gold); }
.rd-signin {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 16px;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
}
.rd-signin:hover { background: var(--accent-gold); color: var(--on-gold); }
.rd-nav-mobile { display: none; }

/* Shared page shell for non-hero pages */
.rd-shell { max-width: var(--max-width); margin: 0 auto; padding: 64px 40px 90px; }

/* Kicker / overline with rule */
.rd-kicker {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rd-kicker .rule { width: 30px; height: 1px; background: var(--accent-gold); }

/* Display heading */
.rd-h1 { font-family: var(--font-head); font-weight: 600; line-height: 1; letter-spacing: -0.005em; color: var(--headline); margin: 0 0 18px; }
.rd-lead { font-family: var(--font-body); font-size: 19px; line-height: 1.6; color: var(--text-muted); font-weight: 300; max-width: 34em; margin: 0 0 0; }

/* Buttons */
.rd-btn {
    display: inline-block;
    font-family: var(--font-head);
    background: var(--accent-gold);
    color: var(--on-gold);
    border: none;
    padding: 15px 30px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.rd-btn:hover { background: #d8b76a; color: var(--on-gold); }
.rd-btn-ghost {
    display: inline-block;
    font-family: var(--font-head);
    background: none;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 13px 24px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.rd-btn-ghost:hover { background: var(--accent-gold); color: var(--on-gold); }

/* HERO */
.rd-hero { position: relative; border-bottom: 1px solid rgba(255,255,255,0.07); }
.rd-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 560px; }
.rd-hero-copy { padding: 78px 64px 64px; display: flex; flex-direction: column; justify-content: center; }
.rd-hero-copy h1 { font-size: 62px; }
.rd-hero-lead { font-size: 19px; line-height: 1.62; color: #bdb2a0; max-width: 30em; margin: 0 0 34px; font-weight: 300; }
.rd-hero-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rd-hero-cta-meta { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.rd-hero-media {
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.07);
    background: repeating-linear-gradient(135deg,#1b1813 0 14px,#1f1b15 14px 28px);
    overflow: hidden;
}
.rd-hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rd-hero-media .scrim { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(20,18,15,0.9),transparent 28%); }
.rd-photo-caption {
    position: absolute; left: 24px; bottom: 24px;
    font-family: var(--font-head); font-size: 11px; letter-spacing: 0.14em;
    color: #7a7060; text-transform: uppercase; z-index: 1;
}

/* Body grid */
.rd-body-grid { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: 54px; max-width: var(--max-width); margin: 0 auto; padding: 60px 40px 80px; align-items: start; }

/* Feed heading */
.rd-feed-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border-gold); padding-bottom: 14px; margin-bottom: 34px; }
.rd-feed-head h2 { font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-gold); margin: 0; }
.rd-feed-head a { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); cursor: pointer; text-decoration: none; }
.rd-feed-head a:hover { color: var(--accent-gold); }

/* Dispatch row */
.rd-dispatch { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.07); cursor: pointer; text-decoration: none; }
.rd-dispatch:hover .rd-dispatch-title { color: var(--accent-gold); }
.rd-dispatch-thumb { position: relative; height: 138px; border-radius: 3px; overflow: hidden; background: repeating-linear-gradient(135deg,#1c1813 0 12px,#211c16 12px 24px); }
.rd-dispatch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rd-dispatch-tags { display: flex; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.rd-tag { font-family: var(--font-head); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-gold); border: 1px solid rgba(198,164,90,0.4); padding: 4px 10px; border-radius: 20px; }
.rd-dispatch-title { font-family: var(--font-head); font-weight: 500; font-size: 25px; line-height: 1.08; margin: 0 0 9px; color: var(--headline); transition: color 0.2s; }
.rd-dispatch-excerpt { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 12px; font-weight: 300; }
.rd-dispatch-meta { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* Typographic book cover */
.rd-cover { aspect-ratio: 2/3; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.rd-cover-title { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 0.9; letter-spacing: 0.02em; color: #fff; white-space: pre-line; }
.rd-cover-sub { font-family: var(--font-head); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #e9d9b0; margin-bottom: 5px; }
.rd-cover-author { font-family: var(--font-head); font-size: 10px; letter-spacing: 0.22em; color: rgba(255,255,255,0.7); }

/* Series (Books) rows */
.rd-series-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid rgba(255,255,255,0.09); }
.rd-series-name { font-family: var(--font-head); font-weight: 600; font-size: 34px; margin: 0; color: var(--headline); letter-spacing: 0.01em; }
.rd-series-meta { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-gold); }
.rd-series-blurb { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 34em; margin: 0; font-weight: 300; }

/* Stats band + newsletter (About) */
.rd-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); padding: 34px 0; margin-bottom: 38px; }
.rd-stat-num { font-family: var(--font-head); font-weight: 600; font-size: 42px; color: var(--accent-gold); line-height: 1; }
.rd-stat-label { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.rd-newsletter { background: var(--surface); border: 1px solid var(--border-gold); border-radius: 4px; padding: 34px; text-align: center; }
.rd-newsletter-label { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 12px; }
.rd-newsletter-copy { font-family: var(--font-body); font-size: 22px; color: var(--headline); margin-bottom: 6px; font-weight: 500; }
.rd-newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 22px auto 0; }
.rd-newsletter-form input { flex: 1; background: var(--bg); border: 1px solid rgba(255,255,255,0.16); color: var(--text); padding: 14px 16px; border-radius: 2px; font-family: var(--font-body); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); background: var(--bg-deep); padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-caption { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #6f6557; }
.footer-social { display: flex; gap: 1rem; justify-content: center; }

/* Article reading view (post-content) — Dispatch */
.post-content { color: var(--body); font-size: 19px; line-height: 1.78; font-weight: 300; }
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-head); font-weight: 600; font-size: 46px;
    float: left; line-height: 0.8; margin: 6px 14px 0 0; color: var(--accent-gold);
}
.post-content blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 38px 0; padding: 6px 0 6px 28px;
    font-family: var(--font-body); font-style: italic; font-size: 26px; line-height: 1.4;
    color: var(--headline); font-weight: 400; background: none;
}
.post-content h2 { font-family: var(--font-head); color: var(--accent-gold); }
.post-content h3 { font-family: var(--font-head); color: var(--headline); }

/* Responsive — collapse two-column grids below ~900px */
@media (max-width: 900px) {
    .rd-hero-grid { grid-template-columns: 1fr; }
    .rd-hero-media { min-height: 320px; border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
    .rd-hero-copy { padding: 48px 28px; }
    .rd-hero-copy h1 { font-size: 44px; }
    .rd-body-grid { grid-template-columns: 1fr; }
    .rd-series-row { grid-template-columns: 96px 1fr; }
    .rd-series-row .rd-btn-ghost { grid-column: 1 / -1; justify-self: start; }
    .page-with-sidebar { grid-template-columns: 1fr; padding: 40px 24px 60px; }
}
@media (max-width: 768px) {
    .rd-nav-desktop { display: none; }
    .rd-nav-mobile { display: block; }
    .site-header { padding: 14px 24px; }
    .rd-dispatch { grid-template-columns: 1fr; }
    .rd-dispatch-thumb { height: 180px; }
    .rd-stats { grid-template-columns: 1fr; gap: 18px; text-align: center; }
}

/* About page */
.rd-about-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rd-about-hero-copy { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.rd-about-hero-media { border-left: 1px solid rgba(255,255,255,0.08); min-height: 280px; }
.rd-about-body { max-width: 760px; margin: 0 auto; padding: 66px 28px 90px; font-family: var(--font-body); font-size: 19px; line-height: 1.78; color: var(--body); font-weight: 300; }
@media (max-width: 900px) {
    .rd-about-hero { grid-template-columns: 1fr; }
    .rd-about-hero-copy { padding: 48px 28px; }
    .rd-about-hero-copy h1 { font-size: 44px; }
    .rd-about-hero-media { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* Article (Post) — Dispatch */
.rd-article-head { max-width: 740px; margin: 0 auto; padding: 62px 28px 0; }
.rd-back { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); text-decoration: none; display: inline-block; margin-bottom: 30px; }
.rd-back:hover { color: var(--accent-gold); }
.rd-article-kicker { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 18px; }
.rd-article-h1 { font-family: var(--font-head); font-weight: 600; font-size: 50px; line-height: 1.02; margin: 0 0 22px; color: var(--headline); }
.rd-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rd-byline .author { color: var(--accent-gold); }
.rd-article-hero { position: relative; height: 420px; max-width: 1000px; margin: 0 auto 12px; background: repeating-linear-gradient(135deg,#1b1813 0 16px,#1f1b15 16px 32px); overflow: hidden; }
.rd-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.rd-article-body { max-width: 680px; margin: 0 auto; padding: 34px 28px 0; }
.rd-article-foot { max-width: 680px; margin: 0 auto; padding: 0 28px 90px; }
@media (max-width: 768px) {
    .rd-article-h1 { font-size: 34px; }
    .rd-article-hero { height: 260px; }
}

/* Book series / store (Books page) */
.rd-bookseries { margin-bottom: 56px; }
.rd-bookseries + .rd-bookseries { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 44px; }
.rd-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin-top: 26px; }
.rd-book-card { display: flex; flex-direction: column; }
.rd-book-cover {
    aspect-ratio: 2/3; border-radius: 4px; overflow: hidden;
    background: var(--surface-2); box-shadow: 0 18px 40px rgba(0,0,0,0.5); margin-bottom: 16px;
}
.rd-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.rd-book-cover-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 16px;
    background: linear-gradient(160deg,#2a2620,#14120f);
    font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1; color: #fff;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.rd-book-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--headline); margin: 0 0 2px; line-height: 1.15; }
.rd-book-sub { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 8px; }
.rd-book-desc {
    font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--text-muted);
    margin: 0 0 14px; font-weight: 300;
    display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rd-book-formats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rd-format {
    font-family: var(--font-head); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-gold); border: 1px solid rgba(198,164,90,0.4); border-radius: 20px; padding: 3px 9px;
}
.rd-book-card .rd-btn { margin-top: auto; align-self: flex-start; padding: 11px 22px; font-size: 12px; }

/* ── Article reading width + figures + captions ─────────────────────────────── */
/* One unified, wider column: text and images share the same width and left edge. */
.rd-article-head { max-width: 880px; }
.rd-article-body { max-width: 880px; }

.post-content img { max-width: 100%; height: auto; }
.post-content figure { margin: 30px 0; }
.post-content > figure.size-full,
.post-content > figure.aligncenter,
.post-content > .wp-block-image:not(.alignleft):not(.alignright) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.post-content > figure.size-full img,
.post-content > .wp-block-image img { width: 100%; display: block; }

/* Image captions — distinct from body copy (small condensed, muted, centered) */
.post-content figcaption,
.post-content .wp-element-caption,
.post-content .wp-caption-text {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--faint);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    margin-top: 9px;
}

@media (max-width: 768px) {
    .post-content .alignleft, .post-content .alignright { float: none; margin: 1rem auto; }
}

/* Top-of-viewport route-transition loading bar */
.nav-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    height: 3px;
}
