/* ── Plan hero ── */
.plan-hero {
    position: relative;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    background:
        linear-gradient(135deg, rgba(163,145,113,0.07) 0%, transparent 50%),
        linear-gradient(225deg, rgba(26,39,68,0.04) 0%, transparent 50%),
        #faf8f4;
    border: 1px solid #ddd3c4;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.plan-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #1a2744, #b8860b);
    border-radius: 4px 4px 0 0;
}
.plan-hero h1 {
    font-size: 1.85rem;
    margin-bottom: 0.3rem;
}
.plan-subtitle {
    font-size: 1rem;
    color: #5b4a3f;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.plan-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.65rem 0;
    border-top: 1px solid #ece5d9;
    font-size: 0.88rem;
    color: #5b4a3f;
}
.plan-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.plan-stat strong {
    color: #1a2744;
    font-weight: 600;
}
.plan-stat .stat-icon {
    font-size: 1rem;
    opacity: 0.6;
}

/* ── Tabs ── */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #ddd3c4;
    margin-bottom: 1.25rem;
    gap: 0;
}
.tab-btn {
    padding: 0.65rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #7a7062;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.tab-btn:hover {
    color: #1a2744;
}
.tab-btn.active {
    color: #1a2744;
    border-bottom-color: #b8860b;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* ── Overview tab ── */
.plan-description {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #3d3428;
    margin-bottom: 1rem;
}
.plan-description p { margin: 0 0 0.75rem; }
.plan-description ul { margin: 0.5rem 0 0.75rem 1.25rem; padding: 0; }
.plan-description li { margin-bottom: 0.2rem; }
.plan-description p:first-child::first-letter {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.2em;
    float: left;
    line-height: 0.85;
    margin-right: 0.08em;
    margin-top: 0.05em;
    color: #1a2744;
    font-weight: 700;
}
.plan-encouragement {
    font-size: 0.92rem;
    color: #5b4a3f;
    font-style: italic;
    border-left: 3px solid #b8860b;
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 1rem 0;
    background: rgba(184,134,11,0.03);
    border-radius: 0 4px 4px 0;
}

/* ── Author bio card ── */
.author-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 1.25rem 0 0.75rem;
    padding: 1rem 1.25rem;
    background: #faf8f4;
    border: 1px solid #ece5d9;
    border-radius: 6px;
}
.author-portrait {
    width: 80px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd3c4;
    flex-shrink: 0;
    opacity: 0.88;
    filter: sepia(15%);
}
.author-info { flex: 1; min-width: 0; }
.site-main .author-name {
    margin: 0 0 0.35rem;
    padding-bottom: 0;
    border-bottom: 0;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    color: #1a2744;
}
.author-years {
    font-weight: 400;
    font-size: 0.85rem;
    color: #7a7062;
}
.author-bio {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #3d3428;
}
.author-attribution {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: #9a8d7e;
    font-style: italic;
}
@media (max-width: 600px) {
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-portrait { width: 64px; }
}
.tips-box {
    background: #faf8f4;
    border: 1px solid #ddd3c4;
    border-radius: 4px;
    padding: 1.1rem 1.35rem;
    margin: 1.25rem 0;
}
.site-main .tips-box h2 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    padding-bottom: 0;
    border-bottom: 0;
    color: #1a2744;
}
.tips-box ul {
    margin: 0 0 0 1.25rem;
    font-size: 0.88rem;
    color: #5b4a3f;
}
.tips-box li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

/* ── Subscribe tab ── */
.subscribe-card {
    position: relative;
    background: #faf8f4;
    border: 1px solid #ddd3c4;
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.subscribe-card::before,
.subscribe-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8860b, transparent);
}
.subscribe-card::before { top: -1px; width: 120px; height: 2px; }
.subscribe-card::after { bottom: -1px; width: 120px; height: 2px; }

/* ── Direct Plan teaser (donation upsell) ── */
.direct-plan-teaser {
    max-width: 560px;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(180deg, #fdf8ec 0%, #f9f1dc 100%);
    border: 1px solid #e2c97a;
    border-left: 4px solid #b8860b;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3d3428;
    box-shadow: 0 1px 3px rgba(184,134,11,0.08);
}
.direct-plan-teaser strong { color: #1a2744; }
.direct-plan-teaser p {
    margin: 0.35rem 0 0 0;
    font-size: 0.88rem;
    color: #5b4a3f;
    line-height: 1.5;
}
.direct-plan-teaser a {
    color: #8b6914;
    font-weight: 600;
    white-space: nowrap;
}
.direct-plan-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0 0.85rem;
    padding: 0.55rem 0.7rem;
    background: #fdf8ec;
    border: 1px solid #e2c97a;
    border-radius: 4px;
    font-size: 0.85rem;
}
.direct-plan-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0.15rem 0 0 0;
    flex-shrink: 0;
}
.direct-plan-checkbox label {
    margin: 0;
    font-weight: 400;
    color: #3d3428;
    font-size: 0.86rem;
    line-height: 1.4;
}
.direct-plan-checkbox label strong { color: #1a2744; }

/* ── Schedule controls ── */
.schedule-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #faf8f4;
    border: 1px solid #ece5d9;
    border-radius: 4px;
}
.schedule-controls label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b4a3f;
    white-space: nowrap;
}
.schedule-controls select,
.schedule-controls input[type="date"] {
    width: auto;
    min-width: 140px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}
