/*
Theme Name: Colorrida
Theme URI: https://colorrida.be
Description: Thème enfant néon pour la Colorrida de Rosières — course nocturne fluo, site d'une page. Basé sur Twenty Twenty-Five (maintenu par WordPress) : ce thème n'ajoute que les couleurs, les polices, les effets et quelques compositions.
Author: Comité Colorrida
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: colorrida
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --cr-pink: #ff2ea6; --cr-green: #7dff2f; --cr-yellow: #f3ff2f;
  --cr-cyan: #22d9ff; --cr-orange: #ff8a1f; --cr-purple: #b23dff;
  --cr-rainbow: linear-gradient(90deg, #22d9ff 0%, #7dff2f 20%, #f3ff2f 40%, #ff8a1f 60%, #ff2ea6 80%, #b23dff 100%);
  --cr-header-h: 72px;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--cr-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: #05050b;
  background-image:
    radial-gradient(55vw 40vw at 0% 0%, rgba(255, 46, 166, .18), transparent 60%),
    radial-gradient(50vw 40vw at 100% 15%, rgba(34, 217, 255, .16), transparent 60%),
    radial-gradient(70vw 45vw at 50% 100%, rgba(125, 255, 47, .10), transparent 60%);
  background-attachment: fixed;
}
/* "clip" (not "hidden"): cuts the tilted marquee's overhang without breaking the sticky header */
html, body { overflow-x: clip; }

/* =========================================================
   Type
   ========================================================= */
h1, h2, h3, .wp-block-site-title { text-transform: uppercase; letter-spacing: .04em; }
h2 { text-shadow: 0 0 14px rgba(34, 217, 255, .55); }

/* rainbow text (class "cr-rainbow" in the editor) — slowly drifting gradient */
.cr-rainbow, .cr-rainbow a {
  background: var(--cr-rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  animation: cr-drift 8s linear infinite;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .28));
}
@keyframes cr-drift { to { background-position: 200% 0; } }

/* small coloured label above a section title (class "cr-kicker") */
.cr-kicker {
  font-family: Bungee, Impact, sans-serif;
  font-size: .9rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--cr-green); text-shadow: 0 0 12px var(--cr-green);
}

/* =========================================================
   Header (sticky, blurred) + anchor navigation
   ========================================================= */
