:root {
    --brand-blue: #0b5ea8;
    --brand-blue-deep: #173b66;
    --brand-blue-night: #102844;
    --brand-green: #6fbb57;
    --brand-green-soft: #edf8e8;
    --brand-slate: #727a84;
    --brand-ink: #1e2f45;
    --brand-muted: #617086;
    --brand-line: #dbe5ef;
    --brand-panel: rgba(255, 255, 255, 0.92);
    --brand-bg: #f5f8fc;
}

body.brand-body {
    background:
        radial-gradient(circle at top left, rgba(111, 187, 87, 0.10), transparent 24rem),
        radial-gradient(circle at top right, rgba(11, 94, 168, 0.10), transparent 30rem),
        linear-gradient(180deg, #fbfdff 0%, var(--brand-bg) 100%);
    color: var(--brand-ink);
    font-family: "Inter", system-ui, sans-serif;
}

.font-display {
    font-family: "Sora", "Inter", sans-serif;
    letter-spacing: -0.03em;
}

.brand-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 229, 239, 0.9);
}

.public-section {
    /* Keep the first meaningful content close to the site header on every page. */
    padding-top: clamp(1.75rem, 3.5vw, 3rem);
    padding-bottom: clamp(3rem, 5vw, 4.25rem);
}

.public-section-tight {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.public-copy > * + * {
    margin-top: 0.95rem;
}

.public-copy p,
.public-copy li {
    line-height: 1.7;
}

.public-nav-link {
    white-space: nowrap;
}

.brand-card {
    background: var(--brand-panel);
    border: 1px solid rgba(219, 229, 239, 0.9);
    box-shadow: 0 18px 48px rgba(16, 40, 68, 0.08);
    border-radius: 1.5rem;
}

.brand-soft-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.96));
    border: 1px solid rgba(219, 229, 239, 0.95);
    border-radius: 1.25rem;
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(11, 94, 168, 0.28);
    box-shadow: 0 22px 55px rgba(16, 40, 68, 0.14);
    outline: none;
}

.brand-panel-dark {
    background: linear-gradient(145deg, var(--brand-blue-night), var(--brand-blue-deep));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(16, 40, 68, 0.20);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(111, 187, 87, 0.12);
    color: var(--brand-green);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(111, 187, 87, 0.16), rgba(11, 94, 168, 0.12));
    color: var(--brand-blue-deep);
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 16px 32px rgba(11, 94, 168, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    border: 1px solid rgba(23, 59, 102, 0.16);
    color: var(--brand-blue-deep);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: white;
}

.metric-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(219, 229, 239, 0.9);
    border-radius: 1.35rem;
    padding: 1.35rem;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -2rem -2rem auto;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(111, 187, 87, 0.18), transparent 65%);
}

.section-divider {
    border-top: 1px solid rgba(219, 229, 239, 0.85);
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(219, 229, 239, 0.7);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list span:first-child {
    color: var(--brand-muted);
    font-size: 0.85rem;
}

.contact-list span:last-child,
.contact-list a {
    color: var(--brand-ink);
    font-weight: 600;
}

.portal-shell {
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.92), rgba(245, 248, 252, 0.98));
}

.portal-sidebar {
    background: linear-gradient(180deg, var(--brand-blue-night), var(--brand-blue-deep));
}

.portal-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.portal-link:hover,
.portal-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(1px);
}

.portal-kpi {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 229, 239, 0.95);
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(219, 229, 239, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 229, 239, 0.55) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
}

/* Keep the long mobile-menu actions usable on narrow phones. */
@media (max-width: 639px) {
    #mobile-menu .btn-primary,
    #mobile-menu .btn-secondary {
        min-width: 0;
        min-height: 2.9rem;
        padding-inline: 0.65rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Editorial photographs stay secondary to the existing copy. */
.homepage-welcome { background: #f8fafc; }
.welcome-photo { width: 100%; max-width: 38rem; height: auto; max-height: 22rem; object-fit: contain; border-radius: 1.25rem; }
.about-support-photo { width: 100%; max-width: 42rem; height: auto; border-radius: 1.25rem; }
.homepage-photo-card::after { content: ''; display: block; clear: both; }
.card-photo { float: right; width: 30%; max-width: 8rem; height: auto; margin: 0 0 1rem 1rem; border-radius: 1rem; }
.website-banner { display: block; width: 100%; height: auto; object-fit: contain; }
.website-banner-link { display: block; border-radius: 1rem; overflow: hidden; }
.website-video video, .website-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 1rem; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.testimonial-portrait { width: 6rem; height: 6rem; object-fit: cover; border-radius: 50%; }
.testimonial-card { min-width: 0; overflow-wrap: anywhere; }
.testimonial-controls { display: none; }
.website-banner-link:focus-visible, .testimonial-track:focus-visible, .testimonial-card summary:focus-visible { outline: 3px solid #0078be; outline-offset: 5px; }
.media-preview-notice { padding: 1rem; background: #fef3c7; color: #78350f; text-align: center; }
.media-preview-notice a { text-decoration: underline; font-weight: 600; }
@media (max-width: 767px) {
    .testimonial-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 4px 4px 1rem; }
    .testimonial-card { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; }
    .testimonial-controls { display: flex; }
}
