/* =============================================================================
   Catholic Diocese of Chipata — Content page style (page.php)
   Self-contained (does not rely on style.css or home.css). Reuses the header
   banner language from the admin/contributor pages (navy + gold, Georgia
   serif) but drives its navigation from the site structure, and adds the
   sidebar/main layout, section styles and content-type presentation that
   public content pages need.
   ============================================================================= */

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

:root {
    --navy:      #1a3a6e;
    --navy-mid:  #2a5298;
    --navy-deep: #12295a;
    --gold:      #c8a951;
    --gold-lt:   #e8d38f;
    --paper:     #ece9e2;
    --parch:     #f5f2e9;
    --text:      #2c2c2c;
    --muted:     #666;
}

body.page-view {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--paper);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation (structure-driven, from includes/site_nav.php) ───────────────
   Same header used on home.php: sticky bar with the crest visible and
   Cinzel small-caps links, so the identity is identical across every page. */

.site-nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 100;
    height: 68px;
    background: rgba(10, 26, 58, 0.93);
    border-bottom: 2px solid var(--gold);
}

.nav-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex; align-items: stretch; gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.nav-logo { height: 100%; width: auto; padding: 8px 0; box-sizing: border-box; }

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(253, 246, 227, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-lt); }

.nav-links a.active {
    color: var(--gold-lt);
    border-bottom: 1px solid var(--gold-lt);
    padding-bottom: 3px;
    font-weight: 700;
}

/* ── Mini-banner: site name + current position, replacing the old page
   header banner (kept to one line since the crest/title now live in the
   shared nav above) ──────────────────────────────────────────────────────── */

.mini-banner {
    background: var(--navy-deep);
    border-bottom: 2px solid var(--gold);
    padding: 10px 30px;
}

.mini-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.mini-banner-site {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
}

.mini-banner-site:hover {
    color: var(--gold-lt);
    text-decoration: underline;
}

.mini-banner-sep {
    color: rgba(255,255,255,0.4);
}

.breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold-lt); text-decoration: underline; }

.breadcrumb .crumb-sep { margin: 0 7px; color: rgba(255,255,255,0.45); }

.breadcrumb .crumb-current { color: var(--gold-lt); }

/* ── Page layout: sidebar + main ──────────────────────────────────────────── */

