/* ecr-a11y: hub pkg D (2026-11-23). CSS-only WCAG AA contrast (4.5:1 text) and tap-target (>=44px) fixes. No copy changes. */

/* 1. Brand colours: white-on-primary/secondary buttons and primary text on light backgrounds */
:root{--primary:hsl(160 84% 24%);--secondary:hsl(197 71% 30%)}
footer .hover\:text-primary:hover{color:#6ee7b7!important}

/* 2. Palette steps that fail with white text, or as text on white */
.bg-green-600{background-color:#15803d!important}
.hover\:bg-green-700:hover,.bg-green-600:hover{background-color:#166534!important}
.bg-orange-600{background-color:#c2410c!important}
.hover\:bg-orange-700:hover,.bg-orange-600:hover{background-color:#9a3412!important}
.bg-cyan-600{background-color:#0e7490!important}
.hover\:bg-cyan-700:hover,.bg-cyan-600:hover{background-color:#155e75!important}
.text-green-600{color:#15803d!important}
.hover\:text-green-800:hover{color:#166534!important}
.text-orange-600{color:#c2410c!important}
.hover\:text-orange-800:hover{color:#9a3412!important}

/* 3. Dark gradient panels: darker stops, plus a solid fallback colour behind the gradient */
[class*="bg-gradient-to-"].from-blue-600,[class*="bg-gradient-to-"].from-blue-500{--tw-gradient-from:#1d4ed8 var(--tw-gradient-from-position)!important;--tw-gradient-to:rgb(29 78 216 / 0) var(--tw-gradient-to-position);background-color:#1d4ed8}
[class*="bg-gradient-to-"].from-green-600,[class*="bg-gradient-to-"].from-green-500{--tw-gradient-from:#166534 var(--tw-gradient-from-position)!important;--tw-gradient-to:rgb(22 101 52 / 0) var(--tw-gradient-to-position);background-color:#166534}
[class*="bg-gradient-to-"].to-green-600{--tw-gradient-to:#166534 var(--tw-gradient-to-position)!important}
[class*="bg-gradient-to-"].to-blue-600{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)!important}
[class*="bg-gradient-to-"].to-cyan-600{--tw-gradient-to:#155e75 var(--tw-gradient-to-position)!important}
[class*="bg-gradient-to-"].to-emerald-600{--tw-gradient-to:#065f46 var(--tw-gradient-to-position)!important}

/* 4. Outline buttons on dark panels: white text needs a transparent fill, white fill on hover */
.border-white.text-white.bg-background{background-color:transparent!important}
.border-white.text-white.bg-background:hover{background-color:#fff!important}

/* 5. Visible focus ring in the element's own (AA-passing) text colour */
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid currentColor!important;outline-offset:2px!important}

/* 6. Tap targets >=44px: nav, header, footer, consent banners, buttons and button-styled links */
nav a,header a,nav button,header button,footer li>a,footer div>a,footer nav a,
#ecr-consent a,#ecr-consent button,#ap-consent-accept,#ap-consent-decline,
button,a.button,a.navcta,a.brand,a.skip,a.ecr-select-deals,a.ecr-atf-cta,
a[class*="inline-flex"],a[class*="rounded"],a[class*="inline-block"],a[class*="py-"]{min-height:44px;min-width:44px;box-sizing:border-box}
nav a:not([class*="flex"]):not([class*="block"]):not([class*="hidden"]):not([class*="grid"]):not(.sr-only),
header a:not([class*="flex"]):not([class*="block"]):not([class*="hidden"]):not([class*="grid"]):not(.sr-only),
footer li>a:not([class*="flex"]):not([class*="block"]):not([class*="hidden"]):not(.sr-only),
a.button:not([class*="hidden"]),a.navcta,a.skip,
a[class*="py-"]:not([class*="flex"]):not([class*="block"]):not([class*="hidden"]):not(.sr-only){display:inline-flex!important;align-items:center}
footer div>a:not([class*="flex"]):not([class*="hidden"]):not(.sr-only){display:flex!important;align-items:center}
a.sr-only:not(:focus){min-height:0;min-width:0}

/* 7. Layout for the new static-HTML destination guide sections (Papagayo, Arenal). Styling only. */
.destination-guide{padding:48px 0;background:#fff;color:#374151}
.destination-guide h2{font-size:1.75rem;line-height:1.3;font-weight:700;color:#111827;margin:2rem 0 .75rem}
.destination-guide h3{font-size:1.2rem;line-height:1.4;font-weight:600;color:#111827;margin:1.5rem 0 .5rem}
.destination-guide p{font-size:1.0625rem;line-height:1.7;margin:0 0 1rem;max-width:72ch}
.destination-guide .direct-answer{background:#eff6ff;border-left:4px solid #1d4ed8;padding:12px 16px;border-radius:6px}
.destination-guide a{color:#1d4ed8;text-decoration:underline}
.destination-guide .faq details{border-top:1px solid #e5e7eb;padding:4px 0}
.destination-guide .faq summary{font-weight:600;color:#111827;cursor:pointer;min-height:44px;display:flex;align-items:center}
.destination-guide .faq details p{margin:.25rem 0 1rem}
.destination-guide small{color:#4b5563}
.destination-guide ul{list-style:disc;padding-left:1.5rem;margin:0 0 1rem}.destination-guide li{margin:.25rem 0;line-height:1.6}

/* 8. r2 carry-over of NM ruling 5 (CSS only): purple->pink hero gradient. Darker pink stop (white 6.0:1) + background-color fallback. */
.bg-gradient-to-r.from-purple-600{background-color:#7e22ce}
.from-purple-600.to-pink-600{--tw-gradient-to:#be185d!important}

/* r4 (NM 10:42 CR), CSS only: restore inline flow for the home footer 'Photo Credits' line. The pkg D sheet's
   `footer div>a:not(...)` rule (display:flex) stacked these inline text links onto separate lines. Same :not() chain
   + the strip's class so this wins on specificity; inline text links fall under the WCAG inline exception. */
footer div.text-\[11px\]>a:not([class*="flex"]):not([class*="hidden"]):not(.sr-only){display:inline!important;min-height:0!important;min-width:0!important}
