:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #030d1a;
  color: #f8faff;
  --yellow: #ffca28;
  --reference: url("dabas-idojaras-hatter.png");
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
p, h1, h2, h3, dl, dd { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.frame {
  position: relative;
  width: min(100%, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #04152d;
}

.board {
  position: absolute;
  width: 1672px;
  height: 940.5px;
  transform: scale(var(--board-scale, 1));
  transform-origin: top left;
  overflow: hidden;
  isolation: isolate;
  background: #052750;
}

.reference-art {
  position: absolute;
  inset: 0;
  background: var(--reference) no-repeat;
}

.hero-patch { position: absolute; inset: 0; filter: blur(5px); }

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Blank sky over the sample's current weather, with the lettering around it intact. */
  clip-path: path("M 900 26 C 962 3 1111 3 1173 52 L 1191 84 H 1306 V 323 H 1152 L 1084 316 L 950 311 L 949 273 L 930 267 L 825 265 L 833 199 L 873 124 L 889 85 Z");
  background: radial-gradient(ellipse 290px 215px at 934px 248px, #07345d 0%, transparent 100%), linear-gradient(118deg, #05254f 48%, #031733 80%);
}

.hero-sky::before {
  content: "";
  position: absolute;
  width: 339px;
  height: 78px;
  top: 241px;
  left: 920px;
  background: var(--reference) no-repeat -982px -313px;
  transform: scale(1.55, 1.72);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 73%);
  opacity: .87;
}

.hotspot {
  position: absolute;
  top: 26px;
  width: 54px;
  height: 55px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.hotspot:hover { background: #b5d8ff18; }
.nav-menu { left: 32px; }
.nav-source, .nav-metnet-details {
  top: 27px;
  height: 53px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border: 1px solid #3476a9;
  background: #072344;
  font-size: 15px;
  font-weight: 700;
}
.nav-source { left: 1353px; width: 143px; }
.nav-metnet-details {
  left: 1138px;
  width: 199px;
  padding: 0 12px;
  line-height: 1.18;
  text-wrap: balance;
}
.nav-source:hover, .nav-metnet-details:hover { background: #0c355c; border-color: #74b5e4; }
.nav-source strong { color: var(--yellow); font-size: 13px; }
.nav-calendar { left: 1518px; }
.nav-calendar[aria-pressed="true"] { background: #ffca2828; }
.nav-exit, .nav-exit:hover { left: 1584px; background: radial-gradient(ellipse, #020c1b 53%, transparent 75%); }
.nav-exit::before, .nav-exit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 3.5px;
  border-radius: 3px;
  background: #f8faff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-exit::after { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-exit:hover::before, .nav-exit:hover::after { background: var(--yellow); }

.current {
  position: absolute;
  top: 94px;
  left: 1134px;
  width: 184px;
  text-align: center;
  text-shadow: 0 2px 6px #00122685;
  text-transform: uppercase;
}

.current__temperature {
  height: 101px;
  font-size: var(--temperature-size, 106px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}

.current__place { font-size: 30px; line-height: 34px; }
.current__day {
  width: max-content;
  min-width: 132px;
  max-width: 100%;
  margin: 5px auto 4px;
  padding: 4px 10px 3px;
  border-radius: 6px;
  background: linear-gradient(100deg, #ffcd30, #f9bf25);
  color: #082546;
  font-size: 23px;
  font-weight: 800;
  text-shadow: none;
}

.current__date {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 20px;
  text-transform: none;
}
.current__condition, .current__uv { font-size: 14px; line-height: 20px; }
.status-banner {
  position: absolute;
  z-index: 1;
  right: 347px;
  top: 348px;
  max-width: 410px;
  border: 1px solid #4084bd83;
  border-radius: 8px;
  padding: 7px 12px;
  background: #031d39;
  color: #f5d979;
  font-size: 14px;
  text-align: right;
}

.weather-mark {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 78% 90%, #000 60%, #000c 77%, transparent 100%);
}

.weather-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(var(--art-width) * 800 / var(--crop-width)), calc(var(--art-height) * 800 / var(--crop-height)));
  height: auto;
  transform: translate(var(--crop-x), var(--crop-y));
}

.weather-mark--hero {
  --art-width: 284px;
  --art-height: 232px;
  top: 31px;
  left: 842px;
  width: 321px;
  height: 263px;
}

.weather-mark--card {
  --art-width: 151px;
  --art-height: 102px;
  inset: 50px 7px auto;
  height: 108px;
}

.forecast { position: absolute; top: 392px; left: 65px; width: 1262px; }
.forecast__cards {
  display: grid;
  grid-template-columns: 201px 201px 201px 207px 198px 199px;
  gap: 11px;
}
.forecast__cards--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-radius: 16px;
  background: linear-gradient(180deg, #051d38, #03172d 55%, #021528);
}
.forecast__cards--week .weather-mark--card { --art-width: 137px; }
.forecast__cards--week .day-card__condition { left: 15px; font-size: 21px; }
.forecast__cards--week .day-card__copy { left: 16px; right: 9px; font-size: 14px; }
.forecast__cards--week .day-card__temperatures { left: 16px; right: 16px; }
.forecast__cards--week .day-card__chart { left: 9px; width: calc(100% - 18px); }

.day-card {
  position: relative;
  height: 432px;
  overflow: hidden;
  border: 1.5px solid #064877;
  border-radius: 16px;
  background: radial-gradient(ellipse at 65% 28%, #082c57, transparent 55%), linear-gradient(148deg, #03264e, #021c3a 73%, #042750);
  box-shadow: inset 0 0 22px #00163044;
}

.day-card:nth-child(even) { background: radial-gradient(ellipse at 42% 23%, #0a315c, transparent 56%), linear-gradient(150deg, #042851, #021d3b 70%, #04274e); }
.day-card__day { padding-top: 8px; font-size: 19px; line-height: 22px; font-weight: 700; text-align: center; text-transform: uppercase; }
.day-card__date { display: block; font-size: 17px; line-height: 20px; text-align: center; }
.day-card__condition {
  position: absolute;
  top: 159px;
  left: 23px;
  right: 10px;
  min-height: 46px;
  color: #ffd324;
  font: italic 700 23px/1.06 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: -.65px;
  text-wrap: balance;
}

.day-card__copy { position: absolute; top: 223px; left: 24px; right: 16px; font-size: 15px; line-height: 1.5; }
.day-card__copy span { display: block; }
.day-card__temperatures {
  position: absolute;
  top: 313px;
  left: 24px;
  right: 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-size: 31px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.day-card__high { color: #ffd12b; }
.day-card__low { padding-left: 14px; border-left: 1px solid #08639951; color: #36a6dc; }
.day-card__chart { position: absolute; bottom: 8px; left: 12px; width: 174px; height: 65px; }
.day-card__chart-note {
  position: absolute;
  right: 10px;
  bottom: 22px;
  left: 10px;
  color: #b1d4eb;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}
.day-card__details { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; background: transparent; }
.day-card__details:hover:enabled { box-shadow: inset 0 0 0 1px #60bbfa9c; }
.day-card__details:focus-visible { outline-offset: -4px; }
.day-card__details:disabled { cursor: default; }

.summary__copy, .tip__copy, .sunshine { position: absolute; }
.summary__copy {
  top: 402px;
  left: 1365px;
  width: 204px;
  height: 95px;
  padding: 5px 4px 4px 6px;
  background: linear-gradient(145deg, #02264d, #022043 86%);
  font-size: 15px;
  line-height: 1.44;
}

.sunshine {
  top: 574px;
  left: 1374px;
  width: 244px;
  height: 105px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 10px;
  background: linear-gradient(137deg, #02264b, #032143 84%);
}
.sunshine canvas { width: 144px; height: 106px; flex: none; }
.sunshine__reading strong { display: block; font-size: 31px; line-height: 1; }
.sunshine__reading span { display: block; margin-top: 5px; color: #b1e4f8; font-size: 13px; line-height: 1.12; text-transform: uppercase; white-space: pre-line; }

.tip__copy {
  top: 773px;
  left: 1371px;
  width: 246px;
  height: 70px;
  padding: 5px 5px 0 6px;
  background: linear-gradient(140deg, #03234a, #021e3d 84%);
  font-size: 15px;
  line-height: 1.48;
}

.metric {
  position: absolute;
  top: 887px;
  left: var(--left);
  min-width: var(--width);
  height: 24px;
  padding: 1px 3px 1px 2px;
  background: var(--metric-paper, #fcc824);
  color: #101d24;
  font-size: 17px;
  font-weight: 650;
  line-height: 22px;
  white-space: nowrap;
}
.metric--sunrise { --left: 95px; --width: 51px; --metric-paper: #f6bf03; }
.metric--sunset { --left: 249px; --width: 57px; }
.metric--humidity { --left: 419px; --width: 51px; }
.metric--wind { --left: 595px; --width: 105px; }
.metric--pressure { --left: 764px; --width: 101px; }

.credit {
  position: absolute;
  left: 1354px;
  top: 879px;
  width: 275px;
  padding: 12px 12px 15px;
  background: linear-gradient(100deg, #030e21, #020d1d);
  box-shadow: 0 0 7px 4px #030e21;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.credit a { color: #f8faff; text-decoration-color: #ffffff64; text-underline-offset: 2px; }

.dialog {
  width: min(calc(100% - 2rem), 26rem);
  max-height: calc(100svh - 2rem);
  padding: 1.5rem;
  border: 1px solid #24618d;
  border-radius: 1rem;
  background: #062445;
  color: #f8faff;
  box-shadow: 0 16px 55px #00101e99;
}
.dialog::backdrop { background: #010a15b5; }
.dialog h2 { padding-right: 2rem; font-size: 1.4rem; }
.dialog p { margin-top: .85rem; line-height: 1.5; }
.dialog a { color: #b7dfff; }
.dialog__close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font-size: 1.65rem;
}
.dialog__close:hover { background: #ffffff1e; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.dialog__actions button {
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: .4rem;
  background: var(--yellow);
  color: #071f38;
  font-weight: 700;
}
.dialog__actions button:disabled { opacity: .55; cursor: default; }
.dialog__credit { font-size: .875rem; }
.dialog__hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: 1.1rem; }
.dialog__hours div { padding: .65rem .2rem; border-radius: .5rem; background: #0b365e; text-align: center; }
.dialog__hours dt { margin-bottom: .3rem; color: #b7dfff; font-size: .875rem; }
.dialog__hours dd { font-weight: 700; }
.metnet-dialog {
  --widget-space: 14rem;
  width: min(calc(100% - 1.5rem), 68rem);
  max-height: calc(100svh - 1.5rem);
  padding: clamp(.85rem, 2.5vw, 1.5rem);
  background: #06213e;
}
.metnet-dialog:has(#metnet-36h:not([hidden])) {
  --widget-space: 13rem;
  width: min(calc(100% - 1.5rem), 48rem);
  padding-block: 1rem;
}
.metnet-dialog h2 { font-size: clamp(1.18rem, 3vw, 1.6rem); }
.metnet-dialog__tabs {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: .35rem;
  margin: 1rem 0 .75rem;
  padding: .3rem;
  border: 1px solid #285278;
  border-radius: .75rem;
  background: #04182c;
}
.metnet-dialog__tab {
  min-height: 2.65rem;
  padding: .45rem clamp(.25rem, 1vw, .85rem);
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: #c4dcf4;
  font-size: clamp(.78rem, 2.3vw, .95rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.metnet-dialog__tab:hover { background: #0b2e4e; }
.metnet-dialog__tab[aria-selected="true"] {
  border-color: #f5c540;
  background: var(--yellow);
  color: #10263d;
}
.metnet-dialog__module {
  overflow: hidden;
  border: 1px solid #285278;
  border-radius: .7rem;
  background: #101b2b;
}
.metnet-dialog__module iframe {
  display: block;
  width: 100%;
  max-height: max(12rem, calc(100svh - var(--widget-space)));
  border: 0;
  color-scheme: normal;
}
.metnet-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1.25rem;
  margin-top: .75rem;
  color: #c4dcf4;
  font-size: .85rem;
  line-height: 1.4;
}
.no-script { padding: 1rem; }

.standalone-panel {
  width: min(calc(100% - 2rem), 27rem);
  padding: 1.5rem;
  border: 1px solid #24618d;
  border-radius: 1rem;
  background: #062445;
}
.standalone-panel h1 { font-size: 1.45rem; }
.standalone-panel p { margin-top: .75rem; line-height: 1.5; }
.launch-button {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem .9rem;
  border-radius: .4rem;
  background: var(--yellow);
  color: #071f38;
  font-weight: 700;
  text-decoration: none;
}
