:root {
    --red: #c0392b;
    --dark: #1a1a1a;
    --mid: #444;
    --light-gray: #f4f4f2;
    --border: #ddd;
    --panel-blue: rgba(175, 187, 235, 0.35);
    --panel-tan: rgba(215, 190, 140, 0.25);
    --serif: 'Source Serif 4', Georgia, serif;
    --display: 'Playfair Display', Georgia, serif;
    --sans: 'Barlow', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--serif);
    font-size: 1rem;
    background: #fafaf8;
    color: var(--dark);
    min-height: 100vh;
}

/* ── TOP NAV ── */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Outer wrapper — stacks two rows */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Row 1: logo + hamburger */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

/* Row 2: nav links */
.header-nav-row {
    border-top: 1px solid #eee;
    padding: 0.4rem 0;
}

.site-logo {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
}

.site-logo span {
    color: var(--dark);
    font-weight: 300;
    font-size: 1rem;
    margin-left: 6px;
    font-family: var(--sans);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    border-right: 1px solid #ddd;
    transition: color 0.2s ease;
}

.nav-links li:last-child a {
    border-right: none;
}

.nav-links a:hover {
    color: #c0392b;
}

.header-email {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--mid);
    text-decoration: none;
    white-space: nowrap;
}

.header-email:hover {
    color: var(--red);
}

.hamburger-id {
    font-size: 22px;
    cursor: pointer;
    color: var(--dark);
    border-radius: 4px;
    transition: background 0.2s;
    display: none;
}

/* ── PAGE WRAPPER ── */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── HERO GRID (featured + sidebar) ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* Welcome feature card */
.featured-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-card .feature-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.feature-kicker {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.6rem;
    display: block;
}

.feature-headline {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-body-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    font-style: italic;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-panel-title {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--red);
    padding: 0.5rem 1rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    border-bottom: 1px solid #eee;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

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

.sidebar-num {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    min-width: 22px;
}

.sidebar-text {
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--dark);
}

/* ── SECTION LABEL ── */
.section-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

/* ── CARD GRID ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 1rem 1.1rem 1.25rem;
    flex: 1;
}

.card-kicker {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.4rem;
}

.card-title {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

/* ── CONTENT PANELS ── */
.content-section {
    margin-bottom: 2rem;
}

.content-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.content-panel.blue-tint {
    background: var(--panel-blue);
    border-color: rgba(100, 120, 200, 0.2);
}

.content-panel.tan-tint {
    background: var(--panel-tan);
    border-color: rgba(180, 140, 80, 0.2);
}

.panel-heading {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.content-panel p,
.content-panel div {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

/* Two-col layout (scripture + image) */
.two-col {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.two-col-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

.sml-img {
    max-width: 280px;
    height: auto;
    border: 2px solid #a8bfa0;
    border-radius: 6px;
}

/* Memory verse */
.memory-verse-panel {
    background: var(--panel-blue);
    border: 1px solid rgba(100, 120, 200, 0.2);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.memory-verse-panel h2 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.memory-verse-panel .verse-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

/* ── READING PLAN NAVIGATION ── */
.reading-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.reading-nav-date {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    flex: 1;
}

.reading-nav-btn {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.reading-nav-btn:hover:not(:disabled) {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.reading-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── READING PLAN SELECTOR ── */
.reading-plan-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.reading-plan-selector label {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    white-space: nowrap;
}

.reading-plan-select {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    appearance: auto;
}

.reading-plan-select:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}

/* Scripture link button */
.cta-link {
    display: block;
    width: fit-content;
    margin: 1.5rem auto;
    background: var(--red);
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}

.cta-link:hover {
    background: #a93226;
    transform: translateY(-1px);
}

/* Bible reading results */
#results {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.85;
    color: #2c2c2c;
}

/* ── SIDE DRAWER NAV ── */
.nav-menu {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: #fff;
    border-right: 1px solid #ddd;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-left: 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    transform: translate3d(0, 0, 0);
}

.nav-drawer-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    padding: 0.5rem 1.25rem;
}

.Bottom-button-container {
    width: 100%;
}

.Bottom-button-container a {
    text-decoration: none;
    display: block;
}

.Bottom-button-container button {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1.25rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: var(--dark);
    transition: background 0.15s, color 0.15s;
}

.Bottom-button-container button:hover {
    background: #fef0ef;
    color: var(--red);
}

/* ── FOOTER ── */
footer {
    background: #222;
    color: #aaa;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

footer p,
footer p3 {
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.7;
    color: #aaa;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-rule {
    border: none;
    border-top: 1px solid #444;
    margin: 1rem auto;
    max-width: 400px;
}

footer p:first-child {
    font-size: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .sml-img {
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

    .hamburger-id {
        display: block;
    }
}

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

    .feature-headline {
        font-size: 1.5rem;
    }

    .page-wrap {
        padding: 1rem;
    }
}

body.noscroll {
    overflow: hidden;
}

/* --- Devotional Card Styles --- */
.devotional-period {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 0.6rem;
}

.devotional-scripture {
    font-style: italic;
    border-left: 3px solid #b8860b;
    padding-left: 0.8rem;
    margin: 0.5rem 0 1rem;
    color: #2a1f14;
}

.devotional-scripture cite {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    color: #8b3a2a;
}

.devotional-scripture cite a {
    color: #8b3a2a;
    text-decoration: none;
    border-bottom: 1px dotted rgba(139, 58, 42, 0.5);
    transition: color 0.2s, border-color 0.2s;
}

.devotional-scripture cite a:hover {
    color: #b8860b;
    border-bottom-color: rgba(184, 134, 11, 0.7);
}

.devotional-body {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #2a1f14;
}

/* ── ESV SEARCH BAR ── */
.esv-search-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.esv-search-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.esv-search-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    white-space: nowrap;
}

.esv-search-input {
    flex: 1;
    max-width: 420px;
    font-family: var(--serif);
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--dark);
    background: #fafaf8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.esv-search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.esv-search-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.esv-search-btn {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.42rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.esv-search-btn:hover {
    background: #a93226;
}

.esv-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .esv-search-label {
        display: none;
    }

    .esv-search-input {
        max-width: 100%;
    }
}