/* ============================================================
   theme.css — design polish layer (loaded after style.css and
   responsive.css, before page CSS). Tokens + refinements only;
   page layout lives in style.css and css/pages/*.css.
   ============================================================ */

:root {
    --shadow_xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow_sm: 0 2px 8px rgba(15, 23, 42, 0.07);
    --shadow_md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow_lg: 0 18px 40px rgba(26, 43, 86, 0.16);
    --ease_out: cubic-bezier(0.22, 1, 0.36, 1);
    --focus_ring: 0 0 0 3px rgba(243, 110, 28, 0.45);

    /* Type: Inter for text and interface, Source Serif 4 for display headings */
    --body: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Source Serif 4", Georgia, "Times New Roman", serif;

    /* Colour: softer body ink, deeper navy headings, a muted tone for meta text */
    --text_color: #263143;
    --heading_dark: #14234a;
    --title_color: #14234a;
    --muted_color: #66728a;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-padding-top: 90px; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--hover_color); color: #fff; }

/* Visible, consistent keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus_ring);
    border-radius: 4px;
}

/* ── Header ───────────────────────────────────────────────── */
.main-header {
    transition: box-shadow 0.3s var(--ease_out), background-color 0.3s var(--ease_out);
}
.main-header.sticky-header { box-shadow: var(--shadow_md); }

/* ── Section headings ─────────────────────────────────────── */
.section-title { letter-spacing: 0.01em; }
.section-title h2 {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.section-title h2::after { width: 56px; height: 3px; }

/* About: mission and vision as cards */
.about .about-pillars .items {
    flex: 1;
    padding: 20px 22px;
    background: var(--white_color, #fff);
    border: 1px solid rgba(10, 30, 80, 0.08);
    border-top: 3px solid var(--hover_color, #f47920);
    border-radius: var(--round_md);
    box-shadow: var(--shadow_sm);
    transition: transform 0.3s var(--ease_out), box-shadow 0.3s var(--ease_out);
}
.about .about-pillars .items:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow_md);
}
.about .about-pillars .items h6 {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--heading_dark);
}
.about .about-pillars .items p.description {
    margin-bottom: 0;
    line-height: 1.65;
}
.about .about-aside {
    border-radius: var(--round_md);
    box-shadow: var(--shadow_md);
}

/* ── Cards ────────────────────────────────────────────────── */
.card-item,
.we-do-item {
    border-radius: var(--round_md);
    box-shadow: var(--shadow_sm);
    transition: transform 0.35s var(--ease_out), box-shadow 0.35s var(--ease_out);
    will-change: transform;
}
.card-item:hover,
.we-do-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow_lg);
}
.card-item img { transition: transform 0.6s var(--ease_out); }
.card-item:hover img { transform: scale(1.04); }
.card-item .img { overflow: hidden; border-radius: var(--round_md) var(--round_md) 0 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-outline,
.slider-nav-btn,
.btn-membership {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
                transform 0.25s var(--ease_out), box-shadow 0.25s ease;
}
.btn-outline:hover,
.slider-nav-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow_sm); }
.btn-outline:active,
.slider-nav-btn:active { transform: translateY(0); box-shadow: none; }

/* ── Content pages ────────────────────────────────────────── */
main table { border-collapse: collapse; max-width: 100%; }
main .table-responsive,
main .content table { display: block; overflow-x: auto; }
main p, main li { line-height: 1.7; }

/* ── Footer (base rules live in layout.css) ────────────────── */
.main-footer ul.list-unstyled a {
    transition: color 0.2s ease, padding-left 0.2s var(--ease_out);
}
.main-footer ul.list-unstyled a:hover { padding-left: 3px; }

/* ── Motion preferences ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Footer: the logo is dark artwork, so render it white on the dark background */
.main-footer .footer-logo { filter: brightness(0) invert(1); }

/* Footer: a thin rule in the logo's purple, orange and green */
.main-footer {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #5b2a86, #e8742a, #6aa84f) 1;
}

