/* Keep the approved weather design inside its existing featured news slot. */
#km-headlines-world #km-weather-lead,
#km-headlines-world #km-weather-lead * { box-sizing: border-box; }
#km-headlines-world #km-weather-lead { min-width: 0; }
#km-headlines-world #km-weather-lead .km-weather-panel {
  --kw-pink: #ff32d5;
  --kw-purple: #b75aff;
  --kw-white: #fff9ff;
  --kw-muted: #d4c3dc;
  container: km-weather-panel / inline-size;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 25px 26px 20px;
  color: var(--kw-white);
  background:
    radial-gradient(ellipse at 95% 15%, #9427e62b, transparent 48%),
    radial-gradient(ellipse at 0 48%, #ef2b9b19, transparent 55%), #08040d;
  border: 1px solid #c843ec;
  border-top: 3px solid var(--kw-pink);
  border-radius: 0;
  box-shadow: 0 0 10px #ef29d52b, 0 0 34px #8c39f02b, inset 0 0 35px #7b28800e;
  text-align: left;
  font: 400 15px/1.45 Arial, Helvetica, sans-serif;
}
#km-headlines-world #km-weather-lead :where(p, h2, h3, dl, dd, ul) { margin: 0; padding: 0; }
#km-headlines-world #km-weather-lead .km-weather-eyebrow {
  margin-bottom: 22px;
  color: #e7ccec;
  font: 400 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  text-align: center;
}
#km-headlines-world #km-weather-lead .km-weather-heading-row { display: block; margin: 0; }
#km-headlines-world #km-weather-lead .km-weather-heading-row::after {
  content: "";
  display: block;
  height: 2px;
  margin: 22px 0;
  background: linear-gradient(90deg, transparent, var(--kw-purple) 20%, #ff45d5 54%, var(--kw-purple) 80%, transparent);
  box-shadow: 0 0 11px #c83dff80;
}
#km-headlines-world #km-weather-lead .km-weather-heading {
  color: #fff5fc;
  background: none;
  font: 700 25px/1.2 Georgia, serif;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}
#km-headlines-world #km-weather-lead .km-weather-brand { display: block; }
#km-headlines-world #km-weather-lead .km-weather-heading-title {
  display: block;
  margin-top: 7px;
  color: var(--kw-pink);
  font: 700 clamp(34px, 8vw, 49px)/1.05 Georgia, serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 9px #ff32d56b, 0 0 28px #bd37ed3d;
}
#km-headlines-world #km-weather-lead .km-weather-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#km-headlines-world #km-weather-lead .km-weather-location-copy { min-width: 0; }
#km-headlines-world #km-weather-lead .km-weather-location {
  color: #fff;
  font: 500 20px/1.25 Arial, Helvetica, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
#km-headlines-world #km-weather-lead .km-weather-location-detail {
  margin-top: 5px;
  color: var(--kw-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#km-headlines-world #km-weather-lead button {
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  min-height: 36px;
}
#km-headlines-world #km-weather-lead .km-weather-units {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  background: #1c0d25;
  border: 1px solid #6f3981;
}
#km-headlines-world #km-weather-lead .km-weather-units button {
  width: 36px;
  padding: 6px;
  background: transparent;
  color: #decae6;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
