/* ==========================================================
   ICX PRODUCTION HIGH CONTRAST START
========================================================== */

/*
 * This stylesheet is deliberately loaded after all ICX page
 * styles. It is activated only when the saved accessibility
 * preference adds data-icx-contrast="high" to the html element.
 */

:root[data-icx-contrast="high"] {
    color-scheme: dark;

    --icx-hc-background: #000000;
    --icx-hc-surface: #0d0d0d;
    --icx-hc-surface-raised: #171717;
    --icx-hc-text: #ffffff;
    --icx-hc-accent: #ffe600;
    --icx-hc-border: #ffffff;

    --icx-navy-dark: #000000;
    --icx-navy: #000000;
    --icx-blue: #ffe600;
    --icx-orange: #ffe600;
    --icx-orange-light: #fff36a;
    --icx-cream: #0d0d0d;
    --icx-mint: #171717;
    --icx-white: #ffffff;
    --icx-text: #ffffff;
    --icx-muted: #f2f2f2;
    --icx-line: #ffffff;
    --icx-shadow: none;
    --icx-shadow-soft: none;

    accent-color: #ffe600;
}

/* ----------------------------------------------------------
   GLOBAL FOUNDATION
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"] body *,
:root[data-icx-contrast="high"] body *::before,
:root[data-icx-contrast="high"] body *::after {
    text-shadow: none !important;
}

:root[data-icx-contrast="high"]
:is(
    main,
    .site-main,
    .icx-home,
    .icx-about-page,
    .icx-membership-page,
    .icx-contact-page,
    .icx-events-page,
    .icx-awards-page,
    .icx-resources-page,
    .icx-partners-page,
    .icx-programme-single,
    .icx-event-single,
    .icx-resource-single,
    .icx-award-single,
    .icx-article
) {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
}

:root[data-icx-contrast="high"]
main > section:not(.icx-home-hero) {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Maintain visual hierarchy without reducing contrast. */

:root[data-icx-contrast="high"]
:is(
    .icx-home-programmes,
    .icx-home-membership,
    .icx-home-insights,
    .icx-testimonials,
    .icx-about-intro,
    .icx-about-principles,
    .icx-membership-plans,
    .icx-membership-registration,
    .icx-contact-enquiry,
    .icx-events-listing__section,
    .icx-awards-listing__section,
    .icx-resources-listing
) {
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-home-purpose,
    .icx-home-events,
    .icx-home-partners,
    .icx-contact-channels,
    .icx-contact-location,
    .icx-contact-faq,
    .icx-about-purpose,
    .icx-about-values,
    .icx-about-objectives
) {
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
}

/* ----------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    blockquote,
    cite,
    label,
    legend,
    address,
    figcaption
) {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-home-eyebrow,
    .icx-home-kicker,
    [class*="__eyebrow"],
    [class*="-eyebrow"],
    [class*="__label"],
    [class*="-label"],
    [class*="__type"],
    [class*="__format"],
    [class*="__year"]
) {
    color: var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"] body
:is(
    small,
    time,
    .icx-article-meta,
    [class*="__meta"],
    [class*="__excerpt"],
    [class*="__introduction"],
    [class*="__summary"]
) {
    color: #f2f2f2 !important;
}

/* ----------------------------------------------------------
   LINKS
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body a {
    color: var(--icx-hc-accent) !important;
    text-decoration: none !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 0.2em !important;
}

:root[data-icx-contrast="high"] body a:hover {
    color: var(--icx-hc-text) !important;
}

/*
 * Underlines are reserved for links occurring inside prose.
 * Navigation, cards and buttons are already visually distinct.
 */