/* WordPress wraps the header part in <header class="wp-block-template-part"> that is only as tall as
   the bar itself, so stickiness must live on that wrapper — on .cr-header it would never stick. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
}
.cr-header {
  min-height: var(--cr-header-h);
  padding: .6rem 1rem;
  background: rgba(5, 5, 11, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.cr-header.is-scrolled {
  background: rgba(5, 5, 11, .92); padding-top: .35rem; padding-bottom: .35rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 46, 166, .35);
}
.cr-header > .alignwide { align-items: center; gap: 1rem; }
.cr-header-right { gap: 1.4rem; align-items: center; }
.cr-header .wp-block-site-logo img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); transition: transform .4s ease; }
.cr-header .wp-block-site-logo:hover img { transform: rotate(-12deg) scale(1.08); }
.wp-block-navigation .wp-block-navigation-item__content {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem;
  padding: .35rem .2rem; position: relative; transition: color .2s ease, text-shadow .2s ease;
}
.wp-block-navigation .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cr-rainbow); transform: scaleX(0); transition: transform .25s ease;
}
.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .wp-block-navigation-item__content.is-active::after { transform: scaleX(1); }
.wp-block-navigation .wp-block-navigation-item__content.is-active { color: var(--cr-cyan); text-shadow: 0 0 10px var(--cr-cyan); }
.wp-block-navigation__responsive-container.is-menu-open { background: rgba(5, 5, 11, .96); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; }

/* Rainbow button (class "cr-btn-rainbow" on a button) — same drifting colours as the COLORRIDA title */
.cr-btn-rainbow .wp-block-button__link,
.cr-btn-rainbow .wp-block-button__link:hover {
  background: var(--cr-rainbow) !important; background-size: 300% 100% !important;
  color: #05050b !important; border: 0;
  animation: cr-drift-btn 4s linear infinite, cr-glow 4s linear infinite;
  font-family: Bungee, Impact, sans-serif; font-weight: 400; letter-spacing: .1em;
  text-shadow: 0 0 6px rgba(255, 255, 255, .5);
}
.cr-btn-rainbow .wp-block-button__link:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.15) saturate(1.2); }
@keyframes cr-drift-btn { to { background-position: 300% 0; } }
@keyframes cr-glow {
  0%, 100% { box-shadow: 0 0 14px #22d9ff, 0 0 34px rgba(34, 217, 255, .5); }
  20% { box-shadow: 0 0 14px #7dff2f, 0 0 34px rgba(125, 255, 47, .5); }
  40% { box-shadow: 0 0 14px #f3ff2f, 0 0 34px rgba(243, 255, 47, .5); }
  60% { box-shadow: 0 0 14px #ff8a1f, 0 0 34px rgba(255, 138, 31, .5); }
  80% { box-shadow: 0 0 14px #ff2ea6, 0 0 34px rgba(255, 46, 166, .5); }
}
.cr-header-cta .wp-block-button__link { padding: .6rem 1.2rem; font-size: .85rem; white-space: nowrap; }
@media (max-width: 600px) {
  .cr-header-cta .wp-block-button__link { padding: .5rem .85rem; font-size: .72rem; }
  .cr-header .wp-block-site-title { display: none; }
  .cr-header-right { gap: .8rem; }
}

/* Scroll progress (created by effects.js) */
.cr-progress {
  position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--cr-rainbow); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(255, 46, 166, .8); pointer-events: none;
}

/* =========================================================
   Hero — full bleed, poster backdrop, floating logo
   ========================================================= */
.cr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--cr-header-h));
  display: grid; place-items: center;
  padding: 3rem 1rem 4rem;
  text-align: center;
  background: #05050b url("assets/hero-splash.jpg") center 30% / cover no-repeat;
}
.cr-hero > .cr-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cr-hero::after {  /* slow colour wash so the backdrop never feels static */
  content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none; mix-blend-mode: screen; opacity: .35;
  background:
    radial-gradient(30% 30% at 20% 30%, rgba(255, 46, 166, .7), transparent 70%),
    radial-gradient(30% 30% at 80% 60%, rgba(34, 217, 255, .7), transparent 70%),
    radial-gradient(25% 25% at 50% 90%, rgba(125, 255, 47, .5), transparent 70%);
  animation: cr-wash 18s ease-in-out infinite alternate;
}
@keyframes cr-wash { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(4%, -3%) rotate(8deg); } }
.cr-hero::before {  /* darken + vignette so the text stays readable */
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 5, 11, .55) 0%, rgba(5, 5, 11, .75) 55%, #05050b 100%),
    radial-gradient(60% 60% at 50% 40%, transparent 0%, rgba(5, 5, 11, .5) 100%);
}
.cr-hero .cr-hero-logo img {
  width: min(300px, 55vw); height: auto;
  animation: cr-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, .3));
}
@keyframes cr-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.cr-hero h1 { margin-top: .5rem; line-height: 1; }
.cr-hero .cr-hero-sub { font-weight: 600; color: var(--cr-contrast, #f6f6fa); opacity: .92; }
.cr-hero .cr-hero-date {
  font-family: Bungee, Impact, sans-serif; font-size: clamp(1.2rem, 3.4vw, 2rem);
  color: var(--cr-yellow); text-shadow: 0 0 16px var(--cr-yellow), 0 0 40px rgba(243, 255, 47, .5);
}

/* =========================================================
   Sections
   ========================================================= */
.cr-section { padding: clamp(3rem, 8vw, 6rem) 1rem; }
.cr-section > h2:first-of-type, .cr-section .cr-title { text-align: center; }
.cr-section h2::after {
  content: ""; display: block; width: 84px; height: 4px; margin: .8rem auto 0;
  background: var(--cr-rainbow); border-radius: 4px; box-shadow: 0 0 14px rgba(255, 255, 255, .35);
}
.cr-section--alt { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }

/* reveal on scroll (effects.js adds .is-visible) */
.cr-reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.cr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cr-reveal { opacity: 1; transform: none; transition: none; }
  .cr-hero .cr-hero-logo img, .cr-rainbow, .cr-btn-rainbow .wp-block-button__link, .cr-marquee__track, .cr-hero::after { animation: none !important; }
}

/* =========================================================
   Neon frames + cards  (class "cr-neon is-pink" etc.)
   ========================================================= */
.cr-neon, .cr-card {
  border: 2px solid currentColor; border-radius: 20px;
  box-shadow: 0 0 12px currentColor, inset 0 0 14px rgba(255, 255, 255, .05);
  background: rgba(10, 10, 20, .74); backdrop-filter: blur(6px);
  padding: 1.4rem 1.5rem;
}
.cr-card, .cr-neon { position: relative; overflow: hidden; }
.cr-card { transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease; will-change: transform; }
.cr-card:hover { transform: translateY(-4px); box-shadow: 0 0 26px currentColor, 0 0 60px -10px currentColor, inset 0 0 14px rgba(255, 255, 255, .06); }
.cr-card::before, .cr-neon::before {  /* light spot that follows the pointer (effects.js sets --mx/--my) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, currentColor 22%, transparent), transparent 70%);
}
.cr-card:hover::before, .cr-neon:hover::before { opacity: 1; }
.is-pink { color: var(--cr-pink); } .is-green { color: var(--cr-green); } .is-cyan { color: var(--cr-cyan); }
.is-yellow { color: var(--cr-yellow); } .is-orange { color: var(--cr-orange); } .is-purple { color: var(--cr-purple); }
.cr-neon > *, .cr-card > * { color: #f6f6fa; }
.cr-neon h2, .cr-neon h3, .cr-card h3 { color: inherit; text-shadow: 0 0 12px currentColor; margin-top: 0; }
.cr-card .cr-big {
  font-family: Bungee, Impact, sans-serif; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  color: inherit; text-shadow: 0 0 14px currentColor; margin: 0 0 .4rem;
}

/* =========================================================
   Programme timeline  (a core list with class "cr-timeline")
   <li><strong>16h30</strong> Retrait des dossards</li>
   ========================================================= */
.cr-timeline { list-style: none; padding: 0; margin: 0 auto; width: 100%; max-width: 640px; position: relative; box-sizing: border-box; }
.cr-timeline::before {
  content: ""; position: absolute; left: 7.2rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #22d9ff, #7dff2f, #f3ff2f, #ff8a1f, #ff2ea6, #b23dff);
  opacity: .8; box-shadow: 0 0 10px rgba(255, 255, 255, .3); transform-origin: top; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1);
}
.cr-timeline.cr-reveal, .cr-timeline:not(.is-visible):has(> .cr-reveal) { opacity: 1; transform: none; }
.cr-timeline:has(> .cr-reveal):not(.is-visible)::before { transform: scaleY(0); }
/* flex, not grid: the label text is an anonymous node, and anonymous items are only placeable reliably in flex */
.cr-timeline li { display: flex; align-items: center; padding: .7rem 0; margin: 0; }
.cr-timeline li > :not(strong) { display: contents; } /* <em>, <a>… stay inline with the label text */
.cr-timeline li > strong {
  order: -2; flex: 0 0 6.2rem; padding-right: .5rem; text-align: right;
  font-family: Bungee, Impact, sans-serif; font-weight: 400; font-size: 1.15rem;
  color: var(--cr-cyan); text-shadow: 0 0 12px var(--cr-cyan);
}
.cr-timeline li::before {
  content: ""; order: -1; flex: 0 0 14px; height: 14px; margin: 0 1rem 0 calc(1rem - 7px + .5rem); border-radius: 50%;
  background: var(--cr-pink); box-shadow: 0 0 10px var(--cr-pink), 0 0 22px var(--cr-pink);
  animation: cr-blink 2.4s ease-in-out infinite;
}
.cr-timeline li:nth-child(2)::before { animation-delay: .4s; } .cr-timeline li:nth-child(3)::before { animation-delay: .8s; }
.cr-timeline li:nth-child(4)::before { animation-delay: 1.2s; } .cr-timeline li:nth-child(5)::before { animation-delay: 1.6s; }
@keyframes cr-blink { 50% { filter: brightness(1.6); transform: scale(1.25); } }
.cr-timeline li { transition-property: opacity, transform, background; border-radius: 12px; }
.cr-timeline li:hover { background: rgba(255, 255, 255, .04); }
.cr-timeline li:nth-child(2n)::before { background: var(--cr-green); box-shadow: 0 0 10px var(--cr-green), 0 0 22px var(--cr-green); }
.cr-timeline li:nth-child(3n)::before { background: var(--cr-yellow); box-shadow: 0 0 10px var(--cr-yellow), 0 0 22px var(--cr-yellow); }
@media (max-width: 520px) {
  .cr-timeline::before { left: 4.6rem; }
  .cr-timeline li > strong { flex-basis: 3.8rem; font-size: .95rem; }
  .cr-timeline li::before { margin-left: calc(.6rem - 7px + .5rem); }
}

/* =========================================================
   Facilities grid  (group with class "cr-facts", one paragraph per item)
   ========================================================= */
.cr-facts p {
  margin: 0; padding: .9rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.cr-facts p:hover { border-color: var(--cr-cyan); box-shadow: 0 0 12px rgba(34, 217, 255, .4); }
.cr-facts p .cr-no { color: var(--cr-orange); }

/* =========================================================
   Buttons
   ========================================================= */
.wp-block-button__link {
  text-transform: uppercase; letter-spacing: .08em; font-weight: 800; border-radius: 999px;
  padding: .9rem 1.8rem; transition: transform .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-fill .wp-block-button__link, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  box-shadow: 0 0 14px rgba(255, 46, 166, .8), 0 0 36px rgba(255, 46, 166, .4);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid var(--cr-cyan); color: var(--cr-cyan); background: transparent;
  box-shadow: 0 0 12px rgba(34, 217, 255, .6);
}
.cr-pulse .wp-block-button__link { animation: cr-pulse 2.2s ease-in-out infinite; }
@keyframes cr-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 46, 166, .8), 0 0 36px rgba(255, 46, 166, .4); }
  50% { box-shadow: 0 0 22px rgba(255, 46, 166, 1), 0 0 60px rgba(255, 46, 166, .6); }
}
@media (prefers-reduced-motion: reduce) { .cr-pulse .wp-block-button__link { animation: none; } }