#km-headlines-world #km-weather-lead .km-weather-units button[aria-pressed="true"] {
  color: #fff;
  background: #8e267d;
}
#km-headlines-world #km-weather-lead .km-weather-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 23px 0 6px;
}
#km-headlines-world #km-weather-lead .km-weather-temperature {
  min-width: 0;
  color: #fff;
  font: 400 clamp(76px, 16vw, 108px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: -7px;
  white-space: nowrap;
}
#km-headlines-world #km-weather-lead .km-weather-condition-icon {
  display: grid;
  place-items: center;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  color: #e2a3ff;
  filter: drop-shadow(0 0 14px #bb43ff7d);
}
#km-headlines-world #km-weather-lead svg { display: block; max-width: 100%; height: auto; }
#km-headlines-world #km-weather-lead .km-weather-condition-icon svg { width: 96px; height: 96px; }
#km-headlines-world #km-weather-lead .km-weather-condition { color: #f6e7ff; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
#km-headlines-world #km-weather-lead .km-weather-range { margin-top: 6px; color: var(--kw-muted); font-size: 13px; line-height: 1.5; }
#km-headlines-world #km-weather-lead .km-weather-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 17px 0;
  border-block: 1px solid #69346a80;
}
#km-headlines-world #km-weather-lead .km-weather-stats > div { min-width: 0; }
#km-headlines-world #km-weather-lead .km-weather-stats dt {
  margin: 0 0 6px;
  color: var(--kw-muted);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#km-headlines-world #km-weather-lead .km-weather-stats dd { color: #fff; font-size: 18px; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; }
#km-headlines-world #km-weather-lead .km-weather-forecast-heading {
  margin: 23px 0 14px;
  color: #e9cbfa;
  font: 500 12px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
#km-headlines-world #km-weather-lead .km-weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}
#km-headlines-world #km-weather-lead .km-weather-forecast > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 12px 6px;
  background: #190d23;
  border: 0;
  border-bottom: 2px solid #7730a0;
  text-align: center;
}
#km-headlines-world #km-weather-lead .km-weather-forecast > li:first-child { background: #251024; border-bottom-color: var(--kw-pink); }
#km-headlines-world #km-weather-lead .km-weather-day { order: 0; margin-bottom: 9px; color: #eadbed; font-size: 12px; line-height: 1.4; }
#km-headlines-world #km-weather-lead .km-weather-day-icon {
  display: flex;
  order: 1;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  margin-bottom: 10px;
  color: #ce90f6;
}
#km-headlines-world #km-weather-lead .km-weather-day-icon svg { width: 27px; height: 27px; }
#km-headlines-world #km-weather-lead .km-weather-day-temperatures {
  display: flex;
  order: 2;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 5px;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.4;
}
#km-headlines-world #km-weather-lead .km-weather-day-temperatures strong { color: #fff; font-weight: 700; white-space: nowrap; }
#km-headlines-world #km-weather-lead .km-weather-day-temperatures > span { color: #c1aacb; white-space: nowrap; }
#km-headlines-world #km-weather-lead .km-weather-rain { order: 3; margin-top: 5px; color: #d1b3ea; font-size: 11px; line-height: 1.4; }
#km-headlines-world #km-weather-lead .km-weather-updated { margin-top: 9px; color: var(--kw-muted); font-size: 11px; line-height: 1.5; }
#km-headlines-world #km-weather-lead .km-weather-use-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 24px 0 11px;
  padding: 11px 10px;
  background: linear-gradient(115deg, #a41787, #8c2cc1);
  border: 1px solid #f158db;
  box-shadow: 0 0 13px #df37d027;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
#km-headlines-world #km-weather-lead .km-weather-use-location::before { content: "⌖"; flex: none; font-size: 19px; line-height: 1; }
#km-headlines-world #km-weather-lead .km-weather-use-location:hover { background: linear-gradient(115deg, #b51d98, #9b35d2); }
#km-headlines-world #km-weather-lead .km-weather-search { display: flex; gap: 7px; margin: 0; }
#km-headlines-world #km-weather-lead input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #703b7f;
  border-radius: 0;
  background: #100816;
  box-shadow: none;
  color: #fff;
  font: 400 16px/1.4 Arial, Helvetica, sans-serif;
}
#km-headlines-world #km-weather-lead input[type="search"]::placeholder { color: #c6accf; opacity: 1; }
#km-headlines-world #km-weather-lead .km-weather-search-button {
  flex: none;
  min-width: 52px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid #703b7f;
  background: #281230;
  color: #f9dbff;
  font-size: 13px;
  line-height: 1.4;
}
#km-headlines-world #km-weather-lead .km-weather-search-button:hover { background: #3c1a46; }
#km-headlines-world #km-weather-lead .km-weather-results { max-height: 235px; overflow-y: auto; list-style: none; border: 1px solid #703b7f; border-top: 0; background: #110919; }
#km-headlines-world #km-weather-lead .km-weather-results > li { margin: 0; padding: 0; }
#km-headlines-world #km-weather-lead .km-weather-results button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid #703b7f55;
  text-align: left;
  background: transparent;
  color: #f6eef7;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#km-headlines-world #km-weather-lead .km-weather-results button:hover { background: #2b1232; }
