
:root {
    --teal: #0B8384;
    --teal-deep: #075E5D;
    --teal-soft: #6BA39C;
    --teal-pale: #EAF1F0;
    --midnight: #0F141A;
    --brass: #0B8384;
    --parchment: #F5F1E8;
    --ivory: #ffffff;
    --bone: #E5DDD0;
    --ink: #161616;
    --muted: #5D5D5D;
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Manrope", -apple-system, system-ui, sans-serif;
}

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

html, body {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.6;
    background: var(--ivory);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.1;
    color: var(--teal);
}

p {
    margin: 0 0 16px 0;
}

.utility-bar {
    background: var(--midnight);
    color: var(--parchment);
    font-size: 11.5px;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brass);
}

.highlight {
    color: #0B8384;
    font-weight: 600;
}

header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bone);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-main {
    display: block;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--midnight);
    border-bottom: 2px solid transparent;
}

.nav-main:hover {
    color: var(--teal);
}

.nav-item-dropdown.active .nav-main {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
    min-width: 240px;
    z-index: 200;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--ink);
    border-bottom: 1px solid var(--bone);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--teal-pale);
    color: var(--teal);
    padding-left: 20px;
}

.header-ctas {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--teal);
    color: var(--parchment);
}

.btn-primary:hover {
    background: var(--teal-deep);
}

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

.btn-outline:hover {
    background: var(--parchment);
}

.btn-blue {
    background: #185FA5;
    color: var(--parchment);
}

.btn-blue:hover {
    background: #0C447C;
}

.page-title-section {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--ivory) 100%);
    padding: 48px 24px 32px;
    border-bottom: 1px solid var(--bone);
}

.page-title-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--teal);
}

.breadcrumb a:hover {
    color: var(--teal-deep);
}

.page-title-section h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--midnight);
    margin-bottom: 12px;
}

.page-lede {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 72ch;
}

.page-content {
    padding: 48px 24px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

.content-section {
    padding: 32px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 12px;
}

.content-section h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.15;
    color: var(--teal);
    margin-top: 0;
    margin-bottom: 20px;
}

.content-section h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    color: var(--teal);
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--teal);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 17px;
    color: var(--teal-deep);
    margin-top: 22px;
    margin-bottom: 10px;
}

/* First heading in content-section has no top margin (sits flush against top) */
.content-section > h1:first-child,
.content-section > h2:first-child,
.content-section > h3:first-child,
.content-section > h4:first-child {
    margin-top: 0;
}

/* Paragraphs get reasonable bottom spacing */
.content-section p {
    margin-top: 0;
    margin-bottom: 14px;
}

.content-section p {
    margin-bottom: 14px;
    line-height: 1.65;
}

.content-section ul, .content-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.sidebar {
    padding: 32px;
    background: var(--teal-pale);
    border-radius: 12px;
}

.sidebar h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--teal-deep);
    margin-bottom: 16px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: var(--teal);
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sidebar a:hover {
    color: var(--teal-deep);
    transform: translateX(4px);
}

.sidebar a::before {
    content: "→";
    font-weight: 700;
}

footer {
    background: var(--teal);
    color: var(--ivory);
    padding: 48px 24px 22px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2.4fr;
    gap: 36px;
    padding-bottom: 32px;
}

.footer-brand {
    display: flex;
    gap: 12px;
}

.logo-img-sm {
    height: 36px;
    width: auto;
}

.footer-wordmark .name {
    color: var(--ivory);
    font-weight: 600;
}

.footer-wordmark .tagline {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.footer-about {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    max-width: 32ch;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    font-size: 12px;
}

.footer-nav h4 {
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: 12px;
}

.footer-nav a {
    display: block;
    padding: 4px 0;
    color: rgba(255,255,255,0.75);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--ivory);
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }
    .main-nav {
        display: none;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ─── News article meta (date + author) ─────────────────────────── */
.news-article-meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted, #5e7a82);
    letter-spacing: .3px;
}
.news-article-date {
    font-weight: 600;
    color: #0B8384;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
}
.news-article-sep {
    color: #c9c0a9;
    font-weight: 400;
}
.news-article-author {
    font-style: italic;
    color: #5e7a82;
}
@media (max-width: 600px) {
    .news-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .news-article-sep { display: none; }
}

