/* Cricket Ireland: approved contrast repairs, 26 October 2026.
 * Only colours and focus decoration are changed. Brand base tokens stay intact.
 */
:root {
  --ci-colour-release: ci-20261026-colour-2;
  --ci-readable-ink: #063c2d;
  --ci-readable-muted: #595959;
}

/* Header search sits on the existing lime surface. */
body #brxe-zkrdsu,
body #brxe-zkrdsu .text {
  color: var(--ci-readable-ink);
}
body #brxe-zkrdsu svg path {
  fill: var(--ci-readable-ink);
}
body #brxe-2645bc .brxa-inner,
body #brxe-2645bc .brxa-inner::before,
body #brxe-2645bc .brxa-inner::after {
  background-color: var(--ci-readable-ink);
}

/* The native button variants retain their dimensions, links and interactions. */
body .ci-btn:not(.primary):not(.secondary):not(.white):hover {
  background-color: var(--ci-readable-muted);
  color: var(--white);
}
body .ci-btn:not(.primary):not(.secondary):not(.white):hover svg path {
  fill: currentColor;
}
body .ci-btn.secondary:not(.outline):not(.white),
body .ci-btn.secondary:not(.outline):not(.white) span {
  color: var(--ci-readable-ink);
}
body .ci-btn.secondary:not(.outline):not(.white) svg,
body .ci-btn.secondary:not(.outline):not(.white) svg [fill]:not([fill="none"]) {
  fill: var(--ci-readable-ink);
}
body .ci-btn.secondary:not(.outline):not(.white) svg [stroke]:not([stroke="none"]) {
  stroke: var(--ci-readable-ink);
}
body .ci-btn:is(.primary, .secondary).outline:not(.white) {
  color: var(--primary);
  border-color: var(--primary);
}
body .ci-btn:is(.primary, .secondary).outline:not(.white) span {
  color: inherit;
}
body .ci-btn:is(.primary, .secondary).outline:not(.white) svg,
body .ci-btn:is(.primary, .secondary).outline:not(.white) svg [fill]:not([fill="none"]) {
  fill: currentColor;
}
body .ci-btn:is(.primary, .secondary).outline:not(.white):hover {
  background-color: var(--primary);
  color: var(--white);
}
body .ci-btn.white:hover,
body .ci-btn:is(.primary, .secondary).outline.white:hover {
  background-color: var(--primary);
  color: var(--white);
}
body .ci-btn.white,
body .ci-btn.white span,
body .ci-btn.primary:not(.outline):not(.white),
body .ci-btn.primary:not(.outline):not(.white) span {
  color: var(--white);
}
body .bg--primary .ci-btn.outline:not(:hover) {
  color: var(--white);
  border-color: var(--white);
}
body .bg--secondary .ci-btn.outline:not(:hover),
body .bg--secondary .ci-btn.white:not(:hover),
body .bg--secondary .ci-btn.outline:not(:hover) span,
body .bg--secondary .ci-btn.white:not(:hover) span,
body.page-id-2218 #brxe-aycmdv {
  color: var(--ci-readable-ink);
  border-color: var(--ci-readable-ink);
}
body .bg--secondary .ci-btn.outline:not(:hover) svg,
body .bg--secondary .ci-btn.outline:not(:hover) svg [fill]:not([fill="none"]),
body .bg--secondary .ci-btn.white:not(:hover) svg [fill]:not([fill="none"]) {
  fill: var(--ci-readable-ink);
}

