:root {
  color-scheme: light;
  --ink: #1d1736;
  --slate: #5a536d;
  --canvas: #f8f6fb;
  --white: #fff;
  --border: #e6e1ef;
  --dark: #191244;
  --iris: #a38cf4;
  --lime: #def67c;
  --citrus: #e8ffa2;
  --radius: 22px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #8162dd; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.038em; }
[id] { scroll-margin-block-start: 2rem; }
.shell { max-width: 1240px; width: calc(100% - 72px); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .6rem 1rem; background: var(--lime); color: var(--ink); }
.skip:focus { transform: none; }
.masthead { background: var(--dark); color: #fff; position: relative; z-index: 5; border-bottom: 1px solid #ffffff1f; }
.masthead-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.65rem; font-weight: 850; letter-spacing: -.085em; line-height: 1; }
.brand > span > span { color: var(--iris); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--lime); display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); justify-content: center; align-content: center; gap: 3px; transform: rotate(-8deg); }
.brand-mark i { width: 6px; height: 6px; border-radius: 2px; background: var(--dark); }
.brand-mark i:last-child { grid-column: 2; }
.primary-nav, .masthead-actions { display: flex; align-items: center; gap: clamp(.8rem, 2.8vw, 2.1rem); }
.primary-nav a, .account-link { color: #efebff; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .94rem; }
.primary-nav a:hover, .account-link:hover, .language summary:hover { color: var(--lime); }
.language { position: relative; font-weight: 700; }
.language summary { list-style: none; white-space: nowrap; }
.language summary::-webkit-details-marker { display: none; }
.language summary span { color: var(--iris); }
.language-menu { position: absolute; right: 0; top: calc(100% + .8rem); padding: .45rem; min-width: 9.5rem; border-radius: 13px; z-index: 2; color: var(--ink); background: #fff; box-shadow: 0 15px 40px #100a3a22; }
.language-menu a { display: block; padding: .44rem .7rem; border-radius: 7px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current] { background: #ece5ff; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; padding: .72rem 1.12rem; font-weight: 760; line-height: 1.2; transition: background .17s, transform .17s; }
.button:hover { background: #eee8ff; transform: translateY(-1px); }
.button-lime { background: var(--lime); border-color: var(--lime); }
.button-lime:hover { background: #ecffac; }
.button-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.button-dark:hover { background: #3a296e; }

.hero { background: var(--dark); color: #fff; overflow: clip; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 455px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; padding-block: 4.25rem 5.2rem; }
.eyebrow { color: var(--lime); text-transform: uppercase; font-weight: 780; font-size: .75rem; letter-spacing: .16em; display: flex; gap: .55rem; align-items: center; margin-bottom: 1rem; }
.eyebrow > span { width: .55rem; height: .55rem; background: currentColor; border-radius: 2px; transform: rotate(12deg); flex: 0 0 auto; }
.eyebrow-dark { color: #583ba3; }
.hero h1 { font-size: clamp(2.9rem, 5.2vw, 5.4rem); font-weight: 820; line-height: .96; letter-spacing: -.075em; max-width: 12ch; }
.hero h1 em { font-style: normal; color: #b6a1ff; }
.hero-desc { margin-top: 1.45rem; color: #e8dfff; font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 42ch; }
.hero-link { display: inline-block; font-weight: 760; color: var(--lime); margin-top: 1.4rem; }
.hero-link span { margin-left: .3rem; }
.hero-visual { position: relative; height: 100%; min-width: 0; margin-right: -6%; isolation: isolate; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: -10% -12%; background: radial-gradient(ellipse at 50% 50%, #6850a6, #271d59 53%, transparent 73%); }
.hero-visual img { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual:has(img)::after { content: ""; position: absolute; z-index: 1; inset: -1px; background: linear-gradient(90deg, var(--dark), transparent 25%, transparent 77%, var(--dark)), linear-gradient(0deg, var(--dark), transparent 19%, transparent 84%, var(--dark)); }

.filters { position: relative; z-index: 3; margin-top: -1.7rem; display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: end; gap: 1rem; padding: 1.15rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: 0 14px 35px #30205d10; }
.filter-field { display: grid; gap: .3rem; font-weight: 700; font-size: .86rem; }
.filter-field input, .filter-field select, .stack input:not([type="checkbox"]), .stack select, .stack textarea { width: 100%; padding: .72rem .8rem; color: var(--ink); background: #faf8fc; border: 1px solid var(--border); border-radius: 9px; line-height: 1.3; min-height: 46px; }
.filter-field input::placeholder { color: var(--slate); }
.calendar, .country-section { margin-top: 3.75rem; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.1rem; }
.section-top .eyebrow { margin-bottom: .6rem; }
.section-top h2, .contribute h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 820; }
.tabs { padding: .25rem; display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 99px; background: #efebf5; gap: .1rem; flex-shrink: 0; }
.tabs a { padding: .45rem .8rem; border-radius: 99px; color: var(--slate); font-weight: 700; text-decoration: none; font-size: .9rem; }
.tabs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 5px #0001; }
.recommendation:not(:empty) { margin-bottom: 1rem; }
.recommendation a { display: inline-block; color: #513988; background: #eee8fb; border-radius: 7px; padding: .4rem .8rem; font-size: .88rem; font-weight: 740; text-decoration: none; }
.recommendation a:hover { background: #e2d6f9; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; }
.event-card:hover { border-color: #b9a7de; }
.card-media { position: relative; display: block; aspect-ratio: 2.17; overflow: clip; background: #e7dafa; color: #a782ed; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.theme-1 { background: #eaf3c9; color: #bed750; }
.card-media.theme-2 { background: #ffded4; color: #ff9279; }
.card-media.theme-3 { background: #c5f3ed; color: #5dc5b8; }
.brick-pattern { position: absolute; width: 15rem; aspect-ratio: 2; left: 50%; top: 55%; transform: translate(-50%,-50%); }
.brick-pattern i { position: absolute; display: block; aspect-ratio: 1.35; border-radius: 15%; background: currentColor; box-shadow: inset 0 -7px #16064525, inset 0 2px #fff8, 0 12px 14px #15073722; width: 30%; }
.brick-pattern i::after { content: ""; position: absolute; top: 20%; left: 20%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: currentColor; box-shadow: 2px 3px #0005, 0 -1px #fff5, 21px 0 currentColor; }
.brick-pattern i:nth-child(1) { top: 41%; left: 7%; transform: rotate(-25deg); }
.brick-pattern i:nth-child(2) { top: 30%; left: 36%; transform: rotate(21deg); }
.brick-pattern i:nth-child(3) { top: 17%; left: 64%; transform: rotate(-13deg); }
.event-card-content { padding: 1.2rem 1.25rem 1.32rem; }
.event-date { color: #5d419b; font-size: .82rem; font-weight: 770; margin-bottom: .45rem; }
.event-card h3 { font-size: clamp(1.25rem, 2vw, 1.54rem); overflow-wrap: anywhere; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a span { color: #7b5bb4; font-size: .83em; }
.event-card h3 a:hover { text-decoration: underline; }
.event-place { color: var(--slate); font-size: .93rem; margin-top: .5rem; }
.event-summary { margin-top: .66rem; font-size: .94rem; }
.empty { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.country-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; }
.country-grid a { display: flex; gap: .4rem; justify-content: space-between; align-items: center; min-height: 3.2rem; padding: .55rem .8rem; background: white; border: 1px solid var(--border); border-radius: 11px; text-decoration: none; }
.country-grid a:hover { background: #f1eafd; }
.country-grid a span { color: #5c4492; font-weight: 700; white-space: nowrap; }
.contribute { margin-top: 3.75rem; padding: 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; background: var(--citrus); border-radius: var(--radius); }
.contribute p { margin-top: .7rem; max-width: 58ch; }
.contribute .button { flex-shrink: 0; }

.interior { color: white; background: var(--dark); padding-block: 2.8rem 3.5rem; }
.interior h1 { font-size: clamp(2.3rem, 6.3vw, 4.9rem); overflow-wrap: anywhere; max-width: 20ch; }
.interior p:not(.eyebrow) { margin-top: 1rem; max-width: 67ch; color: #e9dfff; }
.event-header { background: radial-gradient(ellipse at 80% 180%, #594397, transparent 76%), var(--dark); }
.breadcrumbs { display: flex; gap: .7rem; margin-bottom: 1.45rem; font-size: .9rem; color: #ddd1fb; }
.headline-date { font-size: 1.13rem; font-weight: 710; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 2rem; padding-block: 2.1rem; align-items: start; }
.detail-cover { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.4rem; }
.event-story h2, .event-community h2, .form-zone h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-block: 1rem .75rem; }
.prose { white-space: pre-line; overflow-wrap: anywhere; max-width: 75ch; }
.source-list { padding-left: 1.15rem; margin: 0; overflow-wrap: anywhere; }
.source-list li + li { margin-top: .35rem; }
.fact-card, .contribution-box, .main-form { border: 1px solid var(--border); border-radius: var(--radius); background: white; padding: 1.3rem; }
.fact-card h2 { font-size: 1.55rem; }
.fact-card dt { font-weight: 760; font-size: .9rem; }
.fact-card dd { margin: 0 0 .75rem; color: var(--slate); white-space: pre-line; overflow-wrap: anywhere; }
.claim { display: block; margin-top: .9rem; font-size: .9rem; }
details.claim > summary, .contribution-box > summary { color: #5a3f9a; font-weight: 760; }
details > form { margin-top: .85rem; }
.event-community { grid-column: 1/-1; }
.event-community > .contribution-box { margin-top: 1rem; max-width: 670px; }
.comments { list-style: none; padding: 0; }
.comments li { padding: .85rem 0; border-top: 1px solid var(--border); }
.photo-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.photo-grid figcaption { color: var(--slate); padding-top: .4rem; overflow-wrap: anywhere; }
.form-zone { max-width: 780px; padding-block: 2rem; }
.form-zone > p + a, .form-zone > form + p { margin-top: 1rem; }
.stack { display: grid; gap: .95rem; }
.stack label { font-weight: 700; display: grid; gap: .25rem; }
.stack small { font-weight: 400; color: var(--slate); }
.stack .button { justify-self: start; }
.stack .checkbox { display: flex; align-items: start; gap: .6rem; }
.stack [type="checkbox"] { margin-top: .35rem; }
.stack textarea { resize: vertical; }
.page-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.dashboard-list { list-style: none; padding: 0; margin: 0; }
.dashboard-list li { border-top: 1px solid var(--border); padding-block: .8rem; display: flex; gap: .4rem .85rem; flex-wrap: wrap; }
.dashboard-list li strong { flex-grow: 1; }
.moderation-list { display: grid; gap: 1rem; }
.moderation-list article h2, .moderation-list form { margin-top: .65rem; }
.moderation-photo { max-height: 260px; object-fit: contain; margin-top: .65rem; }
.flashes { position: relative; z-index: 4; }
.notice { border-radius: 10px; background: #ece4fb; padding: .8rem 1rem; font-weight: 700; }
.notice-error { background: #ffebe9; color: #822524; }
.flashes .notice { margin-block: .9rem; }
.footer { background: var(--dark); color: #e8dfff; margin-top: 4rem; }
.footer-inner { min-height: 10rem; display: flex; justify-content: space-between; gap: 1.1rem; align-items: center; padding-block: 1.8rem; }
.footer p { margin-top: .55rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }

@media (max-width: 1060px) {
  .masthead-inner { gap: 1rem; }
  .shell { width: calc(100% - 48px); }
}
@media (max-width: 850px) {
  .primary-nav { display: none; }
  .hero-inner { min-height: 416px; }
  .hero-copy { padding-block: 3.5rem 4.75rem; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 66px; }
  .masthead-actions { gap: .65rem; }
  .masthead-submit { display: none; }
  .brand { font-size: 1.44rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-inner { display: block; min-height: auto; }
  .hero-copy { padding: 2.75rem 0 3.85rem; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .hero-visual { position: absolute; inset: 12% -28% 0 30%; margin: 0; opacity: .43; pointer-events: none; }
  .hero-visual:has(img)::after { background: linear-gradient(90deg, var(--dark), transparent 40%), linear-gradient(0deg, var(--dark), transparent 24%, transparent 77%, var(--dark)); }
  .hero-desc { max-width: 36ch; }
  .filters { border-radius: 15px; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: .65rem; padding: .75rem; }
  .filters .button { grid-column: 1/-1; }
  .calendar, .country-section, .contribute { margin-top: 2.6rem; }
  .section-top { align-items: start; flex-direction: column; gap: .7rem; }
  .event-grid { gap: .75rem; }
  .event-card-content { padding: .8rem; }
  .event-card { border-radius: 14px; }
  .event-detail { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.3rem; }
  .event-story { order: 2; }
  .event-community { order: 3; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contribute, .empty, .footer-inner { flex-direction: column; align-items: start; }
  .contribute { padding: 1.35rem; }
}
@media (max-width: 400px) {
  .event-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