:root[data-icx-contrast="high"] body
:is(
    .entry-content,
    .icx-article-content,
    .icx-programme-single__content,
    .icx-event-single__content,
    .icx-resource-single__content,
    .icx-award-single__content,
    .wp-block-paragraph,
    .wp-block-list
)
:is(p, li) a {
    text-decoration: underline !important;
    text-decoration-color:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HEADER, UTILITY BAR AND NAVIGATION
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
:is(
    .icx-site-header,
    .icx-utility,
    .icx-masthead,
    .icx-nav-shell,
    .icx-mobile-panel,
    .icx-search-overlay
) {
    color: var(--icx-hc-text) !important;
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-utility {
    border-bottom:
        1px solid
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
.icx-masthead {
    border-bottom:
        1px solid
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
.icx-nav-shell {
    border-bottom:
        2px solid
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-nav-links a,
    .icx-mobile-links a,
    .icx-utility a,
    .icx-footer__links a
) {
    color: var(--icx-hc-accent) !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-nav-links a,
    .icx-mobile-links a
):hover {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-nav-links .current-menu-item > a,
    .icx-nav-links .current_page_item > a,
    .icx-mobile-links .current-menu-item > a,
    .icx-mobile-links .current_page_item > a
) {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-link {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-icon-button,
    .icx-tool-button,
    .icx-close-button
) {
    color: var(--icx-hc-accent) !important;
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"]
:is(
    .icx-icon-button,
    .icx-tool-button,
    .icx-close-button
):hover {
    color: #000000 !important;
    border-color:
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
[data-contrast-toggle][aria-pressed="true"] {
    color: var(--icx-hc-accent) !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-background) !important;
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    .icx-button--primary,
    .icx-contact-button--primary,
    .icx-membership-button--primary,
    .icx-contact-form__submit,
    .icx-membership-form__submit,
    .wp-element-button,
    .wp-block-button__link,
    input[type="submit"],
    input[type="button"],
    input[type="reset"]
) {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-button--primary,
    .icx-contact-button--primary,
    .icx-membership-button--primary,
    .icx-contact-form__submit,
    .icx-membership-form__submit,
    .wp-element-button,
    .wp-block-button__link
)
:is(
    span,
    strong,
    small
) {
    color: #000000 !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-button--dark,
    .icx-button--soft,
    .icx-button--outline-light,
    .icx-home-button--outline,
    .icx-contact-button--secondary,
    .icx-membership-button--secondary
) {
    color: var(--icx-hc-accent) !important;
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-button,
    .icx-contact-button,
    .icx-membership-button,
    .wp-element-button,
    .wp-block-button__link,
    button
):hover {
    color: #000000 !important;
    border-color:
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE HERO
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-hero {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero__media {
    opacity: 1 !important;
    filter: none !important;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.83) 42%,
            rgba(0, 0, 0, 0.48) 77%,
            rgba(0, 0, 0, 0.58) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.68),
            transparent 55%
        ),
        var(
            --icx-home-hero-image,
            none
        ) !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero__media::after {
    background: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero h1,
:root[data-icx-contrast="high"]
.icx-home-hero__copy > p,
:root[data-icx-contrast="high"]
.icx-home-hero__theme strong,
:root[data-icx-contrast="high"]
.icx-home-hero__theme p {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero h1 em {
    color: var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero__theme {
    padding: 20px !important;
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        rgba(0, 0, 0, 0.86) !important;
}

:root[data-icx-contrast="high"]
.icx-home-hero__curve {
    background:
        var(--icx-hc-background) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE QUICK LINKS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-quick__grid {
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick__grid > a {
    color: var(--icx-hc-text) !important;
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick__grid > a:hover {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick__grid > a:hover
:is(
    small,
    strong,
    span
) {
    color: #000000 !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick small {
    color: var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick strong {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"]
.icx-home-quick a > span {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE PURPOSE AND PILLARS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-pillars {
    border-color:
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
.icx-home-pillars article {
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"]
.icx-home-pillars article > span {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE VIDEO
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-video {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-video__frame {
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-video__overlay {
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.18)
        ) !important;
}

:root[data-icx-contrast="high"]
.icx-home-video__play {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-video__tags span {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE PROGRAMMES
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-programme {
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-programme__shade {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.12) 12%,
            rgba(0, 0, 0, 0.95) 100%
        ) !important;
}

:root[data-icx-contrast="high"]
.icx-home-programme__content
:is(
    small,
    strong,
    span
) {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"]
.icx-home-programme__content small {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE EVENTS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-events__list {
    border-top:
        2px solid
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
.icx-home-event {
    color: var(--icx-hc-text) !important;
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-event:hover {
    background:
        var(--icx-hc-surface-raised) !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__date,
:root[data-icx-contrast="high"]
.icx-home-event__arrow {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE RESOURCES
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-resources {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-resource {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-resource:hover {
    border-color:
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-surface-raised) !important;
}

:root[data-icx-contrast="high"]
.icx-home-resource small,
:root[data-icx-contrast="high"]
.icx-home-resource > span {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE MEMBERSHIP
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-membership__image {
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__image > span {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a:hover {
    border-color:
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-surface-raised) !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a
> span:last-child {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE PARTNERS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-partners::before {
    display: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__link {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__link:hover {
    border-color:
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-surface-raised) !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__logo {
    border:
        1px solid
        var(--icx-hc-border) !important;
    background: #ffffff !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__name {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__arrow {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   HOMEPAGE INSIGHTS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-insight {
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-insight > a,
:root[data-icx-contrast="high"]
.icx-home-insight__body {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-insight__image {
    border-bottom:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"]
.icx-home-insight__title {
    color: var(--icx-hc-text) !important;
}

:root[data-icx-contrast="high"]
.icx-home-insight__meta small,
:root[data-icx-contrast="high"]
.icx-home-insight__read {
    color: var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   FINAL CTA AND TESTIMONIALS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-final {
    color: var(--icx-hc-text) !important;
    border-block:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
}

:root[data-icx-contrast="high"]
.icx-home-final::after {
    opacity: 0.12 !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface-raised) !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card.is-featured {
    border-top:
        4px solid
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__quote,
:root[data-icx-contrast="high"]
.icx-testimonial-card__type {
    color: var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card blockquote p,
:root[data-icx-contrast="high"]
.icx-testimonial-card__identity strong,
:root[data-icx-contrast="high"]
.icx-testimonial-card__identity span {
    color: var(--icx-hc-text) !important;
}

/* ----------------------------------------------------------
   GENERIC PAGE HEROES
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
:is(
    .icx-about-hero,
    .icx-membership-hero,
    .icx-contact-hero,
    .icx-events-page__hero,
    .icx-awards-page__hero,
    .icx-resources-page__hero,
    .icx-partners-page__hero,
    .icx-programme-single__hero,
    .icx-event-single__hero,
    .icx-resource-single__hero,
    .icx-award-single__hero,
    .icx-article-header
) {
    color: var(--icx-hc-text) !important;
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* ----------------------------------------------------------
   GENERIC CARDS AND FEATURE PANELS
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    .icx-about-purpose-card,
    .icx-about-principle,
    .icx-about-value,
    .icx-about-fact,
    .icx-membership-plan-card,
    .icx-contact-channel,
    .icx-contact-faq__item,
    .icx-events-card,
    .icx-awards-card,
    .icx-resources-card,
    .icx-events-feature,
    .icx-awards-feature,
    .icx-resources-feature,
    .icx-programme-single__aside-card,
    .icx-event-single__aside-card,
    .icx-resource-single__aside-card,
    .icx-award-single__aside-card,
    .icx-article-aside,
    .wp-block-group.has-background,
    .wp-block-column.has-background,
    .wp-block-media-text.has-background
) {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-events-card__link,
    .icx-awards-card__link,
    .icx-resources-card__view,
    .icx-article-share__link
) {
    color: var(--icx-hc-accent) !important;
    text-decoration: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-events-card__placeholder,
    .icx-awards-card__placeholder,
    .icx-resources-card__placeholder,
    .icx-events-feature__placeholder,
    .icx-awards-feature__placeholder,
    .icx-resources-feature__placeholder
) {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface-raised) !important;
    background-image: none !important;
}

/* ----------------------------------------------------------
   STATUS AND FORMAT BADGES
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    .icx-event-status,
    .icx-programme-status,
    .icx-award-status,
    .icx-resource-format,
    .icx-events-list-status,
    .icx-awards-list-status
) {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-accent) !important;
    background-image: none !important;
}

/* ----------------------------------------------------------
   FORMS
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    .icx-contact-enquiry__form-panel,
    .icx-membership-registration__form-panel,
    .icx-contact-hero__office,
    .icx-contact-location__details
) {
    color: var(--icx-hc-text) !important;
    border:
        1px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-surface) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    input,
    select,
    textarea
) {
    color: var(--icx-hc-text) !important;
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    input,
    textarea
)::placeholder {
    color: #f2f2f2 !important;
    opacity: 1 !important;
}

:root[data-icx-contrast="high"] body
:is(
    input,
    select,
    textarea
):disabled {
    color: #d7d7d7 !important;
    border-style: dashed !important;
    opacity: 1 !important;
}

:root[data-icx-contrast="high"] body
:is(
    .icx-contact-notice,
    .icx-membership-notice
) {
    color: var(--icx-hc-text) !important;
    border:
        2px solid
        var(--icx-hc-accent) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
}

/* ----------------------------------------------------------
   ARTICLE CONTENT, TABLES AND QUOTES
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
:is(
    .entry-content,
    .icx-article-content,
    .icx-programme-single__content,
    .icx-event-single__content,
    .icx-resource-single__content,
    .icx-award-single__content
) {
    color: var(--icx-hc-text) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"] body
:is(
    blockquote,
    table,
    th,
    td,
    fieldset,
    hr
) {
    color: var(--icx-hc-text) !important;
    border-color:
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"] body blockquote {
    border-left:
        5px solid
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"] body th {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   MEDIA
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    img,
    picture,
    video,
    iframe,
    canvas,
    svg
) {
    opacity: 1 !important;
}

:root[data-icx-contrast="high"] body
:is(
    img,
    picture,
    video,
    iframe,
    canvas
) {
    filter: none !important;
}

:root[data-icx-contrast="high"] body
:is(
    figure,
    .wp-block-image,
    .wp-block-video,
    .wp-block-embed
) {
    border-color:
        var(--icx-hc-border) !important;
    background:
        transparent !important;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-footer {
    color: var(--icx-hc-text) !important;
    border-top:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-background) !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-footer__bottom {
    border-color:
        var(--icx-hc-border) !important;
}

:root[data-icx-contrast="high"]
.icx-footer__title {
    color: var(--icx-hc-text) !important;
}

/* ----------------------------------------------------------
   FOCUS, SKIP LINK AND SELECTION
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]
):focus-visible {
    outline:
        4px solid
        var(--icx-hc-accent) !important;
    outline-offset: 4px !important;
    box-shadow:
        0 0 0 2px
        var(--icx-hc-background) !important;
}

:root[data-icx-contrast="high"]
.icx-skip-link {
    color: #000000 !important;
    border:
        3px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-accent) !important;
}

:root[data-icx-contrast="high"] ::selection {
    color: #000000 !important;
    background:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   BACK TO TOP
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-back-to-top {
    color: #000000 !important;
    border:
        2px solid
        var(--icx-hc-border) !important;
    background:
        var(--icx-hc-accent) !important;
}

/* ----------------------------------------------------------
   FORCED-COLOUR ENVIRONMENTS
---------------------------------------------------------- */

@media (forced-colors: active) {
    :root[data-icx-contrast="high"]
    :is(
        .icx-button,
        .icx-tool-button,
        .icx-icon-button,
        [data-contrast-toggle],
        input,
        select,
        textarea
    ) {
        forced-color-adjust: auto;
    }
}

/* ==========================================================
   ICX PRODUCTION HIGH CONTRAST END
========================================================== */


/* ==========================================================
   ICX HIGH CONTRAST FINAL PRODUCTION FIXES START
========================================================== */

/*
 * Final component-level corrections for the production
 * high-contrast interface.
 */

/* ----------------------------------------------------------
   EVENTS — RESTORE EVENT TITLES AND REINFORCE ROWS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-event {
    min-height: 84px;
    border-bottom:
        1px solid
        var(--icx-hc-border, #ffffff) !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__content {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    opacity: 1 !important;
    visibility: visible !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__content > strong {
    display: block !important;
    margin: 0 !important;
    color:
        var(--icx-hc-text, #ffffff) !important;
    font-size:
        clamp(0.92rem, 1.25vw, 1.05rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-wrap: anywhere;
}

:root[data-icx-contrast="high"]
.icx-home-event__content > small {
    display: block !important;
    margin: 0 !important;
    color: #f2f2f2 !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__date {
    color:
        var(--icx-hc-accent, #ffe600) !important;
    opacity: 1 !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__date strong {
    color:
        var(--icx-hc-accent, #ffe600) !important;
    font-size: 1.32rem !important;
    line-height: 1 !important;
}

:root[data-icx-contrast="high"]
.icx-home-event__arrow {
    display: grid !important;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: #000000 !important;
    border:
        1px solid
        var(--icx-hc-accent, #ffe600) !important;
    border-radius: 50%;
    background:
        var(--icx-hc-accent, #ffe600) !important;
    font-size: 1rem !important;
    opacity: 1 !important;
}

/* ----------------------------------------------------------
   MEMBERSHIP — RESTORE PLAN NAMES
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a {
    min-height: 72px;
    align-items: center !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a
> span:first-child {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    opacity: 1 !important;
    visibility: visible !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a
> span:first-child > strong {
    display: block !important;
    margin: 0 !important;
    color:
        var(--icx-hc-text, #ffffff) !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-wrap: anywhere;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a
> span:first-child > small {
    display: block !important;
    margin: 0 !important;
    color: #f2f2f2 !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

:root[data-icx-contrast="high"]
.icx-home-membership__plans > a
> span:last-child {
    display: grid !important;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: #000000 !important;
    border-radius: 50%;
    background:
        var(--icx-hc-accent, #ffe600) !important;
    opacity: 1 !important;
}

/* ----------------------------------------------------------
   TESTIMONIALS — REMOVE YELLOW ARTIFACTS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-testimonial-card {
    overflow: hidden;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card blockquote {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card blockquote::before,
:root[data-icx-contrast="high"]
.icx-testimonial-card blockquote::after {
    display: none !important;
    content: none !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card blockquote p {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color:
        var(--icx-hc-text, #ffffff) !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__quote {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: 42px !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color:
        var(--icx-hc-accent, #ffe600) !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 4rem !important;
    line-height: 0.8 !important;
    opacity: 1 !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__type {
    position: static !important;
    display: block !important;
    margin: 8px 0 15px !important;
    padding: 0 !important;
    color:
        var(--icx-hc-accent, #ffe600) !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__author {
    border: 0 !important;
    background: transparent !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__identity strong {
    color:
        var(--icx-hc-text, #ffffff) !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}

:root[data-icx-contrast="high"]
.icx-testimonial-card__identity span {
    color: #f2f2f2 !important;
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
}

/* ----------------------------------------------------------
   PARTNERS — REDUCE DOUBLE FRAMING
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-partner__link {
    border:
        1px solid
        #858585 !important;
    background:
        var(--icx-hc-surface, #0d0d0d) !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__link:hover {
    border-color:
        var(--icx-hc-accent, #ffe600) !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__logo {
    border: 0 !important;
    background: #ffffff !important;
    box-shadow:
        inset 0 0 0 1px
        rgba(0, 0, 0, 0.34) !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__name {
    color:
        var(--icx-hc-text, #ffffff) !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}

:root[data-icx-contrast="high"]
.icx-home-partner__arrow {
    border:
        1px solid
        var(--icx-hc-accent, #ffe600) !important;
}

/* ----------------------------------------------------------
   MINIMUM READABLE SECONDARY TEXT
---------------------------------------------------------- */

:root[data-icx-contrast="high"] body
:is(
    .icx-home-purpose__copy p,
    .icx-home-pillars p,
    .icx-home-video__copy p,
    .icx-home-programme__content > span,
    .icx-home-resource p,
    .icx-home-membership__copy > p,
    .icx-home-insights__intro,
    .icx-home-insight__excerpt,
    .icx-home-final p,
    .icx-testimonials__header > p,
    .icx-footer__brand-column p,
    .icx-footer__links a,
    .icx-footer__bottom,
    .icx-article-meta,
    .icx-contact-page small,
    .icx-membership-page small,
    .icx-events-page small,
    .icx-resources-page small,
    .icx-awards-page small,
    .icx-partners-page small
) {
    color: #f2f2f2 !important;
    font-size: max(0.76rem, 12px) !important;
    line-height: 1.55 !important;
    opacity: 1 !important;
}

/* Keep labels compact but never microscopic. */

:root[data-icx-contrast="high"] body
:is(
    .icx-home-eyebrow,
    .icx-home-kicker,
    .icx-home-insight__meta,
    [class*="__eyebrow"],
    [class*="-eyebrow"]
) {
    font-size: max(0.7rem, 11px) !important;
    line-height: 1.4 !important;
}

/* ----------------------------------------------------------
   INSIGHTS — ENSURE COMPLETE DARK CARDS
---------------------------------------------------------- */

:root[data-icx-contrast="high"]
.icx-home-insight,
:root[data-icx-contrast="high"]
.icx-home-insight > a,
:root[data-icx-contrast="high"]
.icx-home-insight__body {
    height: 100%;
    border-color: #858585 !important;
    background:
        var(--icx-hc-surface, #0d0d0d) !important;
}

:root[data-icx-contrast="high"]
.icx-home-insight__body::before,
:root[data-icx-contrast="high"]
.icx-home-insight__body::after {
    display: none !important;
    content: none !important;
}

/* ----------------------------------------------------------
   MOBILE REFINEMENTS
---------------------------------------------------------- */

@media (max-width: 680px) {
    :root[data-icx-contrast="high"]
    .icx-home-event {
        min-height: 92px;
    }

    :root[data-icx-contrast="high"]
    .icx-home-event__content > strong {
        font-size: 0.92rem !important;
    }

    :root[data-icx-contrast="high"]
    .icx-home-membership__plans > a {
        min-height: 78px;
    }

    :root[data-icx-contrast="high"]
    .icx-testimonial-card__quote {
        height: 37px !important;
        font-size: 3.55rem !important;
    }

    :root[data-icx-contrast="high"]
    .icx-home-partner__name {
        font-size: 0.78rem !important;
    }
}

/* ==========================================================
   ICX HIGH CONTRAST FINAL PRODUCTION FIXES END
========================================================== */