.news-card-byline {
    font-size: 12px;
    color: #5e7a82;
    margin-bottom: 12px;
    font-style: italic;
}


/* ─── Nested dropdown (OGS submenu under How We Serve) ─────────────── */
.nav-sub-dropdown {
    position: relative;
}
.nav-sub-dropdown > .nav-sub-parent {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nav-sub-arrow {
    color: #0B8384;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.dropdown-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e6dfd2;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(11, 31, 36, .12);
    padding: 6px 0;
    display: none;
    z-index: 100;
}
.dropdown-sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #0b1f24;
    text-decoration: none;
    font-size: 14px;
    transition: background .12s, color .12s;
}
.dropdown-sub-menu a:hover {
    background: #f7f3ea;
    color: #0B8384;
}
.nav-sub-dropdown:hover > .dropdown-sub-menu,
.nav-sub-dropdown:focus-within > .dropdown-sub-menu {
    display: block;
}
.nav-sub-dropdown:hover > .nav-sub-parent,
.nav-sub-dropdown:focus-within > .nav-sub-parent {
    background: #f7f3ea;
    color: #0B8384;
}
@media (max-width: 900px) {
    .dropdown-sub-menu {
        position: static;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding-left: 12px;
        background: transparent;
    }
    .nav-sub-dropdown:hover > .dropdown-sub-menu {
        display: block;
    }
}

/* ---------- Article media (Deploy 4) ---------- */
.article-hero {
    margin: 0 0 24px 0;
}
.article-hero img {max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: var(--bone);
    margin: 0 auto;
}
.article-hero figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
}

.article-gallery {
    margin-top: 32px;
    padding: 32px;
    background: var(--teal-pale);
    border-radius: 12px;
}
.article-gallery h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    color: var(--teal-deep);
    margin: 0 0 20px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-grid figure {
    margin: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bone);
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: var(--bone);
}
.gallery-grid figcaption {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .article-gallery {
        padding: 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .gallery-grid img {
        height: 140px;
    }
}

/* ---------- How to Give section (give.html) ---------- */
.how-to-give {
    margin: 40px 0 32px 0;
    padding: 40px 32px;
    background: var(--teal-pale);
    border-radius: 12px;
    border: 1px solid var(--bone);
}
.how-to-give h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 28px;
    color: var(--teal-deep);
    margin: 0 0 8px 0;
}
.how-to-give .how-to-give-lead {
    color: var(--teal-deep);
    font-size: 15px;
    letter-spacing: 0.2px;
    margin: 0 0 24px 0;
}
.how-to-give-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.how-to-give-card {
    background: white;
    padding: 20px 22px;
    border-radius: 10px;
    border: 1px solid var(--bone);
}
.how-to-give-card h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 17px;
    color: var(--teal);
    margin: 0 0 10px 0;
}
.how-to-give-card p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px 0;
    color: var(--ink);
}
.how-to-give-card p:last-child { margin-bottom: 0; }
.how-to-give-card address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 10px;
}
.how-to-give-card a:not(.how-to-give-cta) {
    color: var(--teal);
    text-decoration: underline;
}
.how-to-give-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 16px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: background .15s;
}
.how-to-give-cta:hover { background: var(--teal-deep); }
.how-to-give-footer {
    margin: 24px 0 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
@media (max-width: 600px) {
    .how-to-give { padding: 28px 18px; }
    .how-to-give h2 { font-size: 24px; }
}

/* ---------- Partner tiles (national-partners.html) ---------- */
.partner-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.partner-tile {
    display: block;
    padding: 24px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.partner-tile:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(61, 129, 122, 0.08);
}
.partner-tile h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--teal-deep);
    margin: 0 0 8px 0;
}
.partner-tile p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Page-top button row (united-mission-toolkit, biennial-2027) ---------- */
.page-top-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 28px 0;
}
.page-top-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    transition: background .15s, transform .15s;
    border: 1px solid transparent;
}
.page-top-btn:hover {
    background: var(--teal-deep);
    transform: translateY(-1px);
}
@media (max-width: 600px) {
    .page-top-btn { width: 100%; justify-content: center; }
}

