
/* ============================================================
   FONT IMPORTS — Cardo (Scripture)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');


/* ============================================================
   COLOR SYSTEM (Warm Minimal)
   ============================================================ */

:root {
    --primary: #222;
    --primary-text: #222;

    /* Warm neutrals */
    --warm-bg: #faf7f3;
    --warm-card: #fffefa;
    --warm-border: #e8e2da;

    /* Accent colors (fun, sparing usage) */
    --accent-1: #c973ff;
    --accent-2: #ff6f61;
    --accent-3: #ffd43b;

    /* Text neutrals */
    --text-dark: #222;
    --text-medium: #555;
    --text-light: #777;

    /* Shadow */
    --shadow: rgba(0,0,0,0.08);

    /* Radius */
    --radius-lg: 22px;     /* exaggerated rounded corners */
    --radius-pill: 999px;  /* pill shape */
}

/* ============================================================
   BASE ELEMENTS
   ============================================================ */

body.site-body {
    margin: 0;
    padding: 0;
    font-family: "Source Serif 4", serif;
    background: var(--warm-bg);
    color: var(--text-dark);
}

.site-main {
    padding-top: 40px;
    padding-bottom: 60px;
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: "Cardo", serif;
    color: var(--primary-text);
    margin-top: 0;
}

p {
    line-height: 1.55;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ============================================================
   TYPOGRAPHIC SCALE — Editorial Serif Ramp
   ============================================================ */

/* Fluid clamp values for responsive elegance */

h1 {
    font-family: "Cardo", serif;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 0.5em;
}

h2 {
    font-family: "Cardo", serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.45em;
}

h3 {
    font-family: "Cardo", serif;
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0.4em;
}

h4 {
    font-family: "Cardo", serif;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.35em;
}

/* Optional: Section heading variant */
.heading-section {
    font-family: "Cardo", serif;
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: 0.75em;
    letter-spacing: 0.3px;
}

.display-xxl {
    font-family: "Cardo", serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5em;
}



/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: white;
    border-bottom: 1px solid var(--warm-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: "Cardo", serif;
    font-size: 1.1rem;
    color: var(--primary);
}

.site-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
}

/* HEADER SEARCH */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.header-search-input {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--warm-border);
    font-family: "Source Serif 4", serif;
    background: #fff;
}

.header-search-button {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: white;
    color: white;
    cursor: pointer;
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */

.story-grid,
.related-grid,
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

/* ============================================================
   STORY CARDS
   ============================================================ */

.story-card,
.related-card,
.category-card {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px var(--shadow);
    padding: 20px;
    display: block;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.story-card:hover,
.related-card:hover,
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px var(--shadow);
}

.story-card-inner,
.related-card-inner,
.category-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-category {
    font-size: 0.9rem;
    color: var(--accent-1);
    font-weight: 500;
    text-transform: capitalize;
}

.story-excerpt,
.related-excerpt, .category-card-description {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--primary-text)
}

.story-meta {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    justify-content: space-between;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */

.category-card-name {
    font-size: 1.2rem;
    font-weight: 500;
}

.category-card-count {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================================
   SUBMIT FORM
   ============================================================ */

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
}

.form-textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--warm-border);
    font-family: "Source Serif 4", serif;
}

.form-input,
.form-select {
    padding: 10px 12px;
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    background: white;
    font-family: "Source Serif 4", serif;
}

.form-button {
    padding: 12px 22px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 1rem;
}

/* Honeypot */
.hp-field {
    display: none;
}


/* ============================================================
   SUBMIT PAGE — CORE LAYOUT
============================================================ */