/* News dates on cards; the image-backed lead card has its own light treatment. */
body .post-card__date,
body .img-box-h__sub-heading,
body .cup-c-card__heading,
body .malahid-checklist__text-basic,
body.page-id-70290 #brxe-fwubhh,
body #brxe-nctmuc,
body .fr-list-alpha__text,
body .fr-list-featured__text,
body .match-date,
body #brxe-eswikt,
body #brxe-kdqbwl {
  color: var(--primary);
}
body #brxe-vkrtgj .post-card__li:first-child .post-card__date,
body #brxe-zghxly .post-card__li:first-child .post-card__date,
body .hero-news-grid .post-card__li:first-child .post-card__date,
body #brxe-ibjeto .post-card__li:first-child .post-card__date {
  color: var(--white);
}
/* Bring the existing green photo overlay up behind the text on small screens. */
body #brxe-vkrtgj .post-card__li:first-child .post-card::before,
body #brxe-zghxly .post-card__li:first-child .post-card::before,
body .hero-news-grid .post-card__li:first-child .post-card::before,
body #brxe-ibjeto .post-card__li:first-child .post-card::before {
  background-image: linear-gradient(to bottom, transparent 0%, rgba(15, 93, 69, 0.9) 45%, var(--primary) 100%) !important; /* Existing per-grid ID rules. */
}
body #brxe-agrozd a[aria-current="page"],
body #brxe-agrozd a:hover,
body .ci-sec-nav__menu-item a[aria-current="page"],
body .ci-sec-nav__menu-item a:hover,
body .ci-sec-nav__menu-title,
body .ci-sec-nav__menu-title .text {
  color: var(--primary);
  text-decoration: underline;
}
body #brxe-dugvjf,
body .nvp-match_status.nvp-match_status--stop,
body .nvp-theme--match-list .nvp-tabs .nvp-tabs__item_active {
  color: var(--ci-readable-ink);
}
body #brxe-gckatj {
  background-color: var(--primary);
}
body.home #brxe-bvgsdb .ci-btn.white:not(:hover),
body.home #brxe-bvgsdb .ci-btn.white:not(:hover) span {
  color: var(--ci-readable-ink);
  border-color: var(--ci-readable-ink);
}
body.home #brxe-bvgsdb .ci-btn.white:not(:hover) svg,
body.home #brxe-bvgsdb .ci-btn.white:not(:hover) svg path {
  fill: var(--ci-readable-ink);
}
body .content-84__counter-info {
  color: var(--white);
}

/* Newsletter text on lime, while the adjacent social panel remains dark green. */
body #brxe-qovrsa,
body #brxe-qovrsa span,
body #brxe-bbaxsq label,
body #brxe-wcskxe,
body #brxe-wcskxe .text {
  color: var(--ci-readable-ink);
}
body #brxe-wcskxe svg,
body #brxe-wcskxe svg [fill]:not([fill="none"]) {
  fill: var(--ci-readable-ink);
}
body.single-player #brxe-738d8b :is(h2, h3, p, .brxe-text-basic) {
  color: var(--ci-readable-ink);
}

/* Grey secondary text and older inline link colours on light content surfaces. */
body :is(.wp-element-caption, .wp-caption-text),
body .post-password-form label {
  color: var(--ci-readable-muted);
}
body #brx-content a[style*="#a4abb6" i],
body #brx-content [style*="color: #9e9e9e" i],
body #brx-content [style*="color:#9e9e9e" i] {
  color: var(--ci-readable-muted) !important; /* Imported inline styles. */
}
body #brx-content [style*="color: #339966" i],
body #brx-content [style*="color:#339966" i],
body #brx-content [style*="color: #008000" i],
body #brx-content [style*="color:#008000" i] {
  color: var(--primary) !important; /* Imported inline styles. */
}
body .site_btn {
  background-color: var(--ci-readable-muted);
  color: var(--white);
}
body .site_btn:hover {
  background-color: var(--primary);
  color: var(--white);
}
body .wsf-form :is(input.wsf-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select.wsf-field, textarea.wsf-field) {
  border-color: var(--ci-readable-muted);
}
body #brxe-bbaxsq :is(.wsf-invalid-feedback, .wsf-text-danger) {
  color: #701b25;
}
body.page-id-77 .site-btn {
  color: var(--ci-readable-ink);
}
body.page-id-70290 :is(#brxe-xwupjp, #brxe-sjrxat) strong {
  color: var(--text-dark);
}
body #brxe-nprfkb {
  color: #086b88;
}
/* Older page-specific text and the annual-report download cards. */
body :is(#brxe-ytarsg, #brxe-wybgnn, #brxe-ofxoyd, #brxe-fddmqx, #brxe-ivsfqp, #brxe-fsbxnx) {
  color: var(--primary);
}
body :is(#brxe-ypdmke, #brxe-tlevut, #brxe-umjmyx, #brxe-uwpxbm, #brxe-rczhbw, #brxe-lcxmes),
body #brxe-lcxmes .text,
body .ci_video_grid_item_text,
body.page-id-9444 .ca-card__text-basic,
body.page-id-2320 .table-body-text {
  color: var(--primary);
}
body #brxe-lcxmes svg [fill]:not([fill="none"]) {
  fill: var(--primary);
}
body #brxe-jvewmv .color-box__name p {
  color: var(--ci-readable-ink);
}
body .mp_wrapper .mepr-form label {
  color: var(--ci-readable-muted);
}
body #brxe-xkuxkl a {
  color: var(--white) !important; /* Legacy embedded link colour. */
  text-decoration: underline;
}
body :is(#brxe-7cb5bd, #brxe-2c2bb6, #brxe-bb60b9),
body :is(#brxe-7cb5bd, #brxe-2c2bb6, #brxe-bb60b9) .text {
  color: var(--primary);
}
body #brxe-e1eff8::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}
body #brxe-mauvxe {
  color: var(--ci-readable-ink);
}
body .count-card .count-card__label,
body .content-44__counter-wrapper .content-44__counter-info {
  color: var(--white);
}
body #brxe-nphggn,
body .nvp-match__link--pri {
  background-color: var(--primary);
  color: var(--white);
}
body #brxe-nphggn:hover,
body .nvp-match__link--pri:hover {
  background-color: var(--primary-hover);
  color: var(--white);
}
body .ci-sec-nav__menu-item a[aria-current="page"] {
  color: var(--primary) !important; /* Page-specific breadcrumb ID rules. */
  text-decoration: underline;
}
body .pdf-card_secolor :is(.ci_downloads_grid_white_title, .post-card__date-white),
body .pdf-card_secolor .ci-btn.white:not(:hover),
body .pdf-card_secolor .ci-btn.white:not(:hover) span {
  color: var(--ci-readable-ink);
  border-color: var(--ci-readable-ink);
}
body .pdf-card_secolor .ci-btn.white:not(:hover) svg path {
  fill: var(--ci-readable-ink);
}
body .pdf-card_pricolor .ci-btn.white svg path,
body .pdf-card_secolor .ci-btn.white:hover svg path {
  fill: var(--white);
}
body.page-id-2218 #brxe-jthjud span {
  color: var(--white);
}
body.page-id-2218 #brxe-aycmdv span {
  color: var(--ci-readable-ink);
}
body .elementor-element-ccb3f8e a {
  color: var(--white) !important; /* Legacy embedded link rule is important. */
  text-decoration: underline;
}
body #brxe-sfzcej span {
  color: var(--primary);
}