/* ---------- Image-tile grid (stewardship, etc.) ---------- */
.image-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.image-tile {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.image-tile:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(61, 129, 122, 0.10);
}
.image-tile img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--teal-pale);
}
.image-tile-label {
    padding: 14px 16px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 16px;
    color: var(--teal-deep);
    line-height: 1.35;
    text-align: center;
}

/* ---------- Officer cards (board-general-ministries.html) ---------- */
.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 24px 0 36px 0;
}
.officer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
    text-align: center;
}
.officer-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(61, 129, 122, 0.10);
}
.officer-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    background: var(--teal-pale);
}
.officer-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--teal-deep);
    margin-bottom: 4px;
}
.officer-role {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ---------- In-section images (grants.html, etc.) ---------- */
.article-section-image {
    margin: 18px 0 28px 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--teal-pale);
}
.article-section-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 360px;
}

/* ---------- Brochure download tiles (download-resources.html) ---------- */
.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 16px 0 36px 0;
}
.brochure-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.brochure-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(61, 129, 122, 0.10);
}
.brochure-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--teal-pale);
    padding: 12px;
    box-sizing: border-box;
}
.brochure-label {
    padding: 14px 14px 16px 14px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 14px;
    color: var(--teal-deep);
    line-height: 1.4;
    text-align: center;
    border-top: 1px solid var(--bone);
}

/* ---------- Staff cards (abcusa-staff-2.html) ---------- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 20px 0 36px 0;
}
.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    text-align: center;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.staff-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(61, 129, 122, 0.10);
}
.staff-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    background: var(--teal-pale);
}
.staff-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 17px;
    color: var(--teal-deep);
    margin-bottom: 6px;
    line-height: 1.3;
}
.staff-name a {
    color: inherit;
    text-decoration: none;
}
.staff-name a:hover {
    text-decoration: underline;
}
.staff-title {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- Book covers (generosity-project.html) ---------- */
.book-cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 24px 0 36px 0;
}
.book-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.book-cover:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(61, 129, 122, 0.12);
}
.book-cover img {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 12px;
}
.book-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 14px;
    color: var(--teal-deep);
    line-height: 1.35;
    text-align: center;
}

/* ---------- Presenter cards (everyday-abc, transition-ministries) ---------- */
.presenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 16px 0 36px 0;
}
.presenter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: white;
    border: 1px solid var(--bone);
    border-radius: 10px;
    text-align: center;
}
.presenter-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    background: var(--teal-pale);
}
.presenter-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 17px;
    color: var(--teal-deep);
    margin-bottom: 12px;
}
.presenter-bio {
    font-size: 14px;
    line-height: 1.55;
    color: var(--midnight);
    text-align: left;
    margin: 0;
}

/* ---------- Event cards (transition-ministries.html) ---------- */
.event-card {
    background: white;
    border: 1px solid var(--bone);
    border-left: 4px solid var(--teal);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 16px 0 22px 0;
}
.event-card h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--teal-deep);
    margin: 0 0 12px 0;
}
.event-card p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.55;
}
.event-card p:last-child {
    margin-bottom: 0;
}
.event-card-past {
    border-left-color: var(--bone);
    opacity: 0.85;
}

/* ---------- Global link hover (text turns brand teal) ---------- */
a:hover {
    color: var(--teal);
}
/* Buttons keep their own colors on hover */
.btn-primary:hover,
.page-top-btn:hover {
    color: white;
}
/* Card components: keep their inner text colors (card h3/labels have explicit colors) */
.partner-tile:hover,
.image-tile:hover,
.officer-card:hover,
.staff-card:hover,
.brochure-card:hover,
.book-cover:hover,
.presenter-card:hover {
    color: inherit;
}