.submit-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.submit-title {
    font-size: 2rem;
    margin-bottom: 24px;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */

.submit-form {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin: 18px 0 6px;
}

.form-textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px 16px;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* ============================================================
   CHARACTER COUNTER
============================================================ */

.char-helper {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #777;
}

.char-hint {
    margin-left: 6px;
    color: #999;
}

/* ============================================================
   ERROR STATES
============================================================ */

.form-errors {
    background: #fff4f4;
    border: 1px solid #e3bcbc;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.error-item {
    color: #b80000;
    font-size: 0.95rem;
}

.form-error {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #b80000;
}

/* Optional: highlight textarea when invalid */
.form-textarea.error {
    border-color: #b80000;
    background: #fffafa;
}

/* ============================================================
   CATEGORY PILLS (SINGLE SELECT)
============================================================ */

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.category-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.category-pill:hover {
    background: #f4f4f4;
}

.category-pill.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ============================================================
   SUBMIT BUTTON
============================================================ */

.form-button {
    margin-top: 26px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.form-button:hover {
    background: #000;
}

/* ============================================================
   HONEYPOT (HIDDEN)
============================================================ */

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* ============================================================
   MOBILE TWEAKS
============================================================ */

@media (max-width: 600px) {
    .submit-title {
        font-size: 1.6rem;
    }

    .form-textarea {
        min-height: 150px;
    }
}


.prayer-prompts {
    margin: 18px 0 22px;
}

.prayer-prompts-label {
    font-size: 1rem;
    color: #222;
    margin-bottom: 22px;
    font-weight: 600;
}

.prayer-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-chip {
     padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.prompt-chip:hover {
    background: #f4f4f4;
}


.prompt-chip:active {
    transform: scale(0.97);
}

.prayer-prompts-actions {
    margin-top: 10px;
    text-align: left;
}

.clear-prayer-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color:var(--accent-1);
    cursor: pointer;
    text-decoration: underline;
}

.clear-prayer-btn:hover {
    color: #333;
}

.char-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.char-helper {
    font-size: 0.85rem;
    color: #777;
}

.prayer-prompts-actions {
    margin: 0; /* override earlier margin */
}





/* ============================================================
   SUCCESS BANNER (Submit Redirect)
   ============================================================ */

.story-success {
    background: var(--accent-3);
    color: var(--primary-text);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.35s ease-out;
}

.story-success-share {
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.6s linear;
}

/* Container */
.story-react-wrap {
    margin: 20px 0;
}

/* Instruction */
.reaction-instruction h4 {
    font-size: 1.2rem;
    color: #222;
    text-align: left;
    margin-bottom: 12px;
}

.reaction-summary {
    margin-top:12px;
}

/* Button row */
.reaction-buttons {
    margin: 12px 0;
}

/* Buttons (keep your pill style) */
.react-button {
    font-size: 1rem;
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-pill);
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.react-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

/* SELECTED reaction */
.react-button.selected {
    background: var(--accent-3);
    transform: scale(1.15);
    box-shadow: 0 6px 14px var(--shadow);
}

/* Disabled but still visible */
.react-button:disabled {
    cursor: default;
    transform: none;
    box-shadow: none;
}


/* Count */
.react-count {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: .65;
}



/* NEW Inline Reaction System for Cards */

.story-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.story-reaction-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.react-button-inline {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.1s ease;
}

.react-button-inline:hover {
    transform: scale(1.15);
}

.react-count-inline {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.react-button-inline.reacted {
    opacity: 0.6;
}

/* Make card layout support pinned footer */
.story-card,
.related-card,
.category-card {
    display: flex;
    flex-direction: column;
}

.story-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* FOOTER pinned to bottom */
.story-card-footer {
    margin-top: auto; /* MAGIC: pushes footer to bottom */
    padding-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* LEFT SIDE: stacked */
.story-card-meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* RIGHT SIDE: reactions row */
.story-card-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Reaction button small version */
.react-button-small {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.react-button-small.reacted {
    transform: scale(1.15);
}

.react-button-small.shake {
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

.story-meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Eyebrow label above the story */
.story-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
    opacity: 0.85;
}

/* Category label spacing */
.story-category {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--accent-1);
    font-weight: 500;
}

/* Meta block (author/date stacked) */
.story-meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 26px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.35;
}

.story-header {
    border-bottom: 1px solid var(--warm-border);
    margin-bottom: 24px;
}

.story-body {
    color: var(--text-medium);
    font-size: 1.2rem;
    line-height: 1.75;
}

/* ============================================================
   STORY SUCCESS BANNER — STICKY + DISMISSIBLE
============================================================ */

.story-success {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff7d6;
    border: 1px solid #e6d38c;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.story-success-note {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #555;
}

.success-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

.success-close:hover {
    opacity: 1;
}


/* ============================================================
   STORY PAGE TWO-COLUMN LAYOUT (Ad-Friendly)
   ============================================================ */

.story-content-layout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Left Column */
.story-content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Right Column (Ad Sidebar) */
.story-sidebar {
    position: relative;
    align-self: start;
}

/* Sticky ad block */
.story-sidebar .story-ad-block {
    position: sticky;
    top: 100px;
}

/* Ad block styling */
.story-ad-block {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 3px 10px var(--shadow);
    text-align: center;
}

/* Ensure ads scale properly */
.story-ad-block img,
.story-ad-block iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile Layout */
@media (max-width: 800px) {
    .story-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-sidebar .story-ad-block {
        position: static;
    }
}

/* ============================================================
   STORY SHARE SECTION
   ============================================================ */

.story-share {
    border-top: 1px solid var(--warm-border);
    border-bottom: 1px solid var(--warm-border);
    padding: 30px 0;
    margin: 40px 0;
}

.share-heading {
    font-family: "Cardo", serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Base share button style using your button system */
.share-btn {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: "Source Serif 4", serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.15s ease;
}

/* Variants (already have these but repeating for clarity) */
.btn-solid {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.copy-btn.copied {
    background: var(--accent-3);
    color: var(--primary-text);
}


/* Featured grid layout */
.featured-title {
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.featured-card {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 10px var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.12s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px var(--shadow);
}

/* CTA */
.view-all-wrapper {
    text-align: center;
    margin: 40px 0 60px;
}

.view-all-btn {
    font-size: 1.1rem;
    padding: 12px 28px;
}

/* Featured card footer matches standard card footer */
.featured-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
}

.featured-card .story-meta-col {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.featured-card .story-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--primary);
}

.home-subhead {
    margin: 8px 0 26px;
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--text-medium);
    max-width: 640px;
}

/* ============================================================
   PAGINATION
============================================================ */

.pagination-wrapper {
    margin: 40px auto 20px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Shared link + number styles */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 6px;
    text-decoration: none;
    user-select: none;
}

/* Page numbers */
.pagination .page-number {
    background: #f4f4f4;
    color: #333;
    transition: background 0.15s ease, color 0.15s ease;
}

.pagination .page-number:hover {
    background: #e6e6e6;
}

/* Current page */
.pagination .current-page {
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

/* Prev / Next links */
.pagination .page-link {
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
    font-weight: 500;
    padding: 0 14px;
}

.pagination .page-link:hover {
    background: #f5f5f5;
}

/* Ellipsis */
.pagination .page-ellipsis {
    padding: 0 6px;
    font-size: 1rem;
    color: #999;
    cursor: default;
}

/* Disabled states (if ever added later) */
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   MOBILE TWEAKS
============================================================ */

@media (max-width: 480px) {
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .pagination .page-link {
        padding: 0 10px;
    }
}


/* ============================================================
   AD BLOCKS
   ============================================================ */

.story-grid-ad,
.category-grid-ad {
    grid-column: 1 / -1;
    margin: 20px 0;
    text-align: unset; /* remove inherited centering */
}


.story-ad-block {
    margin: 0px 0px 20px 0;
    text-align: center;
}


.ad-card .story-card-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* keeps the card uniform height */
}

.story-pullquote {
    background: var(--warm-card);
    border-left: 4px solid var(--accent-1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 10px var(--shadow);
    font-family: "Source Serif 4", serif;
}

.story-pullquote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
    color: var(--primary);
}

.pullquote-mark {
    font-family: "Cardo", serif;
    font-size: 2.6rem;
    line-height: 0.8;
    opacity: 0.25;
    display: block;
    margin-bottom: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 600px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .story-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   COMPONENT LIBRARY — Figma-like Primitives
   ============================================================ */


/* ------------------------------------------------------------
   SPACING TOKENS (margin/padding utilities)
   ------------------------------------------------------------ */

:root {
    --space-2: 4px;
    --space-3: 6px;
    --space-4: 8px;
    --space-5: 12px;
    --space-6: 16px;
    --space-7: 20px;
    --space-8: 24px;
    --space-10: 32px;
    --space-12: 40px;
    --space-16: 64px;
}

/* Padding utility */
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Margin utility */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }


/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

/* Core container */
.container {
    
    max-width: 1100px;
    margin: 0 auto;
}

/* Stack: vertical spacing between children */
.stack > * + * {
    margin-top: var(--space-6);
}

/* Cluster: horizontally spaced items */
.cluster {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Grid presets */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

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

@media (max-width: 700px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   TYPOGRAPHIC UTILITIES
   ============================================================ */

.text-small {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text-light);
}

.text-medium {
    color: var(--text-medium);
}

.text-lead {
    font-size: 1.25rem;
    line-height: 1.55;
    font-weight: 300;
    font-family: "Source Serif 4", serif;
}

/* Capitlized headings for structured content */
.heading-section {
    font-family: "Cardo", serif;
    font-size: 1.4rem;
    margin-bottom: var(--space-6);
}


/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: "Source Serif 4", serif;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.15s ease;
}

/* Solid */
.btn-solid {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-solid:hover {
    opacity: 0.85;
}

/* Outline */
.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Subtle */
.btn-subtle {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    color: var(--text-dark);
}

.btn-subtle:hover {
    background: white;
    border-color: var(--primary);
}


/* ============================================================
   SURFACES + CARDS
   ============================================================ */

.surface {
    background: white;
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 10px var(--shadow);
    padding: var(--space-8);
}

.card {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px var(--shadow);
    padding: var(--space-8);
    transition: 0.12s ease;
}

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

/* Panels (good for admin or options) */
.panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--warm-border);
    padding: var(--space-6);
}

/* Compact card for UI metadata */
.card-compact {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}


/* ============================================================
   TAGS / BADGES / CATEGORY CHIPS
   ============================================================ */

.tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--warm-border);
    color: var(--primary);
}

