/* Thema European Schuman Monnet Quarter, ontwerp D "Europe". Aanvulling op theme.json. */
:root { --uit: cubic-bezier(.22, 1, .36, 1); }
/* kop, inhoud en voet zonder tussenruimte onder elkaar */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--or); outline-offset: 3px; }

/* kop */
.esmq-kop { z-index: 40; box-shadow: 0 1px 0 rgba(216, 169, 51, .25); }
.esmq-logo svg.mini { width: 1.6rem; height: 2.5rem; overflow: visible; flex: none; }
.esmq-logo .wp-block-site-title a { text-decoration: none; }
.esmq-logo__onder { margin: 0; opacity: .72; }
.esmq-nav a { text-decoration: none; position: relative; }
.esmq-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 1px; background: var(--wp--preset--color--or); transform: scaleX(0); transition: transform 300ms var(--uit); }
.esmq-nav .wp-block-navigation-item__content:hover::after, .esmq-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.esmq-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.esmq-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; }

/* label boven een titel */
.esmq-label { display: flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--wp--preset--color--roest); }
.esmq-label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.has-bleu-background-color .esmq-label, .esmq-held .esmq-label { color: var(--wp--preset--color--or); }
h1 em, h2 em { color: var(--wp--preset--color--or); }

/* knoppen op een donkere achtergrond */
.has-bleu-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.esmq-held .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(216, 169, 51, .15); }

/* held */
.esmq-held { position: relative; overflow: hidden; }
.esmq-held p.esmq-lead { color: rgba(255, 255, 255, .8); }
.esmq-stoep { position: relative; height: 17rem; margin-top: 1.5rem; }
.esmq-stoep::before { content: ""; position: absolute; inset: auto 0 0; height: 4.5rem; background: #0a1940; }
.esmq-stoep .ct-rij { position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%); width: min(1250px, 135%); height: auto; overflow: visible; }
@media (max-width: 781px) { .esmq-stoep { height: 10rem; } }

