/* Custom Utilities */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
}

.js-reveal-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger variants for child elements within a revealed section. */
.js-reveal-ready .reveal-stagger-1 { transition-delay: 0.08s; }
.js-reveal-ready .reveal-stagger-2 { transition-delay: 0.16s; }
.js-reveal-ready .reveal-stagger-3 { transition-delay: 0.24s; }
.js-reveal-ready .reveal-stagger-4 { transition-delay: 0.32s; }

/* Subtler horizontal slide-in for sidebar-style content. */
.js-reveal-ready .reveal.reveal-from-left { transform: translateX(-32px); }
.js-reveal-ready .reveal.reveal-from-right { transform: translateX(32px); }
.js-reveal-ready .reveal.reveal-from-left.active,
.js-reveal-ready .reveal.reveal-from-right.active { transform: translateX(0); }

/* Modern Gradient Text */
.text-gradient {
    background-size: 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(105deg, #00846e 8%, #0f766e 50%, #005445 92%);
}

/* Nav Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

#navbar {
    transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#navbar.shadow-md {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

#public-website h1 {
    text-wrap: balance;
}

#public-website p {
    text-wrap: pretty;
}

/* Contact form honeypot: visually hidden from real visitors, present in
   the DOM so naive bots auto-fill it. Reachable to assistive tech only
   via aria-hidden on the wrapper (which we set in the markup). */
.contact-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Home hero headline: fluid sizing that always fits a single line. */
.home-hero-headline {
    font-size: clamp(1.5rem, 6vw, 4.5rem);
    white-space: nowrap;
}

/* "Why Work Matters" values band: typographic crescendo for the body. */
.home-why-work .why-work-body p:first-of-type {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.home-why-work .why-work-body p:last-of-type {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #005445;
    line-height: 1.2;
    letter-spacing: -0.012em;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 84, 69, 0.18);
}

/* Optional pull-quote treatment for promoted single-sentence zingers
   inside managed rich-text blocks. Apply via class on a <p> or via
   wrapping a sentence in <strong class="ju-pullquote">. */
.ju-pullquote {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #005445;
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 1.25rem 0;
}

/* Hide scrollbar for portal sidebar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Background Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

:root {
    --ju-bg: #f3f7f6;
    --ju-surface: #ffffff;
    --ju-muted-surface: #f8fafc;
    --ju-ink: #0f172a;
    --ju-muted: #475569;
    --ju-border: #dbe4ee;
    --ju-accent: #005445;
    --ju-accent-strong: #003f35;
    --ju-accent-soft: #d7f5ee;
    --portal-ink: #0f172a;
    --portal-muted: #475569;
    --portal-surface: #ffffff;
    --portal-border: #dbe2ea;
    --portal-accent: #0f766e;
    --portal-accent-soft: #ecfeff;
}

body {
    background:
        radial-gradient(74rem 74rem at -8% -26%, rgba(15, 118, 110, 0.11), transparent 60%),
        radial-gradient(58rem 58rem at 110% -8%, rgba(6, 95, 70, 0.1), transparent 62%),
        var(--ju-bg);
    color: var(--ju-ink);
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -0.012em;
}

/* Public site polish */
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 84px;
    background: linear-gradient(180deg, rgba(243, 247, 246, 0) 0%, rgba(243, 247, 246, 0.95) 100%);
    pointer-events: none;
}

.home-hero .inline-block {
    border: 1px solid rgba(0, 84, 69, 0.15);
    box-shadow: 0 10px 25px rgba(0, 84, 69, 0.1);
}

