﻿/* Changelog note: Scoped About Us styles for the updated accessible layout. */
/* Page-scoped color tokens + overall background treatment. */
.about-page-main {
    --about-bg: #f5f8fb;
    --about-surface: #ffffff;
    --about-border: #d5dce5;
    --about-primary: #0e4c90;
    --about-primary-soft: #000000;
    --about-text: #0e4c90;
    --about-muted: #0e4c90;
    --about-focus: #f3b700;
    --about-header-accent: #0e4c90;
    background: radial-gradient(circle at 8% 6%, #e7f1fb 0%, #f5f8fb 35%, #f7fafc 100%);
    color: var(--about-text);
    padding-bottom: 3rem;
}

/* Two-column shell for sidebar navigation and main content. */
.about-page-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
}

/* Sticky sidebar container and card surface styling. */
.about-sidebar {
    position: sticky;
    top: 1rem;
}

.about-sidebar-panel {
    border: 1px solid #c6d8ec;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%);
    box-shadow: -18px 0 34px rgba(0, 0, 0, 0.14);
    color: #0e4c90;
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.about-sidebar-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #c6d8ec;
}

.about-sidebar-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.about-sidebar-title a {
    color: inherit;
    text-decoration: none;
}

.about-sidebar-toggle {
    display: none;
    border: 1px solid #c5d9ee;
    background: #ffffff;
    color: #0e4c90;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
}

.about-sidebar-nav {
    padding: 0.4rem 0 0.8rem;
    overflow-y: auto;
}

.about-sidebar-menu,
.about-sidebar-submenu,
.about-page-section-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Shared link treatment for sidebar + on-page section links. */
.about-sidebar-link,
.about-sidebar-submenu a,
.about-page-section-links a {
    display: block;
    color: #0e4c90;
    text-decoration: none;
    padding: 0.62rem 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 10px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.about-sidebar-submenu a,
.about-page-section-links a {
    padding-left: 1.3rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: #0e4c90;
}

.about-page-section-links a {
    padding-left: 1.8rem;
    color: #0e4c90;
}

.about-sidebar-item.is-current > .about-sidebar-link {
    background: #e8f3ff;
    color: #0e4c90;
}

.about-sidebar-link:hover,
.about-sidebar-submenu a:hover,
.about-page-section-links a:hover {
    background: #0e4c90;
    color: #ffffff;
    transform: translateX(2px);
}

.about-sidebar-link:focus-visible,
.about-sidebar-submenu a:focus-visible,
.about-page-section-links a:focus-visible {
    outline: 3px solid var(--about-header-accent);
    outline-offset: 1px;
    background: #e8f3ff;
    transform: none;
    color: #0e4c90;
}

.about-sidebar-submenu,
.about-page-section-links {
    margin-left: 0.5rem;
    padding-left: 0.65rem;
    border-left: 2px solid #56c0e8;
}

.about-page-section-links {
    margin-top: 0.2rem;
}

/* Main content card and rich text spacing rules. */
.about-content {
    min-width: 0;
}

.about-page-content,
.about-section-content {
    overflow-wrap: anywhere;
    word-break: normal;
}

.about-page-content ul,
.about-page-content ol,
.about-section-content ul,
.about-section-content ol {
    margin: 0.5rem 0 0.9rem;
    padding-left: 1.35rem;
}

.about-page-content li,
.about-section-content li {
    margin-bottom: 0.35rem;
}

.about-page-content a,
.about-section-content a {
    overflow-wrap: anywhere;
}

.about-primary-content,
.about-section {
    background: var(--about-surface);
    border: 1px solid var(--about-border);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 8px 20px rgba(16, 32, 48, 0.08);
}

.about-section + .about-section,
.about-page-sections + .leadership-section,
.about-primary-content + .about-page-sections {
    margin-top: 1.2rem;
}

.about-page-image,
.about-section-image {
    display: block;
    width: auto;
    max-width: min(100%, 560px);
    height: auto;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(9, 19, 26, 0.18), 0 2px 8px rgba(9, 19, 26, 0.1);
    border: 1px solid rgba(9, 19, 26, 0.08);
    overflow: hidden;
    margin: 0 0 1rem;
}

/* Apply matching polish to rich-text images inside About content sections. */
.about-page-content img:not(.emoji):not(.wp-smiley),
.about-section-content img:not(.emoji):not(.wp-smiley) {
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(9, 19, 26, 0.18), 0 2px 8px rgba(9, 19, 26, 0.1);
    border: 1px solid rgba(9, 19, 26, 0.08);
    overflow: hidden;
}

.about-section h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--about-primary);
}

.about-section h3 {
    color: #000000;
    margin: 1rem 0 0.75rem;
}

.about-section-links h3 {
    margin-bottom: 0.55rem;
}

.about-section-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-section-links li + li {
    margin-top: 0.4rem;
}

.about-section-links a {
    color: var(--about-primary);
    text-underline-offset: 0.2em;
}

/* Person-card grid used by board and administration sections. */
.about-cards-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-person-card {
    border: 1px solid var(--about-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-person-photo {
    flex: 0 0 96px;
    max-width: 96px;
}

.about-person-photo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #cfd8e2;
    box-shadow: 0 4px 10px rgba(11, 36, 62, 0.1);
}

.about-person-info {
    min-width: 0;
}

.about-person-info--no-photo {
    width: 100%;
    text-align: center;
}

.about-person-name {
    margin: 0;
    color: var(--about-primary);
    font-size: 1.08rem;
    line-height: 1.25;
}

.about-person-title {
    margin: 0.4rem 0 0;
    color: #0e4c90;
    font-weight: 700;
}

.about-person-bio {
    margin: 0.55rem 0 0;
    color: #0e4c90;
}

.about-person-contact {
    margin: 0.7rem 0 0;
}

.about-person-contact dt {
    font-weight: 700;
    color: #0e4c90;
}

.about-person-contact dd {
    margin: 0;
}

.about-person-contact div + div {
    margin-top: 0.45rem;
}

.about-person-contact a,
.about-content a {
    color: #0e4c90;
    text-underline-offset: 0.2em;
}

.about-page-main a:focus-visible,
.about-page-main button:focus-visible {
    outline: 3px solid var(--about-focus);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Mobile fallback: stack layout and expose menu toggle. */
@media (max-width: 960px) {
    .about-page-layout {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        position: static;
    }

    .about-sidebar-panel {
        max-height: none;
    }

    .about-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-sidebar-nav {
        display: none;
    }

    .about-sidebar-nav[data-is-open="true"] {
        display: block;
    }

    .about-primary-content,
    .about-section {
        padding: 1.1rem;
    }
}

@media (max-width: 640px) {
    .about-person-card {
        flex-direction: column;
        align-items: stretch;
    }

    .about-person-photo {
        max-width: 82px;
        flex-basis: auto;
    }

    .about-person-photo img {
        width: 82px;
        height: 82px;
    }
}