.tag-accent {
    background: var(--accent-1);
    color: white;
}

/* Category badge on story cards */
.category-chip {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 0;
    border-radius: var(--radius-pill);
    background: white;
    color: var(--accent-1);
    display: inline-block;
}


/* ============================================================
   INTERACTIONS + ANIMATIONS
   ============================================================ */

.hover-lift {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px var(--shadow);
}

.fade-in {
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Applies to success messages */
.fade-out {
    opacity: 0;
    transition: opacity 0.6s linear;
}


/* ============================================================
   AD BLOCK STYLES (Reusable Surface)
   ============================================================ */

.ad-block {
    grid-column: 1 / -1;
    background: #fffdfa;
    border: 1px solid var(--warm-border);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 2px 6px var(--shadow);
}

/* FORCE reaction area to never dim */
.story-react-wrap,
.reaction-buttons {
    opacity: 1 !important;
}

/* ===============================
   FIX disabled button styling
   for prayer reactions
   =============================== */

/* Reset any global disabled button styles */
.story-react-wrap .react-button:disabled {
    opacity: 1 !important;
    color: inherit !important;
    background: var(--warm-card);
    border-color: var(--warm-border);
}

/* Selected reaction must ALWAYS look active */
.story-react-wrap .react-button.selected:disabled {
    opacity: 1 !important;
    color: inherit !important;
    background: var(--accent-3);
    box-shadow: 0 6px 14px var(--shadow);
}


/* ============================================================
   MANUSCRIPT / SCRIPTURE THEME OVERRIDES
   ============================================================ */

/* ------------------------------------------------------------
   COLOR SYSTEM — Parchment & Ink
   ------------------------------------------------------------ */

:root {
    /* Ink tones */
    --primary: #1f1b17;
    --primary-text: #1f1b17;

    /* Parchment surfaces */
    --warm-bg: #f2eee6;        /* aged parchment */
    --warm-card: #fbf9f4;      /* lighter vellum */
    --warm-border: #d8d2c6;    /* page rule */

    /* Ecclesiastical accents */
    --accent-1: #6f2f3a;       /* muted wine / plum */
    --accent-2: #8b5a2b;       /* aged bronze */
    --accent-3: #e3c76a;       /* candlelight gold */

    /* Text hierarchy */
    --text-dark: #1f1b17;
    --text-medium: #4a453f;
    --text-light: #6e685f;

    /* Shadows — subdued */
    --shadow: rgba(0,0,0,0.05);

    /* Radius — restrained */
    --radius-lg: 8px;
    --radius-pill: 999px;
}


/* ------------------------------------------------------------
   BASE TYPOGRAPHY
   ------------------------------------------------------------ */

body.site-body {
    font-family: "Cardo", serif;
    background: var(--warm-bg);
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: 1.1em;
}


/* ------------------------------------------------------------
   HEADINGS — Manuscript Style
   ------------------------------------------------------------ */

h1, h2, h3, h4,
.site-logo,
.heading-section,
.share-heading {
    font-family: "Cardo", serif;
    font-weight: 700;
    letter-spacing: 0.02em;

}

h1 {
    font-size: 3rem;
    line-height: 1.15;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.7rem;
}

h4 {
    font-size: 1.3rem;
}


/* ------------------------------------------------------------
   LINKS — Ink on Parchment
   ------------------------------------------------------------ */

a {
    color: var(--accent-1);
}

a:hover {
    opacity: 0.75;
}


/* ------------------------------------------------------------
   CARDS → PAGE SURFACES
   ------------------------------------------------------------ */

.story-card,
.related-card,
.category-card,
.surface,
.card,
.featured-card,
.story-ad-block {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    box-shadow: 0 2px 6px var(--shadow);
    border-radius: 8px;
}

.story-card:hover,
.related-card:hover,
.category-card:hover,
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}