.schedule-hint {
    font-size: 0.82rem;
    color: #9a8d7e;
    margin-bottom: 0.75rem;
}

/* ── Month sections ── */
.month-section {
    margin-bottom: 0.5rem;
    border: 1px solid #ddd3c4;
    border-radius: 4px;
    overflow: hidden;
}
.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(135deg, #ece5d9 0%, #f5f0e8 100%);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd3c4;
    transition: background 0.15s;
}
.month-header:hover {
    background: linear-gradient(135deg, #e2d9ca 0%, #ece5d9 100%);
}
.month-header h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2744;
    margin: 0;
    border: none;
    padding: 0;
}
.month-toggle {
    font-size: 0.75rem;
    color: #9a8d7e;
    transition: transform 0.2s;
}
.month-section.collapsed .month-toggle { transform: rotate(-90deg); }
.month-section.collapsed .month-body { display: none; }

.month-body {
    /* Safety net: a single very long reference can still exceed the column on
       a narrow screen, and scrolling it beats clipping it. */
    overflow-x: auto;
}
.month-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.readings-col {
    overflow-wrap: break-word;
}
/* The scripture reference shown beside a named reading (harmony-style plans). */
.day-theme {
    font-weight: 600;
    color: #1a2744;
}
.reading-ref {
    color: #7a7062;
    font-size: 0.86em;
    white-space: nowrap;
}
/* Section header row, e.g. "Beginnings" or "Part 2 Passion Week". */
.section-row td {
    background: #f2ece1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2744;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid #ddd3c4;
}
.month-body th {
    text-align: left;
    padding: 0.3rem 0.7rem;
    background: #f9f6f1;
    color: #7a7062;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #ece5d9;
}
.month-body td {
    padding: 0.3rem 0.7rem;
    border-bottom: 1px solid #f0ebe3;
    vertical-align: top;
}
.month-body tr:last-child td { border-bottom: none; }
.month-body tr:hover td { background: #faf8f4; }
.schedule-row.today td {
    background: linear-gradient(90deg, rgba(184,134,11,0.15), rgba(184,134,11,0.05));
    font-weight: 600;
    border-left: 4px solid #b8860b;
    padding-left: 12px;
}
.schedule-row.next-reading td {
    background: linear-gradient(90deg, rgba(26,39,68,0.10), rgba(26,39,68,0.03));
    font-weight: 600;
    border-left: 4px dashed #5b7fa6;
    padding-left: 12px;
}
.date-col {
    width: 100px;
    font-weight: 500;
    color: #7a7062;
    font-size: 0.85rem;
    white-space: nowrap;
}
.reading-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b6914;
}
.reading-group-sep {
    color: #ddd3c4;
    margin: 0 0.15rem;
}
.reading-sep {
    color: #c4b5a4;
    margin: 0 0.2rem;
    font-size: 0.7rem;
}
.day-num {
    font-size: 0.72rem;
    color: #b0a797;
    margin-left: 0.3rem;
}
.day-dow {
    color: inherit;
}
.readings-col a {
    text-decoration: none;
    color: #1a2744;
    font-weight: 500;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.readings-col a:visited {
    color: #9aa07a;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: rgba(154, 160, 122, 0.5);
    text-decoration-thickness: 1px;
}
.readings-col a:visited::after {
    content: " \2713";
    color: #9aa07a;
    font-weight: bold;
}
.readings-col a:hover {
    background: #1a2744;
    color: #f5f0e8;
    text-decoration: none;
}
.readings-col .reading-sep {
    color: #c4b5a4;
    margin: 0 0.15rem;
    font-size: 0.8em;
}

/* ── Resources aside ── */
.resources-aside {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: #f9f6f1;
    border: 1px solid #ece5d9;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #9a8d7e;
}
.resources-aside h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.resources-aside p {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #9a8d7e;
}
.resources-aside a {
    color: #7a7062;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: #ddd3c4;
}
.resources-aside a:hover { color: #5b4a3f; text-decoration-color: #b8860b; }

/* ── Sidebar quick subscribe ── */
.sidebar-subscribe {
    background: #faf8f4;
    border: 1px solid #ddd3c4;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}
.sidebar-subscribe h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 0.4rem;
}
.sidebar-subscribe p {
    font-size: 0.82rem;
    color: #5b4a3f;
    margin-bottom: 0.6rem;
}

/* ── Current plan in sidebar ── */
.sidebar-current-plan {
    font-weight: 700;
    background: rgba(184,134,11,0.08);
    border-radius: 3px;
    padding: 0.25rem 0.4rem;
    margin-left: -0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.sidebar-current-plan a {
    color: #1a2744 !important;
    display: inline !important;
    padding: 0 !important;
    border-bottom: none !important;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-current-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* ── Loading state ── */
.schedule-loading {
    text-align: center;
    padding: 2rem;
    color: #9a8d7e;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .plan-hero { padding: 1.25rem; }
    .plan-hero h1 { font-size: 1.5rem; }
    .plan-stats-bar { gap: 0.75rem; }
    .tab-nav { overflow-x: auto; }
    .tab-btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
    .schedule-controls { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .schedule-controls select, .schedule-controls input[type="date"] { width: 100%; }
    .date-col { width: 80px; }
    .readings-col a { display: inline-block; margin-bottom: 0.15rem; }
}
