/* WHEIF /campaigns list — layout from Juanna's 2026-11-25 mockup. */
.wheif-cp {
    --cp-bg: #f7f3ec;
    --cp-paper: #fffdf9;
    --cp-ink: #1e2b26;
    --cp-muted: #4a5a54;
    --cp-coral: #b8452f;
    --cp-coral-deep: #9e3b28;
    --cp-green: #1f5f58;
    --cp-green-deep: #174a45;
    --cp-trust: #efe7da;
    --cp-line: rgba(30, 43, 38, 0.12);
    --cp-serif: "Noto Serif SC", "Noto Serif TC", "Source Han Serif SC", "Songti SC", "SimSun", var(--wh-serif, Georgia, serif);
    --cp-sans: var(--wh-sans, "Noto Sans SC", "DM Sans", system-ui, sans-serif);
    --cp-max: 1120px;
    --cp-radius: 22px;
    margin: 0;
    min-height: 100vh;
    background: var(--cp-bg);
    color: var(--cp-ink);
    font-family: var(--cp-sans);
}
html[lang="zh-TW"] .wheif-cp { --cp-serif: "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Songti TC", var(--wh-serif, Georgia, serif); }
html[lang="en"] .wheif-cp { --cp-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; }

.wheif-cp-sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wheif-cp a { color: inherit; }
.wheif-cp img { max-width: 100%; height: auto; }

.wheif-cp-nav {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(247, 243, 236, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cp-line);
}
.wheif-cp-nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.wheif-cp-nav__brand img { width: auto; height: 36px; display: block; }
.wheif-cp-nav__links {
    display: flex; align-items: center; gap: 1.15rem;
    margin-left: auto;
    font-size: 0.92rem;
    font-weight: 500;
}
.wheif-cp-nav__links a { text-decoration: none; color: var(--cp-ink); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.wheif-cp-nav__links a[aria-current="page"] { border-bottom-color: var(--cp-ink); font-weight: 700; }
.wheif-cp-nav__cta {
    margin-left: 0.25rem;
    padding: 0.45rem 0.95rem !important;
    border-radius: 999px;
    background: var(--cp-coral);
    color: #fff !important;
    border-bottom: 0 !important;
    font-weight: 700 !important;
}
.wheif-cp-nav__cta:hover { background: var(--cp-coral-deep); }
.wheif-cp-nav__langs { margin-left: 0.7rem; display: flex; gap: 0.15rem; }
.wheif-cp-nav__langs a {
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cp-muted);
}
.wheif-cp-nav__langs a.is-active { background: #e8efe9; color: var(--cp-ink); }
.wheif-cp-nav__toggle {
    display: none;
    width: 2.5rem; height: 2.5rem;
    border: 0; background: transparent;
    padding: 0.55rem;
    cursor: pointer;
}
.wheif-cp-nav__toggle span:not(.wheif-cp-sr) {
    display: block; height: 2px; margin: 5px 0; background: var(--cp-ink); border-radius: 2px;
}

.wheif-cp-hero,
.wheif-cp-cases,
.wheif-cp-how,
.wheif-cp-safe,
.wheif-cp-footer,
.wheif-cp-apply__inner {
    width: min(var(--cp-max), calc(100% - 2rem));
    margin-left: auto; margin-right: auto;
}

.wheif-cp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3.25rem 0 2.75rem;
}
.wheif-cp-kicker {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cp-green);
}
.wheif-cp-kicker--on-green { color: #d7efe6; letter-spacing: 0.12em; }
.wheif-cp-hero__title {
    margin: 0 0 1rem;
    font-family: var(--cp-serif);
    font-weight: 700;
    font-size: clamp(2.15rem, 4.6vw, 3.35rem);
    line-height: 1.2;
    color: var(--cp-ink);
    letter-spacing: 0.02em;
}
.wheif-cp-hero__sub {
    margin: 0 0 0.85rem;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: var(--cp-ink);
}
.wheif-cp-hero__intro {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--cp-muted);
    max-width: 38rem;
}
.wheif-cp-hero__actions { display: grid; gap: 1rem; }
.wheif-cp-action {
    background: var(--cp-paper);
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
    padding: 1.35rem 1.35rem 1.2rem;
    box-shadow: 0 10px 28px rgba(30, 43, 38, 0.06);
}
.wheif-cp-action h2 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.wheif-cp-action p { margin: 0 0 1rem; color: var(--cp-muted); font-size: 0.92rem; line-height: 1.65; }

