/* Capital Campaign page (page-templates/capital-campaign.php) */

.capital-campaign {
    --cc-plain: #FFFFFF;
    --cc-paper: var(--white);
    --cc-rule: #E2DCD3;
    --cc-hero-ink: #3D3E3A;
    --cc-meter-ink: #262A22;
    --cc-meter-track: #565E52;
    background-color: var(--cc-plain);
}

.capital-campaign p {
    margin-bottom: 1rem;
}

/* Hero */

.cc-hero {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    background-color: var(--cc-hero-ink);
    color: var(--white);
}

.cc-hero__art {
    display: block;
    width: 100%;
    height: auto;
}

.cc-hero__inner {
    padding-top: 32px;
    padding-bottom: 32px;
}

.cc-hero__title {
    margin: 0 0 16px;
    color: var(--white);
    font-family: Diagramm;
    font-weight: 800;
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: 0.98;
}

.cc-hero__tagline {
    max-width: 30em;
    color: var(--white);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.4;
}

.capital-campaign .cc-hero .btn {
    margin-top: 8px;
}

@media (min-width: 992px) {
    .cc-hero {
        display: block;
    }

    .cc-hero__inner {
        position: absolute;
        inset: 0;
        padding-top: 4vw;
    }

    .cc-hero__text {
        max-width: 42%;
        /* Keeps the copy readable over the busy map texture. */
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    }
}

/* Shared section styles */

.cc-section {
    padding: 56px 0;
}

.cc-section--paper {
    background-color: var(--cc-paper);
}

.cc-eyebrow {
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.04em;
}

.capital-campaign .cc-heading {
    margin-bottom: 20px;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.15;
}

.capital-campaign .cc-heading--large {
    font-size: clamp(30px, 3vw, 42px);
}

.capital-campaign .cc-subheading {
    margin-bottom: 16px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.cc-text {
    max-width: 860px;
    line-height: 28px;
}

.cc-text--wide {
    max-width: none;
}

.cc-photo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.cc-link {
    color: var(--teal);
    font-weight: 700;
    text-decoration: underline;
}

.capital-campaign .btn {
    padding: 10px 28px;
    font-weight: 700;
}

.cc-rule {
    max-width: 860px;
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--cc-rule);
    opacity: 1;
}

/* Opening panel below the hero */

.cc-panel {
    padding: 40px 0;
}

.capital-campaign .cc-panel__heading {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 700;
}

.capital-campaign .cc-panel__text {
    margin: 0;
    line-height: 1.5;
}

.cc-panel__image {
    margin: 32px 0 0;
}

@media (min-width: 992px) {
    .cc-panel__image {
        margin-top: 0;
    }
}

/* Artwork callout */

.cc-callout {
    max-width: 860px;
    margin-top: 32px;
    padding-left: 24px;
    border-left: 4px solid var(--orange);
}

.capital-campaign .cc-callout__heading {
    margin-bottom: 12px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.cc-callout__text p:last-child {
    margin-bottom: 0;
}

/* Quote band */

.cc-quote {
    padding: 72px 0;
    background-color: var(--black);
    color: var(--white);
}

.cc-quote__figure {
    margin: 0;
}

.cc-quote__text p {
    max-width: 960px;
    margin: 0 0 16px;
    font-family: Diagramm;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.3;
}

.cc-quote__attribution {
    color: var(--ligh-gray);
    font-size: 16px;
}

/* Leadership portraits */

.cc-leaders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    gap: 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.cc-leader {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cc-rule);
    border-radius: 6px;
    background-color: var(--cc-paper);
}

.cc-leader__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    border-bottom: 3px solid var(--orange);
}

.cc-leader__link {
    padding: 16px 20px;
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 575px) {
    .cc-leaders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cc-leader__link {
        padding: 12px;
        font-size: 16px;
    }
}

/* Culture Keepers */

.cc-figure {
    margin: 0;
}

.cc-figure__caption {
    margin-top: 16px;
    color: var(--black);
    font-size: 14px;
    line-height: 1.5;
}

/* Community reveal: equal-height frames */

.cc-gallery {
    margin-top: 8px;
}

.cc-frame {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--cc-rule);
    background-color: var(--cc-plain);
}

.cc-frame__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Campaign progress */

.cc-section--progress {
    padding-top: 0;
}

.cc-progress {
    display: grid;
    gap: 24px;
    padding: 24px 24px 24px 28px;
    border-left: 8px solid var(--orange);
    border-radius: 8px;
    background-color: var(--cc-meter-ink);
    color: var(--white);
}

.capital-campaign .cc-progress p {
    margin: 0;
}