/* ── Program thumbnails: whole image over a blurred copy, no hard crop ── */
.thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9edf4;
}
.thumb::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: var(--thumb-src) center / cover no-repeat;
    filter: blur(20px) saturate(1.15);
    opacity: 0.9;
}
.thumb > img,
.event-card .thumb > img,
.event-card-slider .img .thumb > img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: var(--thumb-pos, center);
}
.thumb--cover::before { display: none; }
.thumb--cover > img,
.event-card .thumb--cover > img,
.event-card-slider .img .thumb--cover > img { object-fit: cover; }
.event-card-slider .img a { display: block; width: 100%; }

/* ── Typography ───────────────────────────────────────────── */
body { line-height: 1.65; letter-spacing: -0.003em; }
p { line-height: 1.7; }

h1, h2, h3,
.section-title h2,
.section-title-2 h2,
.membership-heading,
.smart-hero h1,
.smart-hero h2 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h4, h5, h6 { font-weight: 600; letter-spacing: -0.005em; }

.smart-hero h1,
.smart-hero h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 600;
    color: #fff;
}

.event-card-content h5,
.card-item .item-title,
.we-do-item h5 { font-family: var(--body); font-weight: 600; }

.date,
.event-card-content .date,
.card-item .date { color: var(--muted_color); letter-spacing: 0.06em; }

.btn-fill,
.btn-outline,
.btn-membership,
.membership-cta-btn { letter-spacing: 0.04em; font-weight: 600; }

/* Inline links in running copy: clear, quiet and underlined on hover */
p a,
li a,
.content a { text-underline-offset: 3px; }
p a:hover,
li a:hover,
.content a:hover { text-decoration: underline; }

/* Desktop nav: Inter capitals run wider than Poppins, so trim size and tracking to keep one tidy row */
.main-header .desktop .nav-items > li > a {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding-left: 7px;
    padding-right: 7px;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-header .desktop .nav-items > li > a {
        font-size: 0.7rem;
        letter-spacing: 0;
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* ── Contrast fixes (found by a WCAG contrast scan) ───────── */
.nicci-theme-section .year-from,
.nicci-theme-section .year-to { color: #5b6578 !important; }
.membership-badge { color: #ffa05c; }
.membership-cta-btn { background: #c9540f; }
.membership-cta-btn:hover { background: #b04809; }
.news-slider .news-item .news-content .heading { color: #ff8a5c; }

/* ── Type normalisation across inner pages ─────────────────────
   One scale for page titles, content headings and article copy.
   `body` prefixes beat the single-class sizes in the page stylesheets. */

/* Page titles: were 40, 56 and 61px at three different weights */
body main h1,
body .page-hero__heading,
body .membership-hero h1,
body .publications-title {
    font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
/* The homepage banner headline keeps its own, larger size */
body main .smart-hero h1,
body main .smart-hero h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 600; }

/* Hero sub-lines and lead paragraphs */
body .membership-hero p,
body .category-header p { font-size: 1.0625rem; line-height: 1.65; }

/* Content headings: were 32, 35 and 36px */
body .section-main-title,
body .category-header h2 {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

/* Long-form copy: one size and a comfortable line height */
body .province-content-inner p,
body .province-content-inner li,
body .about-us-container p,
body .about-us-container li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text_color);
}

/* Pasted Word content carries Arial / Times New Roman and fixed point sizes */
.MsoNormal,
.MsoNormal span,
[style*="font-family"]:not(pre):not(code):not([class*="fa-"]) { font-family: var(--body) !important; }
.MsoNormal span { font-size: inherit !important; line-height: inherit !important; }
p.MsoNormal { line-height: 1.75 !important; }

/* Table text should never drop below a readable size */
main table th,
main table td { font-size: 0.875rem; }

/* ── Pagination ───────────────────────────────────────────────
   Separate, rounded controls with room to breathe. The legacy
   joined-bar rules in style.css are neutralised here. */
.site-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 48px 0 64px;
}
.site-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    font-size: 0.9rem;
    font-weight: 600;
}
.site-pagination .page-item { list-style: none; }
.site-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe1ec;
    border-radius: 10px;
    background: #fff;
    color: var(--heading_dark);
    line-height: 1;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.site-pagination a.page-link:hover {
    background: #eef2fa;
    border-color: var(--primary_color);
    color: var(--primary_color);
}
.site-pagination a.page-link:focus-visible { box-shadow: var(--focus_ring); }
.site-pagination .page-item.active .page-link {
    background: var(--primary_color);
    border-color: var(--primary_color);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26, 43, 86, 0.25);
}
.site-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: #9aa3b5;
}
.site-pagination .page-item--gap .page-link { min-width: 28px; padding: 0; }
.site-pagination .page-link i { font-size: 0.7rem; }
.site-pagination .page-item--status { display: none; }
.site-pagination .pagination-summary {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted_color);
}
@media (max-width: 575.98px) {
    .site-pagination { margin: 36px 0 48px; }
    .site-pagination .page-item--number { display: none; }
    .site-pagination .page-item--status { display: block; }
    .site-pagination .page-item--status .page-link {
        border-color: transparent;
        background: transparent;
        color: var(--muted_color);
    }
    .site-pagination .page-item--nav .page-link { padding: 0 16px; }
}
/* Legacy `.page-link span` rule fixes spans at 1rem; let the Previous/Next labels size to their text */
.site-pagination .page-link span { width: auto; height: auto; }

/* ── Article detail pages (programs, news, events) ────────────
   `body .article-detail` outranks the legacy !important-heavy rules where needed. */
.article-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--muted_color);
}
.article-crumbs a { color: var(--muted_color); }
.article-crumbs a:hover { color: var(--primary_color); text-decoration: underline; }
.article-crumbs__current { color: var(--heading_dark); font-weight: 500; }
.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef2fa;
    color: var(--primary_color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body .article-detail .content-section {
    background: #fff;
    padding: 36px 40px 40px;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    box-shadow: var(--shadow_sm);
}
body .article-detail .content-section > h2,
body .article-detail .section-main-title {
    margin: 0 0 22px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem);
    line-height: 1.25;
    font-weight: 700;
}
body .article-detail .page-header-minimal { margin: 0 0 22px; padding: 0; border: 0; }
body .article-detail .page-header-minimal .section-main-title { margin: 0; }
body .article-detail .featured-image,
body .article-detail .page-feature-img {
    margin-bottom: 28px !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow_md);
}

