/* RadarČeska R65ES · WX321/WX328 visual-only polish.
   CSS scoped to the existing shared card; never changes data or evidence.
   Requires R65EL preview. No external assets; no JS event handlers. */

/* Smaller *visual* close affordance; retain a comfortably sized hit area. */
html body #placeCard.wx321-on #wx321-live button.wx321-close {
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  appearance:none!important;
  box-sizing:border-box!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  flex:0 0 44px!important;
  padding:0!important;
  margin:-6px -6px 0 0!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
html body #placeCard.wx321-on #wx321-live button.wx321-close::before {
  content:'×';
  display:grid;
  place-items:center;
  box-sizing:border-box;
  width:29px;
  height:29px;
  border:1px solid #dae7ef;
  border-radius:10px;
  background:#f8fbfd;
  color:#6b869c;
  font:400 17px/1 system-ui,-apple-system,'Segoe UI',sans-serif;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
html body #placeCard.wx321-on #wx321-live button.wx321-close:hover::before {
  background:#edf6fa;
  border-color:#bfdbe9;
  color:#29577b;
}

/* Smaller chevron within a 44px accessible target. The live WC328
   button remains the *same element* with unchanged click/ARIA behavior. */
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-top {
  position:relative!important;
  box-sizing:border-box!important;
  padding-right:43px!important;
  min-height:42px!important;
  align-items:center!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle {
  position:absolute!important;
  top:-3px!important;
  right:-5px!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle[hidden] {
  display:none!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::before {
  content:'';
  position:absolute;
  width:29px;
  height:29px;
  left:7px;
  top:7px;
  box-sizing:border-box;
  border:1px solid #d7e7ef;
  border-radius:10px;
  background:#fff;
  transition:background-color .16s ease,border-color .16s ease;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::after {
  content:'';
  position:absolute;
  left:20px;
  top:19px;
  width:7px;
  height:7px;
  box-sizing:border-box;
  border-right:1.8px solid #4e7590;
  border-bottom:1.8px solid #4e7590;
  transform:rotate(45deg);
  transition:transform .16s ease;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle[aria-expanded="true"]::after {
  transform:rotate(225deg);
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle:hover::before {
  background:#f2fafb;
  border-color:#c4dce9;
}

/* Preserve whole collapsed summary; do not mask meteorological uncertainty. */
html body #placeCard.wx321-on #wx321-live .wx321-radar.wx328-collapsed {
  align-items:stretch!important;
  padding-bottom:11px!important;
  overflow:visible!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar.wx328-collapsed .wx328-summary:not([hidden]) {
  display:block!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  line-height:1.42!important;
  margin-top:4px!important;
  padding-bottom:2px!important;
  color:#597c93!important;
}

/* More restrained, consistent border and timeline hierarchy. */
html body #placeCard.wx321-on #wx321-live .wx321-radar {
  border-color:#dcebef!important;
  border-radius:13px!important;
  box-shadow:0 1px 3px rgba(16,66,91,.025);
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-head {
  letter-spacing:-.08px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step {
  border-radius:10px!important;
  border-color:#e0eaf0!important;
  background:rgba(255,255,255,.82)!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step.is-now {
  background:#f0faf8!important;
  border-color:#b9e5dc!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step strong {
  color:#38647e!important;
  font-weight:700!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
html body #placeCard.wx321-on #wx321-live .wx323-technical summary {
  display:list-item;
  padding:5px 0!important;
  min-height:28px;
  box-sizing:border-box;
  color:#4d829b!important;
  text-underline-offset:3px!important;
}

@media (max-width:700px) {
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-top>strong {
    line-height:1.28!important;
    letter-spacing:-.2px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx328-summary {
    font-size:10px!important;
    line-height:1.42!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step strong {
    font-size:9.3px!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  html body #placeCard.wx321-on #wx321-live button.wx321-close::before,
  html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::before,
  html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::after {
    transition:none!important;
  }
}


/* R65EZ: selected-city precipitation provenance and compact truthful graphs. */
html body #placeCard.wx321-on #wx321-live .wx321-metric[data-type="rain"] {
  min-height:56px!important;
  overflow:visible!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-metric[data-type="rain"] > div {
  min-width:0!important;
  overflow:visible!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-metric[data-type="rain"] :is(strong,.wx321-metric-value,.wx322-rate) {
  display:block;
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  line-height:1.24!important;
  font-size:10px!important;
  font-weight:780!important;
  letter-spacing:-.12px!important;
  font-variant-numeric:tabular-nums;
}
/* The measured point-cube mini-series: bar length is proportional to mm/h
   within this single displayed series, never to a wet/dry icon class. */
html body #placeCard.wx321-on #wx321-live .wx322-steps {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:5px!important;
  margin-top:8px!important;
}
html body #placeCard.wx321-on #wx321-live .wx322-step {
  min-width:0!important;
  min-height:90px;
  padding:8px 3px 7px!important;
  gap:4px!important;
  border:1px solid #e1ebf2!important;
  border-radius:12px!important;
  background:#fafdff!important;
  justify-content:space-between;
  box-shadow:none!important;
  font-variant-numeric:tabular-nums;
}
html body #placeCard.wx321-on #wx321-live .wx322-step.is-now {
  background:#eaf9f6!important;
  border-color:#a9dfd6!important;
}
html body #placeCard.wx321-on #wx321-live .wx322-step b {
  color:#2e5973!important;
  font-weight:790!important;
  font-size:10px!important;
}
html body #placeCard.wx321-on #wx321-live .wx322-step strong {
  color:#234a65!important;
  line-height:1.24!important;
  min-height:2.4em;
  font-size:9.2px!important;
  font-weight:680!important;
  overflow-wrap:break-word!important;
  white-space:normal!important;
}
html body #placeCard.wx321-on #wx321-live .wx322-step em {
  color:#326c88!important;
  font-size:9.5px!important;
  font-weight:700!important;
  white-space:normal!important;
}
html body #placeCard.wx321-on #wx321-live .wx322-intensity-track {
  display:block;
  height:5px;
  width:86%;
  background:#e4edf2;
  border-radius:999px;
  overflow:hidden;
  margin-top:1px;
}
html body #placeCard.wx321-on #wx321-live .wx322-intensity-fill {
  display:block;
  height:100%;
  border-radius:999px;
  background:#15a69b;
}
html body #placeCard.wx321-on #wx321-live .wx322-note {
  color:#6c8899!important;
  font-size:9px!important;
  line-height:1.45!important;
  margin-top:5px;
}
/* Preserve the established RadarCeska hourly layout, only polish readability. */
html body #placeCard.wx321-on #wx321-live .wx321-hours {gap:6px!important;overscroll-behavior-x:contain;}
html body #placeCard.wx321-on #wx321-live .wx321-hour {
  background:#fbfdff!important;
  border-color:#e2edf4!important;
  border-radius:11px!important;
  min-height:78px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-hour:first-child {background:#f2fafb!important;border-color:#d2e9eb!important;}
html body #placeCard.wx321-on #wx321-live .wx321-hour strong {font-weight:800!important;font-variant-numeric:tabular-nums;}
html body #placeCard.wx321-on #wx321-live .wx321-hour em {white-space:normal!important;line-height:1.25!important;font-size:9px!important;}
@media(max-width:359px){
  html body #placeCard.wx321-on #wx321-live .wx322-steps {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body #placeCard.wx321-on #wx321-live .wx322-step {min-height:82px;}
  html body #placeCard.wx321-on #wx321-live .wx321-metric[data-type="rain"] :is(strong,.wx321-metric-value,.wx322-rate){font-size:9.2px!important;}
}
@media(prefers-reduced-motion:reduce){
  html body #placeCard.wx321-on #wx321-live .wx322-intensity-fill {transition:none!important;}
}

/* R65EZI — compact, restrained UI polish after mobile video review, 2026-11-17.
   PRESENTATION ONLY. No forecast/radar/PointCube values, API or event handlers.
   The full-size interactive targets are intentional even where the visible
   affordance is small. Scoped to WX321 and inherited R65EZH preview. */

/* Sharpen the overall radar hierarchy without shrinking critical measurements. */
html body #placeCard.wx321-on #wx321-live .wx321-radar {
  border-radius:12px!important;
  border-color:#dbe9ee!important;
  box-shadow:0 1px 2px rgba(22,70,91,.02)!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-top>strong {
  font-size:12px!important;
  font-weight:770!important;
  letter-spacing:-.18px!important;
  line-height:1.2!important;
}
/* Full 44px pointer/keyboard target; the visible button is just 24px. */
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle {
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  border-radius:12px!important;
  touch-action:manipulation;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::before {
  top:10px!important;left:10px!important;width:24px!important;height:24px!important;
  border-radius:8px!important;border-color:#dce8ec!important;
  background:#fff!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::after {
  left:19px!important;top:18px!important;width:6px!important;height:6px!important;
  border-right-width:1.5px!important;border-bottom-width:1.5px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle:focus-visible {
  outline:2px solid #248be6!important;outline-offset:1px!important;
}
/* The popup's close icon is equally discreet, but still 44px tappable. */
html body #placeCard.wx321-on #wx321-live button.wx321-close::before {
  width:25px!important;height:25px!important;border-radius:8px!important;
  font-size:15px!important;border-color:#dce8ec!important;
}
/* Collapsed state should be a short status card, not a second large panel. */
html body #placeCard.wx321-on #wx321-live .wx321-radar.wx328-collapsed {
  padding-top:7px!important;padding-bottom:7px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar.wx328-collapsed .wx328-summary:not([hidden]) {
  margin-top:0!important;padding:0 0 1px!important;
  font-size:9.6px!important;line-height:1.35!important;
  font-weight:450!important;
}
/* Expanded PointCube evidence: four short chips even on 320px screens. */
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-box {
  gap:3px!important;margin-top:3px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-head {
  font-size:10.8px!important;line-height:1.25!important;font-weight:750!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-desc {
  font-size:9.5px!important;line-height:1.33!important;margin-top:2px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-steps {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:4px!important;margin-top:5px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step {
  min-height:66px!important;
  padding:5px 3px 5px!important;
  gap:2px!important;
  border-radius:9px!important;
  justify-content:space-between;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step b {
  font-size:9.4px!important;font-weight:750!important;line-height:1.2!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step strong {
  font-size:8.8px!important;min-height:auto!important;
  line-height:1.22!important;letter-spacing:-.1px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step em {
  font-size:8.8px!important;line-height:1.15!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-intensity-track {
  height:4px!important;margin-top:1px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-note {
  font-size:8.6px!important;line-height:1.35!important;margin-top:3px!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-radar .wx323-technical summary {
  padding:3px 0!important;min-height:24px!important;font-size:9px!important;
}

/* Optional second view: only suppress the WX325 compact row if the existing
   WX332 visual timeline has its own *visible* timeline INSIDE the same radar.
   This avoids two repeated four-step rows. When no WX332 widget exists, all
   four WX325 steps remain visible and their data are never deleted. */
html body #placeCard.wx321-on #wx321-live .wx321-radar.wx322-ready:has(
  :is([class*="wx332"],[id*="wx332"]):not([hidden])
) .wx322-steps {
  display:none!important;
}

/* The hourly forecast and six measured fields should breathe, not dominate. */
html body #placeCard.wx321-on #wx321-live .wx321-metric {
  border-radius:10px!important;
  box-shadow:none!important;
}
html body #placeCard.wx321-on #wx321-live .wx321-hour {
  border-radius:9px!important;
  box-shadow:none!important;
}

@media(max-width:700px) {
  html body #placeCard.wx321-on #wx321-live {
    gap:7px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar {
    padding:7px 9px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-top {
    min-height:34px!important;
    padding-left:29px!important;
    padding-right:38px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-top>strong {
    font-size:11.5px!important;
    letter-spacing:-.16px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx321-radar-icon {
    width:24px!important;height:24px!important;
    min-width:24px!important;max-width:24px!important;
    top:10px!important;left:9px!important;border-radius:8px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle {
    top:-5px!important;right:-7px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar.wx328-collapsed .wx328-summary:not([hidden]) {
    font-size:9.2px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-head {
    font-size:10.5px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-desc {
    font-size:9.2px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step {
    min-height:65px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-hour {
    min-height:68px!important;padding:6px 3px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-hour strong {
    font-size:11.5px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-metric {
    min-height:48px!important;padding:6px!important;
  }
}
@media(max-width:359px) {
  /* Previous R65EZ CSS used two columns here and doubled radar height. */
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-steps {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:3px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step {
    min-height:68px!important;padding:5px 2px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step strong {
    font-size:8px!important;
  }
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step b,
  html body #placeCard.wx321-on #wx321-live .wx321-radar .wx322-step em {
    font-size:8.3px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
 html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::before,
 html body #placeCard.wx321-on #wx321-live .wx321-radar button.wx328-toggle::after {transition:none!important;}
}