.page-layout {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

.page-layout.no-sidebar { display: block; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */

.page-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.sidebar-nav-wrap { margin-bottom: 0; }

.sidebar-title {
    font-family: Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--navy);
    margin-bottom: 8px;
    cursor: pointer;
    list-style: none;
}

.sidebar-title::-webkit-details-marker { display: none; }

.sidebar-title::after {
    content: '\25B8';
    float: right;
    color: var(--gold);
    transition: transform 0.15s;
}

.sidebar-nav-wrap[open] > .sidebar-title::after { transform: rotate(90deg); }

.sidebar-nav {
    list-style: none;
    border-left: 2px solid #d8d2bc;
}

.sidebar-nav li + li { margin-top: 2px; }

.sidebar-nav a {
    display: block;
    padding: 8px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--text);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sidebar-nav a:hover {
    background: #f4f0e2;
    border-left-color: var(--gold);
}

.sidebar-nav a.active {
    background: #f4f0e2;
    border-left-color: var(--navy);
    color: var(--navy);
    font-weight: bold;
}

.sidebar-nav-nested {
    margin: 2px 0 6px 18px;
}

.sidebar-nav-nested a {
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.sidebar-nav-nested a.active { color: var(--navy); }

.sidebar-sep {
    padding: 10px 16px 4px;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #d8d2bc;
    margin: 22px 0;
}

.sidebar-content .sec-heading {
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.sidebar-content .sec-body p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.sidebar-content .sec-body ul,
.sidebar-content .sec-body ol {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 10px;
    padding-left: 1.3em;
}

.sidebar-content .sec-body li { margin-bottom: 4px; }

.sidebar-content .section-rule { margin: 18px 0; }

/* Sidebar content is narrow — collapse every grid/column layout to one column. */
.sidebar-content .sec-grid,
.sidebar-content .sec-columns {
    display: block !important;
    column-count: 1 !important;
}
.sidebar-content .sec-grid img { width: 100%; height: auto; margin-bottom: 10px; }

/* ── Main column ───────────────────────────────────────────────────────────── */

.page-main { flex: 1; min-width: 0; }

.page-section { padding: 4px 0; }

.sec-heading {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    color: var(--navy);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--gold);
}

.sec-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 72ch;
}

.sec-body p.justified {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.sec-body ul,
.sec-body ol {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 16px;
    padding-left: 1.4em;
    max-width: 72ch;
}

.sec-body li { margin-bottom: 6px; }

.section-rule {
    border: none;
    height: 1px;
    margin: 40px 0;
    background: linear-gradient(to right, var(--gold) 0%, rgba(200,169,81,0.15) 65%, transparent 100%);
}

/* ── Pictures ──────────────────────────────────────────────────────────────── */

.sec-pics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.sec-pics img {
    max-width: 320px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #d8d2bc;
    box-shadow: 0 2px 8px rgba(26,58,110,0.1);
}

/* ── Picture + download-icon pairing (shared by every section style) ──────── */

.sec-pic-media {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pic-caption {
    margin: 4px 0 0;
    font-size: 0.78em;
    font-style: italic;
    color: var(--muted);
    line-height: 1.4;
}

.pic-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    background: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(26,58,110,0.15);
    transition: background 0.2s, color 0.2s;
}

.pic-download:hover { background: var(--navy); color: #fff; }

/* ── Section style: picture-first (large portrait, side by side) ─────────── */

.sec-grid.picture-first {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 34px;
    align-items: start;
}

.sec-grid.picture-first .sec-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #d8d2bc;
    box-shadow: 0 3px 12px rgba(26,58,110,0.14);
}

.sec-grid.picture-first > .sec-pic .sec-pic-media .sec-img { flex: 1; min-width: 0; }

/* ── Section style: picture left, text right (compact) ────────────────────── */

.sec-grid.picture-left-text-right {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.sec-grid.picture-left-text-right > .sec-pic {
    flex-shrink: 0;
}

.sec-grid.picture-left-text-right .sec-img {
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #d8d2bc;
    box-shadow: 0 2px 8px rgba(26,58,110,0.12);
}

.sec-grid.picture-left-text-right .sec-text { flex: 1; min-width: 0; }

/* ── Section style: two columns (long-form text) ──────────────────────────── */

.sec-columns.two-col {
    columns: 2;
    column-gap: 40px;
}

.sec-columns.two-col p { break-inside: avoid; }

/* ── Clergy & Religious gallery (name + photo cards, side by side) ─────────── */

.clergy-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px 20px;
}

.clergy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clergy-card-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d8d2bc;
    box-shadow: 0 2px 8px rgba(26,58,110,0.12);
    background: var(--parch);
}

.clergy-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #b9b19a;
}

.clergy-card-name {
    margin-top: 10px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.3;
}

/* ── Outstations & Mbumbas (Deaneries and Parishes pages) ─────────────────── */

.sec-outstations { margin-top: 10px; }

.outstations-heading {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    color: var(--navy);
    margin: 0 0 8px;
}

.outstations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outstations-list li {
    font-size: 0.95rem;
    color: var(--text);
    padding-left: 14px;
    border-left: 2px solid var(--gold);
}

.mbumba-list {
    color: #6b6452;
    font-size: 0.88rem;
}

/* ── Section style: dates & events ────────────────────────────────────────── */

.events-list { display: flex; flex-direction: column; gap: 12px; }

.event-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px 20px;
    background: var(--parch);
    border-left: 4px solid var(--gold);
}

.event-date { text-align: center; }

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--navy);
    line-height: 1;
}

