@media(max-width:1050px){.header nav{gap:18px}.header-inner{flex-wrap:wrap}.header nav{order:3;width:100%;justify-content:center;margin:0;flex-wrap:wrap}.header-inner{padding-bottom:12px}}
@media(max-width:760px){.agenda-heading.discovery-heading{margin:38px 0 48px}.agenda-heading.discovery-heading .discovery-title{font-size:2rem}.agenda-event{grid-template-columns:1fr}.agenda-event-media,.agenda-photo-pending{min-height:220px;height:220px}.agenda-event-body{padding:24px}.agenda-editor-grid{grid-template-columns:1fr}.agenda-suggest{align-items:flex-start;flex-direction:column}.agenda-detail-heading .discovery-title{max-width:none}}
@media(max-width:600px){.agenda-event :is(h2,.agenda-event-title){font-size:1.25rem}.header nav{gap:8px 18px}.header nav a{font-size:.8rem}.agenda-heading.discovery-heading .discovery-title{font-size:1.85rem;overflow-wrap:break-word}}
.agenda-detail-heading.discovery-heading .discovery-title{max-width:none;font-size:2.5rem;line-height:1.15}.agenda-detail-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:56px;margin:48px 0 70px}.agenda-detail-layout h2{font-size:1.5rem;margin:0 0 24px}.agenda-detail-content .agenda-description{font-size:1.05rem;line-height:1.8;margin-bottom:24px}.agenda-detail-photo{margin:0 0 32px}.agenda-detail-photo img{width:100%;height:auto;max-height:480px;object-fit:cover}.agenda-detail-photo figcaption{font-size:.75rem;color:var(--muted);margin-top:8px}.agenda-map-town{font-size:1rem;margin-bottom:20px}.agenda-map-note{font-size:.85rem;color:var(--muted);line-height:1.7;margin:20px 0}.agenda-detail-location{min-width:0}#agenda-location-map{width:100%;height:360px;background:#eef0ec;border:1px solid var(--line);border-radius:6px}.agenda-upcoming-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.agenda-upcoming-event{display:flex;flex-direction:column}.agenda-upcoming-event .agenda-event-media{min-height:0;height:auto;aspect-ratio:16/9}.agenda-upcoming-event .agenda-event-body{display:flex;flex-direction:column;flex:1}.agenda-upcoming-event h3{font-size:1.45rem;line-height:1.3;margin:12px 0 16px}.agenda-upcoming-event .button{align-self:flex-start;margin-top:auto}.agenda-upcoming-event .agenda-description{margin-bottom:24px}.agenda-upcoming{margin-bottom:60px}
@media(max-width:900px){.agenda-detail-layout{gap:32px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}#agenda-location-map{height:320px}}
@media(max-width:700px){.agenda-detail-layout{grid-template-columns:1fr;gap:42px;margin:38px 0 48px}.agenda-detail-heading.discovery-heading .discovery-title{font-size:2rem}.agenda-upcoming-grid{grid-template-columns:1fr}.agenda-detail-content .agenda-description{font-size:1rem}.agenda-upcoming-event h3{font-size:1.3rem}#agenda-location-map{height:320px}}
.agenda-editor .agenda-form-heading{margin:38px 0 70px}.agenda-form-title{display:flex;align-items:center;justify-content:space-between;gap:28px}.agenda-form-title .button{flex-shrink:0}.agenda-form-heading .discovery-title{max-width:none}.agenda-form-heading .agenda-submit-intro{margin:0;font-size:1rem;line-height:1.5;color:#66574b}.agenda-editor .agenda-editor-grid{gap:0 24px}.agenda-editor .agenda-editor-grid>section{min-width:0}.agenda-editor .form-label{font-size:.82rem;font-weight:700;margin:17px 0 6px}.agenda-editor .form-label .field{display:block;margin-top:6px;font-weight:400}.agenda-editor fieldset{min-width:0;margin:60px 0 0}.agenda-editor .agenda-form-section-title{display:flex;align-items:center;gap:24px;width:100%;border-left:5px solid var(--red);padding:12px 0 12px 28px;margin:0 0 28px;font-size:1.5rem;line-height:1.3;font-weight:700}.agenda-editor .agenda-months label{display:flex;align-items:center;gap:8px;margin:8px 0;font-weight:400}.agenda-editor input[type=checkbox]{accent-color:var(--red);flex-shrink:0}.agenda-editor .checkbox-label{align-items:flex-start;font-size:.8rem;line-height:1.6;margin:24px 0}.agenda-editor .checkbox-label input{margin-top:5px}.agenda-editor .admin-actions{margin-top:28px}.agenda-editor img{max-width:100%;height:auto}.agenda-editor .agenda-delete{border-top:1px solid var(--line);margin-top:48px;padding-top:24px}
@media(max-width:760px){.agenda-form-title{align-items:flex-start;flex-direction:column;gap:0}.agenda-form-title .button{margin-bottom:24px}.agenda-editor .agenda-form-heading{margin:28px 0 48px}.agenda-editor .agenda-editor-grid>section+section{margin-top:48px}.agenda-editor fieldset{margin-top:48px}.agenda-editor .agenda-form-section-title{font-size:1.25rem;gap:16px;padding-left:20px}.agenda-editor .checkbox-label{flex-wrap:wrap}}

.agenda-main{padding-bottom:70px}.agenda-heading.discovery-heading{width:100%;margin:60px auto 70px}.agenda-heading.discovery-heading .discovery-title{max-width:none;font-size:2.5rem;line-height:1.15}.agenda-heading-intro{margin:18px 0 0;color:var(--muted);font-size:1rem}.agenda-filters{margin-bottom:20px}.agenda-date-note{font-size:.85rem;color:var(--muted);line-height:1.6;margin:0 0 50px}.agenda-results-count{font-size:.85rem;color:var(--muted);white-space:nowrap}.agenda-events{display:grid;gap:28px}.agenda-event{display:grid;grid-template-columns:32% minmax(0,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.agenda-event-media{position:relative;min-height:300px;background:#f3f3f3}.agenda-event-media img{position:absolute;width:100%;height:100%;object-fit:cover}.agenda-event-media small{position:absolute;inset:auto 0 0;background:#fffffff0;padding:8px 12px;font-size:.65rem}.agenda-photo-pending{min-height:300px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#716d69}.agenda-photo-pending .icon{width:48px;height:48px;color:var(--red)}.agenda-event-body{padding:28px 32px}.agenda-event :is(h2,.agenda-event-title){font-size:1.5rem;line-height:1.25;margin:12px 0 15px;letter-spacing:0}.agenda-event .eyebrow{letter-spacing:0}.agenda-period{font-size:.85rem;line-height:1.6;color:var(--red);margin:0 0 16px}.agenda-period .icon{width:18px;height:18px}.agenda-description{font-size:.95rem;line-height:1.75;color:#605b57;margin:0 0 24px}.agenda-event .admin-actions{flex-wrap:wrap}.agenda-suggest{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:60px 0 32px;padding:32px 0;border-top:2px solid #a39b95;border-bottom:1px solid var(--line)}.agenda-suggest h2{font-size:1.5rem;margin:0 0 12px}.agenda-suggest p{color:var(--muted);margin:0}.agenda-suggest .button{flex-shrink:0}.agenda-editor{padding-bottom:55px}.agenda-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.agenda-editor label{display:block;margin:18px 0}.agenda-editor textarea{resize:vertical}.agenda-editor h2{font-size:1.35rem;margin-top:30px}.agenda-editor fieldset{border:0;padding:0;margin:28px 0}.agenda-editor legend{font-size:1.35rem;font-weight:700}.agenda-months{display:flex;gap:8px 18px;flex-wrap:wrap}.agenda-months label{margin:8px 0}.agenda-editor .field{width:100%}.agenda-editor .checkbox-label{display:flex;align-items:center;gap:10px}.agenda-editor img{max-height:280px;width:auto}.agenda-editor .admin-actions{flex-wrap:wrap}.agenda-submit-intro{color:var(--muted);line-height:1.7}.agenda-error{color:var(--red)}.agenda-submitter{padding:20px 0;border-block:1px solid var(--line)}
@media(min-width:1200px){.agenda-heading.discovery-heading .discovery-title{white-space:nowrap}}
@media(max-width:760px){.agenda-editor .agenda-editor-grid{grid-template-columns:1fr}}
.agenda-editor .agenda-editor-single-language{grid-template-columns:minmax(0,1fr)}
.agenda-editor .agenda-photo-upload{margin:12px 0 28px}.agenda-editor .photo-file-picker label{margin:0}.agenda-editor .photo-upload-controls>span{overflow-wrap:anywhere;min-width:0}.agenda-editor .photo-upload-help{margin-bottom:0}
@media(max-width:430px){.agenda-suggest.establishment-proposal-banner{padding:20px;gap:16px}.establishment-proposal-banner .button{grid-column:1/-1}}
.agenda-upcoming-grid>.agenda-upcoming-event{display:flex;flex-direction:column;min-width:0}.agenda-upcoming-grid .agenda-event-body{width:100%;min-width:0}.agenda-upcoming-grid .agenda-event-media{flex:none;width:100%;min-height:0;height:auto;aspect-ratio:16/9}
.agenda-upcoming-grid .agenda-photo-pending{position:absolute;inset:0;min-height:0;height:100%;width:100%}
.agenda-town-establishments{margin:0 0 60px}
@media(max-width:760px){.agenda-events>.agenda-event{grid-template-columns:minmax(0,1fr)}.agenda-events .agenda-event-body{min-width:0;padding:24px}.agenda-events .agenda-event-media,.agenda-events .agenda-photo-pending{height:220px;min-height:220px}}

/* Agenda cultural: dues columnes, targetes amb fotografia a sobre. */
.agenda-general-section{margin-top:75px;margin-bottom:50px}
.agenda-general-events{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.agenda-general-events .agenda-event{display:flex;flex-direction:column;min-width:0}
.agenda-general-events .agenda-event-media{aspect-ratio:16/9;min-height:0;width:100%;position:relative}
.agenda-general-events .agenda-event-body{flex:1;min-width:0}
.agenda-general-events .admin-actions{flex-wrap:wrap;gap:12px}
.agenda-kind-tabs{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;margin:30px 0; padding-bottom:8px}
.agenda-kind-tabs a{flex:1 0 auto;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:12px}
@media(max-width:600px){.agenda-general-events{gap:12px}.agenda-general-events .agenda-event-body{padding:14px}.agenda-general-events .agenda-event-title{font-size:20px;overflow-wrap:anywhere}.agenda-general-events .agenda-description{font-size:14px}.agenda-general-events .admin-actions{display:grid}.agenda-general-events .button{font-size:13px;padding:10px;white-space:normal}.agenda-general-events .eyebrow{font-size:10px;letter-spacing:1px}}