/* Home hero brand lockup: new logo mark + "Jobs Unlimited" wordmark side by side. */
.home-hero-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}
.home-hero-lockup img {
    height: 7rem;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.home-hero-lockup .ju-wordmark {
    font-family: 'Outfit', 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: clamp(3rem, 7.5vw, 5.75rem);
    font-weight: 800;
    letter-spacing: -0.028em;
    color: #0f172a;
    line-height: 0.95;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .home-hero-lockup { margin-bottom: 2.5rem; gap: 1.75rem; }
    .home-hero-lockup img { height: 9rem; }
}
@media (max-width: 540px) {
    .home-hero-lockup { gap: 0.95rem; flex-wrap: wrap; }
    .home-hero-lockup img { height: 5rem; }
    .home-hero-lockup .ju-wordmark { font-size: clamp(2rem, 9vw, 3rem); white-space: normal; }
}

/* Top-nav brand wordmark next to the logo. */
.nav-wordmark {
    font-family: 'Outfit', 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1;
    white-space: nowrap;
}

/* Footer brand wordmark — same font as nav, light on dark footer bg. */
.footer-wordmark {
    font-family: 'Outfit', 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .nav-wordmark { font-size: 1.3rem; }
}
@media (min-width: 1024px) {
.nav-wordmark { font-size: 1.4rem; }
}
@media (max-width: 360px) {
    .nav-wordmark { display: none; }
}

/* Keyboard users should be able to bypass the fixed public navigation. */
.ju-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    transform: translateY(-160%);
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: #005445;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    transition: transform 0.16s ease;
}
.ju-skip-link:focus { transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────
   Unified outlined button (replaces pill rounded-full CTAs).
   Inspired by the autismconnections.ca CTA pattern: square corners,
   transparent fill, 1px brand border, UPPERCASE bold text, no shadow.
   ───────────────────────────────────────────────────────────────── */
.ju-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 2rem;
    border: 1.5px solid #005445;
    border-radius: 2px;
    background: transparent;
    color: #005445;
    font-family: 'Outfit', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    white-space: nowrap;
}
.ju-btn:hover {
    background: #005445;
    color: #ffffff;
    transform: translateY(-1px);
}
.ju-btn:focus-visible {
    outline: 3px solid rgba(0, 132, 110, 0.4);
    outline-offset: 3px;
}
.ju-btn i { transition: transform 0.18s ease; }
.ju-btn:hover i { transform: translateX(3px); }

/* On dark backgrounds (CTA bands, contact info pane). */
.ju-btn-on-dark {
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
}
.ju-btn-on-dark:hover {
    background: #ffffff;
    color: #005445;
}

/* Slightly compact variant (nav, in-card). */
.ju-btn-sm {
    padding: 0.5rem 1.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
}

/* ─────────────────────────────────────────────────────────────────
   Parallax photo accent band — used as a connective rhythm break
   between content sections (inspired by keyindustries.ca). The image
   is fixed-attachment on desktop so it holds while content scrolls
   over it; falls back to scroll-attachment on mobile + reduced-motion
   to avoid iOS jank.
   ───────────────────────────────────────────────────────────────── */
.ju-parallax-band {
    position: relative;
    isolation: isolate;
    min-height: 22rem;
    background-color: #003f35;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    overflow: hidden;
}
.ju-parallax-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 32, 26, 0.65) 100%),
        radial-gradient(60% 90% at 50% 50%, rgba(0, 84, 69, 0) 0%, rgba(0, 32, 26, 0.5) 90%);
    pointer-events: none;
    z-index: 0;
}
.ju-parallax-band > .ju-parallax-band-inner {
    position: relative;
    z-index: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}
.ju-parallax-band-eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
}
.ju-parallax-band-text {
    font-family: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.018em;
    text-wrap: balance;
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .ju-parallax-band { background-attachment: scroll; min-height: 18rem; }
    .ju-parallax-band > .ju-parallax-band-inner { padding: 3.5rem 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────────
   Unified photo treatment — gives every public-page photograph a
   consistent tonal feel (slight saturation + contrast tweak) without
   replacing the underlying assets. Applied via class so it's opt-in.
   ───────────────────────────────────────────────────────────────── */
.ju-photo,
.home-about img,
.home-enterprises .enterprise-card img,
.home-gallery img,
.social-enterprise-detail img {
    filter: saturate(0.96) contrast(1.04);
}

/* Polished primary CTA in the hero. */
.home-hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #005445 0%, #0f766e 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.005em;
    border: 1px solid rgba(0, 63, 53, 0.4);
    box-shadow:
        0 14px 30px rgba(0, 84, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
    cursor: pointer;
}
.home-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px rgba(0, 84, 69, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #006a57 0%, #0f8678 100%);
    color: #ffffff;
}
.home-hero-cta:focus-visible {
    outline: 3px solid rgba(0, 132, 110, 0.4);
    outline-offset: 4px;
}
.home-hero-cta i {
    transition: transform 0.18s ease;
}
.home-hero-cta:hover i { transform: translateX(3px); }

.home-journey .journey-step,
.home-services .service-card {
    border-color: var(--ju-border);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-journey .journey-step:hover,
.home-services .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 84, 69, 0.28);
    box-shadow: 0 24px 45px rgba(2, 44, 34, 0.14);
}

.home-services .service-card .w-14 {
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-enterprises {
    background:
        radial-gradient(48rem 20rem at 50% -18%, rgba(0, 84, 69, 0.06), transparent 70%),
        var(--ju-surface);
}

.home-enterprises .enterprise-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.home-enterprises .enterprise-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.55;
    pointer-events: none;
}

.home-support {
    background:
        radial-gradient(42rem 20rem at 12% 10%, rgba(190, 24, 93, 0.08), transparent 62%),
        radial-gradient(36rem 18rem at 92% 18%, rgba(127, 29, 29, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.donate-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
    padding: 2rem;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 250, 251, 0.98) 55%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    position: relative;
}

.donate-feature::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.4rem;
    pointer-events: none;
}

.donate-feature-copy,
.donate-feature-card {
    position: relative;
    z-index: 1;
}

.donate-feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(225, 29, 72, 0.18);
}

