/* INNOWINE forum page. Palette checked for WCAG AA contrast. */
:root {
  --nav-height: 57px;
  --primary-color: #1d5461;      /* on white 8.4:1 */
  --primary-dark: #123a44;       /* white on it 12:1 */
  --accent-color: #3f7a0a;       /* on white 5.2:1 */
  --accent-light: #b7e07a;       /* on primary-dark 8:1 */
  --surface-color: #f4f6f4;
  --text-color: #1f2d30;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 58, 68, .10);
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 25px);
}

body { color: var(--text-color); background: #fff; line-height: 1.65; font-size: 1.0625rem; }
* { color: inherit; }
a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-color); }
a:focus-visible, .btn-register:focus-visible, .btn-ghost:focus-visible, .site-nav a:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0; top: -60px; background: var(--primary-dark); color: #fff; padding: .75rem 1rem; z-index: 1000; }
.skip-link:focus { top: 0; color: #fff; }

/* Heading scale: h1 > h2 > h3 > h4, same in every section */
h1 { font-size: clamp(3.25rem, 11vw, 7rem); line-height: .95; text-transform: uppercase; font-weight: 900; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--primary-color); margin-bottom: 2rem; position: relative; padding-bottom: .75rem; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-color), var(--accent-light)); }
h3 { font-size: 1.375rem; font-weight: 700; color: var(--primary-color); }
h4 { font-size: 1.125rem; font-weight: 700; color: var(--primary-color); }
p, li { font-size: 1.0625rem; }
section { padding: 5rem 0; }

