/* Rainfall readability preview: /pluie-en-france-lisibilite-test only. */
.rainfall-readability-test .rainfall-map-options { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px; color:#b5ccca; font-size:13px; }
.rainfall-readability-test .rainfall-map-options label { display:flex; align-items:center; gap:8px; cursor:pointer; padding:8px 10px; border:1px solid #47605f; border-radius:7px; white-space:nowrap; }
.rainfall-readability-test .rainfall-map-options input { width:17px; height:17px; accent-color:#ed8c4d; }
.rainfall-map-checkboxes { display:flex; flex-wrap:wrap; gap:8px; }
.rainfall-display-switch { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border:1px solid #47605f; border-radius:9px; }
.rainfall-display-switch button { padding:10px 12px; border:1px solid transparent; border-radius:6px; background:transparent; color:#d0e3df; font:600 13px/1.3 "Segoe UI",sans-serif; cursor:pointer; }
.rainfall-display-switch button.is-active { color:#24160e; background:#f49a5e; border-color:#ffb481; }
.rainfall-display-switch button:focus-visible { outline:2px solid #ffb481; outline-offset:2px; }
.rainfall-readability-test #rainfallAllMap { height:clamp(650px,80vh,960px); background:#e0e9e7; }
.rainfall-readability-test .rainfall-all-value-icon span { box-sizing:border-box; display:flex; align-items:center; justify-content:center; width:var(--label-width); height:var(--label-height); color:var(--value-color); background:rgba(255,255,255,.97); border:1px solid #c1ceca; border-bottom:3px solid var(--value-color); border-radius:6px; font-size:var(--label-size); line-height:1; font-weight:800; letter-spacing:-.035em; font-variant-numeric:tabular-nums; white-space:nowrap; text-shadow:none; box-shadow:0 1px 4px #294e4830; }
.rainfall-readability-test .rainfall-all-value-icon:hover span,.rainfall-readability-test .rainfall-all-value-icon:focus-visible span { font-size:var(--label-size); filter:none; outline:2px solid #233e48; outline-offset:2px; }
.rainfall-readability-test .rainfall-all-value-icon.is-partial span { opacity:.88; font-style:normal; border-top-style:dashed; }
.rainfall-readability-test .rainfall-all-value-icon sup { margin-left:2px; font-size:.65em; }
.rainfall-readability-test #rainfallAllMap .leaflet-control-zoom a { color:#24454c; background:#fff; border-color:#bfceca; }
.rainfall-readability-test .rainfall-all-map-wrap { display:flex; flex-direction:column; background:#e0e9e7; }
.rainfall-readability-test #rainfallAllLegend { position:static; display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; min-width:0; margin:0; padding:14px 18px; border:0; border-top:1px solid #b9cac5; border-radius:0; color:#24454c; background:#f5f8f6; box-shadow:none; backdrop-filter:none; }
.rainfall-readability-test #rainfallAllLegend > p { flex-basis:100%; margin:0; color:#24454c; font-size:14px; }
.rainfall-readability-test #rainfallAllLegend > div { display:flex; gap:7px; font-size:13px; }
.rainfall-readability-test #rainfallAllLegend i { width:13px; height:13px; box-shadow:none; }
.rainfall-readability-test #rainfallAllLegend small { flex-basis:100%; max-width:none; color:#45625f; font-size:12px; }
@media(max-width:700px) {
  .rainfall-readability-test #rainfallAllMap { height:540px; }
  .rainfall-readability-test .rainfall-map-options { align-items:flex-start; flex-direction:column; }
  .rainfall-readability-test #rainfallAllLegend { gap:10px 14px; padding:12px; }
}

/* Fullscreen map and single-line page heading. */
.rainfall-all-page .national-observation-header h1 { white-space:nowrap; font-size:clamp(28px,4.2vw,60px); letter-spacing:-.045em; }
#rainfallMapStage { position:relative; }
.rainfall-fullscreen-toggle { display:block; margin:0 0 12px auto; padding:10px 14px; border:1px solid #ffad72; border-radius:8px; background:#f47b35; color:#24160e; font:800 13px/1.3 "Segoe UI",sans-serif; cursor:pointer; box-shadow:0 4px 14px #f47b3547; }
.rainfall-fullscreen-toggle:hover { background:#ff944f; border-color:#ffc299; }
.rainfall-fullscreen-toggle:focus-visible { outline:2px solid #ffab70; outline-offset:3px; }
body.rainfall-map-fullscreen { overflow:hidden; }
#rainfallMapStage.is-fullscreen { position:fixed; inset:0; z-index:2100; width:100%; height:100dvh; background:#10272d; isolation:isolate; }
#rainfallMapStage.is-fullscreen .rainfall-fullscreen-toggle { position:absolute; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); z-index:1100; margin:0; }
#rainfallMapStage.is-fullscreen .rainfall-all-map-panel { position:absolute; inset:0; margin:0; padding:0; border:0; border-radius:0; }
#rainfallMapStage.is-fullscreen .rainfall-all-map-wrap,
#rainfallMapStage.is-fullscreen #rainfallAllMap { width:100%; height:100%; border:0; border-radius:0; }
#rainfallMapStage.is-fullscreen #rainfallAllLegend,
#rainfallMapStage.is-fullscreen .national-observation-map-note,
#rainfallMapStage.is-fullscreen .rainfall-map-options > span { display:none; }
#rainfallMapStage.is-fullscreen .rainfall-map-options { position:absolute; z-index:1050; top:62px; right:12px; margin:0; background:#081c22f0; border-radius:8px; }
#rainfallMapStage.is-fullscreen .national-period-map-head,
#rainfallMapStage.is-fullscreen .national-period-map-actions { display:contents; }
#rainfallMapStage.is-fullscreen .national-period-map-head > div:first-child,
#rainfallMapStage.is-fullscreen .national-period-map-actions > .water-national-date { display:none; }
#rainfallMapStage.is-fullscreen .rainfall-display-switch { position:absolute; z-index:1050; top:110px; right:12px; max-width:calc(100% - 88px); box-sizing:border-box; background:#081c22f0; }
#rainfallMapStage.is-fullscreen .leaflet-top.leaflet-right { right:auto; left:12px; }
#rainfallMapStage.is-fullscreen .rainfall-all-map-period { position:absolute; z-index:1050; bottom:max(30px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); box-sizing:border-box; width:min(860px,calc(100% - 24px)); margin:0; padding:12px 16px; border-radius:10px; background:#081c22f0; box-shadow:0 2px 14px #0003; }
#rainfallMapStage.is-fullscreen .rainfall-all-map-period-scale,
#rainfallMapStage.is-fullscreen #rainfallAllMapDateHint { display:none; }
@media(max-width:700px) {
 .rainfall-all-page .national-observation-header h1 { font-size:clamp(24px,7.2vw,42px); }
 #rainfallMapStage.is-fullscreen .rainfall-fullscreen-toggle { padding:9px; font-size:11px; }
 #rainfallMapStage.is-fullscreen .rainfall-map-options { top:56px; }
 #rainfallMapStage.is-fullscreen .rainfall-display-switch { top:104px; }
 #rainfallMapStage.is-fullscreen .rainfall-all-map-period { padding:10px; }
 #rainfallMapStage.is-fullscreen .rainfall-all-map-date-inputs { display:none; }
}
/* Shared light/dark analysis theme for the station rainfall map. */
.rainfall-all-page .national-observation-head-actions { flex-wrap:wrap; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-breadcrumb,.rainfall-breadcrumb a,.rainfall-breadcrumb span[aria-current],.rainfall-map-options,.rainfall-date-control>label,.rainfall-all-map-period-scale,.rainfall-all-map-period-head>div:first-child span,.water-national-date span,.water-national-ranking .normal-panel-head>span,.national-observation-map-note) { color:var(--analysis-text); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-display-switch,.rainfall-map-options label,.rainfall-date-input-shell,.rainfall-all-map-period,.national-observation-ranking-row,.rainfall-seo-section,.rainfall-seo-related,.rainfall-seo-guide article,.rainfall-seo-faq-list details,.rainfall-seo-related>a) { border-color:var(--analysis-border); background:var(--analysis-panel); color:var(--analysis-text); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-display-switch button,.rainfall-all-map-period-head>div:first-child strong,.water-national-date strong,.national-observation-ranking-row>span strong,.national-observation-ranking-row>em,.rainfall-all-method h2) { color:var(--analysis-title); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-display-switch button.is-active { color:#fff; background:#b94713; border-color:#b94713; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .water-national-date { background:var(--analysis-control); border-color:var(--analysis-border); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-nav strong,.rainfall-calendar-head .lightviz-eyebrow,.rainfall-seo-section .lightviz-eyebrow) { color:#24677c; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-all-method p,.national-observation-ranking-row>b,.national-observation-ranking-row>span small,.national-observation-ranking-row>i,.national-observation-ranking-row>i small) { color:var(--analysis-text); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .national-observation-ranking-row:hover { background:var(--analysis-control); border-color:#78a9a2; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-all-map-period { box-shadow:var(--analysis-shadow); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-date-input-shell input { color:var(--analysis-title); background:transparent; border:0; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-calendar-trigger { color:#24677c; background:#e8eeed; border-color:var(--analysis-border); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-all-map-date-inputs>button { color:#24677c; background:#e8eeed; border-color:var(--analysis-border); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-seo-section,.rainfall-seo-related) :is(h2,h3,strong,summary) { color:var(--analysis-title); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-seo-intro>p:not(.lightviz-eyebrow),.rainfall-seo-guide p,.rainfall-seo-faq-list details p,.rainfall-seo-related>a>span) { color:var(--analysis-text); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-seo-intro a { color:#24677c; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) #rainfallMapStage.is-fullscreen { background:var(--analysis-bg); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) #rainfallMapStage.is-fullscreen :is(.rainfall-map-options,.rainfall-display-switch,.rainfall-all-map-period) { background:rgba(255,255,255,.96); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-shell,.rainfall-calendar-month) { background:var(--analysis-panel); border-color:var(--analysis-border); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-head h2,.rainfall-calendar-selection strong,.rainfall-calendar-month>strong,.rainfall-calendar-day) { color:var(--analysis-title); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-selection,.rainfall-calendar-close,.rainfall-calendar-nav button,.rainfall-calendar-nav select,.rainfall-calendar-footer button) { color:var(--analysis-title); background:var(--analysis-control); border-color:var(--analysis-border); color-scheme:light; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-weekdays span,.rainfall-calendar-selection span,.rainfall-calendar-footer p) { color:var(--analysis-text); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-calendar-day.is-in-range { background:#dcebed; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) :is(.rainfall-calendar-day.is-start,.rainfall-calendar-day.is-end) { color:#fff; background:#b94713; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-calendar-day:disabled { color:#a8b5ba; }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) .rainfall-calendar-footer { border-color:var(--analysis-border); }
.rainfall-all-page.analysis-theme-enabled:not(.darkviz-page) #rainfallCalendarApply { color:#fff; background:#b94713; border-color:#b94713; }
