/* Keep the mural geometry, motion and flyer framing unchanged. */
.dawn-masthead h1 .radar-hero-line { display: block; }
.discovery-stage {
  --discovery-color: #f7f0e2;
  position: relative;
  margin-inline: -12px;
  padding: 22px 12px 1px;
  border-radius: 24px;
  background: var(--paper);
  transition: background-color .25s ease;
}
.discovery-stage:not([data-category-theme="all"]) {
  background: var(--discovery-color);
  background: color-mix(in srgb, var(--discovery-color) 72%, var(--paper));
}
.discovery-stage .category-section { margin-bottom: 34px; }
.category-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  margin: 0 0 16px;
  padding: 12px 15px;
  background: #fffdf7c9;
  color: var(--ink);
  border: 1px solid #17282d25;
  border-radius: 12px;
}
.category-context p { margin: 0; font-size: .83rem; line-height: 1.5; font-weight: 700; }
.category-context > div { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.category-context a, .category-context button {
  display: inline-flex; align-items: center; min-height: 36px;
  color: var(--ink); font-size: .76rem; font-weight: 700; line-height: 1.3;
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.category-context button[hidden] { display: none; }
.discovery-stage .agenda { scroll-margin-top: 16px; }
.discovery-stage .result-count { background: #fffdf7cc; border-radius: 9px; padding: 7px 11px; }
.map-selected-events { scroll-margin-top: 18px; }
.map-selected-events:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.map-popup button { min-height: 44px; font-size: .85rem; cursor: pointer; }
.map-popup .map-popup-profile { font-size: .75rem; font-weight: 500; padding-top: 7px; }
.map-popup button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A popup can fill the narrow map: keep +/- from covering its text/actions. */
#event-map:has(.leaflet-popup) .leaflet-control-zoom { visibility: hidden; }
#cards-view .card-meta, .mural-preview-category { font-size: .75rem; }
.mural-preview-copy { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Compact, right-aligned text navigation; community remains in the footer. */
.dawn-masthead .site-header nav { align-items: center; gap: 24px; }
.dawn-masthead .site-header nav a,
.dawn-masthead .site-header nav .header-agenda {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 0; border: 0; border-radius: 0;
  background: none; color: #fff8e8; font-size: .85rem; font-weight: 700; line-height: 1.25;
  text-decoration: none;
}
.dawn-masthead .site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.dawn-masthead .site-header nav a:focus-visible { outline: 2px solid #f6e598; outline-offset: 3px; }
.dawn-masthead .site-header nav a[data-secondary="comunidad"] { display: none; }
@media (max-width: 760px) {
  .dawn-masthead h1 em.radar-hero-line { font-size: .82em; line-height: 1.15; }
  .dawn-masthead .site-header { flex-wrap: nowrap; gap: 12px; padding-block: 16px; }
  .dawn-masthead .site-header nav { display: flex; flex-wrap: nowrap; gap: 12px; margin-left: auto; flex-shrink: 0; }
  .dawn-masthead .site-header nav a,
  .dawn-masthead .site-header nav a:not(.header-agenda) {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 9px 0; border: 0; border-radius: 0;
    font-size: .75rem; font-weight: 600; line-height: 1.25;
  }
  .dawn-masthead .site-header nav a[data-secondary="comunidad"] { display: none; }
  .dawn-masthead .site-header .header-agenda { border-color: transparent; }
  .discovery-stage { border-radius: 20px; padding-top: 16px; }
}
@media (max-width: 620px) {
  .dawn-masthead .site-header nav { width: auto; }
  .category-section-heading { gap: 10px; line-height: 1.5; }
  .category-context { padding: 10px 12px; }
  .category-context p { font-size: .76rem; }
  .category-context > div { gap: 14px; }
  #cards-view .event-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #cards-view .event-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr) auto; border-radius: 16px; }
  #cards-view .event-card .card-visual,
  #cards-view .event-card.has-image .card-visual { grid-column: 1; grid-row: 1 / 6; width: 100%; height: 100%; min-height: 180px; aspect-ratio: auto; max-height: none; border-radius: 15px 0 0 0; }
  #cards-view .card-visual .poster-link img { object-position: var(--poster-mobile-focus, 50% 30%) !important; }
  #cards-view .card-body { display: contents; }
  #cards-view .card-body > * { grid-column: 2; min-width: 0; margin: 0; }
  #cards-view .card-meta { grid-row: 1; padding: 6px 10px; min-height: 27px; font-size: .68rem; line-height: 1.2; }
  #cards-view .card-category { gap: 5px; }
  #cards-view .card-category .category-icon { flex-shrink: 0; width: 13px; height: 13px; }
  /* Start below the category, not below a reserved commune row. Extra photo
     height stays below the price instead of stretching every text row. */
  #cards-view .card-body .card-date-line { grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 6px; padding: 5px 10px 2px; }
  #cards-view .card-date { flex: 0 0 auto; align-self: center; padding-top: 0; }
  #cards-view .card-date .editorial-date { gap: 5px; }
  #cards-view .card-date .editorial-date > strong { font-size: 1.85rem; }
  #cards-view .card-date .date-labels { font-size: .56rem; }
  #cards-view .card-date .date-month { font-size: .5rem; }
  #cards-view .card-time { flex: 0 0 auto; align-self: center; border-left: 1px solid #17282d26; padding-left: 6px; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.035em; }
  #cards-view .card-time small { font-size: .6rem; letter-spacing: 0; font-weight: 600; }
  #cards-view .card-when { display: contents; }
  #cards-view .card-commune { flex: 0 1 auto; max-width: 100%; margin: 0 0 0 auto; text-align: right; font-size: .58rem; line-height: 1.2; }
  #cards-view .card-commune .facet-link { justify-content: flex-end; overflow-wrap: anywhere; }
  #cards-view .card-body h3 { grid-row: 3; padding: 3px 10px; font-size: 1.06rem; line-height: 1.15; letter-spacing: -.035em; }
  #cards-view .card-place { grid-row: 4; padding: 2px 10px; font-size: .72rem; line-height: 1.3; }
  #cards-view .card-price { grid-row: 5; padding: 2px 10px 8px; font-size: .7rem; line-height: 1.3; }
  #cards-view .card-body .card-footer { grid-column: 1 / -1; grid-row: 6; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 8px; border-top: 1px solid #17282d12; }
  #cards-view .card-footer .source-link { min-height: 44px; display: flex; align-items: center; max-width: 30%; font-size: .56rem; overflow-wrap: anywhere; }
  #cards-view .card-actions { gap: 4px; flex-wrap: nowrap; }
  #cards-view .card-actions .reaction-group { gap: 4px; }
  #cards-view .card-actions .reaction-group.compact .reaction-button,
  #cards-view .card-actions .calendar-menu.compact summary,
  #cards-view .card-actions .share-button { min-height: 44px; height: 44px; min-width: 36px; padding: 0 5px; gap: 3px; }
  #cards-view .card-actions .share-button { width: 36px; }
  #cards-view .card-actions .reaction-group.compact .reaction-button,
  #cards-view .card-actions .calendar-menu.compact summary,
  #cards-view .card-actions .share-button { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  #cards-view .card-actions .reaction-button.active { color: #a63725; }
  #cards-view .card-actions .reaction-button.active svg { stroke-width: 2.5; }
  #cards-view .card-actions .reaction-button.active .reaction-icon { transform: scale(1.12); }
  #cards-view .card-actions :is(button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 5px; }
  #cards-view .poster-zoom { width: 44px; height: 44px; top: 3px; right: 3px; }
  #cards-view .event-title-link, .event-row-copy .event-title-link { display: block; }
  /* The narrower mural uses the same reading order, wrapping the commune
     below the date/time only when the actual column width requires it. */
  .mural-preview-copy .mural-preview-category { margin-bottom: 5px; font-size: .68rem; }
  .mural-preview-copy .card-date-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 6px; margin: 0 0 5px; }
  .mural-preview-copy .card-date-line > .editorial-date { flex: 0 0 auto; align-self: center; }
  .mural-preview-copy .card-when { display: contents; }
  .mural-preview-copy .card-time { flex: 0 0 auto; align-self: center; border-left: 1px solid #17282d26; padding-left: 6px; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.035em; }
  .mural-preview-copy .card-time small { font-size: .6rem; letter-spacing: 0; font-weight: 600; }
  .mural-preview-copy .card-commune { flex: 0 1 auto; max-width: 100%; margin: 0 0 0 auto; text-align: right; font-size: .58rem; line-height: 1.2; }
  .mural-preview-copy .card-commune .facet-link { justify-content: flex-end; overflow-wrap: anywhere; }
  .mural-preview-copy h3 { margin-bottom: 4px; }
  .mural-preview-copy .card-place { margin-bottom: 2px; }
  .mural-preview-copy .card-price { margin-bottom: 6px; }
  .event-row-time { flex-wrap: wrap; gap: 3px 8px; }
  .event-row-time strong { white-space: nowrap; }
  .event-row-actions { gap: 6px; }
  .event-row-actions .reaction-group { gap: 4px; }
  .event-row-actions .reaction-group.compact .reaction-button { min-width: 40px; min-height: 44px; padding: 0 4px; gap: 3px; }
  .event-row-actions .calendar-menu.compact summary { min-width: 40px; min-height: 44px; padding: 0 8px; }
  .event-row-actions .calendar-menu.compact summary::after { display: none; }
  .event-row-actions .share-button { min-width: 40px; min-height: 44px; }
}
@media (max-width: 380px) {
  .dawn-masthead .site-header nav { flex-direction: column; align-items: flex-end; gap: 0; }
  .dawn-masthead .site-header nav a { min-height: 36px; padding-block: 7px; }
  .mural-preview-copy .card-date-line { column-gap: 4px; }
  .mural-preview-copy .editorial-date { gap: 4px; }
  .mural-preview-copy .editorial-date > strong { font-size: 1.6rem; }
  .mural-preview-copy .date-labels { font-size: .5rem; }
  .mural-preview-copy .date-month { font-size: .45rem; }
  .mural-preview-copy .card-time { padding-left: 4px; font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) { .discovery-stage { transition: none; } }
.footer-information .footer-updated { display: none; font-size: .72rem; opacity: .75; margin: 0 0 10px; }
@media (max-width: 760px) {
  .dawn-masthead .site-header nav a[data-secondary] { display: none; }
  .dawn-masthead #last-updated { display: none; }
  .dawn-picture img { object-position: 95% center; }
  .footer-information .footer-updated { display: block; }
}
.event-row-source a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-underline-offset: 3px; }

/* Mobile-only progressive filters: desktop keeps the existing layout. */
.mobile-search-row, .mobile-search-feedback, .mobile-filter-summary, .mobile-commune-field { display: none; }
@media (max-width: 760px) {
  main > .commune-strip { display: none; }
  .toolbar { padding: 0; border: 0; background: none; margin: 16px 0 24px; }
  .mobile-search-row { display: flex; align-items: stretch; gap: 8px; }
  .mobile-search-row .search-field { display: block; flex: 1; min-width: 0; margin: 0; }
  .mobile-search-row .search-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-search-row input { width: 100%; min-height: 50px; padding: 0 13px; border-radius: 13px; font-size: 16px; background: #fffdf7; }
  .mobile-search-row .filter-toggle { display: flex; width: auto; min-height: 50px; padding: 0 11px; flex: 0 0 auto; gap: 5px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf7; font-size: .74rem; }
  .mobile-search-row .filter-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mobile-search-row .filter-toggle i { display: none; }
  .mobile-search-row .filter-toggle small { margin: 0; min-width: 18px; height: 18px; font-size: .6rem; }
  .mobile-search-row .filter-toggle small[hidden] { display: none; }
  .filter-panel { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; }
  .filter-panel[hidden] { display: none; }
  .filter-panel .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-panel .mobile-commune-field { display: grid; }
  .filter-panel .budget-field { grid-column: 1 / -1; }
  .filter-panel select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
  .filter-panel .quick-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow: visible; }
  .filter-panel .filter-pill { min-height: 44px; width: 100%; font-size: .76rem; }
  .mobile-search-feedback:not([hidden]) { display: block; margin-top: 10px; padding: 12px; background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; }
  .mobile-search-feedback p, .mobile-search-feedback > span { margin: 0; font-size: .76rem; color: var(--muted); }
  .mobile-search-feedback ul { list-style: none; margin: 5px 0; padding: 0; }
  .mobile-search-feedback li { padding: 7px 0; border-bottom: 1px solid var(--line); }
  .mobile-search-feedback .event-title-link { display: flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 700; text-decoration: none; }
  .mobile-search-feedback small { display: block; font-size: .68rem; color: var(--muted); }
  .mobile-search-feedback .search-all-results { display: flex; align-items: center; min-height: 44px; font-size: .78rem; font-weight: 700; }
  .mobile-filter-summary:not([hidden]) { display: block; margin: 8px 3px 0; font-size: .73rem; line-height: 1.4; }
  .category-shortcuts.is-focused { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) { order: 0; height: 48px; min-height: 48px; padding: 0; display: grid; place-items: center; box-shadow: none; }
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline,
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-name { height: auto; flex: none; gap: 0; }
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-spine-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline b { display: none; }
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-icon { width: 25px; height: 25px; }
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"] { order: 1; grid-column: 1 / -1; height: 205px; min-height: 205px; padding: 18px; }
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"] > strong { font-size: clamp(2.1rem, 9cqi, 3.2rem); }
  .category-photo-card.category-shortcut > strong > span:first-child { margin-bottom: 2px; line-height: 1; }
  .category-photo-card.category-shortcut > strong > span:last-child { margin-top: 0; }
  .category-photo-card.category-shortcut[data-category-art="literatura"] > strong > span:first-child { margin-bottom: 0; }
  .category-photo-card.category-shortcut[data-category-art="literatura"] > strong > span:last-child { margin-top: -.18em; line-height: .9; }
}

.venue-directory-card .venue-avatar { float: right; margin: 0 0 12px 12px; }
.venue-avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; flex: 0 0 auto; border-radius: 13px; overflow: hidden; background: #fff; border: 1px solid #17282d19; }
.venue-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.venue-avatar.is-dark { background: #17262b; }
.venue-avatar.is-photo img { object-fit: cover; padding: 0; }
.venue-avatar.is-placeholder { color: #62716c; background: #eae9df; }
.venue-avatar svg { width: 36px; height: 36px; }
.venue-identity-heading { display: flex; align-items: center; gap: 18px; margin: 14px 0; }
.venue-identity-heading h2 { margin: 0; min-width: 0; }
.venue-identity-heading .venue-avatar { width: 96px; height: 96px; }
@media (max-width: 620px) {
  .venue-identity-heading { gap: 12px; }
  .venue-identity-heading .venue-avatar { width: 68px; height: 68px; }
  .venue-identity-heading h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .venue-directory-card .venue-avatar { width: 58px; height: 58px; }
}
/* The daily calendar is an index; all event actions live in its detail sheet. */
.calendar-agenda-item { border-bottom: 1px solid #17282d20; }
.calendar-agenda-item h4 { margin: 0; font-size: 1rem; line-height: 1.35; }
.calendar-agenda-item .event-title-link { display: flex; align-items: center; min-height: 44px; padding: 10px 2px; text-decoration: none; }
.calendar-agenda-item .event-title-link:hover { text-decoration: underline; }
.calendar-agenda-item .event-title-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