/* Donate "Donate Now" button — same outlined-rectangular shape as
   .ju-btn, but uses the charity-prominence rose/red palette. */
.donate-feature-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 2.25rem;
    border: 1.5px solid #be123c;
    border-radius: 2px;
    background: transparent;
    color: #be123c;
    font-family: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    white-space: nowrap;
}
.donate-feature-button:hover {
    background: #be123c;
    color: #ffffff;
    transform: translateY(-1px);
}
.donate-feature-button:focus-visible {
    outline: 3px solid rgba(244, 63, 94, 0.28);
    outline-offset: 3px;
}

/* Red Donate variant of .ju-btn for the public nav. */
.ju-btn-donate {
    border-color: #be123c;
    color: #be123c;
}
.ju-btn-donate:hover {
    background: #be123c;
    color: #ffffff;
}

.donate-feature-card {
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #7f1d1d 0%, #991b1b 35%, #be123c 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.donate-feature-stat {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.donate-feature-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.donate-feature-stat-value {
    display: block;
    margin-top: 0.6rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.donate-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fecdd3;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.home-quote {
    background: linear-gradient(120deg, #01392f 0%, #005445 35%, #003228 100%);
}

.home-contact {
    background:
        radial-gradient(42rem 24rem at 0% 0%, rgba(0, 84, 69, 0.07), transparent 60%),
        var(--ju-bg);
}

.home-contact .contact-shell {
    border: 1px solid var(--ju-border);
    box-shadow: 0 28px 48px rgba(15, 23, 42, 0.14);
}

.home-contact .contact-info-pane {
    background: linear-gradient(165deg, #005445 0%, #0b6b5b 52%, #0b5f52 100%);
}

.home-contact .contact-form-pane {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.home-contact input,
.home-contact textarea {
    border-color: #ced8e4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home-contact input:focus,
.home-contact textarea:focus {
    border-color: rgba(0, 84, 69, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 132, 110, 0.15);
    background: #fff;
}

.home-contact #reg-submit-btn,
.home-contact #reg-verify-btn {
    background: linear-gradient(135deg, var(--ju-accent) 0%, #0f766e 100%);
    border: 1px solid rgba(0, 63, 53, 0.3);
}

.home-footer {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
}

#cookie-banner {
    background: rgba(9, 16, 30, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner .text-sm {
    max-width: 60rem;
}

#cookie-banner button {
    border-radius: 0.7rem;
}

/* Client portal shell */
.portal-shell {
    position: relative;
    min-height: 100dvh;
    justify-content: center;
}

.portal-main {
    min-width: 0;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0.75rem;
    overflow-x: hidden;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

body.portal-no-scroll {
    overflow: hidden;
}

#portal-view {
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(241, 245, 249, 0.98)),
        radial-gradient(90rem 60rem at 0% 0%, rgba(15, 118, 110, 0.08), transparent 60%);
    overflow-x: hidden;
}

#portal-sidebar {
    background:
        linear-gradient(160deg, #0b1120 0%, #101827 48%, #12263b 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: min(18rem, 84vw);
    height: 100dvh;
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.35);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.portal-shell.sidebar-open .portal-sidebar {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .portal-shell {
        justify-content: flex-start;
        align-items: stretch;
    }

    .portal-sidebar {
        position: sticky;
        top: 0;
        transform: none;
        width: 16rem;
        min-width: 16rem;
        box-shadow: none;
    }

    #portal-sidebar-backdrop,
    #portal-sidebar-close,
    #portal-menu-toggle {
        display: none !important;
    }

    .portal-main {
        max-width: none;
        width: min(100%, 1200px);
        margin: 0;
        padding: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.portal-link {
    border: 1px solid transparent;
    border-radius: 0.85rem;
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.portal-link.bg-gray-800 {
    border-color: rgba(45, 212, 191, 0.35);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.34), rgba(17, 24, 39, 0.44));
}

.portal-link:hover {
    border-color: rgba(148, 163, 184, 0.22);
}

.portal-topbar {
    border: 1px solid var(--portal-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.portal-view > div {
    border-color: var(--portal-border) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.portal-view .bg-white {
    border-color: var(--portal-border);
}

.portal-view table th {
    background: #f8fafc;
    color: #334155;
    letter-spacing: 0.01em;
}

.portal-view table td,
.portal-view table th {
    border-color: #e2e8f0;
}

#notification-center-panel {
    border-color: #dbe4ee;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.notification-item {
    padding: 0.7rem 0.85rem;
    background: #fff;
}

.notification-item.unread {
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 75%);
}

.notification-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

.notification-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.notification-item-time {
    font-size: 0.67rem;
    color: #64748b;
}

.notification-item-msg {
    margin-top: 0.25rem;
    font-size: 0.76rem;
    color: #334155;
}

.notification-item-actions {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
}

.portal-main > header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -0.75rem -0.75rem 0.75rem;
    padding: 0.75rem;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.portal-mobile-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 35;
    width: min(100%, 430px);
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem calc(env(safe-area-inset-bottom, 0px) + 0.7rem);
    background: linear-gradient(180deg, rgba(243, 247, 246, 0) 0%, rgba(243, 247, 246, 0.92) 32%, rgba(243, 247, 246, 0.98) 100%);
    pointer-events: none;
}

.portal-mobile-nav-inner {
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.16);
}

.portal-mobile-tab {
    min-height: 3.5rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: transparent;
    color: #475569;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.portal-mobile-tab i {
    width: 1rem;
    height: 1rem;
}

.portal-mobile-tab:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.portal-mobile-tab.is-active {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.18);
}

#page-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

#view-dashboard .text-2xl {
    font-size: 1.5rem;
    line-height: 1.25;
}

#notification-center-panel {
    right: -0.5rem;
    width: min(24rem, 92vw);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js-reveal-ready .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .home-hero .inline-block {
        margin-bottom: 1rem;
    }

    .home-enterprises .enterprise-card .text-white\/80 {
        opacity: 1 !important;
        transform: none !important;
    }

    .donate-feature {
        grid-template-columns: 1fr;
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

    .donate-feature-card {
        padding: 1.2rem;
    }

    .donate-feature-button {
        width: 100%;
    }

    #cookie-banner {
        padding: 0.85rem 0.75rem;
    }

    #cookie-banner .max-w-7xl {
        gap: 0.85rem;
        align-items: flex-start;
    }

    #cookie-banner .flex-shrink-0 {
        width: 100%;
        justify-content: space-between;
    }

    #cookie-banner .flex-shrink-0 button {
        flex: 1 1 0;
        min-height: 2.5rem;
    }

    .home-contact .contact-shell {
        border-radius: 1.1rem;
    }

    .home-contact .contact-info-pane,
    .home-contact .contact-form-pane {
        padding: 1.5rem;
    }

    #notification-toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }

    .portal-main {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Public Calendar (WEB-04) */
.btn-cal-nav {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #e5e7eb;
  font-size: 1.25rem; color: #374151; cursor: pointer;
  background: transparent; transition: background 0.15s;
}
.btn-cal-nav:hover { background: #f3f4f6; }
.public-cal-grid {
  display: grid; gap: 4px;
}
.public-cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 2px; row-gap: 3px;
}
.public-cal-week-header {
  grid-template-rows: auto;
}
.public-cal-day-header {
  text-align: center; font-size: 0.7rem; font-weight: 700;
  color: #9ca3af; text-transform: uppercase; padding: 4px 0;
}
.public-cal-day {
  min-height: 4rem; padding: 6px 6px 4px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: #374151; text-align: center; position: relative;
  background: #ffffff; transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.public-cal-day.other-month { color: #d1d5db; background: #fafafa; }
.public-cal-day.is-today {
  box-shadow: inset 0 0 0 2px #1d4ed8; color: #1d4ed8; font-weight: 700;
}
/* Days with events get a per-event-color tint applied inline in JS so the
   whole cell visibly fills with the event's color. The static gradient
   that used to live here is intentionally gone. */
.public-cal-day.has-event {
  font-weight: 700; cursor: pointer;
}
.public-cal-day.has-event.other-month { color: #6b7280; }
.public-cal-day.has-event:hover { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.public-cal-day:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.public-cal-event-segment {
  display: block; min-height: 24px; line-height: 24px; padding: 0 8px;
  font-size: 0.78rem; font-weight: 600; color: #ffffff;
  border-radius: 5px; border: 0; cursor: pointer; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.public-cal-event-segment:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
.public-cal-event-segment.continues-before { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 4px; }
.public-cal-event-segment.continues-after { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 4px; }
.public-cal-event-segment.continues-before::before {
  content: '‹'; opacity: 0.7; margin-right: 2px;
}
.public-cal-event-segment.continues-after::after {
  content: '›'; opacity: 0.7; margin-left: 2px;
}
.public-cal-more {
  display: block; min-height: 16px; line-height: 16px; padding: 0 4px;
  font-size: 0.65rem; font-weight: 600; color: #4b5563;
  background: transparent; border: 0; cursor: pointer; text-align: center;
}
.public-cal-more:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.public-cal-legend {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e7eb;
}
.public-cal-legend-item {
  display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: #374151;
}
.public-cal-legend-swatch {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.public-cal-legend-label { font-weight: 600; }
.public-cal-legend-range { color: #6b7280; }
.public-cal-popover {
  position: absolute; z-index: 80; max-width: 280px; min-width: 180px;
  background: #ffffff; color: #111827; border: 1px solid #e5e7eb;
  border-radius: 8px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.public-cal-popover[hidden] { display: none; }
.public-cal-popover-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 6px; border-radius: 6px;
}
.public-cal-popover-row + .public-cal-popover-row { border-top: 1px solid #f3f4f6; }
.public-cal-popover-swatch {
  width: 10px; height: 10px; margin-top: 4px; border-radius: 3px; flex-shrink: 0;
}
.public-cal-popover-text { display: flex; flex-direction: column; gap: 2px; }
.public-cal-popover-label { font-size: 0.85rem; font-weight: 600; color: #111827; }
.public-cal-popover-range { font-size: 0.75rem; color: #6b7280; }

/* Community Champions ticker */
.ticker-link { text-decoration: none; color: inherit; }
.ticker-viewport {
  overflow: hidden; mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex; gap: 48px; align-items: center; width: max-content;
  animation: tickerScroll 45s linear infinite; will-change: transform;
}
.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 4px 8px; color: #4b5563;
}
.ticker-logo { height: 36px; width: auto; max-width: 110px; object-fit: contain; }
.ticker-logo-sm { height: 24px; max-width: 80px; }
.ticker-logo-md { height: 36px; max-width: 110px; }
.ticker-logo-lg { height: 56px; max-width: 170px; }
.ticker-label { font-size: 0.85rem; font-weight: 600; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 180s; }
}

/* Static partner banner */
.partner-banner {
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  align-items: center; justify-content: center;
}
.partner-item {
  display: flex; align-items: center; gap: 10px;
  color: #374151; text-decoration: none;
}
.partner-logo { height: 32px; width: auto; max-width: 110px; object-fit: contain; }
.partner-logo-sm { height: 22px; max-width: 80px; }
.partner-logo-md { height: 32px; max-width: 110px; }
.partner-logo-lg { height: 52px; max-width: 170px; }
.partner-label { font-size: 0.85rem; font-weight: 600; }

/* Community Champion profile image sizing on /community-champions.html */
.champion-detail-logo-sm { width: auto; }
.champion-detail-logo-md { width: auto; }
.champion-detail-logo-lg { width: auto; }
@media (min-width: 768px) {
  .champion-detail-logo-sm { width: 9rem; }
  .champion-detail-logo-md { width: 13rem; }
  .champion-detail-logo-lg { width: 18rem; }
}
.champion-detail-image-sm { max-height: 5.5rem; max-width: 100%; }
.champion-detail-image-md { max-height: 9rem; max-width: 100%; }
.champion-detail-image-lg { max-height: 14rem; max-width: 100%; }

/* ─────────────────────────────────────────────────────────────────
   Public site — shared editorial components (subpages + home polish)
   ───────────────────────────────────────────────────────────────── */

/* Branded hero band for /about, /champions, /social-enterprises. */
.ju-subpage-hero {
  position: relative;
  isolation: isolate;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 80% -10%, rgba(15, 118, 110, 0.16), transparent 60%),
    radial-gradient(48rem 24rem at -10% 110%, rgba(0, 84, 69, 0.12), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f3f7f6 100%);
  border-bottom: 1px solid rgba(0, 84, 69, 0.08);
}
.ju-subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
  z-index: -1;
}
.ju-subpage-hero .ju-subpage-hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.ju-subpage-hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-top: 0.75rem;
}
.ju-subpage-hero .ju-subpage-hero-lede {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: #334155;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .ju-subpage-hero { padding: 9.5rem 0 6.25rem; }
}

/* Photo-backdrop variant — supplies a parallax photograph behind the
   subpage hero with a dark gradient overlay so all the hero text and
   stats stay legible. Pages opt in by adding the .ju-subpage-hero-photo
   class plus a `--ju-hero-photo: url(...)` custom property. */
.ju-subpage-hero-photo {
  --ju-hero-photo: none;
  background-image:
    linear-gradient(180deg, rgba(2, 33, 27, 0.55) 0%, rgba(2, 33, 27, 0.85) 100%),
    var(--ju-hero-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-bottom: 0;
  color: #ffffff;
}
.ju-subpage-hero-photo::before { display: none; }
.ju-subpage-hero-photo h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}
.ju-subpage-hero-photo .ju-subpage-hero-lede {
  color: rgba(255, 255, 255, 0.92);
}
.ju-subpage-hero-photo .ju-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
}
.ju-subpage-hero-photo .ju-kicker::before {
  background: #ffffff;
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .ju-subpage-hero-photo { background-attachment: scroll; }
}

/* Eyebrow / kicker label. Square-cornered to match the .ju-btn family. */
.ju-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  background: rgba(0, 84, 69, 0.08);
  color: #005445;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 84, 69, 0.18);
}

/* Section header (kicker + title + description, centered). */
.ju-section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.ju-section-header h2 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.014em;
}
.ju-section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
}

/* Two-column editorial story grid. */
.ju-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .ju-editorial {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
  }
}