/* ---------- Hero image size modifiers ---------- */
.article-hero-70 {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}
.article-hero-90 {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Single brochure tile constrained width (download-resources directory calendar) ---------- */
.brochure-grid-single {
    display: grid;
    grid-template-columns: minmax(220px, 280px);
    justify-content: start;
    gap: 18px;
    margin: 16px 0 36px 0;
}

/* ============================================================
   Mobile navigation — hamburger + slide-in drawer
   Progressive enhancement; behavior wired up in assets/search.js.
   Reuses the existing .main-nav / .dropdown-menu markup.
   ============================================================ */

/* Injected helpers are hidden by default (desktop); revealed only <=768px.
   .abc-acc-row uses display:contents so it is invisible to desktop layout. */
.abc-hamburger { display: none; }
.abc-nav-scrim { display: none; }
.abc-drawer-head { display: none; }
.abc-drawer-ctas { display: none; }
.abc-acc-toggle { display: none; }
.abc-acc-row { display: contents; }

/* Hamburger trigger */
.abc-hamburger {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--bone);
    border-radius: 8px;
    color: var(--midnight);
    cursor: pointer;
    flex-shrink: 0;
}
.abc-hamburger:hover { border-color: var(--teal); color: var(--teal); }
.abc-hamburger svg { display: block; width: 22px; height: 22px; }

/* Scrim behind the drawer.
   z-index is intentionally BELOW the sticky header (z-index:100) so the
   drawer, which lives inside the header's stacking context, paints above it
   and stays clickable. */
.abc-nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 36, 0.5);
    z-index: 99;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    /* show hamburger, pin it to the far right of the header */
    .abc-hamburger { display: inline-flex; margin-left: auto; }

    /* header CTAs move into the drawer footer.
       'header ' prefix raises specificity above index.html's inline <style>,
       which redefines .header-ctas after styles.css loads. */
    header .header-ctas { display: none; }

    /* The (otherwise hidden) nav becomes a right-hand slide-in drawer */
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        background: var(--ivory);
        z-index: 9998;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -8px 0 32px rgba(11, 31, 36, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        padding: 0 0 24px;
    }
    body.abc-nav-open .main-nav { transform: translateX(0); }
    body.abc-nav-open .abc-nav-scrim { display: block; }
    body.abc-nav-open { overflow: hidden; }

    /* Drawer header (title + close) */
    .abc-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid var(--bone);
        position: sticky;
        top: 0;
        background: var(--ivory);
        z-index: 2;
    }
    .abc-drawer-title {
        font-family: var(--serif);
        font-size: 16px;
        font-weight: 500;
        color: var(--teal-deep);
        letter-spacing: 0.02em;
    }
    .abc-drawer-close {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--bone);
        border-radius: 8px;
        background: var(--parchment);
        color: var(--midnight);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }
    .abc-drawer-close:hover { color: var(--teal); border-color: var(--teal); }

    /* Each top-level item stacks as a full-width row */
    .main-nav .nav-item-dropdown {
        display: block;
        position: static;
        border-bottom: 1px solid var(--bone);
    }

    /* Row that holds the link + the accordion chevron */
    .abc-acc-row {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
    }
    .main-nav .nav-main {
        flex: 1;
        display: block;
        padding: 15px 18px;
        font-size: 16px;
        border-bottom: none;
    }
    .main-nav .nav-item-dropdown.active .nav-main { border-bottom-color: transparent; }

    /* Accordion chevron toggle */
    .abc-acc-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 54px;
        border: none;
        border-left: 1px solid var(--bone);
        background: none;
        color: var(--teal);
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }
    .abc-acc-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.22s ease;
    }
    .nav-item-dropdown.abc-expanded > .abc-acc-row .abc-acc-toggle svg { transform: rotate(180deg); }

    /* Submenus become accordions; neutralize the desktop hover/absolute rules */
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--teal-pale);
        padding: 4px 0;
    }
    .main-nav .nav-item-dropdown:hover > .dropdown-menu { display: none; }
    .main-nav .nav-item-dropdown.abc-expanded > .dropdown-menu { display: block; }
    .main-nav .dropdown-menu a {
        padding: 12px 18px 12px 30px;
        font-size: 14.5px;
        border-bottom: none;
    }
    .main-nav .dropdown-menu a:hover { padding-left: 34px; }

    /* Nested sub-dropdown (How We Serve -> Office of the General Secretary) */
    .main-nav .nav-sub-dropdown { position: static; }
    .main-nav .dropdown-sub-menu {
        position: static;
        display: none;
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: rgba(255, 255, 255, 0.55);
    }
    .main-nav .nav-sub-dropdown:hover > .dropdown-sub-menu { display: none; }
    .main-nav .nav-sub-dropdown.abc-expanded > .dropdown-sub-menu { display: block; }
    .main-nav .nav-sub-dropdown > .nav-sub-parent { padding: 12px 18px 12px 30px; }
    .main-nav .nav-sub-dropdown.abc-expanded > .nav-sub-parent { color: var(--teal-deep); background: rgba(255,255,255,0.6); }

    /* CTA buttons cloned into the drawer footer */
    .abc-drawer-ctas {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 18px;
        margin-top: 4px;
        border-top: 1px solid var(--bone);
    }
    .abc-drawer-ctas .btn,
    .abc-drawer-ctas .abc-drawer-search {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        font-size: 14px;
    }
    .abc-drawer-search {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--bone);
        border-radius: 4px;
        background: var(--parchment);
        color: var(--midnight);
        font-family: var(--sans);
        font-weight: 600;
        cursor: pointer;
    }
    .abc-drawer-search:hover { border-color: var(--teal); color: var(--teal); }
}




