:root {
    --hf-harvest-gold: #c78e2d;
    --hf-harvest-gold-hover: #d5a242;
    --hf-gold-ink: #2d2010;
    --hf-deep-ruby: #783449;
    --hf-deep-ruby-hover: #592638;
    --hf-forest: #22644e;
    --hf-forest-hover: #174b3b;
    --hf-warm-white: #fffaf0;
    --hf-ruby-wash: #f5e9e9;
    --hf-forest-wash: #e7f0e8;
    --hf-muted-gold: #9b712c;
    --hf-silver: #d5dce6;
    --hf-silver-edge: #a4b0c1;
    --hf-silver-ink: #526176;
    --global-palette-btn-bg: var(--hf-forest);
    --global-palette-btn-bg-hover: var(--hf-forest-hover);
    --global-palette-btn: var(--hf-warm-white);
    --global-palette-btn-hover: var(--hf-warm-white);
}

/* Apply the palette to actions while keeping the blue page surfaces. */
body .button:not(.light, .outline, .whatsapp-button, :disabled, [aria-disabled="true"]),
body .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body .biblesupersearch_main button.enyo-tool-decorator:not(:disabled),
body .hfnation button:not(:disabled, [aria-disabled="true"], .hfpr-gold),
body .hf-path-topics button:not(:disabled, [aria-disabled="true"]),
body .hfgl-selection a,
body .earth-light-controls button:not(:disabled) {
    background: var(--hf-forest);
    border-color: var(--hf-forest);
    color: var(--hf-warm-white);
}

body .button:not(.light, .outline, .whatsapp-button, :disabled, [aria-disabled="true"]):is(:hover, :focus-visible),
body .wp-block-button:not(.is-style-outline) .wp-block-button__link:is(:hover, :focus-visible),
body .biblesupersearch_main button.enyo-tool-decorator:not(:disabled):is(:hover, :focus-visible),
body .hfnation button:not(:disabled, [aria-disabled="true"], .hfpr-gold):is(:hover, :focus-visible),
body .hf-path-topics button:not(:disabled, [aria-disabled="true"]):is(:hover, :focus-visible),
body .hfgl-selection a:is(:hover, :focus-visible),
body .earth-light-controls button:not(:disabled):is(:hover, :focus-visible) {
    background: var(--hf-forest-hover);
    border-color: var(--hf-forest-hover);
    color: var(--hf-warm-white);
}

body header .button[href$="/give/"],
body .hfsh-calling-actions a.button:not(.outline),
body .hfgl .hfgl-controls button:first-child > span,
body .hft-filters button[aria-pressed="true"],
body .hfmap-groups a[aria-current="page"] {
    background: var(--hf-deep-ruby);
    border-color: var(--hf-deep-ruby);
    color: var(--hf-warm-white);
}

body header .button[href$="/give/"]:is(:hover, :focus-visible),
body .hfsh-calling-actions a.button:not(.outline):is(:hover, :focus-visible),
body .hfgl .hfgl-controls button:first-child:is(:hover, :focus-visible) > span,
body .hft-filters button[aria-pressed="true"]:is(:hover, :focus-visible),
body .hfmap-groups a[aria-current="page"]:is(:hover, :focus-visible) {
    background: var(--hf-deep-ruby-hover);
    border-color: var(--hf-harvest-gold);
    color: var(--hf-warm-white);
}

/* The globe uses the inner pill for its visible control color. */
body .hfgl .hfgl-controls button,
body .hfgl .hfgl-controls button:is(:hover, :focus-visible) {
    background: transparent;
    border-color: transparent;
}

body .hfgl .hfgl-controls button:not(:first-child) > span {
    background: var(--hf-forest-hover);
    border-color: #78a594;
    color: var(--hf-warm-white);
}

body .hfgl .hfgl-controls button:not(:first-child):is(:hover, :focus-visible) > span {
    background: var(--hf-forest);
    border-color: var(--hf-harvest-gold);
}