/* Reading column */
body .article-detail .content-text,
body .article-detail .modern-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text_color);
}
body .article-detail .content-text p,
body .article-detail .modern-description p { margin: 0 0 1.15em; font-size: inherit; line-height: inherit; }
body .article-detail .content-text h2,
body .article-detail .content-text h3,
body .article-detail .modern-description h2,
body .article-detail .modern-description h3 { margin: 1.6em 0 0.6em; font-size: 1.4rem; line-height: 1.3; }
body .article-detail .content-text ul,
body .article-detail .modern-description ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.15em; }
body .article-detail .content-text ol,
body .article-detail .modern-description ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.15em; }
body .article-detail .content-text li,
body .article-detail .modern-description li { margin-bottom: 0.4em; }
body .article-detail .content-text a,
body .article-detail .modern-description a { color: var(--primary_color); text-decoration: underline; text-underline-offset: 3px; }
body .article-detail .content-text blockquote,
body .article-detail .modern-description blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--yellow_color);
    color: #44506a;
    font-family: var(--display);
    font-size: 1.15rem;
}
body .article-detail .content-text img,
body .article-detail .modern-description img { border-radius: 10px; margin: 0.5em 0 1em; }

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary_color);
}
.article-back:hover { text-decoration: underline; }

/* Sidebar: stays in view while reading */
body .article-detail .sidebar { align-self: flex-start; }
body .article-detail .sidebar-widget { border-radius: 14px !important; background: #fff !important; border: 1px solid #e6eaf2 !important; box-shadow: var(--shadow_xs); }
body .article-detail .sidebar-title { font-size: 0.85rem !important; letter-spacing: 0.1em; text-transform: uppercase; }
body .article-detail .program-card a:not([data-lightbox]) { font-weight: 600; color: var(--heading_dark); line-height: 1.4; }
body .article-detail .program-card a:not([data-lightbox]):hover { color: var(--primary_color); }

@media (max-width: 991.98px) {
    body .article-detail .content-section { padding: 22px 18px 26px !important; }
    }

/* 404: the button text inherited the navy link colour on a navy button */
.error-container .home-button,
.error-container .home-button:visited { color: #fff !important; }

/* The `.about-us-container p` article rule is more specific than the chip's own class, so restate it */
body .article-detail .article-meta {
    margin: 0 0 16px;
    padding: 5px 12px;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    color: var(--primary_color);
}
body .article-detail .article-meta i { font-size: 0.8rem; }
body .article-detail .content-section > h3 {
    margin: 2.2rem 0 1rem;
    padding-top: 1.6rem;
    border-top: 1px solid #e6eaf2;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ── Programs listing: calmer card typography ────────────────
   `body` prefix beats `.event-card-content p`, which was making the date body-sized. */
body .event-card-content { padding: 20px 22px 22px; }
body .event-card-content h5 { font-size: 1.0625rem; line-height: 1.4; margin-bottom: 8px; }
body .event-card-content .date {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: var(--muted_color);
}
body .event-card-content p:not(.date) {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #55607a;
}
body #eventTab .nav-link,
body .nav-tabs .nav-link { font-size: 0.95rem; }

/* ── The Background page ─────────────────────────────────────
   Centred reading column, a 16:9 hero image weighted to the people, a larger lead paragraph. */
body .province-content-inner { max-width: 860px; margin-left: auto; margin-right: auto; }
body .province-content-inner figure.image { margin: 0 0 2rem; }
body .province-content-inner figure.image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 72%;
    border-radius: 14px;
    box-shadow: var(--shadow_md);
}
body .province-content-inner figure.image + p,
body .province-content-inner figure.image + p.MsoNormal {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--heading_dark);
}
body .province-content-inner p.MsoNormal { margin: 0 0 1em !important; }
body .province-content-inner .video-wrapper {
    margin: 2rem 0 !important;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow_md);
}