/* =========================================================
   Countdown + results (rendered by the colorrida-core plugin)
   ========================================================= */
.cr-countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 1.2rem 0; }
.cr-countdown__unit { min-width: 5.6rem; padding: .8rem .5rem; text-align: center; }
.cr-countdown__value.is-tick { animation: cr-tick .45s ease-out; }
@keyframes cr-tick { 0% { transform: translateY(-30%) scale(1.15); opacity: .3; filter: brightness(2); } 100% { transform: none; opacity: 1; } }
.cr-countdown__value {
  display: block; font-family: Bungee, Impact, sans-serif; font-size: clamp(1.9rem, 6vw, 3.2rem); line-height: 1;
  color: var(--cr-green); text-shadow: 0 0 14px var(--cr-green); font-variant-numeric: tabular-nums;
}
.cr-countdown__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; opacity: .85; margin-top: .4rem; }
.cr-countdown--done { font-family: Bungee, Impact, sans-serif; text-transform: uppercase; color: var(--cr-yellow); text-shadow: 0 0 14px var(--cr-yellow); text-align: center; }

.cr-results { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cr-results th, .cr-results td { padding: .55rem .6rem; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.cr-results th { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--cr-cyan); }
.cr-results tbody tr:nth-child(1) td:first-child { color: var(--cr-yellow); text-shadow: 0 0 10px var(--cr-yellow); font-weight: 800; }
.cr-results tbody tr:nth-child(2) td:first-child, .cr-results tbody tr:nth-child(3) td:first-child { color: var(--cr-green); font-weight: 800; }
.cr-results__notice { opacity: .85; text-align: center; }

/* =========================================================
   Gallery + footer
   ========================================================= */
/* Any gallery becomes a neon masonry: posters keep their full shape (no cropped text), no holes whatever the count. */
.cr-section .wp-block-gallery.has-nested-images { display: block; columns: 3 260px; column-gap: 14px; }
.cr-section .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: 100% !important; margin: 0 0 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, .1); transition: box-shadow .3s ease, border-color .3s ease, opacity .7s ease, transform .7s ease;
}
.cr-section .wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%; height: auto; object-fit: initial; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}
.cr-section .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.05); filter: saturate(1.3); }
.cr-section .wp-block-gallery.has-nested-images figure.wp-block-image:hover { box-shadow: 0 0 22px rgba(255, 46, 166, .7); border-color: var(--cr-pink); }
.wp-lightbox-overlay .scrim { background-color: rgba(5, 5, 11, .94) !important; }
.cr-footer { padding: 2rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; opacity: .9; }