/* 2027 Biennial promo bar — removed site-wide (markup retained for future reuse) */
body .utility-bar { display: none; }

/* Branded inline link style (content links) */
.brand-link { color: var(--teal); text-decoration: underline; }
.brand-link:hover { color: var(--teal-deep); }

/* Migrated article body */
.article-body a { color: var(--teal); text-decoration: underline; }
.article-body a:hover { color: var(--teal-deep); }
.article-body img { max-width: 100%; height: auto; }

/* United Mission Toolkit (migrated) cleanup */
.article-body .umt-figure { margin: 1.6rem 0; text-align: center; }
.article-body .umt-figure img, .article-body img.umt-banner { display:block; max-width:100%; height:auto; margin:0 auto; border-radius:8px; }
.article-body figcaption { font-size:.9rem; line-height:1.5; color: var(--teal-deep,#075E5D); margin:.6rem auto 0; max-width:60ch; }
.article-body .umt-embed { position:relative; padding-top:56.25%; margin:1.6rem auto; max-width:720px; }
.article-body .umt-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:8px; }
.article-body h2 { margin-top:1.9rem; }
.article-body h3 { margin-top:1.5rem; }
.article-body ul { margin:1rem 0 1.6rem; padding-left:1.4rem; }
.article-body li { margin:.35rem 0; }

/* WordPress image alignment (migrated content) */
.article-body .aligncenter, .article-body img.aligncenter { display:block; margin:1.2rem auto; }
.article-body .alignnone { display:block; margin:1.2rem 0; }
.article-body .alignleft { float:left; margin:.4rem 1.3rem .9rem 0; max-width:42%; }
.article-body .alignright { float:right; margin:.4rem 0 .9rem 1.3rem; max-width:42%; }
.article-body h2, .article-body h3 { clear:both; }


/* ── Site rule: body hyperlinks use the branded blue ──────────── */
:root { --link: #185FA5; --link-hover: #0C447C; }
.content-section p a,
.content-section li a,
.content-section td a,
.content-section dd a,
.article-body a,
.brand-link {
    color: var(--link);
    text-decoration: underline;
}
.content-section p a:hover,
.content-section li a:hover,
.content-section td a:hover,
.content-section dd a:hover,
.article-body a:hover,
.brand-link:hover {
    color: var(--link-hover);
}