/* Editorial block — clean typographic stack, no card decoration.
   Used for long-form text sections on About + Champions. Visual
   hierarchy comes from a short brand accent bar above each heading
   plus the existing grid spacing, not from boxes around every
   paragraph. */
.ju-editorial-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}
.ju-editorial-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #005445 0%, #0f766e 100%);
  margin-bottom: 0.95rem;
}
.ju-editorial-card:hover {
  box-shadow: none;
  transform: none;
  border: 0;
}
.ju-editorial-card h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ju-editorial-card .ju-editorial-card-body {
  margin-top: 0.85rem;
  color: #374151;
  line-height: 1.7;
}
.ju-editorial-card .ju-editorial-card-body p + p { margin-top: 0.75rem; }
.ju-editorial-card .ju-editorial-card-body ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
}
.ju-editorial-card .ju-editorial-card-body ul li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.55;
  color: #334155;
}
.ju-editorial-card .ju-editorial-card-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.ju-editorial-card .ju-editorial-card-body ul + p { margin-top: 1rem; }

/* Wide variant — span full row in 2-col grid. */
.ju-editorial-card.is-wide { grid-column: 1 / -1; }

/* Pull-quote panel — full-width emphasis. */
.ju-pullquote-panel {
  position: relative;
  background: linear-gradient(135deg, #003f35 0%, #005445 45%, #0f766e 100%);
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 84, 69, 0.22);
}
.ju-pullquote-panel::before {
  content: "“";
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  font-family: 'Space Grotesk', Georgia, serif;
  font-size: 12rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.ju-pullquote-panel-text {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 48rem;
  margin: 0 auto;
  text-wrap: balance;
}
.ju-pullquote-panel-attribution {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) {
  .ju-pullquote-panel { padding: 4rem 3rem; }
}

/* Value pillars (e.g. "What We Believe"). */
.ju-value-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ju-value-pillar {
  background: #ffffff;
  border: 1px solid rgba(0, 84, 69, 0.12);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ju-value-pillar:hover {
  border-color: rgba(0, 84, 69, 0.32);
  box-shadow: 0 16px 32px rgba(0, 84, 69, 0.1);
  transform: translateY(-3px);
}
.ju-value-pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 84, 69, 0.1) 0%, rgba(15, 118, 110, 0.18) 100%);
  color: #005445;
}
.ju-value-pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ju-value-pillar-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

