/* Shared public-site rules: new linked icons inherit the same interaction automatically. */
/* Keep natural-language headings and controls together at word boundaries. */
body:not(.wp-admin) :is(h1,h2,h3,h4,h5,h6,summary,.elementor-button,.wpr-button,.cecc-cat-button,.cecc-card-button,.cecc-button),
body:not(.wp-admin) :is(h1,h2,h3,h4,h5,h6,summary,.elementor-button,.wpr-button,.cecc-cat-button,.cecc-card-button,.cecc-button) * {
  overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important;
}
body:not(.wp-admin) :is(.cecc-eib,.cecc-catalogo-card,.cecc-course-conditions) { overflow-wrap: normal; }
/* Column count follows usable container width, not a fixed three-column viewport rule. */
body:not(.wp-admin) .cecc-eib-pillars { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
body:not(.wp-admin) .cecc-eib-facts { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); }
body:not(.wp-admin) .cecc-conditions-body dl { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
/* Give enlarged text the full content width without reducing the user's chosen font size. */
body.cecc-a11y-scaled :is(.cecc-eib-hero,.cecc-eib-purpose,.cecc-eib-audience,.cecc-eib-video,.cecc-eib-pillars,.cecc-eib-facts,.cecc-conditions-body dl) { grid-template-columns: minmax(0,1fr); }
body.cecc-a11y-scaled .cecc-eib-program { flex-direction: column; align-items: stretch; }

body:not(.wp-admin) {
  --cecc-interaction-glow: rgba(31, 169, 206, .64);
  --cecc-interaction-ink: #14395c;
  --cecc-interaction-accent: #934306;
}
body:not(.wp-admin) :is(a[href]:not([href=""]), button:has(svg, img, [class*="icon"]), [role="button"]:has([class*="icon"]), .wpr-mobile-toggle, .cecc-footer-privacy > summary):not(#wpadminbar *):not(:disabled):not([aria-disabled="true"]) {
  transition: filter 160ms ease, box-shadow 160ms ease;
}
/* Brightness and a corporate cyan halo do not change the size or flow of the page. */
body:not(.wp-admin) :is(a[href]:not([href=""]), button:has(svg, img, [class*="icon"]), [role="button"]:has([class*="icon"]), .wpr-mobile-toggle, .cecc-footer-privacy > summary):not(#wpadminbar *):not(:disabled):not([aria-disabled="true"]):is(:focus-visible, :active) {
  filter: brightness(1.08) drop-shadow(0 0 5px var(--cecc-interaction-glow));
}
@media (hover: hover) {
  body:not(.wp-admin) :is(a[href]:not([href=""]), button:has(svg, img, [class*="icon"]), [role="button"]:has([class*="icon"]), .wpr-mobile-toggle, .cecc-footer-privacy > summary):not(#wpadminbar *):not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.08) drop-shadow(0 0 5px var(--cecc-interaction-glow));
  }
}
.cecc-footer-legal .cecc-footer-privacy {
  box-sizing: border-box; max-width: 900px; margin: 16px auto 0;
  border: 1px solid #7babae; border-radius: 0 22px 0 22px;
  color: #14395c; background: #f2f9fa; text-align: left;
}
.cecc-footer-privacy > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; padding: 16px 22px; list-style: none; cursor: pointer;
  color: #14395c; font-size: 18px; font-weight: 700; line-height: 1.5;
  border-radius: 0 22px 0 22px; overflow-wrap: anywhere;
}
.cecc-footer-privacy > summary::-webkit-details-marker { display: none; }
.cecc-footer-privacy > summary:hover { background: #e2f4f7; }
.cecc-footer-privacy .cecc-privacy-mark {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: #934306; font-size: 24px; font-weight: 400; line-height: 1;
}
.cecc-footer-privacy[open] > summary { border-bottom: 1px solid #b3d2d5; border-bottom-left-radius: 0; }
.cecc-footer-privacy[open] .cecc-privacy-mark { transform: rotate(45deg); }
.cecc-footer-privacy-body { padding: 18px 22px 22px; overflow-wrap: anywhere; }
/* Respect the existing high-contrast palette and focus ring. */
body.cecc-a11y-contrast .cecc-footer-privacy,
body.cecc-a11y-contrast .cecc-footer-privacy > summary { color: #fff !important; background: #111 !important; border-color: #bdbdbd !important; }
body.cecc-a11y-contrast .cecc-footer-privacy .cecc-privacy-mark { color: #ffdf70 !important; border: 1px solid currentColor; }
body.cecc-a11y-contrast { --cecc-interaction-glow: rgba(255, 223, 112, .8); }
body.cecc-a11y-contrast :is(a[href], button, [role="button"], .cecc-footer-privacy > summary):not(#wpadminbar *):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible, :active) {
  filter: none !important; outline: 2px solid #ffdf70; outline-offset: 3px;
}
/* Feedback remains visible without animation when reduced motion is requested. */
body.cecc-a11y-motion :is(a[href], button, [role="button"], summary) { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  body:not(.wp-admin) :is(a[href], button, [role="button"], summary) { transition: none !important; }
}
@media (forced-colors: active) {
  body:not(.wp-admin) :is(a[href], button, [role="button"], summary):is(:hover, :focus-visible, :active) {
    filter: none !important; outline: 2px solid Highlight !important; outline-offset: 3px;
  }
}
@media (max-width: 600px) {
  .cecc-footer-privacy > summary { padding: 14px 16px; font-size: 17px; }
  .cecc-footer-privacy-body { padding: 16px; }
}