/* ------------------------------------------------------------
   STORY BODY — Reading Rhythm
   ------------------------------------------------------------ */

.story-body {
    font-family: "Cardo", serif;
    font-size: 1.25rem;
    line-height: 1.85;
    color: var(--text-medium);
}

.story-body p {
    margin-bottom: 1.4em;
}


/* ------------------------------------------------------------
   STORY META — Quiet, Reverent
   ------------------------------------------------------------ */

.story-meta,
.story-meta-block,
.story-card-meta-left,
.featured-card .story-meta-col {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.2;
}


/* ------------------------------------------------------------
   CATEGORY LABELS — Rubrication
   ------------------------------------------------------------ */

.story-category,
.category-chip {
    color: var(--accent-1);
    font-weight: 500;
}


/* ------------------------------------------------------------
   PULL QUOTES → SCRIPTURE CALLOUTS
   ------------------------------------------------------------ */

.story-pullquote {
    background: transparent;
    border: none;
    border-left: 3px solid var(--accent-1);
    padding: 4px 22px 16px 22px;
    margin: 0px 0px 36px 0;
    box-shadow: none;
    border-radius: 0;
}

.story-pullquote p {
    font-family: "Cardo", serif;
    font-style: italic;
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--primary-text);
}

.pullquote-mark {
    font-family: "Cardo", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 3.3rem;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   BUTTONS — Restrained & Timeless
   ------------------------------------------------------------ */

.btn,
.form-button,
.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: "Cardo", serif;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.15s ease;
    margin: 24px 0;
}

.btn-solid,
.form-button {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

/* SOLID BUTTON HOVER */
.btn-solid:hover,
.form-button:hover {
    background: color-mix(in srgb, var(--primary) 92%, #000);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}



/* ACTIVE (CLICK) STATE */
.btn:active,
.form-button:active,
.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}




/* ------------------------------------------------------------
   HEADER — Quiet Authority
   ------------------------------------------------------------ */

.site-header {
    background: var(--warm-card);
    border-bottom: 1px solid var(--warm-border);
}

/* ===================================================
   SITE LOGO LOCKUP
   =================================================== */

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

.site-logo-title {
  font-family: "Cardo", serif; 
  font-size: 1.25rem;
  color: var(--primary);
}

.site-logo-caption {
  font-family: "Cardo", serif; 
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .site-logo-caption {
    font-size: 0.65rem;
    opacity: 0.55;
  }
}




/* ------------------------------------------------------------
   PAGINATION — Manuscript Controls
   ------------------------------------------------------------ */

.pagination .current-page {
    background: var(--primary);
    color: #fff;
}

.pagination .page-number {
    
    border: 1px solid var(--warm-border);
}


/* ------------------------------------------------------------
   FOOTER — Subdued Closure
   ------------------------------------------------------------ */

.site-footer {
    color: var(--text-light);
    font-family: "Cardo", serif;
    background-color: var(--warm-card) ;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent-1);
    text-decoration: underline;
}

/* =====================================
   INLINE STORY SHARE (META ROW)
===================================== */

.story-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.story-share-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.story-share-inline a,
.story-share-inline button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.95;
    transition: opacity 0.15s ease;
}