/* ── Detail page lead image ──────────────────────────────────
   Tall posters used to render at full column width (950px+ high).
   Cap the height and show the whole image over a blurred copy of itself. */
body .article-detail a.hero-media {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 14px;
    background: #e9edf4;
    box-shadow: var(--shadow_md);
}
body .article-detail a.hero-media::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: var(--thumb-src) center / cover no-repeat;
    filter: blur(22px) saturate(1.15);
    opacity: 0.9;
}
body .article-detail a.hero-media > img {
    position: relative;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 520px;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    object-fit: contain !important;
}

/* ── News / event detail: match the program page ─────────────
   The legacy page CSS draws the sidebar as a grey panel with a vertical rule; drop that. */
body .article-detail .sidebar {
    flex: 0 0 300px !important;
    width: 300px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body .article-detail .sidebar-widget { padding: 22px !important; margin-bottom: 20px !important; }
body .article-detail .sidebar-widget h4 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(26, 43, 86, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--heading_dark);
}
body .article-detail .program-photo img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 12px; }
body .article-detail .sidebar-widget > p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
body .article-detail .sidebar-widget > p a { font-weight: 600; color: var(--heading_dark); }
body .article-detail .sidebar-widget > p a:hover { color: var(--primary_color); }
body .article-detail .share-buttons { flex-wrap: wrap !important; }

/* Article copy on the event layout (it uses `.description`) */
body .article-detail .description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text_color);
}
body .article-detail .description p { margin: 0 0 1.15em; font-size: inherit; line-height: inherit; }
body .article-detail .description img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.5em 0 1em; }
body .article-detail .description a { color: var(--primary_color); text-decoration: underline; text-underline-offset: 3px; }