/* =========================================================
   Marquee band  (paragraph with class "cr-marquee")
   ========================================================= */
.cr-marquee {
  overflow: hidden; white-space: nowrap; margin: 0 !important; padding: .9rem 0;
  font-family: Bungee, Impact, sans-serif; font-size: clamp(1rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: .08em;
  color: #05050b; background: var(--cr-rainbow); transform: rotate(-1.5deg);
  width: 110vw !important; max-width: none !important; margin-left: calc(50% - 55vw) !important;
  box-shadow: 0 0 30px rgba(255, 46, 166, .45); position: relative; z-index: 2;
}
.cr-marquee__track { display: inline-flex; animation: cr-marquee 28s linear infinite; }
.cr-marquee__track > span { padding-right: 2.5rem; }
@keyframes cr-marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Key figures  (group with class "cr-stats", one paragraph per figure: <strong>4</strong> distances)
   ========================================================= */
.cr-stats { text-align: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)) !important; }
.cr-stats p { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; opacity: .9; }
.cr-stats strong {
  display: block; font-family: Bungee, Impact, sans-serif; font-weight: 400; letter-spacing: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; font-variant-numeric: tabular-nums;
  color: var(--cr-pink); text-shadow: 0 0 18px currentColor;
}
.cr-stats p:nth-child(4n+2) strong { color: var(--cr-green); }
.cr-stats p:nth-child(4n+3) strong { color: var(--cr-cyan); }
.cr-stats p:nth-child(4n+4) strong { color: var(--cr-yellow); }