/* Sticky navigation */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 58, 68, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-nav ul { display: flex; gap: .25rem; margin: 0; padding: .5rem 0; list-style: none; flex-wrap: wrap; }
.site-nav a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem 1rem; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav .nav-countdown-item { margin-left: auto; display: flex; align-items: center; margin-right: .75rem; }
.site-nav .nav-cta-item { margin-left: 0; }
.site-nav .nav-cta { background: var(--accent-light); color: var(--primary-dark); font-weight: 800; }
.site-nav .nav-cta:hover { background: #cdeb9b; color: var(--primary-dark); }

/* Hero */
.banner {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(183,224,122,.28), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(183,224,122,.20), transparent 50%),
    linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding: 6rem 0 5rem;
}
.banner::before {
  content: ""; position: absolute; right: -12%; top: -20%; width: 70vmin; height: 70vmin; border-radius: 50%;
  border: 2px solid rgba(183,224,122,.35); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.03);
}
.banner .container { position: relative; }
.banner .logo-wrap { position: absolute; right: 24px; top: 16px; }
.banner .logo-banner { display: block; width: 420px; height: auto; }
.banner * { color: #fff; }
.banner-kicker { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; font-size: 1rem; margin: 3rem 0 .5rem; color: var(--accent-light); }
.banner .accent, .accent { color: var(--accent-light); }
.banner-subtitle { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; margin: .75rem 0 0; }
.banner-claim { font-size: 1.25rem; font-style: italic; opacity: .95; margin: .5rem 0 2rem; max-width: 40rem; }
.banner-box { display: flex; flex-wrap: wrap; gap: 1rem; max-width: 820px; padding: 0; margin-bottom: 1.25rem; }
.banner-box li { display: flex; align-items: center; gap: .9rem; flex: 1 1 300px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 1rem 1.25rem; backdrop-filter: blur(4px); }
.banner-box p { margin: 0; font-size: 1rem; }
.banner-box img { flex: none; filter: brightness(0) invert(1); }
.banner-mode { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0 0 1.75rem; font-size: 1.125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.banner-mode span { color: var(--accent-light); }
.banner-mode span + span { padding-left: 1.25rem; border-left: 2px solid rgba(183,224,122,.6); }

.btn-register {
  display: inline-block; background: var(--accent-light); color: var(--primary-dark) !important;
  font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: .9rem 2.25rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-register::after { content: " \2192"; }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.28); background: #cdeb9b; color: var(--primary-dark); }

/* Intro */
.intro .highlights {
  --bs-gutter-x: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem; margin: 3.5rem 0; padding: 0;
}
.intro .highlights li {
  position: relative; width: auto; max-width: none; flex: none; margin: 0; padding: 2.5rem 1.75rem 2rem; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f1f6ee 100%); border: 1px solid #dfe5e0; border-radius: 20px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.intro .highlights li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}
.intro .highlights li::after {
  content: ""; position: absolute; right: -50px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(183,224,122,.22); pointer-events: none;
}
.intro .highlights li:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(18,58,68,.18); }
.intro .highlights img {
  width: 88px; height: 88px; padding: 18px; border-radius: 50%; margin-bottom: 1.25rem;
  background: #e3efd3; box-shadow: 0 0 0 8px rgba(183,224,122,.28);
}
.intro .highlights h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.intro .highlights p { margin: 0; position: relative; z-index: 1; }
.intro .row > [class*="col-lg"] ul { padding-left: 1.2rem; }
.intro .row > [class*="col-lg"] ul li::marker { color: var(--accent-color); }

.register-block {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-color)); color: #fff;
  border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow);
}
.register-block .register-text { color: #fff; font-size: 1.625rem; font-weight: 800; margin: 0; max-width: 32rem; line-height: 1.3; }
.accent-on-dark { color: var(--accent-light); }

/* Agenda as a timeline */
.agenda { background: var(--surface-color); }
.agenda-list { list-style: none; margin: 0 0 2rem; padding: 0 0 0 1.5rem; border-left: 3px solid #cfdccf; }
.agenda-item {
  position: relative; display: flex; gap: 1.5rem; background: #fff; border: 1px solid #e1e8e2; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: .85rem; box-shadow: 0 2px 8px rgba(18,58,68,.05); transition: box-shadow .2s ease, transform .2s ease;
}
.agenda-item::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: 1.5rem; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-color); border: 3px solid var(--surface-color); }
.agenda-item:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.agenda-time { flex: none; width: 4.5rem; font-weight: 800; font-size: 1.25rem; color: var(--accent-color); font-variant-numeric: tabular-nums; }
.agenda-body { flex: 1; }
.agenda-title { margin: 0 0 .5rem; }
.agenda-item:not(:has(.speaker, .speaker-list, .agenda-desc)) .agenda-title { margin-bottom: 0; }
.agenda-break { background: #eaf1e6; border-style: dashed; }
.agenda-break::before { background: #eaf1e6; border-color: var(--accent-color); }
.agenda-break .agenda-title { font-weight: 600; }
.speaker, .speaker-list { margin: 0 0 .5rem; }
.speaker-list { list-style: none; padding: 0; }
.agenda-desc { color: #3d4f52; margin: 0; }

.agenda-block { padding: 0; margin-top: 3.5rem; }
.block-header {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-color)); color: #fff; border-radius: 20px;
  padding: 1.75rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.block-header * { color: #fff; }
.block-header::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(183,224,122,.18); }
.block-number { display: inline-block; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; background: var(--accent-light); color: var(--primary-dark) !important; border-radius: 999px; padding: .25rem .95rem; margin: 0; font-size: .9rem; }
.block-header h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.block-header p:last-child { margin: 0; opacity: .95; }

/* Directions and logos */
.directions ol li { margin-bottom: .5rem; }
.directions h3 { margin-top: 2rem; }
.logos-section { background: var(--surface-color); padding: 3.5rem 0; }
.logos-label { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--primary-color); margin-bottom: 1rem; }
.logos-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.logos-row img, .logo-air { max-width: 100%; height: 60px; width: auto; }
.logo-air { height: 56px; }

footer { background: var(--primary-dark); color: #fff; text-align: center; padding: 1rem 0; }
footer p, footer a { color: #fff; font-size: .875rem; margin: 0; }

@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  .banner { padding-top: 5.5rem; }
  .banner .logo-wrap { right: 12px; top: 12px; }
  .banner .logo-banner { width: 230px; }
  .banner-kicker { margin-top: 2rem; }
  .agenda-list { padding-left: 1rem; }
  .agenda-item { flex-direction: column; gap: .25rem; }
  .agenda-item::before { left: calc(-1rem - 9px); }
  .register-block { text-align: center; justify-content: center; }
  .site-nav .nav-cta-item { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn-register:hover, .agenda-item:hover, .intro .highlights li:hover { transform: none; }
}

/* Venue map, adapted to the page design */
.venue-map { height: 440px; border-radius: 20px; box-shadow: var(--shadow); margin: 1.5rem 0 1rem; z-index: 0; border: 4px solid #fff; outline: 1px solid #dfe5e0; background: #e9efe9; }
.venue-map::after { content: ""; position: absolute; inset: 0; z-index: 400; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(29,84,97,.25), inset 0 -60px 80px -60px rgba(18,58,68,.35); }
.venue-pin { background: none; border: 0; }
.venue-pin-dot { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-color); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.venue-pin-pulse { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(183,224,122,.55); animation: pin-pulse 2.2s ease-out infinite; }
.venue-pin:focus-visible .venue-pin-dot { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
@keyframes pin-pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .venue-pin-pulse { animation: none; } }

/* Collapsible agenda blocks (native details/summary) */
.agenda-hint { margin: -1rem 0 1rem; color: #3d4f52; }
.agenda-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.agenda-controls:empty { display: none; }
.btn-agenda { background: #fff; color: var(--primary-dark); font-weight: 700; border: 2px solid var(--primary-color); border-radius: 999px; padding: .5rem 1.25rem; font-size: 1rem; cursor: pointer; }
.btn-agenda:hover { background: var(--primary-dark); color: #fff; }
.btn-agenda:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
summary.block-header { display: block; list-style: none; cursor: pointer; position: relative; padding-right: 5rem; margin-bottom: 0 !important; }
summary.block-header::-webkit-details-marker { display: none; }
summary.block-header:hover { filter: brightness(1.08); }
summary.block-header:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.block-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .85rem; }
.block-time { display: inline-block; color: #fff !important; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; border: 2px solid rgba(255,255,255,.85); border-radius: 999px; padding: .15rem .9rem; }
.block-time time { color: #fff !important; font-weight: 700; }
.block-toggle { position: absolute; right: 1.5rem; top: 50%; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; border-radius: 50%; background: var(--accent-light); z-index: 1; }
.block-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: .75rem; margin: -.55rem 0 0 -.4rem; border-right: 3px solid var(--primary-dark); border-bottom: 3px solid var(--primary-dark); transform: rotate(45deg); transition: transform .25s ease; }
details[open] > summary .block-toggle::before { transform: rotate(-135deg); margin-top: -.2rem; }
details.agenda-block .agenda-list { padding-top: 1.5rem; margin-bottom: 0; }
details.agenda-block { margin-top: 1.25rem; }
details.agenda-block:first-of-type { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .block-toggle::before { transition: none; } }
@media (max-width: 767px) { summary.block-header { padding-right: 4.25rem; } .block-toggle { right: .9rem; } }

/* Opening animation for agenda blocks (progressive enhancement) */
:root { interpolate-size: allow-keywords; }
@supports selector(::details-content) {
  details.agenda-block::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .5s cubic-bezier(.4,0,.2,1), content-visibility .5s allow-discrete;
  }
  details.agenda-block[open]::details-content { block-size: auto; }
}
@keyframes agenda-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
details.agenda-block[open] .agenda-item { animation: agenda-item-in .5s ease both; }
details.agenda-block[open] .agenda-item:nth-child(2) { animation-delay: .07s; }
details.agenda-block[open] .agenda-item:nth-child(3) { animation-delay: .14s; }
details.agenda-block[open] .agenda-item:nth-child(4) { animation-delay: .21s; }
details.agenda-block[open] .agenda-item:nth-child(5) { animation-delay: .28s; }
details.agenda-block[open] .agenda-item:nth-child(n+6) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  details.agenda-block::details-content { transition: none; }
  details.agenda-block[open] .agenda-item { animation: none; }
}

.logos-row img.logo-eei { height: 80px; width: auto; }

/* How to get there: text left, map and photos right */
.directions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; }
.directions h3 { margin: 2rem 0 .5rem; }
.directions h3:first-child { margin-top: 0; }
.venue-name { font-size: 1.25rem; font-weight: 700; color: var(--text-color); margin: 0 0 .25rem; }
.venue-address { font-style: normal; margin: 0 0 .75rem; line-height: 1.6; }
.map-link { font-weight: 600; color: var(--primary-color); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.map-link:hover { text-decoration-thickness: 2px; color: var(--accent-color); }
.route-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.route-steps li { counter-increment: step; position: relative; padding: 0 0 1rem 3rem; margin: 0; }
.route-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-light); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.route-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: .1rem; width: 2px; background: #cfdccf; }
.directions-visuals .venue-map { height: 380px; margin: 0 0 1.25rem; }
.venue-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.venue-photos figure { position: relative; margin: 0; height: 200px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; outline: 1px solid #dfe5e0; background: #e9efe9; }
.venue-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .9rem; font-size: .9rem; font-weight: 600; color: #fff; background: rgba(18,58,68,.88); }
@media (max-width: 991px) {
  .directions-grid { grid-template-columns: 1fr; gap: 2rem; }
  .directions-visuals .venue-map { height: 320px; }
}
@media (max-width: 575px) {
  .venue-photos { grid-template-columns: 1fr; }
  .venue-photos figure { height: 220px; }
}
@media (min-width: 992px) { .directions-visuals { position: sticky; top: 5rem; } }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 8px 20px rgba(0,0,0,.25); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.back-to-top::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: .9rem; height: .9rem; margin: -.2rem 0 0 -.45rem;
  border-left: 4px solid var(--primary-dark); border-top: 4px solid var(--primary-dark); transform: rotate(45deg);
}
.back-to-top:hover { background: #cdeb9b; }
.back-to-top:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 575px) { .back-to-top { right: 1rem; bottom: 1rem; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; transform: none; } }
.footer-note { opacity: .9; }

/* Countdown in the menu */
.countdown { display: flex; align-items: center; color: #fff; }
.countdown-fallback { color: var(--accent-light); font-weight: 700; font-size: .9rem; }
.countdown-visual { display: flex; align-items: center; gap: .35rem; }
.countdown-visual[hidden], .countdown-fallback[hidden] { display: none; }
.cd-label { color: var(--accent-light); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-right: .15rem; }
.cd-cell { display: inline-flex; align-items: baseline; gap: .15rem; background: rgba(255,255,255,.12); border: 1px solid rgba(183,224,122,.55); border-radius: 8px; padding: .15rem .45rem; }
.cd-num { color: #fff; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 1.35em; text-align: center; }
.cd-unit { color: var(--accent-light); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
@media (max-width: 991px) { .cd-label { display: none; } }
@media (max-width: 767px) {
  .cd-seconds { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cd-seconds { display: none; } }

/* Phones and tablets: no countdown in the menu, and the menu stays visible (sticky) in one compact row */
@media (max-width: 991px) {
  .site-nav .nav-countdown-item { display: none; }
  .site-nav .nav-cta-item { margin-left: auto; }
}
@media (max-width: 575px) {
  /* Phones only: bigger menu text; the registration button leaves the menu (it appears in several places in the page) */
  .site-nav .container { padding-left: .5rem; padding-right: .5rem; }
  .site-nav ul { padding: .3rem 0; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .site-nav a { font-size: clamp(.85rem, 4.2vw, 1rem); padding: .55rem .6rem; white-space: nowrap; }
  .site-nav .nav-cta-item { display: none; }
  /* Bigger logos in the banner */
  .banner { padding-top: 7.25rem; }
  .banner .logo-wrap { right: 12px; top: 14px; }
  .banner .logo-banner { width: min(340px, calc(100vw - 24px)); }
  .banner-kicker { margin-top: 1.25rem; }
  /* "Evento híbrido" and "Entrada gratuita con inscripción": one per line, no separator */
  .banner-mode { flex-direction: column; gap: .35rem; }
  .banner-mode span + span { padding-left: 0; border-left: 0; }
}


/* Second map marker: parking */
.parking-pin { background: none; border: 0; }
.parking-pin-badge { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-light); color: var(--primary-dark); border: 3px solid var(--primary-dark); box-shadow: 0 4px 12px rgba(0,0,0,.35); font-weight: 900; font-size: 1.1rem; line-height: 26px; text-align: center; font-family: system-ui, sans-serif; }
.parking-pin:focus-visible .parking-pin-badge, .venue-pin:focus-visible .venue-pin-dot { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .95rem; }
.map-legend li { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .95rem; }
.legend-dot { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent-color); border: 3px solid #fff; box-shadow: 0 0 0 1px #8aa; flex: none; }
.legend-p { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent-light); color: var(--primary-dark); border: 2px solid var(--primary-dark); font-weight: 900; font-size: .8rem; flex: none; }

/* Visible keyboard focus for the map region (Leaflet removes the default outline) */

/* Event marker: teardrop pin with a wine glass, plus a permanent label (clearly not a "you are here" dot) */
.event-pin { background: none; border: 0; }
.event-pin-svg { display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); transition: transform .2s ease; transform-origin: 50% 100%; }
.event-pin:hover .event-pin-svg { transform: scale(1.1); }
.event-pin:focus-visible .event-pin-svg { outline: 3px solid #123a44; outline-offset: 2px; background: #fff; border-radius: 12px; }
.legend-pin { flex: none; }

/* Map cards (popups) */
.map-card { display: block; }
.map-card-photo { display: block; width: 100%; height: 110px; object-fit: cover; }
.map-card-body { display: grid; gap: .2rem; padding: .85rem 1.1rem 1rem; }
.map-card-tag { display: inline-block; justify-self: start; background: var(--accent-light); color: var(--primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: .1rem .6rem; }
.map-card-title { display: block; color: var(--primary-color); font-size: 1.05rem; line-height: 1.3; }
.map-card-line { display: block; color: var(--text-color); }
.map-card-walk { font-weight: 700; color: var(--accent-color); }
.map-card-link { justify-self: start; margin-top: .35rem; color: var(--primary-dark) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.map-card-head { display: flex; align-items: center; gap: .8rem; background: linear-gradient(120deg, var(--primary-dark), var(--primary-color)); padding: 1rem 3rem 1rem 1.1rem; }
.venue-popup .map-card-head .map-card-title { color: #fff; }
.map-card-head .map-card-tag { margin-bottom: .2rem; }
.map-card-p { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-light); color: var(--primary-dark); border: 3px solid #fff; font-weight: 900; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .event-pin-svg { transition: none; } .event-pin:hover .event-pin-svg { transform: none; } }

.legend-route { display: inline-block; width: 1.4rem; height: 0; border-top: 5px dotted var(--primary-dark); flex: none; }
.route-steps + p { margin-top: 1rem; }

/* Programmatic focus targets (headings, page top) do not need a visible ring */
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
/* Cards: single address line only */
.map-card-body .map-card-line + .map-card-line { margin-top: 0; }

/* Event over: hidden pieces must really disappear, and the closing message replaces the hero button */
[hidden] { display: none !important; }
.banner-closed { display: inline-block; margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light); border-left: 4px solid var(--accent-light); padding-left: 1rem; }

/* MapLibre map: brand controls, cards and keyboard focus */
.venue-map { position: relative; overflow: hidden; }
.map-fallback { margin: 0; padding: 1.25rem; color: var(--primary-color); font-weight: 600; }
.venue-map .maplibregl-canvas { outline: none; }
.venue-map .maplibregl-canvas:focus-visible { outline: 3px solid #123a44; outline-offset: -8px; box-shadow: inset 0 0 0 3px #fff; }
.venue-map .maplibregl-ctrl-group { border-radius: 12px; background: var(--primary-dark); box-shadow: var(--shadow); overflow: hidden; }
.venue-map .maplibregl-ctrl-group button { width: 38px; height: 38px; background-color: transparent; }
.venue-map .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(255,255,255,.25); }
.venue-map .maplibregl-ctrl-group button:hover { background-color: var(--accent-color); }
.venue-map .maplibregl-ctrl-group button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.venue-map .maplibregl-ctrl-icon { filter: invert(1); }
.venue-map .maplibregl-ctrl-attrib { background: rgba(255,255,255,.92); font-size: .75rem; border-radius: 8px 0 0 0; }
.venue-map .maplibregl-ctrl-attrib a { color: #0b4a73; }
.venue-map .maplibregl-cooperative-gesture-screen { font-family: inherit; font-weight: 700; background: rgba(18,58,68,.72); }
.event-pin { width: 48px; height: 60px; cursor: pointer; }
.parking-pin { width: 40px; height: 40px; cursor: pointer; }
.event-pin:focus-visible .event-pin-svg { outline: 3px solid #123a44; outline-offset: 2px; background: #fff; border-radius: 12px; }
.event-pin:focus, .parking-pin:focus { outline: none; }
.venue-popup .maplibregl-popup-content { padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 14px 34px rgba(18,58,68,.35); font-family: inherit; font-size: .95rem; line-height: 1.45; width: 260px; }
.venue-popup .maplibregl-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--primary-dark); font: 700 20px/28px system-ui, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.venue-popup .maplibregl-popup-close-button:hover { background: var(--accent-light); }
.venue-popup .maplibregl-popup-close-button:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; }

/* Menu: current section */
.site-nav a[aria-current="location"] { background: rgba(255,255,255,.14); }

.agenda-note { margin: 0 0 1.5rem; padding: 1rem 1.5rem; background: #eaf1e6; border-left: 6px solid var(--accent-color); border-radius: 14px; font-weight: 600; color: var(--primary-dark); }

/* Privacy and cookies dialog */
.link-button { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: #fff; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent-light); }
.link-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.privacy-dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, 92vw); max-height: 90vh; box-shadow: 0 24px 60px rgba(18,58,68,.45); color: var(--text-color); }
.privacy-dialog::backdrop { background: rgba(18,58,68,.65); }
.privacy-card { padding: 2rem; }
.privacy-card h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.privacy-card h3 { font-size: 1.15rem; margin: 1.25rem 0 .35rem; }
.privacy-card p { margin: 0 0 .75rem; }
.privacy-card .privacy-close { margin-top: 1rem; border: 0; cursor: pointer; background: var(--primary-dark); color: #fff !important; font-size: 1rem; padding: .7rem 2rem; box-shadow: none; }
.privacy-card .privacy-close::after { content: none; }
.privacy-card .privacy-close:hover { background: var(--accent-color); }
.privacy-card .privacy-close:focus-visible { outline: 3px solid #123a44; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.legal-data { margin: 0 0 1rem; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.legal-data dt { font-weight: 800; color: var(--primary-color); }
.legal-data dd { margin: 0; }
@media (max-width: 575px) { .legal-data { grid-template-columns: 1fr; gap: 0; } .legal-data dd { margin-bottom: .6rem; } }

/* Map placeholder shown until the visitor asks for the map */
.map-placeholder { height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.5rem; text-align: center; background: radial-gradient(ellipse at 80% 15%, rgba(183,224,122,.35), transparent 55%), linear-gradient(135deg, #e3efd3, #cfe3dc); }
.map-placeholder-pin { filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.map-placeholder-title { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); }
.map-placeholder-note { margin: 0 0 .5rem; max-width: 30rem; color: var(--primary-dark); font-size: .95rem; }
.map-load { border: 0; cursor: pointer; font-size: 1rem; }
.map-load[hidden] { display: none; }
.map-fallback[role="status"] { padding: 1.25rem; }

.agenda-download { margin: 0 0 1.25rem; }
.agenda-download .map-link { display: inline-flex; align-items: center; gap: .45rem; }
.download-icon { flex: none; }

/* Banner actions: registration (filled, external) next to "Ver agenda" (outline, internal, arrow down) */
.banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.btn-ghost {
  display: inline-block; background: transparent; color: #fff !important; border: 2px solid #fff;
  font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: calc(.9rem - 2px) calc(2.25rem - 2px); border-radius: 999px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-ghost::after { content: " \2193"; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--accent-light); color: #fff; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn-ghost { transition: none; } .btn-ghost:hover { transform: none; } }

/* Timeline: the dots stick out 6px to the left of the line; indent the lists so the clipped area of the opening animation no longer cuts them */
.agenda-list { margin-left: .75rem; }

/* Phones: taller map, smaller cards and attribution so the places are easy to see and nothing is cut */
@media (max-width: 575px) {
  .directions-visuals .venue-map { height: min(72vh, 520px); min-height: 430px; }
  .venue-popup .maplibregl-popup-content { width: 224px; }
  .map-card-photo { height: 84px; }
  .map-card-body { padding: .65rem .9rem .8rem; }
  .map-card-title { font-size: .95rem; }
  .map-card-line { font-size: .88rem; }
  .map-card-head { padding: .8rem 3.1rem .8rem .8rem; gap: .6rem; }
  .map-card-head .map-card-tag { letter-spacing: .05em; font-size: .68rem; }
  .map-card-p { width: 2.3rem; height: 2.3rem; font-size: 1.1rem; }
  .venue-map .maplibregl-ctrl-attrib { font-size: .66rem; line-height: 1.25; }
  .event-pin-svg { width: 54px; height: 68px; }
  .event-pin { width: 54px; height: 68px; }
}

/* No pointer on the cards: they open next to their marker without the little arrow */
.venue-popup .maplibregl-popup-tip { display: none; }