/* Mission card — centered emphasized statement. */
.ju-mission-card {
  position: relative;
  background:
    radial-gradient(40rem 18rem at 50% 0%, rgba(15, 118, 110, 0.1), transparent 65%),
    #ffffff;
  border: 1px solid rgba(0, 84, 69, 0.18);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  max-width: 56rem;
  margin: 0 auto;
}
.ju-mission-card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #005445;
}
.ju-mission-card-text {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* CTA band before footer. */
.ju-cta-band {
  background:
    radial-gradient(50rem 24rem at 80% 50%, rgba(15, 118, 110, 0.18), transparent 60%),
    linear-gradient(135deg, #003f35 0%, #005445 50%, #0f766e 100%);
  color: #ffffff;
  padding: 4rem 0;
}
.ju-cta-band-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .ju-cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}
.ju-cta-band h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: #ffffff;
  text-wrap: balance;
}
.ju-cta-band p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 36rem;
}
.ju-cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
.ju-cta-band-primary,
.ju-cta-band-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 2rem;
  border-radius: 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #ffffff;
  font-family: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.ju-cta-band-primary:hover,
.ju-cta-band-secondary:hover {
  background: #ffffff;
  color: #005445;
}
.ju-cta-band-primary i,
.ju-cta-band-secondary i { transition: transform 0.18s ease; }
.ju-cta-band-primary:hover i,
.ju-cta-band-secondary:hover i { transform: translateX(3px); }