.event-date .mon {
    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.event-info h4 {
    font-family: Georgia, serif;
    font-size: 0.98rem;
    color: var(--navy);
}

.event-loc {
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* ── Documents & hyperlinks ────────────────────────────────────────────────── */

.sec-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.doc-link, .ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--navy);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.doc-link:hover, .ext-link:hover { background: var(--navy); color: #fff; }

.ext-link { border-color: var(--gold); color: #8a6d1f; }
.ext-link:hover { background: var(--gold); color: #fff; }

/* ── Document browser (public-documents page style) ──────────────────────── */

.doc-browser-folder { margin-top: 10px; }
.doc-browser-heading {
    font-family: Georgia, serif;
    color: var(--navy);
    margin: 18px 0 8px;
}
.doc-browser-item { margin: 4px 0; }
.doc-browser-item-with-caption { margin-bottom: 1.6em; }
.doc-browser-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--navy);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.doc-browser-link:hover { background: var(--navy); color: #fff; }
.doc-browser-size { font-size: 0.8rem; color: var(--muted); margin-left: 4px; }
.doc-browser-caption { font-size: 0.82rem; color: var(--muted); font-style: italic; }

.lc-pdf-month-label { margin: 18px 0 6px; }
.lc-pdf-month-label:first-of-type { margin-top: 4px; }
.lc-pdf-lang-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.lc-pdf-lang-tag { font-size: 0.85rem; color: var(--text); min-width: 80px; }

/* ── Liturgical calendar section ─────────────────────────────────────────── */

.lc-empty-notice {
    background: #fff;
    border: 1.5px dashed var(--gold);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

.lc-translation-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(44,44,44,0.15);
}

.lc-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.lc-month-label {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    min-width: 11ch;
    text-align: center;
}

.lc-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--navy);
    background: #fff;
    color: var(--navy);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lc-arrow-btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.lc-arrow-btn:disabled { opacity: 0.35; cursor: default; }

.lc-month-btn {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1.5px solid var(--navy);
    border-radius: 20px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lc-month-btn:hover { background: var(--gold-lt); }
.lc-month-btn.active { background: var(--navy); color: #fff; }
.lc-month-btn:disabled { opacity: 0.6; cursor: wait; }

/* De-emphasized option (e.g. the traditional translation) -- present but
   visually a secondary choice, not the expected first pick. */
.lc-month-btn.lc-btn-muted {
    border-color: #ccc;
    color: #999;
}
.lc-month-btn.lc-btn-muted:hover { background: #eee; color: #777; }
.lc-month-btn.lc-btn-muted.active { background: #999; color: #fff; }

.lc-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.lc-weekday-row span {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.lc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.lc-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 64px;
    padding: 8px 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(44,44,44,0.08);
    background: var(--parch);
    font-family: inherit;
    text-align: left;
}
.lc-day-empty { visibility: hidden; }

.lc-daynum-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lc-daynum {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
}

/* ── Liturgical colour indicator (GIRM 346) ──────────────────────────────── */

.lc-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lc-color-dot.lc-color-green  { background: #2f7d46; }
.lc-color-dot.lc-color-violet { background: #6b3fa0; }
.lc-color-dot.lc-color-red    { background: #b23b3b; }
.lc-color-dot.lc-color-rose   { background: #e29ab5; }
.lc-color-dot.lc-color-white  { background: #ffffff; border: 1.5px solid #b9b19a; }

.lc-modal-title .lc-color-dot {
    margin-right: 7px;
    vertical-align: middle;
}

.lc-day-label {
    font-family: Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.25;
    color: #8a2e2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-day-sun .lc-day-label { color: #7a1f1f; }

.lc-cite {
    font-size: 0.68rem;
    line-height: 1.25;
    color: var(--text);
}

.lc-day-has-data {
    cursor: pointer;
    border-color: var(--gold);
    box-shadow: none;
    transition: background 0.15s, box-shadow 0.15s;
}
.lc-day-has-data:hover,
.lc-day-has-data:focus-visible {
    background: var(--gold-lt);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    outline: none;
}

/* Sundays get a distinct reddish tint (liturgically, Sundays/major feasts are
   often marked in red in printed ordos) so the week's anchor day stands out. */
.lc-day-sun {
    background: #f3d9d7;
    border-color: #e3b7b3;
}
.lc-day-sun .lc-daynum { color: #7a1f1f; }
.lc-day-sun.lc-day-has-data:hover,
.lc-day-sun.lc-day-has-data:focus-visible {
    background: #ecc3bf;
}

/* ── "Readings of today" section ─────────────────────────────────────────── */

.lc-today {
    background: #fff;
    border-top: 5px solid var(--gold);
    border-radius: 10px;
    padding: 28px 32px 32px;
}

/* ── Liturgical calendar modal ────────────────────────────────────────────── */

.lc-modal { position: fixed; inset: 0; z-index: 1000; }
.lc-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(18,41,90,0.55);
}
.lc-modal-panel {
    position: relative;
    max-width: 680px;
    margin: 6vh auto;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    border-top: 5px solid var(--gold);
    padding: 32px 34px 34px;
}
body.lc-modal-open { overflow: hidden; }

.lc-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.lc-modal-close:hover { color: var(--navy); }

.lc-modal-date {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
}
.lc-modal-title {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--navy);
    font-size: 1.3rem;
    margin: 0 0 4px;
}
.lc-rank {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a6d1f;
    background: var(--gold-lt);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 14px;
}
.lc-note { color: var(--muted); font-style: italic; margin: 0 0 16px; }
.lc-unavailable { color: var(--muted); font-style: italic; }

.lc-translation-credit {
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    color: var(--muted);
    margin: -6px 0 14px;
}
.lc-translation-credit a { color: var(--navy); }

.lc-translation-notice {
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--gold, #c8af64);
    padding: 8px 12px;
    margin: -4px 0 12px;
}

.lc-translation-notice-inline {
    display: block;
    font-style: italic;
    background: rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--gold, #c8af64);
    padding: 8px 12px;
    margin: 0 0 8px;
}

.lc-reading { margin-bottom: 18px; }
.lc-reading h4 {
    color: var(--navy);
    font-size: 0.95rem;
    margin: 0 0 6px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}
.lc-reading .lc-ref { color: var(--muted); font-weight: normal; font-size: 0.85rem; }
.lc-reading p { margin: 0 0 8px; line-height: 1.6; }

.lc-alt-rule { border: none; border-top: 1.5px dashed var(--gold); margin: 20px 0; }
.lc-alt-title { font-size: 1.05rem; }

.lc-saint-of-day { margin-top: 20px; padding-top: 16px; border-top: 1.5px solid var(--gold); }
.lc-saint-toggle { display: flex; align-items: baseline; gap: 8px; cursor: pointer; line-height: 1.5; }
.lc-saint-toggle input { flex-shrink: 0; }
.lc-saint-bio { margin-top: 12px; line-height: 1.6; }
.lc-saint-bio p { margin: 0 0 8px; }
.lc-saint-bio-note { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* ── "Saints index" section style ────────────────────────────────────────── */

.si-month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gold);
}
.si-month-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--muted);
}
.si-month-nav a:hover { color: var(--gold); text-decoration: underline; }

.si-month { margin-bottom: 32px; scroll-margin-top: 20px; }
.si-month-title { margin: 0 0 10px; }
.si-empty { color: var(--muted); font-style: italic; }

.si-list { list-style: none; margin: 0; padding: 0; }
.si-item { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.si-item details { padding: 10px 0; }
.si-item summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
    list-style: none;
}
.si-item summary::-webkit-details-marker { display: none; }
.si-item summary::before { content: '\25B8'; margin-right: 4px; color: var(--gold); }
.si-item details[open] summary::before { content: '\25BE'; }
.si-date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.si-title { font-weight: 600; }
.si-bio { margin: 10px 0 0; line-height: 1.6; }
.si-bio-placeholder { color: var(--muted); }
.si-item details.si-no-bio summary { cursor: default; }
.si-item details.si-no-bio summary::before { content: '\2013'; }

/* ── "Saints of the month" section style ─────────────────────────────────── */

.saints-month { display: flex; flex-direction: column; gap: 24px; }
.sm-saint { padding-bottom: 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.sm-saint:last-child { border-bottom: none; padding-bottom: 0; }
.sm-saint-title { margin: 0 0 8px; font-size: 1.1rem; }

.sm-pdf-links, .si-pdf-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.si-pdf-links { margin: 4px 0 14px; }
.sm-rank { font-weight: normal; color: var(--muted); font-size: 0.9rem; }
.sm-bio { margin: 0; line-height: 1.6; }
.sm-bio-placeholder { color: var(--muted); }

/* ── Print / Save as PDF / Save as text ──────────────────────────────────── */

.lc-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.lc-print-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    padding: 6px 13px;
    border: 1.5px solid var(--navy);
    border-radius: 16px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lc-print-actions button:hover { background: var(--gold-lt); }

/* "Save as PDF" reuses the browser's print dialog (choose "Save as PDF" as the
   destination) rather than a bundled PDF library, so the page stays light. */
@media print {
    body.lc-printing * { visibility: hidden; }
    body.lc-printing [data-lc-printable],
    body.lc-printing [data-lc-printable] * { visibility: visible; }
    body.lc-printing [data-lc-printable] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 10px;
    }
    body.lc-printing .lc-print-actions { display: none !important; }
}

/* ── Chewa proverb search (Documents > Proverbs) ─────────────────────────── */

.proverbs-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 70ch;
    margin-bottom: 20px;
}

.proverbs-form {
    background: #fff;
    border: 1px solid #ddd6c4;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 26px;
    max-width: 620px;
}

.proverbs-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.proverbs-form-row input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #bbb09a;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fafaf7;
    font-family: Arial, sans-serif;
}

.proverbs-form-row input[type="text"]:focus {
    outline: none;
    border-color: var(--navy-mid);
    background: #fff;
}

.proverbs-fields {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.proverbs-fields legend {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 0;
    margin-bottom: 4px;
}

.proverbs-check {
    font-size: 0.88rem;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.proverbs-error {
    color: #c0392b;
    background: #fdf0ee;
    border: 1px solid #e8a89c;
    border-radius: 4px;
    padding: 10px 14px;
    max-width: 620px;
}

.proverbs-hint, .proverbs-count {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.proverb-card {
    background: #fff;
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 14px 20px;
    margin-bottom: 14px;
    max-width: 72ch;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.proverb-text {
    font-family: Georgia, serif;
    color: var(--navy);
    margin-bottom: 6px;
}

.proverb-translation {
    color: var(--text);
    margin-bottom: 6px;
}

.proverb-explanation {
    color: var(--muted);
    margin-bottom: 6px;
}

.proverb-keywords {
    font-size: 0.82rem;
    color: var(--muted);
}

.proverbs-credit {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 24px;
}

/* ── Empty-page / not-found notice ────────────────────────────────────────── */

.page-empty-notice {
    background: #fff;
    border: 1.5px dashed var(--gold);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer-public {
    background: var(--navy-deep);
    color: #b8cce0;
    text-align: center;
    padding: 16px 30px;
    font-size: 0.78rem;
    font-family: Arial, sans-serif;
    border-top: 3px solid var(--gold);
    margin-top: auto;
}

.site-footer-public a { color: var(--gold); }

.site-footer-public a:hover { color: #fff; }

.footer-fb { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .site-nav { position: static; height: auto; }
    .nav-inner { height: auto; padding: 10px 20px; }
    .nav-brand { display: none; }
    .nav-links { flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 8px 16px; }
    .mini-banner { padding: 8px 20px; }

    .page-layout { flex-direction: column; padding: 26px 20px 44px; gap: 30px; }
    .page-sidebar { width: 100%; position: static; }

    .sidebar-title {
        margin-bottom: 0;
        padding: 12px 14px;
        background: var(--parch);
        border: 1px solid #d8d2bc;
        border-radius: 6px;
    }
    .sidebar-nav-wrap[open] > .sidebar-title { border-radius: 6px 6px 0 0; border-bottom: none; }
    .sidebar-nav-wrap > .sidebar-nav {
        border: 1px solid #d8d2bc;
        border-top: none;
        border-radius: 0 0 6px 6px;
        padding: 6px 0;
    }

    .sec-grid.picture-first,
    .sec-grid.picture-left-text-right {
        display: block;
    }
    .sec-grid.picture-first .sec-img,
    .sec-grid.picture-left-text-right .sec-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-position: top;
        margin-bottom: 16px;
    }
    .sec-grid.picture-first .sec-pic,
    .sec-grid.picture-left-text-right .sec-pic {
        width: 100%;
        margin-bottom: 16px;
    }
    .sec-grid.picture-first .sec-pic .sec-img,
    .sec-grid.picture-left-text-right .sec-pic .sec-img {
        flex: 1;
        min-width: 0;
        width: auto;
        margin-bottom: 0;
    }
    .sec-columns.two-col { columns: 1; }

    .clergy-gallery { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 20px 14px; }
    .clergy-card-placeholder { font-size: 1.8rem; }
    .clergy-card-name { font-size: 0.8rem; }

    .event-item { grid-template-columns: 50px 1fr; }
    .event-loc { grid-column: 1 / -1; white-space: normal; }

    .lc-weekday-row, .lc-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
    .lc-day { min-height: 48px; padding: 5px 4px 6px; }
    .lc-cite { display: none; }
    .lc-day-label { font-size: 0.58rem; -webkit-line-clamp: 3; }
    .lc-modal-panel { margin: 0; max-height: 100vh; border-radius: 0; padding: 26px 20px 30px; }
}
