.club-weather {
    padding: 1.2rem; margin: 0 0 1.5rem; border: 1px solid #dce7df;
    border-radius: 12px; background: #f5f9f6; color: #254233; text-align: left;
}
.calendar-modal-weather { padding:1rem; border:1px solid #d5ded4; border-radius:8px; background:#f3f6f0; color:#20392f; }
.calendar-modal-weather[hidden] { display:none; }
.calendar-modal-body .calendar-modal-weather h3 { margin:0 0 .65rem; font-size:1rem; color:#20392f; }
.calendar-modal-weather p { margin:0 0 .6rem; line-height:1.55; overflow-wrap:anywhere; }
.calendar-modal-weather .weather-detail-condition { font-weight:600; }
.calendar-modal-weather .weather-detail-overview { display:flex; align-items:center; gap:1rem; margin:.8rem 0 1rem; }
.calendar-modal-weather .weather-detail-icon { flex:0 0 4rem; font-size:3.5rem; line-height:1.15; text-align:center; }
.calendar-modal-weather .weather-detail-conditions { min-width:0; }
.calendar-modal-weather .weather-detail-condition { margin:0 0 .2rem; font-size:1.05rem; }
.calendar-modal-weather .weather-detail-temperature { margin:0; font-size:1.4rem; font-weight:600; }
.calendar-modal-weather .weather-detail-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:0 0 .9rem; padding-top:.9rem; border-top:1px solid #d5ded4; }
.calendar-modal-weather .weather-detail-metrics>div { min-width:0; }
.calendar-modal-weather .weather-detail-metrics dt { font-size:.78rem; font-weight:400; color:#46594c; }
.calendar-modal-weather .weather-detail-metrics dd { margin:.2rem 0 0; font-weight:600; font-size:.95rem; overflow-wrap:anywhere; }
@media(max-width:400px){.calendar-modal-weather .weather-detail-metrics { grid-template-columns:1fr; gap:.55rem; }.calendar-modal-weather .weather-detail-metrics>div { display:flex; align-items:baseline; justify-content:space-between; gap:.75rem; }.calendar-modal-weather .weather-detail-metrics dd { margin:0; }}
.calendar-modal-weather .weather-detail-note,.calendar-modal-weather>a { font-size:.78rem; color:#46594c; }
.calendar-modal-weather>a { text-decoration:underline; }
body.theme-immersion .calendar-modal-weather { border-radius:3px; background:#eef0e9; border-color:var(--im-line); }
#footer .footer-weather { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; margin: 0; }
#footer .footer-weather small { font-size: .62rem; line-height: 1.35; opacity: .72; }
#footer .footer-weather [data-weather-content] { font-size: .75rem; }
#footer button.weather-footer-button { width: auto; height: auto; min-height: 3.25rem; max-width: 100%; padding: .45rem .8rem; gap: .6rem; border: 1px solid #bdcfc2; border-radius: 10px; background: #eef5ef; color: #254233; box-shadow: none; text-transform: none; letter-spacing: normal; white-space: normal; }
#footer button.weather-footer-button:hover { background: #dcecdf; border-color: #779b83; }
#footer .weather-footer-icon { font-size: 2rem; line-height: 1.1; }
#footer .weather-footer-values { display: flex; flex-direction: column; gap: .25rem; text-align: left; line-height: 1.2; }
#footer .weather-footer-temperature { font-size: 1.2rem; font-weight: 700; }
#footer .weather-footer-wind { font-size: .75rem; font-weight: 500; }
.club-weather p { margin: .4rem 0; }
.club-weather .weather-current { font-size: 1.25rem; font-weight: 600; }
.club-weather .weather-location, .club-weather .weather-note { font-size: .85rem; }
.club-weather .weather-metrics { font-size: .9rem; }
.club-weather small { font-size: .75rem; display: block; line-height: 1.5; }
.club-weather a { color: #24583b; }
.club-weather summary { cursor: pointer; font-size: .85rem; margin: .5rem 0; }
.club-weather .weather-hours { padding-left: 1.2rem; margin: .5rem 0; font-size: .8rem; }
.weather-event-row { display: flex; align-items: center; gap: .25rem; min-width: 0; width: 100%; }
.weather-event-row > div { flex: 1 1 auto; min-width: 0; }
[data-weather-date] { flex: none; }
button.weather-picto { display: inline-flex; justify-content: center; align-items: center; font-size: 1.1rem; line-height: 1; height: 1.6rem; width: 1.8rem; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; background: #eef5ef; color: #254233; box-shadow: none; cursor: pointer; vertical-align: middle; }
button.weather-picto:hover { background: #d9e9df; }
button.weather-competition-button { width: auto; height: auto; min-height: 2.75rem; max-width: 100%; box-sizing: border-box; gap: .45rem; padding: .35rem .5rem; border: 1px solid #c5d8cb; border-radius: 8px; white-space: normal; text-transform: none; letter-spacing: normal; }
.weather-competition-icon { font-size: 1.7rem; line-height: 1.2; }
.weather-competition-values { display: flex; flex-direction: column; gap: .2rem; text-align: left; line-height: 1.3; min-width: 0; }
.weather-competition-temperature { font-size: .9rem; font-weight: 700; }
.weather-competition-wind { font-size: .75rem; font-weight: 500; }
.weather-event-row button.weather-calendar-button { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; font-size: 1rem; background: rgb(255 255 255 / 45%); }
.weather-event-row .weather-calendar-button .weather-competition-icon { font-size: 1rem; line-height: 1; }
.weather-event-row button.weather-calendar-button:hover { background: rgb(255 255 255 / 80%); }
.weather-event-row [data-weather-date]:empty { display: none; }
button.weather-picto:focus-visible, .club-weather summary:focus-visible { outline: 2px solid #276a43; outline-offset: 2px; }
dialog.weather-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(92vw, 520px); max-height: 85vh; overflow: auto; padding: 1.5rem; border: 1px solid #dce7df; border-radius: 12px; background: white; color: #254233; }
dialog.weather-dialog::backdrop { background: rgb(0 0 0 / 40%); }
dialog.weather-dialog h2 { font-size: 1.25rem; color: inherit; }
dialog.weather-dialog p { line-height: 1.7; }

/* Agenda cards: keep weather outside metadata, whose theme styles target every span. */
.calendar-public-shell .agenda-card--organized {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    gap: .7rem 1rem; padding: 1.2rem; background: #fff;
    height: auto; min-height: 0; align-content: start;
}
.agenda-card--organized .agenda-content { display: contents; }
.agenda-card--organized .agenda-date { grid-column: 1; grid-row: 1 / span 2; margin: 0; max-width: none; padding: .75rem .25rem; }
.agenda-card--organized .agenda-date .month { font-size: .65rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.agenda-card--organized .agenda-date .day { font-size: 1.9rem; }
.agenda-card--organized .agenda-heading { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; min-width: 0; text-align: left; }
.agenda-card--organized .agenda-heading h3 { flex: 1 1 10rem; margin: 0; font-size: 1.25rem; line-height: 1.3; }
.calendar-public-shell .agenda-card--organized button.event-title-link {
    display: inline; width: auto; height: auto; min-height: 0; padding: 0; border: 0;
    border-radius: 0; background: none; box-shadow: none; font: inherit; color: #243c31;
    text-align: left; white-space: normal; text-transform: none; letter-spacing: normal;
}
.calendar-public-shell .agenda-card--organized button.event-title-link:hover { color: var(--calendar-primary-dark); text-decoration: underline; }
.calendar-public-shell .agenda-card--organized .status-badge { margin: 0; flex: none; font-size: .65rem; letter-spacing: .03em; }
.calendar-public-shell .agenda-card--organized .meta { grid-column: 2; grid-row: 2; align-self: start; justify-content: flex-start; gap: .35rem 1rem; margin: 0; text-align: left; }
.calendar-public-shell .agenda-card--organized .meta > span { padding: 0; border: 0; border-radius: 0; background: none; font-size: .85rem; color: #4b5e54; }
.agenda-card--organized .agenda-weather { grid-column: 2; grid-row: 3; min-width: 0; margin-top: .1rem; }
.agenda-card--organized .agenda-weather:empty { display: none; }
.agenda-card--organized .obs { grid-column: 1 / -1; grid-row: 4; margin: 0; text-align: left; }
.calendar-public-shell .agenda-card--organized .action-row { grid-column: 1 / -1; grid-row: 5; align-self: end; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin: .4rem 0 0; padding-top: .8rem; border-top: 1px solid #e5ebe7; }
.calendar-public-shell .agenda-card--organized .action-row > * { width: auto; margin: 0; }
.calendar-public-shell .agenda-weather button.weather-competition-button {
    display: inline-flex; width: auto; max-width: 100%; justify-content: flex-start; gap: .55rem; padding: .45rem .65rem;
    background: #f1f6fa; color: #284b68;
    border: 1px solid #dce7ee; border-radius: 8px; box-shadow: none;
}
.calendar-public-shell .agenda-weather button.weather-competition-button:hover { background: #e5eff6; border-color: #b9cfdf; }
.agenda-weather .weather-competition-icon { font-size: 1.6rem; flex: none; }
.agenda-weather .weather-competition-values { flex: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.agenda-weather .weather-competition-temperature { font-size: 1rem; font-weight: 600; color: #284b68; }
.agenda-weather .weather-competition-wind { font-size: .8rem; color: #415c70; }
.agenda-weather .weather-competition-hint { flex-basis: 100%; font-size: .65rem; font-weight: 400; color: #52697a; }
@media (max-width: 480px) {
    .calendar-public-shell .agenda-card--organized { grid-template-columns: 4.8rem minmax(0, 1fr); padding: .9rem; gap: .75rem; }
    .agenda-card--organized .agenda-date { grid-row: 1; }
    .calendar-public-shell .agenda-card--organized .meta { grid-column: 1 / -1; }
    .agenda-card--organized .agenda-heading h3 { font-size: 1.1rem; }
    .agenda-card--organized .agenda-weather { grid-column: 1 / -1; }
    .calendar-public-shell .agenda-card--organized .action-row > * { flex: 1 1 auto; text-align: center; }
}