/* =========================================================
   FAQ  (core "Details" blocks inside a group with class "cr-faq")
   ========================================================= */
.cr-faq { display: grid; gap: .8rem; }
.cr-faq > details { width: 100%; max-width: var(--wp--style--global--content-size, 800px); box-sizing: border-box; margin-block: 0 !important; }
.cr-faq details {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(10, 10, 20, .7);
  padding: 0; transition: border-color .25s ease, box-shadow .25s ease;
}
.cr-faq details[open], .cr-faq details:hover { border-color: var(--cr-purple); box-shadow: 0 0 18px rgba(178, 61, 255, .45); }
.cr-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; position: relative;
}
.cr-faq summary::-webkit-details-marker { display: none; }
.cr-faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: Bungee, Impact, sans-serif; font-size: 1.4rem; color: var(--cr-green); text-shadow: 0 0 10px currentColor;
  transition: transform .3s ease;
}
.cr-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--cr-pink); }
.cr-faq details > :not(summary) { padding: 0 1.2rem 1rem; margin: 0; opacity: .92; }
.cr-faq details[open] > :not(summary) { animation: cr-open .35s ease; }
@keyframes cr-open { from { opacity: 0; transform: translateY(-6px); } }

/* Back-to-top (created by effects.js) */
.cr-totop {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #05050b; background: var(--cr-green);
  box-shadow: 0 0 16px var(--cr-green); opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cr-past-hero .cr-totop { opacity: 1; transform: none; pointer-events: auto; }
.cr-totop:hover { background: var(--cr-yellow); box-shadow: 0 0 22px var(--cr-yellow); color: #05050b; }

/* Keyboard focus that is actually visible on black */
:where(a, button, summary, input):focus-visible { outline: 2px solid var(--cr-yellow); outline-offset: 3px; border-radius: 6px; }

/* editor parity */
.editor-styles-wrapper { background-color: #05050b; }
.cr-section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
/* the hero and the footer sit flush against the header / last section (no default block gap) */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.entry-content > .cr-section, .entry-content > .cr-marquee { margin-block-start: 0; }
