:root {
  --widget-text: #15314a;
  --widget-bg: #f1f7fc;
  --widget-line: #b9d3e7;
  --widget-hover: #e6f2fc;
  --widget-focus: #176dab;
}
:root[data-theme="dark"] {
  --widget-text: #e4eff8;
  --widget-bg: #122436;
  --widget-line: #3b566d;
  --widget-hover: #1b334a;
  --widget-focus: #8cd2ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.4 system-ui,
    sans-serif;
  color: var(--widget-text);
  background: var(--widget-bg);
}
a {
  display: block;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--widget-line);
  border-radius: 10px;
}
a:hover {
  background: var(--widget-hover);
}
a:focus-visible {
  outline: 3px solid var(--widget-focus);
  outline-offset: -3px;
}
.heading,
.credit {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.heading strong {
  font-size: 16px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0;
}
.day {
  text-align: center;
  border-right: 1px solid var(--widget-line);
}
.day:last-child {
  border: 0;
}
.day span,
.day strong {
  display: block;
}
.icon {
  font-size: 20px;
}
.day small {
  font-size: 12px;
}
.credit,
p {
  font-size: 12px;
  margin: 4px 0;
}
.credit b {
  font-weight: 600;
}
@media (max-width: 450px) {
  a {
    padding: 8px 5px;
  }
  .days {
    gap: 1px;
  }
  .day {
    font-size: 12px;
  }
  .day small {
    font-size: 11px;
  }
  .credit {
    gap: 2px;
  }
}

body {
  text-align: center;
}
.heading,
.credit {
  justify-content: center;
}

.weather-flags,
.xw-flags {
  font-size: 15px;
  line-height: 1.3;
  min-height: 20px;
}

.widget-wind {
  display: block;
  white-space: nowrap;
  line-height: 1.5;
}