/* tekeningen: Berlaymont */
.bl { width: 100%; height: auto; display: block; overflow: visible; }
.bl-glas { fill: rgba(255, 255, 255, .035); }
.bl-glas-m { fill: rgba(216, 169, 51, .06); }
.bl-lamel { fill: none; stroke: var(--wp--preset--color--or); stroke-width: 1; opacity: .5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: esmq-teken 1.6s var(--uit) forwards; animation-delay: calc(.6s + var(--n) * 60ms); }
.bl-stijl { fill: none; stroke: var(--wp--preset--color--or); stroke-width: .6; opacity: .22; }
.bl-vorm, .bl-lijn, .bl-grond { fill: none; stroke: var(--wp--preset--color--or); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: esmq-teken 2.2s var(--uit) forwards .2s; }
.bl-mast { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.bl-doek { fill: #2c55c4; transform-box: fill-box; transform-origin: left center; animation: esmq-wapper 3s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -.37s); }
.bl-sterren { transform-origin: 400px -2px; animation: esmq-draai 60s linear infinite; }
.bl-ster { fill: var(--wp--preset--color--or); opacity: 0; animation: esmq-op .6s var(--uit) forwards; animation-delay: calc(1.4s + var(--n) * 80ms); }

/* tekeningen: European Citizens */
.ct-lijf { fill: var(--wp--preset--color--roest); }
.ct-voet, .ct-nek { fill: #5e2c15; }
.ct-hoofd { fill: #f1e6d3; }
.ct-glans { fill: #fff; opacity: .55; }
.ct-hoed { fill: var(--hoed); }
.ct-rij .ct { cursor: default; }
.ct-rij .ct-veer { transform-box: fill-box; transform-origin: 50% 100%; animation: esmq-sta .9s var(--uit) both; animation-delay: calc(.8s + var(--i) * 90ms); }
.ct-kop { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 500ms var(--uit); }
.ct:hover .ct-kop { transform: translateY(-9px) rotate(-6deg); }
.ct-arm-zwaai { transform-box: fill-box; transform-origin: 85% 95%; animation: esmq-zwaai 2.4s ease-in-out infinite; }
.esmq-logo .ct-veer, .esmq-logo .ct-arm-zwaai { animation: none; }

@keyframes esmq-teken { to { stroke-dashoffset: 0; } }
@keyframes esmq-op { to { opacity: 1; } }
@keyframes esmq-draai { to { transform: rotate(360deg); } }
@keyframes esmq-wapper { from { transform: skewY(-3deg) scaleX(.94); } to { transform: skewY(3deg) scaleX(1); } }
@keyframes esmq-sta { from { transform: translateY(40px) scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esmq-zwaai { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-10deg); } }

/* voet */
.esmq-voet { color: rgba(255, 255, 255, .78); }
.esmq-voet a { text-decoration: none; }
.esmq-voet__kop { font-family: var(--wp--preset--font-family--instrument-sans) !important; font-size: .75rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: .8rem; }
.esmq-voet__wettelijk { margin-top: 1rem; }

/* uitnodiging lid worden */
.esmq-cta { position: relative; overflow: hidden; }
.esmq-cta .ct-rij { width: 100%; max-width: 20rem; height: auto; margin: 0 auto; display: block; overflow: visible; }
.esmq-cta ul { list-style: none; padding: 0; }
.esmq-cta li::before { content: "★"; color: var(--wp--preset--color--or); margin-right: .7rem; font-size: .8rem; }

/* band met welkom in de 24 talen van de Unie */
.esmq-band { background: var(--wp--preset--color--or); color: var(--wp--preset--color--bleu); overflow: hidden; white-space: nowrap; padding: .9rem 0; font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 1.05rem; }
.esmq-band__in { display: inline-flex; gap: 2.4rem; animation: esmq-band 70s linear infinite; padding-left: 2.4rem; }
.esmq-band span::after { content: "★"; font-style: normal; font-size: .7rem; margin-left: 2.4rem; vertical-align: middle; }
@keyframes esmq-band { to { transform: translateX(-50%); } }

/* kop van een sectie: label en titel links, uitleg rechts */
.esmq-sectiekop { margin-bottom: 2.5rem !important; }
.esmq-sectiekop .wp-block-column:last-child p { color: var(--wp--preset--color--grijs); margin: 0; }
.has-bleu-background-color .esmq-sectiekop .wp-block-column:last-child p { color: rgba(255, 255, 255, .72); }

/* de beelden op het plein, met het bordje */
.ct-plein { width: 100%; height: auto; overflow: visible; display: block; }
.plein-ring { fill: none; stroke: rgba(216, 169, 51, .35); stroke-width: 1; stroke-dasharray: 3 7; }
.plein-grond { fill: rgba(141, 207, 192, .16); }
.ct-plein .ct { cursor: pointer; }
.ct-plein .ct-veer { transform-box: fill-box; transform-origin: 50% 100%; animation: esmq-sta .9s var(--uit) both; animation-delay: calc(.3s + var(--i) * 90ms); }
.esmq-bord { background-color: var(--wp--preset--color--roest); color: #f7ead9; border-radius: .3rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 30px 60px -30px rgba(0, 0, 0, .6); background-image: radial-gradient(rgba(0, 0, 0, .12) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; }
.esmq-bord h3 { font-family: var(--wp--preset--font-family--instrument-sans) !important; font-size: 1.8rem !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; color: #f7ead9; }
.esmq-bord p { margin: 0 0 .9rem; }
.esmq-bord .esmq-bord__klein { font-size: .8rem; opacity: .8; margin-top: 1.4rem; }

/* agenda: rijen met icoon, titel en periode */
.esmq-rijen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--lijn); }
.esmq-rijen li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--wp--preset--color--lijn); }
.esmq-rijen svg { width: 2.4rem; height: 2.4rem; color: var(--wp--preset--color--bleu); }
.esmq-rijen strong { display: block; font-family: var(--wp--preset--font-family--fraunces); font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.esmq-rijen small { display: block; font-size: .9rem; color: var(--wp--preset--color--grijs); }
.esmq-rijen em { font-style: normal; font-size: .8rem; color: var(--wp--preset--color--roest); border: 1px solid currentColor; border-radius: 99px; padding: .2rem .6rem; white-space: nowrap; }

/* geschiedenis: tijdlijn met sterren */
.esmq-tijd { list-style: none; margin: 0; padding: 0 0 0 1.8rem; border-left: 1px solid var(--wp--preset--color--or); }
.esmq-tijd li { position: relative; padding-bottom: 1.6rem; }
.esmq-tijd li::before { content: "★"; position: absolute; left: -2.33rem; top: .1rem; color: var(--wp--preset--color--or); background: var(--wp--preset--color--ivoire); font-size: .9rem; padding: .1rem 0; }
.esmq-tijd strong { display: block; font-family: var(--wp--preset--font-family--fraunces); font-weight: 500; font-size: 1.4rem; color: var(--wp--preset--color--bleu); }
.esmq-tijd span { color: var(--wp--preset--color--grijs); font-size: .95rem; }

/* ring van sterren achter de uitnodiging */
.esmq-cta .ster-ring { position: absolute; right: -4rem; top: 50%; width: 22rem; transform: translateY(-50%); opacity: .5; fill: var(--wp--preset--color--or); pointer-events: none; animation: esmq-draai 90s linear infinite; }
.esmq-cta > .wp-block-columns { position: relative; z-index: 1; }

@media (max-width: 781px) {
  .esmq-rijen li { grid-template-columns: 2.6rem 1fr; }
  .esmq-rijen em { grid-column: 2; justify-self: start; }
  .esmq-cta .ster-ring { width: 14rem; right: -5rem; opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bl-lamel, .bl-vorm, .bl-lijn, .bl-grond { stroke-dashoffset: 0; }
  .bl-ster { opacity: 1; }
}