.capital-campaign .cc-progress__label {
    color: #FFA25F;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.capital-campaign .cc-progress__raised {
    font-family: Diagramm;
    font-size: clamp(36px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.capital-campaign .cc-progress__goal {
    font-size: 18px;
}

.capital-campaign .cc-progress__as-of {
    margin-top: 8px;
    color: var(--ligh-gray);
    font-size: 15px;
}

.cc-progress__meter {
    align-self: center;
}

.capital-campaign .cc-progress__percent {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.cc-progress__track {
    position: relative;
    height: 20px;
    margin: 12px 0;
    border-radius: 999px;
    background-color: var(--cc-meter-track);
}

.cc-progress__fill {
    display: block;
    /* Keeps a sliver of fill visible even when the share is small. */
    min-width: 20px;
    height: 100%;
    border-radius: 999px;
    background-color: var(--orange);
}

@media (min-width: 768px) {
    .cc-progress {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        gap: 48px;
        padding: 28px 40px;
    }
}

/* Ways to give */

.cc-give {
    max-width: 1000px;
    margin-bottom: 36px;
}

.cc-give .btn {
    margin-top: 4px;
}

.capital-campaign .cc-other-ways__heading {
    margin-top: 48px;
}

.cc-card {
    padding: 24px;
    border: 1px solid var(--cc-rule);
    background-color: var(--cc-paper);
}

.cc-card p:last-child {
    margin-bottom: 0;
}

.cc-card a {
    color: var(--teal);
    text-decoration: underline;
}

/* Forms */

.cc-form__row > * {
    margin-bottom: 16px;
}

.cc-form .cc-input {
    min-height: 52px;
    border: 1px solid var(--black);
    border-radius: 0;
    background-color: var(--cc-plain);
}

.cc-form .cc-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(254, 105, 7, 0.25);
}

.cc-form .cc-input.is-invalid {
    border-color: var(--orange);
}

.cc-form .cc-submit {
    min-height: 52px;
}

.cc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.cc-options {
    margin: 0;
    padding: 0;
    border: 0;
}

.cc-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px 16px;
    border: 1px solid var(--cc-rule);
    background-color: var(--cc-plain);
    font-size: 16px;
    cursor: pointer;
}

.cc-option input {
    margin-top: 4px;
    accent-color: var(--orange);
}

.cc-form__status {
    margin: 8px 0 0;
    font-weight: 700;
}

.cc-form__status:empty {
    display: none;
}

.cc-form__status.is-error {
    color: #B23C00;
}

.cc-form__status.is-success {
    color: var(--green);
}

.cc-honeypot {
    position: absolute;
    left: -9999px;
}

.cc-inquiry,
.cc-contact__text {
    max-width: 860px;
}

/* Share */

.cc-share {
    margin-top: 16px;
    text-align: center;
}

.cc-share__button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--black);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
}

.cc-share__dialog {
    width: min(420px, calc(100% - 32px));
    padding: 28px;
    border: 2px solid var(--orange);
    border-radius: 8px;
    background-color: var(--cc-plain);
    color: var(--black);
    text-align: center;
}

.cc-share__dialog::backdrop {
    background-color: rgba(34, 34, 34, 0.6);
}

.cc-share__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
}

.capital-campaign .cc-share__title {
    margin-bottom: 16px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.cc-share__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.cc-share__list a,
.cc-share__list button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
}

.capital-campaign .cc-share__note {
    margin: 0;
    color: var(--dark-gray);
    font-size: 14px;
}

.capital-campaign .cc-closing {
    margin: 32px 0 0;
}

/* FAQ */

.cc-faq {
    border-top: 1px solid var(--cc-rule);
}

.cc-faq__item {
    border-bottom: 1px solid var(--cc-rule);
}

.cc-faq__question {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cc-faq__question::-webkit-details-marker {
    display: none;
}

.cc-faq__question::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--orange);
    font-size: 24px;
    line-height: 22px;
}

.cc-faq__item[open] .cc-faq__question::after {
    content: '\2212';
}

.cc-faq__answer {
    max-width: 860px;
    padding-bottom: 16px;
    line-height: 28px;
}

/* Keyboard focus */

.capital-campaign a:focus-visible,
.capital-campaign button:focus-visible,
.capital-campaign summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .cc-section {
        padding: 80px 0;
    }

    .cc-section--progress {
        padding-top: 0;
    }

    .cc-panel {
        padding: 56px 0;
    }

    .capital-campaign .cc-panel__heading {
        margin-bottom: 16px;
    }

    .cc-photo {
        margin-bottom: 0;
    }
}
