/* RadarČeska WX332 R1 – targeted polish of WX331 (Živě/Aktuálně only) */
.rc-wx331-card,
.rc-wx331-card * { box-sizing:border-box; }
.rc-wx331-card {
  position:relative;
  min-width:0;
  border-radius:17px;
  transition:max-height .18s ease;
  padding-right:max(12px, env(safe-area-inset-right));
}
.rc-wx331-card .rc-wx331-toggle {
  position:absolute!important;
  z-index:5;
  top:12px;
  right:12px;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  max-width:30px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #d3e7f3!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.88)!important;
  color:#195776!important;
  box-shadow:none!important;
  cursor:pointer;
  touch-action:manipulation;
  font-size:0!important;
  line-height:0!important;
}
.rc-wx331-card .rc-wx331-toggle::after {
  content:"";
  display:block;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(2px) rotate(225deg);
  transition:transform .18s ease;
}
.rc-wx331-card.rc-wx331-is-collapsed .rc-wx331-toggle::after { transform:translateY(-2px) rotate(45deg); }
.rc-wx331-card .rc-wx331-toggle:hover { background:#f1fbff!important;border-color:#94cee9!important; }
.rc-wx331-card .rc-wx331-toggle:focus-visible {outline:3px solid #36a3db!important;outline-offset:2px;}
.rc-wx331-card .rc-wx331-toggle:is(:active) {background:#e1f4fd!important;}
.rc-wx331-card.rc-wx331-is-collapsed {
  max-height:var(--rc-wx331-closed-height,68px)!important;
  overflow:hidden!important;
}
.rc-wx331-card .rc-wx331-original-hidden { display:none!important; }
/* Respect readable title even with a compact arrow button. */
.rc-wx331-card .rc-wx331-heading {padding-right:42px;}
.rc-wx331-card .rc-wx331-summary {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:39px;
  border:1px solid #cce6f5;
  background:#f7fbfe;
  border-radius:11px;
  color:#164a6b;
  padding:8px 10px;
  margin:8px 0 7px;
  font-size:12px;
  font-weight:750;
  line-height:1.4;
}
.rc-wx331-card .rc-wx331-summary::before {content:"";display:inline-block;width:13px;height:16px;flex:0 0 13px;background:linear-gradient(135deg,#78c5ff,#168ed7);clip-path:path("M 6.5 0 C 4.1 3.2 0 8.6 0 11.2 C 0 14.5 2.9 16 6.5 16 C 10.1 16 13 14.5 13 11.2 C 13 8.6 8.9 3.2 6.5 0 Z");}
/* The original four cards are hidden only after successful read/parse. */
.rc-wx331-card .rc-wx331-strip {
  width:100%;
  min-width:0;
  margin:10px 0 12px;
}
.rc-wx331-card .rc-wx331-points {
  display:grid;
  grid-template-columns:repeat(var(--rc-wx332-columns,4),minmax(0,1fr));
  background:#fff;
  border:1px solid #e4edf3;
  border-radius:13px;
  overflow:hidden;
}
.rc-wx331-card .rc-wx331-point {
  min-width:0;
  min-height:122px;
  text-align:center;
  padding:9px 3px 7px;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  overflow:hidden;
}
.rc-wx331-card .rc-wx331-point + .rc-wx331-point { border-left:1px solid #e6edf3; }
.rc-wx331-card .rc-wx331-point-now {background:#eaf9f7;}
.rc-wx331-card .rc-wx331-when {
  color:#164b6b;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}
.rc-wx331-card .rc-wx331-clock {
  color:#62849c;
  font-size:10px;
  margin-top:2px;
  line-height:1.2;
}
.rc-wx331-card .rc-wx331-meter {
  display:flex;
  flex:1;
  align-items:flex-end;
  justify-content:center;
  gap:2px;
  height:36px;
  min-height:36px;
  max-height:36px;
  width:100%;
  margin:5px 0 4px;
}
.rc-wx331-card .rc-wx331-bar {
  display:block;
  flex:0 1 6px;
  width:6px;
  height:var(--rc-wx331-bar-height,14px);
  min-width:2px;
  border-radius:99px;
  background:#d6e9f6;
}
.rc-wx331-card .rc-wx331-bar-on {background:linear-gradient(0deg,#2b93eb,#28b4e8);}
.rc-wx331-card .rc-wx331-bar-strong {background:linear-gradient(0deg,#0aafb3,#0ebf98);}
.rc-wx331-card .rc-wx331-status {
  color:#173e62;
  font-size:10px;
  font-weight:750;
  line-height:1.25;
  min-height:25px;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:auto;
  padding:0 2px;
}
.rc-wx331-card .rc-wx331-rate {
  color:#6c8aa2;
  font-size:10px;
  line-height:1.2;
  margin-top:2px;
  white-space:nowrap;
  max-width:100%;
}
.rc-wx331-card .rc-wx331-legend {
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:space-between;
  color:#708aa0;
  font-size:10px;
  margin:8px 2px 0;
  white-space:nowrap;
}
.rc-wx331-card .rc-wx331-legend-bar {
  height:5px;
  flex:1;
  max-width:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#d5edff 0%,#55b4f5 42%,#0e9fc9 70%,#0db789 100%);
}
@media(max-width:400px) {
  .rc-wx331-card .rc-wx331-point {padding-left:1px;padding-right:1px;}
  .rc-wx331-card .rc-wx331-status {font-size:9px;}
  .rc-wx331-card .rc-wx331-when {font-size:11px;}
  .rc-wx331-card .rc-wx331-meter {gap:1px;}
  .rc-wx331-card .rc-wx331-bar {flex-basis:4px;}
}
@media(max-width:340px) {
  .rc-wx331-card .rc-wx331-points { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rc-wx331-card .rc-wx331-point { min-height:108px; }
  .rc-wx331-card .rc-wx331-point:nth-child(3) {border-left:0;border-top:1px solid #e6edf3;}
  .rc-wx331-card .rc-wx331-point:nth-child(4) {border-top:1px solid #e6edf3;}
}
@media(prefers-reduced-motion:reduce) {
  .rc-wx331-card {transition:none!important;}
  .rc-wx331-card .rc-wx331-toggle::after {transition:none!important;}
}

/* WX332: distinguish radar echo classes (labels come from live source). */
.rc-wx331-card .rc-wx332-point-weak .rc-wx331-bar-on {
  background:linear-gradient(0deg,#70b8f7,#4ec6f4);
}
.rc-wx331-card .rc-wx332-point-medium .rc-wx331-bar-on {
  background:linear-gradient(0deg,#2a94e1,#23b8ed);
}
.rc-wx331-card .rc-wx332-point-strong .rc-wx331-bar-on {
  background:linear-gradient(0deg,#0d98d1,#0dbca9);
}
.rc-wx331-card .rc-wx332-point-strong .rc-wx331-bar-strong {
  background:linear-gradient(0deg,#0bafaf,#12bb92);
}
.rc-wx331-card .rc-wx332-point-weak .rc-wx331-status {color:#47718c;}
.rc-wx331-card .rc-wx332-point-strong .rc-wx331-status {color:#0c597b;}
/* Dry mode: keep full locally reported text visible, away from the toggle. */
.rc-wx331-card.rc-wx331-is-collapsed .rc-wx332-dry-teaser {
  display:block;
  max-width:calc(100% - 38px);
  overflow-wrap:anywhere;
}
@media(max-width:600px) {
  .rc-wx331-card .rc-wx331-strip {margin:8px 0 10px;}
  .rc-wx331-card .rc-wx331-point {min-height:114px;padding-top:8px;padding-bottom:7px;}
  .rc-wx331-card .rc-wx331-meter {height:32px;min-height:32px;max-height:32px;margin:3px 0 3px;}
  .rc-wx331-card .rc-wx331-legend {margin-top:7px;}
  .rc-wx331-card .rc-wx331-summary {padding-top:7px;padding-bottom:7px;}
}
@media(max-width:340px) {
  .rc-wx331-card .rc-wx331-points[data-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
  .rc-wx331-card .rc-wx331-point:nth-child(3):last-child {border-top:0;border-left:1px solid #e6edf3;}
}
