.lm-model-page{color-scheme:dark;--bg:#101c31;--surface:#172940;--surface-2:#203950;--line:#35506a;--text:#edf4fb;--muted:#a9bbca;--accent:#25a2c7;--accent-2:#65d4d2;--shadow:0 14px 38px #0003}
.lm-model-page *{box-sizing:border-box}
.lm-model-page{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
.lm-model-page{padding:clamp(14px,3vw,34px)}
.lm-model-page{max-width:1440px;margin:0 auto}
.lm-model-page .page-heading{margin:0 auto 24px;text-align:center}
.lm-model-page .eyebrow{margin:0 0 6px;color:var(--accent-2);font-size:.76rem;font-weight:800;letter-spacing:.13em}
.lm-model-page h1{margin:0;font-size:clamp(1.9rem,4vw,3rem);line-height:1.12;letter-spacing:-.03em}
.lm-model-page .intro{margin:9px 0 0;color:var(--muted);font-size:1rem}
.lm-model-page .viewer-card{overflow:hidden;border:1px solid #45617a;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.lm-model-page .controls-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}
.lm-model-page .control{display:flex;min-width:0;flex-direction:column;gap:7px;border:0;padding:0;color:var(--muted);font-size:.8rem;font-weight:750;letter-spacing:.04em}
.lm-model-page .control>span,.lm-model-page .control legend{padding:0}
.lm-model-page select{width:100%;height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);padding:0 38px 0 13px;font:600 1rem system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:normal}
.lm-model-page .mode-control{gap:7px}
.lm-model-page .segmented{display:grid;grid-template-columns:1fr 1fr;height:48px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.lm-model-page .segmented button{border:0;border-radius:7px;background:transparent;color:var(--muted);font:700 .94rem system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.lm-model-page .segmented button[aria-pressed="true"]{background:var(--accent);color:#071b2c;box-shadow:0 2px 8px #0003}
.lm-model-page .segmented.single-mode{grid-template-columns:1fr}
.lm-model-page .segmented button[hidden]{display:none}
.lm-model-page .time-row{display:grid;grid-template-columns:auto 42px 1fr 42px 46px;align-items:center;gap:10px;padding:4px 19px 0}
.lm-model-page .time-label{display:flex;min-width:90px;flex-direction:column}
.lm-model-page .time-label .eyebrow{font-size:.65rem}
.lm-model-page .time-label strong{font-size:1.18rem;font-variant-numeric:tabular-nums}
.lm-model-page .step-button,.lm-model-page .play-button{height:40px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:1.55rem;line-height:1;cursor:pointer}
.lm-model-page .play-button{font-size:.85rem;color:#062133;background:var(--accent-2);border-color:transparent}
.lm-model-page input[type=range]{width:100%;accent-color:var(--accent-2);cursor:pointer}
.lm-model-page .timeline-labels{display:flex;justify-content:space-between;gap:12px;padding:5px 20px 12px;color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.lm-model-page .timeline-labels span:nth-child(2){color:var(--text);font-weight:700;text-align:center}
.lm-model-page .map-shell{position:relative;max-width:100%;margin:0 auto;border:1px solid #49647b;border-radius:13px;overflow:hidden;background:#dce8ef}
.lm-model-page #map{height:auto;aspect-ratio:16/10;min-height:0;width:100%;background:#dce8ef}
.lm-model-page .leaflet-container{font:inherit;background:#dce8ef}
.lm-model-page .leaflet-control-attribution{font-size:10px!important}
.lm-model-page .map-status{position:absolute;z-index:700;top:12px;left:50%;transform:translateX(-50%);padding:8px 13px;border-radius:9px;background:#102239e8;color:#fff;font-size:.84rem;box-shadow:0 3px 12px #0003;pointer-events:none}
.lm-model-page .map-status[hidden]{display:none}
.lm-model-page .legend{position:absolute;z-index:650;right:14px;bottom:18px;width:min(270px,calc(100% - 28px));padding:11px 13px 9px;border:1px solid #ffffffa6;border-radius:10px;background:#14253be8;box-shadow:0 5px 18px #0004;backdrop-filter:blur(7px)}
.lm-model-page .legend strong{display:block;margin-bottom:7px;font-size:.83rem}
.lm-model-page .legend-gradient{height:11px;border-radius:99px;border:1px solid #ffffff8c}
.lm-model-page .legend-values{display:flex;justify-content:space-between;margin-top:4px;color:#d9e4ed;font-size:.72rem;font-variant-numeric:tabular-nums}
.lm-model-page .map-footer{padding:12px 20px 18px;color:var(--muted);font-size:.83rem}
.lm-model-page .map-footer p{margin:0 0 8px}
.lm-model-page .map-footer details{border-top:1px solid var(--line);padding-top:10px}
.lm-model-page .map-footer summary{width:max-content;max-width:100%;color:var(--accent-2);font-weight:700;cursor:pointer}
.lm-model-page .map-footer details p{margin:9px 0 0;max-width:1050px}
.lm-model-page .map-footer a{color:#8cdef0}
.lm-model-page .source-error{color:#ffd28a}
@media(max-width:760px){.lm-model-page{padding:12px}
.lm-model-page .page-heading{margin-bottom:17px}
.lm-model-page .controls-grid{grid-template-columns:1fr 1fr;gap:12px;padding:13px}
.lm-model-page .control-model{grid-column:1}
.lm-model-page .control-field{grid-column:2}
.lm-model-page .mode-control{grid-column:1/-1}
.lm-model-page .time-row{grid-template-columns:auto 36px 1fr 36px 40px;gap:7px;padding:5px 13px 0}
.lm-model-page .time-label{min-width:74px}
.lm-model-page .time-label strong{font-size:1rem}
.lm-model-page .step-button,.lm-model-page .play-button{height:36px}
.lm-model-page .timeline-labels{padding:5px 14px 10px;font-size:.7rem}
.lm-model-page #map{height:auto;min-height:0;aspect-ratio:1/1}
.lm-model-page .map-shell{margin:0 auto}
.lm-model-page .map-footer{padding:11px 14px 15px}}
@media(max-width:420px){.lm-model-page .controls-grid{grid-template-columns:1fr}
.lm-model-page .control-model,.lm-model-page .control-field,.lm-model-page .mode-control{grid-column:1}
.lm-model-page .time-row{grid-template-columns:auto 32px 1fr 32px 36px;gap:5px;padding-inline:9px}
.lm-model-page .time-label{min-width:64px}
.lm-model-page .time-label .eyebrow{font-size:.59rem}
.lm-model-page .time-label strong{font-size:.94rem}
.lm-model-page .timeline-labels{padding-inline:10px}}
.lm-model-page .lm-contour-label{background:transparent!important;border:0!important;color:#17293b;font:700 12px/21px system-ui,sans-serif;text-align:center;white-space:nowrap;text-shadow:0 0 2px white,1px 1px 1px white,-1px -1px 1px white}
.lm-model-page .mode-control{grid-column:1/-1}
@media(max-width:760px){.lm-model-page .control-region,.lm-model-page .control-model,.lm-model-page .control-field{grid-column:auto}
.lm-model-page .mode-control{grid-column:1/-1}}


/* LM-COMPACT-AFRICA-V1 */
@media(min-width:761px){
.lm-model-page{padding:12px 18px}
.lm-model-page .page-heading{margin-bottom:12px}
.lm-model-page h1{font-size:1.8rem}
.lm-model-page .eyebrow{margin-bottom:3px}
.lm-model-page .intro{margin-top:4px;font-size:.85rem}
.lm-model-page .controls-grid{grid-template-columns:1.1fr 1fr 1.35fr 1fr;gap:10px;padding:10px 12px}
.lm-model-page .mode-control{grid-column:auto}
.lm-model-page .control{gap:4px;font-size:.72rem}
.lm-model-page select,.lm-model-page .segmented{height:38px;border-radius:8px;font-size:.86rem}
.lm-model-page .segmented button{font-size:.8rem}
.lm-model-page .time-row{grid-template-columns:auto 34px 1fr 34px 38px;gap:8px;padding:0 12px}
.lm-model-page .time-label{min-width:72px}
.lm-model-page .time-label strong{font-size:1rem}
.lm-model-page .step-button,.lm-model-page .play-button{height:32px}
.lm-model-page .timeline-labels{padding:3px 12px 7px;font-size:.72rem}
.lm-model-page #map{aspect-ratio:auto;height:clamp(260px,calc(100dvh - 280px),650px)}
.lm-model-page .map-footer{padding:7px 12px;font-size:.75rem}
.lm-model-page .map-footer p{margin-bottom:4px}
.lm-model-page .map-footer details{padding-top:5px}
}

/* LM-LEGEND-MOBILE-V1 */
@media(max-width:760px){
.lm-model-page .legend{
  width:150px;max-width:calc(100% - 20px);
  right:8px;bottom:20px;padding:6px 8px;
  border-radius:6px;pointer-events:none;
}
.lm-model-page .legend strong{
  margin-bottom:4px;font-size:10px;line-height:1.2;
}
.lm-model-page .legend-gradient{height:6px}
.lm-model-page .legend-values{
  margin-top:3px;font-size:9px;line-height:1.2;
}
}

/* LM-COMPACT-V2 */
.lm-model-page .legend{
  width:120px!important;max-width:calc(100% - 16px)!important;
  right:8px!important;bottom:20px!important;
  padding:4px 6px!important;border-radius:4px!important;
  pointer-events:none!important;
}
.lm-model-page .legend strong{display:none!important}
.lm-model-page .legend-gradient{height:5px!important}
.lm-model-page .legend-values{
  margin-top:2px!important;font-size:8px!important;line-height:1!important;
}
@media(min-width:761px){
.lm-model-page{padding:6px 12px!important}
.lm-model-page .page-heading{margin-bottom:6px!important}
.lm-model-page .page-heading .eyebrow,
.lm-model-page .intro{display:none!important}
.lm-model-page h1{font-size:1.35rem!important;line-height:1.15!important}
.lm-model-page .controls-grid{
  grid-template-columns:1.1fr 1fr 1.35fr 1fr!important;
  gap:8px!important;padding:7px 10px!important;
}
.lm-model-page .mode-control{grid-column:auto!important}
.lm-model-page .control{gap:3px!important;font-size:11px!important}
.lm-model-page select,.lm-model-page .segmented{
  height:32px!important;font-size:12px!important;
}
.lm-model-page .segmented button{font-size:11px!important}
.lm-model-page .time-row{padding:0 10px!important;gap:6px!important}
.lm-model-page .time-label .eyebrow{display:none!important}
.lm-model-page .time-label strong{font-size:13px!important}
.lm-model-page .step-button,.lm-model-page .play-button{height:28px!important}
.lm-model-page .timeline-labels{
  padding:2px 10px 5px!important;font-size:10px!important;
}
.lm-model-page #map{
  aspect-ratio:auto!important;
  height:max(180px,calc(100dvh - 240px))!important;
}
.lm-model-page .map-footer{
  padding:4px 10px!important;font-size:10px!important;
}
.lm-model-page .map-footer p{margin:0 0 3px!important}
.lm-model-page .map-footer details{padding-top:3px!important}
}

/* LM-LEGEND-DESKTOP-RESTORE */
@media(min-width:761px){
.lm-model-page .legend{
  width:min(270px,calc(100% - 28px))!important;
  max-width:calc(100% - 28px)!important;
  right:14px!important;bottom:18px!important;
  padding:11px 13px 9px!important;border-radius:10px!important;
}
.lm-model-page .legend strong{
  display:block!important;margin-bottom:7px!important;
  font-size:.83rem!important;
}
.lm-model-page .legend-gradient{height:11px!important}
.lm-model-page .legend-values{
  margin-top:4px!important;font-size:.72rem!important;line-height:1.45!important;
}
}


/* LM-MODELS-HEADING-AND-CLICK-V19 */
.lm-model-page .page-heading{margin:10px auto 19px!important}
.lm-model-page .page-heading h1{
  font-family:Georgia,serif!important;
  font-size:clamp(2rem,3.3vw,2.9rem)!important;
  font-weight:700!important;line-height:1.16!important;
}
.lm-model-page .page-heading .intro{
  display:block!important;margin:9px auto 0!important;
  color:#cbd9e5!important;font-size:clamp(.88rem,1.25vw,1.05rem)!important;
  line-height:1.45!important;
}
.lm-model-page .lm-value-popup .leaflet-popup-content-wrapper{
  background:#102239;color:#fff;border:1px solid #5a7d95;border-radius:10px;
  box-shadow:0 5px 17px #0007;
}
.lm-model-page .lm-value-popup .leaflet-popup-tip{background:#102239}
.lm-model-page .lm-value-popup .leaflet-popup-content{margin:9px 13px;font:13px/1.4 system-ui,sans-serif}
@media(max-width:760px){
  .lm-model-page .page-heading{margin:10px auto 15px!important}
  .lm-model-page .page-heading h1{font-size:1.9rem!important}
  .lm-model-page .page-heading .intro{padding:0 6px!important}
}

/* LM-MOBILE-SCROLL-V24.8 */
.lm-model-page .page-heading > .eyebrow{display:none!important}
@media(max-width:760px){
  .lm-model-page .legend{
    bottom:0!important;margin-bottom:0!important;
    height:auto!important;min-height:0!important;
    padding-bottom:4px!important;
  }
  .lm-model-page .legend-values{
    margin-bottom:0!important;padding-bottom:0!important;
    min-height:0!important;
  }
  .lm-model-page #map.lm-page-scroll{
    touch-action:pan-y!important;
  }
}

/* LM-SLIDER-PROGRESS-V24.9 */
.lm-model-page .viewer-card #lead{
  background:linear-gradient(
    to right,
    #25a2c7 0%,
    #25a2c7 var(--lm-progress,0%),
    #45617a var(--lm-progress,0%),
    #45617a 100%
  ) center / calc(100% - 20px) 6px no-repeat!important;
}

/* LM-SHARED-PALETTES-V24.11 */
@media(max-width:760px){
  .lm-model-page .legend{
    width:200px!important;
    max-width:calc(100% - 16px)!important;
  }
  .lm-model-page .legend-values{
    height:12px!important;font-size:9px!important;line-height:12px!important;
  }
}

/* LM-MODELS-THEME-SPACING-FONT-V24.13 */
body.page-template-lm-modelos-globais .lm-model-page {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.page-template-lm-modelos-globais .main-footer {
    --footer-mt: 0px;
    margin-top: 0 !important;
}
body.page-template-lm-modelos-globais .lm-model-page .page-heading h1 {
    font-family: var(--h-font, var(--ui-font, var(--body-font, sans-serif))) !important;
    font-weight: var(--title-fw-bold, 700) !important;
}

/* LM-MOBILE-LEGEND-ATTRIBUTION-V24.14 */
@media (max-width:760px) {
    .lm-model-page .legend {
        bottom:22px !important;
    }
}

/* LM-MODELS-EMPTY-FOOTER-V24.15 */
body:has(.lm-model-page) .lm-model-page {
    min-height:0 !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}
body:has(.lm-model-page) .main-footer {
    --footer-mt:0px;
    margin-top:0 !important;
}
body:has(.lm-model-page) .main-footer .classic-footer-upper:not(:has(.widgets > *)) {
    display:none !important;
}

/* LM-CYCLE-VALID-TOP-V25.1 */
html body .lm-model-page .viewer-card .forecast-times {
    grid-column:3!important;
    grid-row:1!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0;
    text-align:center;
    color:var(--text);
    font-weight:700;
}
html body .lm-model-page .viewer-card .forecast-times #valid-time,
html body .lm-model-page .viewer-card .forecast-times #cycle-time {
    margin:0!important;
}
@media(max-width:760px) {
    html body .lm-model-page .viewer-card .forecast-times {
        grid-column:1 / -1!important;
        grid-row:2!important;
        justify-content:space-between!important;
        align-items:baseline!important;
        margin-top:6px!important;
        gap:8px!important;
        font-size:10px!important;
    }
    html body .lm-model-page .viewer-card .forecast-times #cycle-time {
        flex:0 0 auto;
        text-align:left!important;
        white-space:nowrap;
    }
    html body .lm-model-page .viewer-card .forecast-times #valid-time {
        min-width:0;
        text-align:right!important;
    }
    html body .lm-model-page .viewer-card .forecast-time-separator {
        display:none!important;
    }
}


/* LM-MODELS-LIGHT-DARK-V46 */
html body:has(.lm-model-page){
  --lm-model-page-bg:var(--c-main-bg,#ffffff);
  background:var(--lm-model-page-bg)!important;
}
html:is(.s-dark,.site-s-dark,[data-theme="dark"]) body:has(.lm-model-page),
html body:is(.s-dark,.site-s-dark,[data-theme="dark"]):has(.lm-model-page){
  --lm-model-page-bg:#0e1a2f;
}
html:has(.lm-model-page){
  background:var(--c-main-bg,#ffffff)!important;
}
html:is(.s-dark,.site-s-dark,[data-theme="dark"]):has(.lm-model-page),
html:has(body:is(.s-dark,.site-s-dark,[data-theme="dark"]) .lm-model-page){
  background:#0e1a2f!important;
}
html body:has(.lm-model-page) :is(.main-wrap,.main,.content-wrap){
  background:var(--lm-model-page-bg)!important;
  background-image:none!important;
}

html body .lm-model-page{
  color-scheme:light;
  --bg:var(--lm-model-page-bg,var(--c-main-bg,#ffffff));
  --surface:#ffffff;
  --surface-2:#f1f5f9;
  --line:#c4d0dc;
  --text:#17293b;
  --muted:#506174;
  --accent:#087f99;
  --accent-2:#087f99;
  --shadow:0 10px 30px #17293b14;
  --lm-on-accent:#ffffff;
  --lm-overlay:#fffffff2;
  --lm-popup:#ffffff;
  --lm-thumb:#087f99;
  --lm-error:#92500c;
  background:var(--bg)!important;
  color:var(--text)!important;
}
html:is(.s-dark,.site-s-dark,[data-theme="dark"]) .lm-model-page,
html body:is(.s-dark,.site-s-dark,[data-theme="dark"]) .lm-model-page{
  color-scheme:dark;
  --surface:#172940;
  --surface-2:#203950;
  --line:#35506a;
  --text:#edf4fb;
  --muted:#a9bbca;
  --accent:#25a2c7;
  --accent-2:#65d4d2;
  --shadow:0 14px 38px #0003;
  --lm-on-accent:#062133;
  --lm-overlay:#14253be8;
  --lm-popup:#102239;
  --lm-thumb:#ffffff;
  --lm-error:#ffd28a;
}

html body .lm-model-page .viewer-card{
  border-color:var(--line)!important;
}
html body .lm-model-page .page-heading :is(h1,.intro){
  color:var(--text)!important;
}
html body .lm-model-page .page-heading .intro{
  color:var(--muted)!important;
}
html body .lm-model-page select option{
  background:var(--surface);
  color:var(--text);
}
html body .lm-model-page .segmented button[aria-pressed="true"],
html body .lm-model-page .play-button{
  color:var(--lm-on-accent)!important;
}
html body .lm-model-page .map-shell{
  border-color:var(--line)!important;
}
html body .lm-model-page :is(.legend,.map-status){
  background:var(--lm-overlay)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html body .lm-model-page .legend-gradient{
  border-color:var(--line)!important;
}
html body .lm-model-page .legend-values{
  color:var(--muted)!important;
}
html body .lm-model-page .map-footer a{
  color:var(--accent-2)!important;
}
html body .lm-model-page .source-error{
  color:var(--lm-error)!important;
}
html body .lm-model-page .lm-value-popup .leaflet-popup-content-wrapper{
  background:var(--lm-popup)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow)!important;
}
html body .lm-model-page .lm-value-popup .leaflet-popup-tip{
  background:var(--lm-popup)!important;
}
html body .lm-model-page .viewer-card #lead{
  background:linear-gradient(
    to right,
    var(--accent-2) 0%,
    var(--accent-2) var(--lm-progress,0%),
    var(--line) var(--lm-progress,0%),
    var(--line) 100%
  ) center / calc(100% - 20px) 6px no-repeat!important;
}
html body .lm-model-page .viewer-card #lead::-webkit-slider-thumb{
  background:var(--lm-thumb)!important;
}
html body .lm-model-page .viewer-card #lead::-moz-range-thumb{
  background:var(--lm-thumb)!important;
}