.wheif-cp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.7rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    border: 0;
}
.wheif-cp-btn--coral { background: var(--cp-coral); color: #fff !important; }
.wheif-cp-btn--coral:hover { background: var(--cp-coral-deep); }
.wheif-cp-btn--green { background: var(--cp-green); color: #fff !important; }
.wheif-cp-btn--green:hover { background: var(--cp-green-deep); }
.wheif-cp-btn--light { background: #fff; color: var(--cp-green) !important; }
.wheif-cp-btn--light:hover { background: #f3faf7; }
.wheif-cp-btn--block { width: 100%; }

.wheif-cp-trustbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.5rem;
    width: 100%;
    margin: 0;
    padding: 1.15rem clamp(1rem, 5vw, 4rem);
    background: var(--cp-trust);
    color: var(--cp-ink);
    font-size: 0.92rem;
    font-weight: 600;
}
.wheif-cp-trustbar p { margin: 0; display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.5; }
.wheif-cp-trustbar__icon {
    flex: 0 0 1.05rem;
    width: 1.05rem; height: 1.05rem;
    margin-top: 0.15rem;
    border-radius: 50%;
    background: var(--cp-green);
    box-shadow: inset 0 0 0 2px var(--cp-green), inset 0 0 0 4px var(--cp-trust);
    position: relative;
}
.wheif-cp-trustbar__icon::after {
    content: "";
    position: absolute; left: 0.32rem; top: 0.18rem;
    width: 0.28rem; height: 0.5rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wheif-cp-cases {
    --cp-grid-gap: 1.25rem;
    --cp-grid-cols: 3;
    padding: 3.4rem 0 2rem;
}
.wheif-cp-cases__head { text-align: center; margin: 0 0 1.5rem; }
.wheif-cp-cases__head h2,
.wheif-cp-how h2,
.wheif-cp-safe h2,
.wheif-cp-apply h2 {
    margin: 0 0 0.55rem;
    font-family: var(--cp-serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.wheif-cp-cases__head p { margin: 0; color: var(--cp-muted); }

.wheif-cp-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem;
    margin: 0 0 1.75rem;
}
.wheif-cp-filters button {
    appearance: none;
    border: 1.5px solid var(--cp-line);
    background: var(--cp-paper);
    color: var(--cp-ink);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.wheif-cp-filters button.is-active {
    background: var(--cp-green);
    border-color: var(--cp-green);
    color: #fff;
}

.wheif-cp-grid {
    display: grid;
    grid-template-columns: repeat(var(--cp-grid-cols), minmax(0, 1fr));
    gap: var(--cp-grid-gap);
}
.wheif-cp-tell-row {
    display: flex;
    justify-content: center;
    margin-top: var(--cp-grid-gap);
}
.wheif-cp-tell-row .wheif-cp-card--tell {
    width: 100%;
    max-width: calc((100% - (var(--cp-grid-cols) - 1) * var(--cp-grid-gap)) / var(--cp-grid-cols));
}
.wheif-cp-card {
    display: flex; flex-direction: column;
    background: var(--cp-paper);
    border: 1px solid var(--cp-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(30, 43, 38, 0.06);
}
.wheif-cp-card__media { display: block; aspect-ratio: 4 / 3; background: #e8e0d4; overflow: hidden; }
.wheif-cp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wheif-cp-card__media--empty { background: repeating-linear-gradient(135deg, #efe7da, #efe7da 12px, #e6ddd0 12px, #e6ddd0 24px); }
.wheif-cp-card__body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.1rem 1.2rem; flex: 1; }
.wheif-cp-card__tags { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wheif-cp-card__tags span {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #e4eee9;
    color: #2b5c54;
    font-size: 0.72rem;
    font-weight: 700;
}
.wheif-cp-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.wheif-cp-card h3 a { text-decoration: none; }
.wheif-cp-card__story { margin: 0; color: var(--cp-muted); font-size: 0.9rem; line-height: 1.65; flex: 1; }
.wheif-cp-card__stats { margin-top: auto; }
.wheif-cp-card__stats p { margin: 0.15rem 0; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.wheif-cp-card__stats span { color: var(--cp-muted); }
.wheif-cp-card__pct { font-weight: 700; color: var(--cp-green) !important; justify-content: flex-end !important; }
.wheif-cp-card__bar { height: 6px; background: #e6ece8; border-radius: 99px; overflow: hidden; }
.wheif-cp-card__bar span { display: block; height: 100%; background: var(--cp-green); border-radius: inherit; }
.wheif-cp-card__donors { color: var(--cp-muted); justify-content: flex-start !important; }
.wheif-cp-card__stats--blank p { color: #b7b0a6; }
.wheif-cp-card--tell {
    background: var(--cp-green);
    color: #f4fffb;
    border-color: transparent;
}
.wheif-cp-card--tell h3 { font-family: var(--cp-serif); font-size: 1.45rem; line-height: 1.4; }
.wheif-cp-card--tell p { color: #d7efe6; font-size: 0.95rem; line-height: 1.7; }
.wheif-cp-card--tell .wheif-cp-card__body { justify-content: center; min-height: 100%; padding: 1.6rem 1.3rem; }

.wheif-cp-how { padding: 3rem 0 3.5rem; text-align: center; }
.wheif-cp-how__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    text-align: left;
}
.wheif-cp-how__grid li {
    background: var(--cp-paper);
    border-radius: var(--cp-radius);
    padding: 1.3rem 1.2rem 1.4rem;
    border: 1px solid var(--cp-line);
}
.wheif-cp-how__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--cp-green);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.wheif-cp-how__grid h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.wheif-cp-how__grid p { margin: 0; color: var(--cp-muted); font-size: 0.92rem; line-height: 1.65; }

.wheif-cp-apply {
    background: var(--cp-green);
    color: #f4fffb;
    padding: 3.4rem 0;
}
.wheif-cp-apply__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}
.wheif-cp-apply__copy h2 { color: #fff; }
.wheif-cp-apply__copy p { color: #d7efe6; line-height: 1.75; margin: 0 0 1.25rem; }
.wheif-cp-apply__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.wheif-cp-apply__steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}
.wheif-cp-apply__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.7rem; height: 1.7rem;
    border-radius: 50%;
    background: #fff;
    color: var(--cp-green);
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.wheif-cp-apply__steps h3 { margin: 0 0 0.2rem; font-size: 1rem; color: #fff; }
.wheif-cp-apply__steps p { margin: 0; color: #d7efe6; font-size: 0.9rem; line-height: 1.55; }

.wheif-cp-safe { padding: 3.4rem 0 2rem; }
.wheif-cp-safe__help { margin: 0.2rem 0 0.4rem; color: var(--cp-muted); }
.wheif-cp-safe__contact { margin: 0 0 1.25rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wheif-cp-safe__contact a { color: var(--cp-green); text-decoration: none; }
.wheif-cp-safe__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.wheif-cp-safe__list li {
    position: relative;
    padding: 0.7rem 0.9rem 0.7rem 2.4rem;
    background: var(--cp-paper);
    border-radius: 14px;
    border: 1px solid var(--cp-line);
    line-height: 1.6;
}
.wheif-cp-safe__list li::before {
    content: "";
    position: absolute; left: 0.85rem; top: 0.95rem;
    width: 0.85rem; height: 0.85rem;
    border-radius: 50%;
    background: var(--cp-green);
    box-shadow: inset 0 0 0 2px var(--cp-green), inset 0 0 0 3.5px var(--cp-paper);
}
.wheif-cp-safe__list li::after {
    content: "";
    position: absolute; left: 1.1rem; top: 1.05rem;
    width: 0.22rem; height: 0.4rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wheif-cp-footer {
    padding: 2rem 0 2.6rem;
    text-align: center;
    color: var(--cp-muted);
    font-size: 0.88rem;
}
.wheif-cp-footer__org { margin: 0 0 0.25rem; font-weight: 700; color: var(--cp-ink); }
.wheif-cp-footer p { margin: 0.2rem 0; }
.wheif-cp-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 0.7rem !important; }
.wheif-cp-footer__links a { color: var(--cp-muted); text-decoration: none; }

@media (max-width: 960px) {
    .wheif-cp-hero,
    .wheif-cp-apply__inner,
    .wheif-cp-how__grid,
    .wheif-cp-trustbar { grid-template-columns: 1fr; }
    .wheif-cp-cases { --cp-grid-cols: 2; }
    .wheif-cp-hero { padding-top: 2rem; }
}

@media (max-width: 720px) {
    .wheif-cp-nav { flex-wrap: wrap; }
    .wheif-cp-nav__toggle { display: block; margin-left: auto; }
    .wheif-cp-nav__langs { order: 2; margin-left: 0; }
    .wheif-cp-nav__links {
        order: 3;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0.4rem 0 0;
        gap: 0;
        padding-bottom: 0.4rem;
    }
    .wheif-cp-nav.is-open .wheif-cp-nav__links { display: flex; }
    .wheif-cp-nav__links a { padding: 0.7rem 0; border-bottom: 1px solid var(--cp-line); }
    .wheif-cp-nav__cta { margin: 0.6rem 0 0; text-align: center; border-bottom: 0 !important; }
    .wheif-cp-cases { --cp-grid-cols: 1; }
    .wheif-cp-hero { padding: 1.5rem 0 2rem; }
    .wheif-cp-hero__title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
    .wheif-cp-cases, .wheif-cp-how, .wheif-cp-safe { padding-top: 2.4rem; padding-bottom: 1.6rem; }
    .wheif-cp-apply { padding: 2.4rem 0; }
}

/* [hidden] is otherwise overridden by .wheif-cp-card { display: flex }. */
.wheif-cp-card[hidden] { display: none !important; }

.wheif-cp-card__goal-note {
    margin: 0.25rem 0 0;
    color: var(--cp-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    display: block;
    justify-content: flex-start;
}