.story-share-inline a:hover,
.story-share-inline button:hover {
    opacity: 1;
    color: var(--accent-1);
}

.story-share-inline .share-copy.copied {
    color: var(--accent-1);
    font-style: italic;
}

/* Mobile: let it wrap quietly */
@media (max-width: 600px) {
    .story-meta-row {
        flex-direction: column;
        gap: 8px;
    }
}

.related-wrapper {
    border-top: 1px solid var(--warm-border);
    margin-top: 24px;
}

.related-title {margin-top: 24px;}

/* =====================================
   MOBILE MENU
===================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hide mobile menu by default */
.mobile-menu {
    display: none;
    background: var(--warm-card);
    border-bottom: 1px solid var(--warm-border);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

/* Links */
.mobile-menu a {
    text-decoration: none;
    font-size: 1.05rem;
    color: var(--primary);
}

/* Search */
.mobile-search-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mobile-search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--warm-border);
    border-radius: 6px;
    font-family: inherit;
}

.mobile-search-form button {
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

/* =====================================
   RESPONSIVE RULES
===================================== */

@media (max-width: 800px) {

    .site-nav,
    .header-search-form {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu.open {
        display: block;
    }
}

/* Ad cards inherit story-card styles */
.ad-card {
    opacity: 0.95;
}

/* Slightly mute the eyebrow */
.ad-card .story-category {
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Prevent hover lift if you want ads calmer */
.ad-card:hover {
    transform: none;
    box-shadow: 0 3px 10px var(--shadow);
}

/* Ad cards get an inset surface */
.ad-card .story-card-inner {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: calc(var(--radius-lg) - 4px);
    padding: 20px;
}


/* ================================
   PRAYER STATS — COMPACT INLINE
================================ */

.stats-card-compact {
    padding: 8px 24px;
    margin-bottom: 24px;
    max-width: 480px;
}

.stats-card-compact .stats-caption {
    font-size: 1.6rem;
    color: var(--text-medium);
    margin: 0 0 14px;
    line-height: 1.55;
    font-weight: 700;
}

.stats-inline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stats-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stats-number {
    font-family: "Cardo", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-medium);
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.stats-separator {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA aligns naturally */
.stats-card-compact .view-all-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 800px) {
    .home-hero {
        grid-template-columns: 1fr;
    }
}

.story-pullquote-inline {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--warm-border);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.6rem;
}

.story-pullquote-inline .pullquote-mark {
    font-size: 2rem;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
    color: var(--text-light);
}

.search-empty-state {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 720px;
}

.search-empty-state .no-results {
    font-size: 1.1rem;
    line-height: 1.6;
}

.search-empty-state .empty-ad {
    align-self: flex-start;
}

/* ================================
   EDITORIAL AUTHOR LAYOUT
================================ */

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1rem;
  align-items: start;
  margin: 3rem 0;
}

.editorial-text p {
  max-width: 65ch;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.editorial-media {
  position: sticky;
  top: 120px;
}

.author-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.author-image figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* FULL-WIDTH MOMENTS (PULL QUOTES) */
.editorial-full {
  grid-column: 1 / -1;
  margin: 4rem 0;
}

/* PULL QUOTES SHOULD NEVER COLLIDE */
.story-pullquote {
  clear: both;
}

/* MOBILE FALLBACK */
@media (max-width: 900px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .editorial-media {
    position: static;
  }

  .editorial-full {
    margin: 2.5rem 0;
  }
}

.guide-book {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  font-family: "Source Serif 4", serif;
  color: var(--primary, #222);
}

.guide-book li {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .guide-book {
    padding: 40px 18px 64px;
  }
}

/* ===================================================
   GUIDE BOOK — HEADER / HERO
   =================================================== */

.guide-book-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.guide-book-header::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  background: var(--warm-border, #ddd);
  margin: 36px auto 0;
  opacity: 0.6;
}

.guide-book-hero {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.guide-book-header h1 {
  font-family: "Cardo", serif;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.guide-description {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #555);
}

.guide-author {
  font-size: 0.9rem;
  color: var(--muted, #666);
}

.guide-author a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--warm-border, #ddd);
}

.guide-author a:hover {
  border-bottom-color: var(--accent-1, #999);
}


/* ===================================================
   GUIDE BOOK — CHAPTERS
   =================================================== */

.guide-chapters {
  margin: 0 auto 72px;
}

.guide-chapters h2 {
  font-family: "Cardo", serif;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.guide-chapters ul {
list-style: none;
padding: 32px;
margin: 32px 0;
margin: 0;
background: var(--warm-card);
border: 1px solid var(--warm-border);
box-shadow: 0 2px 6px var(--shadow);
border-radius: var(--radius-lg);
}


    
   
    
    

.guide-chapters li {
  margin-bottom: 10px;
  font-size: larger;
}

.guide-chapters li:last-child {
  margin-bottom: 0;
}

.guide-chapters a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  color: var(--primary, #222);
  background: transparent;
  transition: background 0.2s ease, transform 0.12s ease;
}

.guide-chapters a:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: translateX(1px);
}


/* ===================================================
   MOBILE REFINEMENTS
   =================================================== */

@media (max-width: 768px) {

  .guide-book-header h1 {
    font-size: 2rem;
  }

  .guide-description {
    font-size: 1rem;
  }

  .guide-book-header::after {
    margin-top: 28px;
  }

}


.guide-featured-prayers {
  padding: 32px;
  background: var(--warm-card, #f7f5f2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-border);
 box-shadow: 0 2px 6px var(--shadow);
  margin: 32px 0;
}


.guide-featured-prayers h2 {
  font-family: "Cardo", serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.guide-featured-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #555);
  margin-bottom: 28px;
}

.guide-featured-prayers .prayer,
.guide-featured-prayers .prayer-card {
  background: #fff;
  border-radius: var(--radius-lg, 14px);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 3px 10px var(--shadow, rgba(0,0,0,0.05));
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-featured-prayers .prayer p {
  margin-bottom: 10px;
}

.guide-featured-prayers .prayer-meta {
  font-size: 0.8rem;
  color: var(--muted, #777);
}

.guide-featured-more {
  margin-top: 28px;
  text-align: center;
}

.guide-featured-more a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--primary, #222);
  background: transparent;
  border: 1px solid var(--warm-border, #ddd);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.guide-featured-more a:hover {
  background: #fff;
  border-color: var(--accent-1, #aaa);
}

.guide-book section + section {
  margin-top: 64px;
}



.guide-chapter {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  font-family: "Source Serif 4", serif;
  color: var(--primary, #222);
}

@media (max-width: 640px) {
  .guide-chapter {
    padding: 40px 18px 64px;
  }
}

.guide-chapter header {
  margin-bottom: 56px;
  text-align: center;
}

.guide-chapter h1 {
  font-family: "Cardo", serif;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.guide-chapter .guide-author {
  font-size: 0.85rem;
  color: var(--muted, #666);
  margin-bottom: 6px;
}

.guide-chapter .guide-author a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--warm-border, #ddd);
}

.guide-book-context {
  font-size: 0.8rem;
  color: var(--muted, #777);
}

.guide-book-context a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--warm-border, #ccc);
}

.guide-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.guide-paragraph {
  margin-bottom: 1.6em;
}

.guide-reflection {
  margin: 2.4em 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent-1, #ccc);
  font-style: italic;
  color: var(--muted, #444);
}

.guide-closing {
  margin-top: 3em;
  padding: 24px 28px;
  background: var(--warm-card, #f7f5f2);
  border-radius: var(--radius-lg, 16px);
  font-style: italic;
  box-shadow: 0 3px 10px var(--shadow, rgba(0,0,0,0.05));
}

.chapter-navigation {
  display: flex;
  justify-content: space-between;
  margin: 64px 0 48px;
  gap: 20px;
}

.chapter-navigation a {
  flex: 1;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--primary, #222);
  padding: 12px 16px;
  border-radius: var(--radius-lg, 14px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.chapter-prev {
  text-align: left;
}

.chapter-next {
  text-align: right;
}

.chapter-navigation a:hover {
  background: var(--warm-card, #f7f5f2);
  transform: translateY(-1px);
}

.guide-chapter hr {
  border: none;
  margin: 72px 0 56px;
}

.guide-chapter hr::after {
  content: "✦";
  display: block;
  text-align: center;
  color: var(--muted, #bbb);
  font-size: 0.9rem;
}
/* ===================================================
   FEATURED PRAYERS
   =================================================== */

.featured-prayers {
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0px 0;
}

.featured-prayers-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

/* INTRO */
.featured-prayers-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.featured-prayers-intro p {
  opacity: 0.75;
  max-width: 420px;
  margin-bottom: 16px;
}

.featured-prayers-link {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
}

.featured-prayers-link:hover {
  text-decoration: underline;
}

/* LIST */
.featured-prayers-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-prayer-item {
  border-left: 3px solid var(--warm-border);
  padding-left: 16px;
  margin-bottom: 16px;
}

.featured-prayer-item a {
  text-decoration: none;
  display: block;
}

.featured-prayer-text {
  display: block;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.featured-prayer-meta {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* HOVER */
.featured-prayer-item:hover {
  border-left-color: var(--primary);
}

.featured-prayer-item:hover .featured-prayer-text {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
  .featured-prayers-inner {
    grid-template-columns: 1fr;
  }

  .featured-prayers-intro {
    text-align: center;
  }

  .featured-prayers-intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .featured-prayers-list {
    margin-top: 16px;
  }
}


/* ===================================================
   FEATURED BELIEFS
   =================================================== */

.featured-beliefs {
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-border);
    box-shadow: 0 2px 6px var(--shadow);
  padding: 32px;
  margin: 32px 0;
}


.featured-beliefs-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
}

/* IMAGE */
.featured-beliefs-media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* CONTENT */
.featured-beliefs-content {
  max-width: 520px;
}

.featured-beliefs-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.featured-beliefs-intro {
  opacity: 0.75;
  margin-bottom: 20px;
}

.featured-beliefs-subhead {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* CHIPS */
.belief-chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.belief-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--warm-border);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.15s ease;
}

.belief-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* MOBILE */
@media (max-width: 768px) {
  .featured-beliefs-inner {
    grid-template-columns: 1fr;
  }

  .featured-beliefs-media img {
    max-height: 260px;
  }

  .featured-beliefs-content {
    max-width: none;
    text-align: center;
  }

  .belief-chip-list {
    justify-content: center;
  }
}



.chapter-progress {
  max-width: 420px;
  margin: 28px auto 0;
  text-align: center;
}

.chapter-progress-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #777);
  margin-bottom: 8px;
}

.chapter-progress-track {
  height: 4px;
  background: var(--warm-border, #ddd);
  border-radius: 999px;
  overflow: hidden;
}

.chapter-progress-fill {
  height: 100%;
  background: var(--accent-1, #aaa);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.inline-ad-wrap {
  float: right;
  width: 260px;
  margin: 8px 0 20px 24px;
}

.inline-ad-wrap .ad-card {
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px var(--shadow);
}

/* Mobile: don’t float */
@media (max-width: 700px) {
  .inline-ad-wrap {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 24px auto;
  }
}

.guide-body::after {
  content: "";
  display: block;
  clear: both;
}

.story-excerpt.with-thumb {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.story-thumb img {
  width: 64px;
  height: 75%;
 
  border-radius: 8px; /* soft square */
  flex-shrink: 0;
}

.story-text {
  line-height: 1.4;
}

.guide-book-hero {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
}

.guide-book-cover img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* soft, book-like */
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.guide-book-meta {
  flex: 1;
}

@media (max-width: 720px) {
  .guide-book-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guide-book-cover img {
    width: 180px;
    margin-bottom: 12px;
  }
}

/* ---------------------------------
   BOOK AD CARD — BASE
---------------------------------- */

.ad-card-book .story-excerpt.with-thumb {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ad-card-book .story-thumb {
  flex: 0 0 auto;
}

.ad-card-book .story-thumb img {
  display: block;
  width: 72px;
  height: auto;
  aspect-ratio: 3 / 4; /* book cover ratio */
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #f5f5f5;
}

.ad-card-book .story-text {
  line-height: 1.45;
}

.ad-card-book .story-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ---------------------------------
   BOOK AD CARD — BASE
---------------------------------- */

.ad-card-book .story-excerpt.with-thumb {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ad-card-book .story-thumb {
  flex: 0 0 auto;
}

.ad-card-book .story-thumb img {
  display: block;
  width: 72px;
  height: auto;
  aspect-ratio: 3 / 4; /* book cover ratio */
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #f5f5f5;
}

.ad-card-book .story-text {
  line-height: 1.45;
}

.ad-card-book .story-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ---------------------------------
   BOOK AD CARD — HERO VARIANT
---------------------------------- */

.ad-card-book--hero {
  margin: 32px 0;
}

.ad-card-book--hero .story-card-inner {
  padding: 28px;
}

.ad-card-book--hero .story-excerpt.with-thumb {
  gap: 24px;
}

.ad-card-book--hero .story-thumb img {
  width: 140px;           /* large cover */
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.ad-card-book--hero .story-text strong {
  font-size: 1.4rem;
  line-height: 1.2;
}

.ad-card-book--hero .story-text {
  font-size: 1.05rem;
  max-width: 520px;
}

.ad-card-book--hero .story-category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 12px;
}
.ad-card-book--hero .story-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-border);
}

/* ===================================================
   ELIORAH — ASK PAGE
   =================================================== */

.eliorah {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* -----------------------------------
   HEADER
----------------------------------- */

.eliorah-header {
  text-align: center;
  margin-bottom: 40px;
}

.eliorah-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px var(--shadow);
}

.eliorah-header h1 {
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.eliorah-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 10px;
  color: var(--primary);
}

.eliorah-subtle {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto;
}

/* -----------------------------------
   SUCCESS MESSAGE
----------------------------------- */

.eliorah-success {
  background: var(--warm-card);
  border-left: 4px solid var(--accent-1);
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  position: relative;
}

.eliorah-success strong {
  display: block;
  margin-bottom: 6px;
}

.eliorah-success .success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
}

/* -----------------------------------
   FORM
----------------------------------- */

.eliorah-form {
  background: var(--warm-card);
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eliorah-form .form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.eliorah-form .form-input,
.eliorah-form .form-textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--warm-border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
}

.eliorah-form .form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

/* -----------------------------------
   CHARACTER ROW
----------------------------------- */

.eliorah-form .char-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
  margin-bottom: 14px;
}

.eliorah-form .char-helper {
  font-size: 0.85rem;
  opacity: 0.7;
}

.eliorah-form .clear-prayer-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.6;
  text-decoration: underline;
}

/* -----------------------------------
   ERRORS
----------------------------------- */

.eliorah-form .form-error,
.eliorah .form-errors {
  color: #9b2c2c;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* -----------------------------------
   SUBMIT
----------------------------------- */

.eliorah-form .form-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent-1);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* -----------------------------------
   MOBILE TWEAKS
----------------------------------- */

@media (max-width: 640px) {
  .eliorah {
    padding: 32px 16px;
  }

  .eliorah-portrait {
    width: 96px;
    height: 96px;
  }

  .eliorah-header h1 {
    font-size: 1.6rem;
  }
}

/* ===================================================
   ELIORAH — GUIDANCE THREAD
   =================================================== */

.eliorah-thread {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}

.eliorah-message {
  max-width: 80%;
}

.eliorah-user {
  align-self: flex-start;
}

.eliorah-eliorah {
  align-self: flex-end;
  display: flex;
  gap: 12px;
}

.eliorah-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;

  border-radius: 50%;
  object-fit: cover;
  display: block;

  box-shadow: var(--shadow);
}


.eliorah-bubble {
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  line-height: 1.6;
}

.eliorah-user .eliorah-bubble {
  background: #fff;
  border: 1px solid var(--warm-border);
}

.eliorah-meta {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 6px;
}

.eliorah-divider {
  margin: 48px 0 32px;
  border-top: 1px solid var(--warm-border);
}

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

.eliorah-cta p {
  opacity: 0.7;
  margin-bottom: 12px;
}
/* ===================================================
   ELIORAH — ARCHIVE
   =================================================== */

.eliorah-archive-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.eliorah-archive-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--warm-border);
}

.eliorah-archive-meta {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 6px;
}

.eliorah-archive-question {
  font-family: "Source Serif 4", serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.eliorah-archive-response {
  opacity: 0.75;
  line-height: 1.55;
  margin-bottom: 10px;
}

.eliorah-archive-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 0.9rem;
}

/* ===================================================
   ELIORAH — MORE GUIDANCE
   =================================================== */

.eliorah-more {
  max-width: 640px;
  margin: 0 auto;
}

.eliorah-more-title {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.eliorah-more-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.eliorah-more-list li {
  margin-bottom: 10px;
}

.eliorah-more-list a {
  text-decoration: underline;
}

.eliorah-more-date {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
}

.eliorah-more-links {
  margin-top: 10px;
}

.eliorah-more-links a {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* ===================================================
   ELIORAH — BREADCRUMB
   =================================================== */

.eliorah-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;

}

.eliorah-breadcrumb a {
  text-decoration: underline;
}

/* ===================================================
   SUBMIT PRAYER — CENTERED LAYOUT
   =================================================== */

.submit-inner {
  max-width: 640px;
  margin: 0 auto;
}

.submit-title,
.submit-intro {
  text-align: center;
}

.submit-intro {
  margin-bottom: 28px;
}

.submit-form {
  margin-top: 24px;
}

/* ===================================================
   FLOATING ELIORAH ENTRY PILL
   =================================================== */

.eliorah-float-pill {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-pill);

  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--primary);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.eliorah-float-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.eliorah-float-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.eliorah-float-text {
  font-family: "Cardo", serif;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ------------------------------------
   MOBILE BEHAVIOR
------------------------------------ */

@media (max-width: 640px) {
  

  .eliorah-float-pill {
    padding: 10px;
  }
}

/* ------------------------------------
   FLOATING PILL DISMISS BUTTON
------------------------------------ */

.eliorah-float-dismiss {
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 6px;
  opacity: 0.5;
  color: inherit;
}

.eliorah-float-dismiss:hover {
  opacity: 0.9;
}

/* ===================================================
   NAV DROPDOWN
   =================================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);

  padding: 8px 0;
  min-width: 220px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
  z-index: 100;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===================================================
   MOBILE SUBMENU
   =================================================== */

.mobile-submenu summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

.mobile-submenu a {
  padding-left: 12px;
  display: block;
}

/* ===================================================
   NAV DROPDOWN TOGGLE — MATCH NAV LINKS
   =================================================== */

.nav-dropdown-toggle {
  all: unset; /* reset button defaults */
  cursor: pointer;

  font-family: inherit;
  font-size: inherit;
  color: inherit;

  padding: 0 12px;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hover + focus should match nav links */
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  text-decoration: underline;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.8em;
  opacity: 0.6;
  margin-left: 4px;
}

/* ===================================================
   FINAL NAV DROPDOWN ALIGNMENT FIX
   =================================================== */

/* Ensure dropdown button matches anchor nav links exactly */
.site-nav .nav-dropdown-toggle {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;

  padding: 0;
  margin: 0;

  background: none;
  border: none;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;
}

/* Match hover behavior of nav links */
.site-nav .nav-dropdown-toggle:hover,
.site-nav .nav-dropdown-toggle:focus-visible {
  text-decoration: underline;
}

.site-nav .nav-dropdown-toggle {
  color: var(--accent-1);
}

/* ===================================================
   FOOTER NAV
   =================================================== */

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 4px;
}

.footer-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.3;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-text{margin: 32px 0 0; font-size: small;}