/* Keep union hues, using darker shades for headings rather than changing logos. */
body.term-leinster :is(#brxe-kzqkir, #brxe-afxyos) {
  color: #086b88;
}
body.term-northwest :is(#brxe-kzqkir, #brxe-afxyos),
body.term-60 :is(#brxe-kzqkir, #brxe-afxyos) {
  color: #3d6f20;
}
body :is(#brxe-igcosj, #brxe-ieqdnb, #brxe-qlrxxo, #brxe-fpswbh) {
  color: var(--white);
}

/* Two-colour keyboard indicator works against light, lime and dark surfaces.
 * Important is limited to overriding ACSS / WS Form focus suppression.
 */
body :is(a, button, input:not([type="hidden"]), select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ci-readable-ink) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white, #fff) !important;
}
body .focus-parent:focus-within {
  --focus-color: var(--ci-readable-ink);
}
@media (forced-colors: active) {
  body :is(a, button, input:not([type="hidden"]), select, textarea, [tabindex]):focus-visible {
    outline-color: Highlight !important;
    box-shadow: none !important;
  }
}

/* Use the existing darker lime shade under white navigation and search labels. */
body .header-nav-wrapper {
  background-image: linear-gradient(154deg, var(--primary) 30%, var(--secondary-dark) 100%);
}
body #brxe-hikeby {
  background-image: linear-gradient(297deg, var(--secondary-dark) 0%, var(--primary) 80%);
}
body #brxe-iykcwv li a:hover,
body #brxe-ryzjza li a:hover {
  color: var(--white);
  text-decoration: underline;
}
body .bt-header-section__dropdown-body {
  background-image: linear-gradient(105deg, var(--primary) 0%, var(--secondary-dark) 100%);
}
body .ci-mm__content-heading,
body .bt-header-section__navigation-wrapper .multilevel-heading h3,
body .bt-header-section__navigation-wrapper .multilevel-heading h3 a {
  color: var(--white);
}
body .bt-header-section__dropdown-body .bt-header-section__dropdown-link:hover,
body .bt-header-section__dropdown-body .bt-header-section__dropdown-link[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
}
body .bt-search-popup__content {
  background-image: linear-gradient(90deg, var(--primary) 40%, var(--secondary-dark) 100%);
}
body #brxe-e39ffa {
  color: var(--white);
}
@media (max-width: 991px) {
  body .bt-header-section__navigation-wrapper {
    background-image: linear-gradient(-16deg, var(--secondary-dark) 0%, var(--primary) 70%);
  }
  body .bt-header-section__navigation-main a[aria-current="page"],
  body .bt-header-section__navigation-main .brx-submenu-toggle.aria-current,
  body .bt-header-section__navigation-main .brx-submenu-toggle.aria-current a {
    color: var(--white) !important; /* Existing mobile active rule is important. */
    text-decoration: underline;
  }
}