/* More from the newsroom */
.related-news { margin-top: 56px; }
.related-news__title {
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 700;
}
.related-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.related-news__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    box-shadow: var(--shadow_xs);
    color: var(--heading_dark);
    transition: transform 0.25s var(--ease_out), box-shadow 0.25s var(--ease_out);
}
.related-news__card:hover { transform: translateY(-4px); box-shadow: var(--shadow_md); }
.related-news__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf4; }
.related-news__img img { width: 100%; height: 100%; object-fit: cover; }
.related-news__body { display: block; padding: 16px 18px 18px; }
.related-news__date {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted_color);
}
.related-news__name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 991.98px) {
    body .article-detail .sidebar { flex: 0 0 100% !important; width: 100% !important; }
    .related-news__grid { grid-template-columns: 1fr; }
}
/* Five share buttons fit on one row of the 300px sidebar */
body .article-detail .share-buttons { gap: 6px !important; }
body .article-detail .share-buttons a { width: 38px !important; height: 38px !important; }
body .article-detail .share-buttons { flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 10px !important; }
body .article-detail .share-buttons a { margin: 0 !important; flex: 0 0 auto; }
/* News layout draws an accent bar under the title via ::after; leave room for it so it doesn't sit on the text */
body .article-detail .page-header-minimal .section-main-title { padding-bottom: 14px; margin-bottom: 0; }

/* ── Heritage page ───────────────────────────────────────────── */
/* Hero: shorter than the full viewport, with a left-weighted wash so the text reads on any photo */
body .our-heritage.hero-bg { height: clamp(480px, 72vh, 680px); }
body .our-heritage.hero-bg::after {
    background: linear-gradient(90deg, rgba(8, 16, 40, 0.85) 0%, rgba(8, 16, 40, 0.6) 45%, rgba(8, 16, 40, 0.12) 100%);
}
body .our-heritage h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.2; }
body .our-heritage p { font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.92); }
body .our-heritage a {
    border-radius: 6px;
    font-weight: 600;
    background: #d6911f;
    color: #14234a;
    transition: background-color 0.2s, transform 0.2s;
}
body .our-heritage a:hover { background: #e8a632; transform: translateY(-2px); }

/* Founder card: the awards table was 11px with 1px padding */
body .leader-tasks-right table {
    width: 100%;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    border-collapse: collapse;
}
body .leader-tasks-right table th,
body .leader-tasks-right table td {
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    vertical-align: top;
}
body .leader-tasks-right table th {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

/* Timeline cards: a branded fallback when a photo is missing */
body .timeline-card.no-photo .timeline-image {
    background:
        radial-gradient(circle at 78% 22%, rgba(214, 145, 31, 0.28), transparent 55%),
        linear-gradient(135deg, #14234a, #26407f);
}
body .timeline-card.no-photo .timeline-caption { background: rgba(0, 0, 0, 0.35); }
body .timeline-card.timeline-second { transition: transform 0.25s var(--ease_out), box-shadow 0.25s var(--ease_out); }
body .timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow_md); }
/* Small timeline cards: a deeper wash behind the title so it reads on bright photos */
body .timeline-card.timeline-second .second-card-content {
    padding-top: 56px;
    background: linear-gradient(to top, rgba(8, 16, 40, 0.92) 0%, rgba(8, 16, 40, 0.7) 55%, rgba(8, 16, 40, 0) 100%);
}
body .timeline-card.timeline-second .second-card-content h5,
body .timeline-card.timeline-second .second-card-content p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
body .timeline-caption { background: rgba(8, 16, 40, 0.7); font-weight: 600; letter-spacing: 0.04em; }
/* A lone last card spans the row instead of leaving a gap */
@media (min-width: 992px) {
    .our-timelines .row > div:last-child:nth-child(4n + 1) { flex: 0 0 100%; max-width: 100%; }
}
body .leader-tasks-right table th { background: rgba(255, 255, 255, 0.14) !important; }
body .leader-tasks-right table tr:nth-child(even),
body .leader-tasks-right table tr:hover { background: transparent; }
body .leader-tasks-right table thead,
body .leader-tasks-right table thead tr,
body .leader-tasks-right table tr:first-child,
body .leader-tasks-right table tr:first-child th { background: rgba(255, 255, 255, 0.14) !important; }