body .hfpr-gold,
body.hfpr-page .hfpr-gold,
body .hfplace-finder button[type="submit"],
body .hf-prototype-give,
body.hf-prototype-home #commission-opening .actions a[href="/know-jesus/"],
body .fireplace-hero .actions a[href$="/know-jesus/"],
body #harvest-go-send .hfsh-calling-actions a.button.outline {
    background: var(--hf-harvest-gold);
    border-color: var(--hf-muted-gold);
    color: var(--hf-gold-ink);
}

body .hfpr-gold:is(:hover, :focus-visible),
body.hfpr-page .hfpr-gold:is(:hover, :focus-visible),
body .hfplace-finder button[type="submit"]:is(:hover, :focus-visible),
body .hf-prototype-give:is(:hover, :focus-visible),
body.hf-prototype-home #commission-opening .actions a[href="/know-jesus/"]:is(:hover, :focus-visible),
body .fireplace-hero .actions a[href$="/know-jesus/"]:is(:hover, :focus-visible),
body #harvest-go-send .hfsh-calling-actions a.button.outline:is(:hover, :focus-visible) {
    background: var(--hf-harvest-gold-hover);
    color: var(--hf-gold-ink);
}

body .hf-prototype-give {
    border-radius: 6px;
    padding-inline: 14px;
}

.connection-brief { border-block-start: 3px solid var(--hf-forest); }
#ministries .cards .card-body > .eyebrow,
.hf-global-path-cards article:nth-child(2) h3 { color: var(--hf-deep-ruby); }
#ministries .cards article:nth-child(2),
.hf-global-path-cards article:nth-child(2),
.hf-prayer-totals > div:nth-child(2) { border-block-start: 3px solid var(--hf-deep-ruby); }
#ministries .cards article:nth-child(3),
.hf-global-path-cards article:nth-child(3),
.hf-prayer-totals > div:nth-child(3) { border-block-start: 3px solid var(--hf-forest); }
#ministries .cards article:first-child,
.hf-global-path-cards article:first-child,
.hf-prayer-totals > div:first-child,
.hf-prayer-totals > div:nth-child(4) { border-block-start: 3px solid var(--hf-harvest-gold); }
.hfdaily-focus > summary { border-block-end: 2px solid var(--hf-harvest-gold); }
.hfnation blockquote { border-inline-start-color: var(--hf-muted-gold); }
.hf-path-topics details[open] summary { background: var(--hf-ruby-wash); color: var(--hf-deep-ruby); }
.hf-path-topics button[aria-disabled="true"] { background: var(--hf-forest-wash); color: var(--hf-forest-hover); }
.hfmap input, .hfconf-reflection input, .hfclean-check input { accent-color: var(--hf-forest); }

/* Tone the HOPE half of the approved wordmark while retaining its shapes and globe. */
.hf-prototype-brand .hf-hope-wordmark { position: relative; }
.hf-prototype-brand .hf-hope-wordmark::before,
.hf-prototype-brand .hf-hope-wordmark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("house-wordmark.webp") center / 100% 100% no-repeat;
}

.hf-prototype-brand .hf-hope-wordmark::before {
    clip-path: inset(0 46.6% 0 0);
    filter: saturate(1.55) brightness(.93);
}

.hf-prototype-brand .hf-hope-wordmark::after {
    clip-path: inset(0 0 0 53.4%);
    filter: brightness(.90) contrast(1.24) saturate(.55);
}

body.hf-prototype-home #commission-opening .commission-preach {
    color: var(--hf-harvest-gold);
    font-weight: 800;
}

body .hf-prototype-isaiah cite { color: var(--hf-harvest-gold); }

/* Silver is a supporting accent for references, fine borders, and secondary controls. */
body .hf-prototype-brand small,
body.hf-prototype-home #commission-opening .commission-source-references,
body.hf-prototype-home #commission-opening blockquote cite,
.hfpr-brand > span,
.hfdaily-focus > summary small { color: var(--hf-silver); }

.hfpr-hero .hfpr-actions a:not(.hfpr-gold),
body .hfgl .hfgl-controls button:not(:first-child) > span { border-color: var(--hf-silver-edge); }

.hf-prayer-totals dt,
.hf-prayer-path .hf-path-note,
.hf-prayer-path .hf-path-reference { color: var(--hf-silver-ink); }