#km-headlines-world #km-weather-lead .km-weather-status { margin-top: 10px; color: #efc2e7; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#km-headlines-world #km-weather-lead .km-weather-status:empty { display: none; }
#km-headlines-world #km-weather-lead .km-weather-credit { margin-top: 18px; color: #d4bfdc; text-align: center; font-size: 11px; line-height: 1.5; }
#km-headlines-world #km-weather-lead .km-weather-credit a { color: #eda8e3; text-decoration: underline; text-underline-offset: 2px; }
#km-headlines-world #km-weather-lead .km-weather-disclaimer { margin-top: 8px; color: #c5b4cf; text-align: center; font-size: 11px; line-height: 1.5; }
#km-headlines-world #km-weather-lead .km-weather-official { margin-top: 10px; text-align: center; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#km-headlines-world #km-weather-lead .km-weather-official a { color: #ff69d6; text-decoration: underline; text-underline-offset: 3px; }
#km-headlines-world #km-weather-lead .km-weather-official a:is(:hover, :focus-visible) { color: #ff9be4; text-shadow: 0 0 8px #b34dff, 0 0 16px #9228d8; }
#km-headlines-world #km-weather-lead :is(button, input, a):focus-visible { outline: 2px solid #ff8de2; outline-offset: 3px; }
#km-headlines-world #km-weather-lead .km-weather-results button:focus-visible { outline-offset: -3px; }
#km-headlines-world #km-weather-lead button:disabled { opacity: .55; cursor: wait; }
#km-headlines-world #km-weather-lead [hidden] { display: none !important; }
#km-headlines-world #km-weather-lead :is(.km-weather-day-condition, .km-weather-sr-only) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Narrow feature columns and small phones keep every value and control usable. */
@container km-weather-panel (max-width: 310px) {
  #km-headlines-world #km-weather-lead .km-weather-temperature { font-size: clamp(60px, 26cqi, 80px); letter-spacing: -5px; }
  #km-headlines-world #km-weather-lead .km-weather-condition-icon { flex-basis: 90px; width: 90px; height: 100px; }
  #km-headlines-world #km-weather-lead .km-weather-condition-icon svg { width: 84px; height: 84px; }
  #km-headlines-world #km-weather-lead .km-weather-stats dd { font-size: 16px; }
}
@media (max-width: 370px) {
  #km-headlines-world #km-weather-lead .km-weather-panel { padding: 21px 18px 18px; }
  #km-headlines-world #km-weather-lead .km-weather-heading { font-size: 22px; }
  #km-headlines-world #km-weather-lead .km-weather-heading-title { letter-spacing: 2px; }
  #km-headlines-world #km-weather-lead .km-weather-location { font-size: 18px; }
  #km-headlines-world #km-weather-lead .km-weather-condition-icon { flex-basis: 90px; width: 90px; height: 100px; }
  #km-headlines-world #km-weather-lead .km-weather-condition-icon svg { width: 84px; height: 84px; }
  #km-headlines-world #km-weather-lead .km-weather-stats dd { font-size: 16px; }
  #km-headlines-world #km-weather-lead .km-weather-units button { width: 32px; }
}
@media (pointer: coarse) {
  #km-headlines-world #km-weather-lead .km-weather-units button { min-height: 44px; width: 40px; }
}