/* Shared full footer for sub-pages (sitemap variant matches home). */
.ju-site-footer {
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ju-site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .ju-site-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.ju-site-footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}
.ju-site-footer ul { display: grid; gap: 0.55rem; }
.ju-site-footer ul a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.ju-site-footer ul a:hover { color: #ffffff; }
.ju-site-footer-tagline {
  color: #9ca3af;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 26rem;
}
.ju-site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 1.5rem 1.75rem;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  color: #6b7280;
  font-size: 0.82rem;
}
@media (min-width: 768px) {
  .ju-site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.ju-site-footer-bottom a { color: #9ca3af; }
.ju-site-footer-bottom a:hover { color: #ffffff; }

/* Section spacing helper. */
.ju-section-pad { padding: 4.5rem 0; }
@media (min-width: 768px) { .ju-section-pad { padding: 6rem 0; } }

/* Two-up content/image layout used on subpage Impact-style sections. */
.ju-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .ju-split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}
.ju-split-row.is-reversed > :first-child { order: 2; }
@media (max-width: 767px) {
  .ju-split-row.is-reversed > :first-child { order: 0; }
}

/* Refined service-card icon palette — bring purple/orange into brand range. */
.home-services .service-card .ju-icon-sage {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
}
.home-services .service-card .ju-icon-teal {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  color: #0f766e;
}
.home-services .service-card .ju-icon-slate {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #334155;
}

/* Tone down the home hero so it feels editorial, not a pitch deck. */
.home-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f6 100%);
}

/* Roster (about page leadership grid) polish. */
.ju-roster-card-pro {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 1.4rem 1.1rem 1.25rem;
  text-align: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.ju-roster-card-pro:hover {
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.ju-roster-photo-pro {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
  background: linear-gradient(135deg, #d7f5ee 0%, #a7f3d0 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 84, 69, 0.18), 0 8px 18px rgba(0, 84, 69, 0.12);
}

/* THE visibility state flag for the public pages. This sheet loads after
   tailwind.css, so a single-class rule that declares `display` beats Tailwind's
   `.hidden` and the toggle does nothing -- e.g. `#public-cal-legend`
   (`.public-cal-legend { display: flex }`) never hid when it had no items.
   `!important` also beats Tailwind's responsive reveals, so each
   `hidden <bp>:<display>` pair the public markup uses is restored below.
   Guarded by tests-node/hidden-state-flag-css.test.js. */
.hidden { display: none !important; }
@media (min-width: 640px) {
  .hidden.sm\:inline { display: inline !important; }
}
@media (min-width: 768px) {
  .hidden.md\:flex { display: flex !important; }
}
