/* iWawa v1.77: one compact mobile utility bar, with accessible touch targets. */
.topbar .iwawa-help-button,
.topbar .iwawa-help-button:hover {
  color: #ffdc68 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  transform: none;
}
.topbar .iwawa-help-button::before { display: none; }
@media (max-width: 760px) {
  .topbar .wrap {
    display: grid;
    grid-template-columns: minmax(54px, 1fr) auto minmax(44px, 1fr) auto;
    align-items: center;
    width: calc(100% - 24px);
    height: auto;
    min-height: 60px;
    gap: 6px;
    padding-block: 8px;
  }
  /* Keep the complete translated link text as its accessible name. */
  .topbar .wrap > .iwawa-help-button {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px !important;
    padding: 4px 2px !important;
    gap: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffdc68 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    justify-content: flex-start;
    box-shadow: none;
  }
  .topbar .iwawa-help-button::before {
    display: none;
  }
  .topbar .wrap > .rcb-button {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    max-width: 28vw;
    width: auto;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    gap: 4px;
  }
  .topbar .rcb-button::before { display: none; }
  .topbar .rcb-button > span { font-size: 13px; }
  .topbar .wrap > span { display: none; }
  .topbar .wrap > div { display: contents; }
  .topbar .wrap > div > #today { display: none; }
  .topbar .wrap > div > .top-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: normal;
    text-align: center;
  }
  .topbar .language-control {
    flex-direction: row-reverse;
    gap: 4px;
    min-height: 44px;
    padding: 0 5px 0 7px;
    border: 1px solid #ffffff40;
    border-radius: 12px;
    background: #ffffff08;
  }
  .topbar .language-control > .language-flag {
    width: 30px;
    height: auto;
    aspect-ratio: 8 / 5;
    flex: 0 0 30px;
    margin: 0 0 0 3px;
  }
  .topbar .language-flag[data-country="dk"] { aspect-ratio: 37 / 28; }
  .topbar .language-flag[data-country="no"] { aspect-ratio: 22 / 16; }
  .topbar .language-flag[data-country="gb"],
  .topbar .language-flag[data-country="lv"] { aspect-ratio: 2 / 1; }
  .topbar .language-flag[data-country="es"],
  .topbar .language-flag[data-country="fr"],
  .topbar .language-flag[data-country="in"],
  .topbar .language-flag[data-country="it"],
  .topbar .language-flag[data-country="jp"],
  .topbar .language-flag[data-country="nl"],
  .topbar .language-flag[data-country="pt"],
  .topbar .language-flag[data-country="ro"],
  .topbar .language-flag[data-country="tr"],
  .topbar .language-flag[data-country="ua"],
  .topbar .language-flag[data-country="vn"],
  .topbar .language-flag[data-country="cn"] { aspect-ratio: 3 / 2; }
  .topbar .language-picker-trigger {
    min-height: 44px;
    padding: 0 2px 0 4px;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 11px;
  }
  .topbar .language-picker-trigger > img { display: none; }
  .topbar .language-picker-trigger > span:last-child {
    margin-left: 0;
    font-size: 14px;
  }
  .topbar .language-control select {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
  }
  .header-tools { flex-shrink: 0; gap: 2px; }
  .header-tools .icon-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .header-tools .saved-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
    gap: 3px;
  }
}
@media (max-width: 380px) {
  .header-inner { gap: 4px; }
  .header .brand { width: 140px; gap: 6px; min-width: 0; }
  .header .brand-mark { width: 46px; height: 44px; }
  .header .brand-mark img { width: 91px; height: 91px; left: -8.8px; top: -20.8px; }
  .header .brand-copy { min-width: 0; }
  .header .brand-wordmark { font-size: 26px; }
  .header .brand-copy > span { font-size: 6px; letter-spacing: 0; white-space: normal; }
}

/* v1.79: glass lenses with an alternating luminous core and halo on every device. */
.topbar .iwawa-help-button,
.topbar .wrap > .iwawa-help-button {
  min-width: 48px;
  min-height: 44px !important;
  padding: 0 4px !important;
  justify-content: flex-start;
  overflow: visible;
}
.iwawa-siren {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  width: 42px;
  height: 27px;
  padding: 2px 2px 5px;
  flex: 0 0 42px;
  overflow: visible;
}
.iwawa-siren::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 5px;
  border: 1px solid #aebcc6;
  border-radius: 3px;
  background: linear-gradient(#f8fcff, #aab7c0 45%, #46535e 55%, #8a99a5);
  box-shadow: 0 2px 4px #0008;
}
.topbar .iwawa-siren > span {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 8px 8px 3px 3px;
  border: 1px solid #ffffffb3;
  background:
    repeating-linear-gradient(90deg, #ffffff00 0 3px, #ffffff25 3px 4px),
    radial-gradient(ellipse at 50% 70%, #fff 0%, var(--siren-core) 17%, var(--siren-color) 48%, var(--siren-dark) 100%);
  transform: translateZ(0);
  animation: iwawa-siren-glow 1.6s linear infinite !important;
  animation-play-state: running !important;
}
.topbar .iwawa-siren > span::before {
  content: "";
  position: absolute;
  inset: 1px 2px 35% 2px;
  border-radius: 6px 6px 40% 30%;
  background: linear-gradient(115deg, #fffffff0, #ffffff66 32%, #ffffff00 60%, #ffffff90);
  pointer-events: none;
}
.topbar .iwawa-siren-blue {
  --siren-core: #c8f1ff;
  --siren-color: #128bff;
  --siren-dark: #052e8f;
}
.topbar .iwawa-siren > .iwawa-siren-red {
  --siren-core: #ffd4de;
  --siren-color: #ff234a;
  --siren-dark: #85071d;
  animation-delay: -.8s !important;
}
@keyframes iwawa-siren-glow {
  0%, 43%, 100% {
    filter: brightness(1.5) saturate(1.2);
    box-shadow: inset 0 0 4px #fff, 0 0 5px var(--siren-color), 0 0 11px var(--siren-color), 0 0 18px var(--siren-color);
  }
  50%, 93% {
    filter: brightness(.42) saturate(.9);
    box-shadow: inset 1px 0 3px #ffffff70, inset -2px -2px 5px #0008;
  }
}
/* Keep a slower light pulse when the system requests less motion. */
@media (prefers-reduced-motion: reduce) {
  .topbar .iwawa-siren > span { animation-duration: 3.2s !important; }
  .topbar .iwawa-siren > .iwawa-siren-red { animation-delay: -1.6s !important; }
}
