/*
Theme Name: ACE Theme
Theme URI: https://aceinitiative.org
Description: ACE custom theme on top of a compiled Tailwind build.
Version: 1.0.1
*/

/* Accessibility utility: visually hidden but readable by screen readers. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link (WCAG 2.4.1). Visible only when focused. */
.ace-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--primary, 220 39% 11%));
    color: hsl(var(--primary-foreground, 0 0% 98%));
    border: 2px solid hsl(var(--neon, 70 90% 55%));
    border-radius: 0 0 0.375rem 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.ace-skip-link:focus {
    left: 1rem;
    top: 0;
    outline: none;
}

/* Honeypot: visually hidden but still filled in by bots. */
.ace-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* <details> open/closed label swap and chevron rotation.
   Used by the Read More toggle on leadership/board cards. */
.details-open { display: none; }
details[open] .details-closed { display: none; }
details[open] .details-open { display: inline; }
details[open] .details-chevron { transform: rotate(180deg); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Guarantee the mobile-only hamburger button is hidden on desktop,
   even if the Tailwind lg:hidden variant isn't in the compiled build. */
@media (min-width: 1024px) {
    .ace-nav-toggle { display: none !important; }
}

/* Guaranteed utilities not included in the compiled Tailwind build.
   Needed by the centered-logo header and a few page shells. */
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.left-6 { left: 1.5rem; }

/* Restore paragraph spacing inside ACF WYSIWYG outputs.
   Tailwind's Preflight resets p margins; these rules only apply inside
   .ace-prose wrappers so the rest of the site is unaffected. */
.ace-prose p + p { margin-top: 1rem; }
.ace-prose strong { font-weight: 700; }
.ace-prose em { font-style: italic; }
.ace-prose a { color: hsl(var(--burnt-sienna, 10 55% 45%)); text-decoration: underline; }
.ace-prose a:hover { text-decoration: none; }
.ace-prose ul, .ace-prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.ace-prose ul { list-style: disc; }
.ace-prose ol { list-style: decimal; }
.ace-prose li { margin: 0.25rem 0; }
.ace-prose h2, .ace-prose h3, .ace-prose h4 { font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* =====================================================
   Home page — 1:1 match of the static site
   Scoped to .ace-home-static so other pages aren't affected.
   ===================================================== */
.ace-home-static {
    --navy: #1B2132;
    --lime: #C8E64A;
    --lime-hover: #d6f05c;
    --brown-deep: #4E2A1D;
    --text-dark: #1B2132;
    --text-body: #3d3d4a;
    --max-width: 980px;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
.ace-home-static + .stay-informed-banner {
    --navy: #1B2132;
    --lime: #C8E64A;
    --lime-hover: #d6f05c;
    --brown-deep: #4E2A1D;
}
.ace-home-static .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}
.ace-home-static .founders-section {
    padding: 52px 0 64px;
}
.ace-home-static .page-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.ace-home-static .section-divider {
    border: none;
    border-top: 2px solid var(--navy);
    margin: 12px 0 36px;
}
.ace-home-static .founders-body {
    padding: 32px 0;
    max-width: 680px;
}
.ace-home-static .founders-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}
.ace-home-static .founders-body p:last-child { margin-bottom: 0; }
.ace-home-static .founders-body p strong { font-weight: 700; color: var(--text-dark); }
.ace-home-static .founders-body ul.founders-principles {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1.25rem 0;
}
.ace-home-static .founders-body ul.founders-principles li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}
.ace-home-static .signatures {
    display: flex;
    gap: 56px;
    margin-top: 44px;
    padding-bottom: 24px;
    flex-wrap: wrap;
}
.ace-home-static .signature-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ace-home-static .signature-line {
    width: 180px;
    height: 44px;
    display: flex;
    align-items: flex-end;
}
.ace-home-static .signature-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    padding-top: 8px;
    border-top: 2px solid var(--navy);
    width: 180px;
}
.stay-informed-banner {
    --navy: #1B2132;
    --lime: #C8E64A;
    --lime-hover: #d6f05c;
    --brown-deep: #4E2A1D;
    background: #4E2A1D;
    background-image: linear-gradient(rgba(78,42,29,0.92), rgba(78,42,29,0.92)),
        url('https://images.unsplash.com/photo-1591825729269-caeb344f6df2?w=1400&q=80&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 44px 0;
}
.stay-informed-banner .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}
.stay-informed-banner .stay-informed-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.stay-informed-banner .btn-stay-informed {
    display: inline-block;
    background: #C8E64A;
    color: #1B2132;
    font-weight: 700;
    padding: 14px 32px;
    font-size: 0.88rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    border-radius: 2px;
}
.stay-informed-banner .btn-stay-informed:hover {
    background: #d6f05c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,230,74,0.3);
}
.stay-informed-banner .stay-informed-inner p {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.7;
    flex: 1;
}

/* Heading sizes inside .ace-prose for long-form/legal content. */
.ace-prose > h2, .ace-prose h2.wp-block-heading { font-size: 1.5rem; line-height: 2rem; margin-top: 2.25rem; color: hsl(var(--foreground, 222 47% 11%)); }
.ace-prose > h3, .ace-prose h3.wp-block-heading { font-size: 1.125rem; line-height: 1.75rem; margin-top: 1.5rem; color: hsl(var(--foreground, 222 47% 11%)); }
.ace-prose > h4, .ace-prose h4.wp-block-heading { font-size: 1rem; line-height: 1.5rem; margin-top: 1.25rem; color: hsl(var(--foreground, 222 47% 11%)); }
.ace-prose h2:first-child, .ace-prose h3:first-child { margin-top: 0; }
