/* WeatherWorldWide — deep navy / blue / white interface. Brand accents: blue, yellow (sun), red (logo only). */

:root {
  --bg: #061023;
  --bg-2: #0a1830;
  --card: #0c1a33;
  --card-2: #102243;
  --card-border: rgba(120, 165, 255, 0.14);
  --text: #eef4ff;
  --text-2: #b3c3e0;
  --text-3: #8396b8;
  --blue: #2f7bff;
  /* filled blue behind white text (buttons, current hour): 4.5:1 contrast or more */
  --blue-fill: #2563eb;
  --blue-2: #5b9cff;
  --blue-soft: rgba(47, 123, 255, 0.16);
  --yellow: #ffc23a;
  --yellow-2: #ffdb73;
  --brand-red: #e5383b;
  --warn: #ff5a5f;
  --warn-bg: rgba(255, 90, 95, 0.12);
  --ok: #22c55e;
  --good: #84cc16;
  --fair: #f59e0b;
  --poor: #ef6b4a;
  --rain: #3fa9ff;
  --wind: #2ee6b6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #eef3fb;
  --bg-2: #e4ecf8;
  --card: #ffffff;
  --card-2: #f4f8ff;
  --card-border: rgba(20, 50, 110, 0.12);
  --text: #0b1a33;
  --text-2: #3b4d6c;
  --text-3: #5d6f8f;
  --blue: #1f63e6;
  --blue-fill: #1f63e6;
  --blue-2: #1f63e6;
  --blue-soft: rgba(31, 99, 230, 0.1);
  --shadow: 0 6px 20px rgba(15, 40, 90, 0.08);
  --warn: #d92d33;
  --warn-bg: rgba(217, 45, 51, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(47, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 194, 58, 0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
:root[data-theme='light'] body { background: radial-gradient(1200px 600px at 75% -10%, rgba(47, 123, 255, 0.10), transparent 60%), var(--bg); }

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-2); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: 0.005em; }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--blue-fill); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { max-width: 1680px; margin: 0 auto; height: var(--header-h); display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; }
.brand-name .w1 { color: var(--text); }
.brand-name .w2 { color: var(--blue-2); }
.brand-name .w3 { color: var(--brand-red); }
.brand-tagline { font-size: 0.74rem; color: var(--text-2); white-space: nowrap; }

.search { position: relative; flex: 1 1 360px; max-width: 460px; min-width: 0; }
.search input {
  width: 100%; height: 46px; padding: 0 52px 0 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 9px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; }
.search-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.search-btn svg circle:first-child { fill: currentColor; stroke: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow); z-index: 600;
}
.search-results li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.search-results li[aria-selected='true'], .search-results li:hover { background: var(--blue-soft); }
.search-results .sub { color: var(--text-3); font-size: .85rem; }
.search-results .empty { cursor: default; color: var(--text-3); }

/* Section switcher: each link opens one part of the page on its own (see :root[data-view] below).
   Without JavaScript they stay plain anchors that scroll to the section. */
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .92rem; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; }
.nav-link:hover { background: var(--blue-soft); }
.nav-link.is-active { border-color: color-mix(in srgb, var(--blue) 60%, transparent); background: var(--blue-soft); color: var(--blue-2); }
:root[data-theme='light'] .nav-link.is-active { color: var(--blue); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-weight: 600; font-size: .88rem; }
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn .chev { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; }
.unit-toggle { display: inline-flex; border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; background: var(--card); }
.unit-toggle button { border: 0; background: transparent; padding: 0 10px; height: 38px; font-weight: 600; font-size: .88rem; color: var(--text-2); }
.unit-toggle button[aria-pressed='true'] { background: var(--blue-fill); color: #fff; }
.lang-picker { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow); z-index: 600; }
.menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.menu li:hover, .menu li:focus, .menu li[aria-selected='true'] { background: var(--blue-soft); outline: none; }
.flag { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.flag-nl { background: linear-gradient(#ae1c28 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
.flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-en { background: linear-gradient(90deg, transparent 42%, #c8102e 42% 58%, transparent 58%), linear-gradient(transparent 38%, #c8102e 38% 62%, transparent 62%), linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%), linear-gradient(transparent 30%, #fff 30% 70%, transparent 70%), #012169; }

/* ------------------------------------------------------------------ Alerts & notices */
.alerts { max-width: 1680px; margin: 0 auto; padding: 0 20px; }
.alert { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-bg); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.alert.severity-minor { border-color: color-mix(in srgb, var(--yellow) 50%, transparent); background: rgba(255, 194, 58, 0.08); }
.alert svg { width: 26px; height: 26px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.alert.severity-minor svg { color: var(--yellow); }
.alert h2 { font-size: 1rem; }
.alert .meta { color: var(--text-2); font-size: .85rem; margin: 2px 0 0; }
.alert-body { min-width: 0; flex: 1; }
.alert h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alert-level { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; color: #1b1300; }
.alert-level.level-yellow { background: #ffd43b; }
.alert-level.level-orange { background: #ff922b; }
.alert-level.level-red { background: #ff4d4f; color: #fff; }
.alert-meta { margin: 6px 0 0; display: grid; gap: 2px; font-size: .86rem; }
.alert-meta div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.alert-meta dt { color: var(--text-3); }
.alert-meta dt::after { content: ':'; }
.alert-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.alert-tz { color: var(--text-3); font-weight: 400; }
.alert-note { margin: 8px 0 0; font-size: .82rem; color: var(--text-2); }
.alert-lang { font-weight: 600; color: var(--text); }
.alert-details summary { cursor: pointer; color: var(--blue-2); font-size: .88rem; margin-top: 6px; font-weight: 600; }
.alert-original { margin-top: 6px; padding: 10px 12px; border-left: 3px solid color-mix(in srgb, var(--warn) 60%, transparent); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; }
.alert-event { margin: 0 0 4px; font-weight: 700; }
.alert-text { margin: 0; white-space: pre-line; color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; max-height: 22em; overflow-y: auto; }
.notice { max-width: 1680px; margin: 12px auto 0; padding: 10px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--text); font-size: .9rem; display: flex; gap: 10px; align-items: center; width: calc(100% - 40px); }
.notice.is-demo { background: rgba(255, 194, 58, 0.12); }

/* ------------------------------------------------------------------ Layout */
.layout {
  max-width: 1680px; margin: 0 auto; padding: 16px 20px 28px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    'hero hero hero hero map map map map map map map map'
    'hourly hourly hourly hourly hourly hourly hourly daily daily daily daily daily'
    'charts charts charts charts charts charts charts charts charts details details details'
    'activities activities activities activities activities best best best best compare compare compare'
    'favorites favorites favorites favorites favorites best best best best adside adside adside'
    'adwide adwide adwide adwide adwide adwide adwide adwide adwide adwide adwide adwide';
  grid-template-rows: auto auto auto auto 1fr auto;
  outline: none;
}
.layout > [data-area='activities'], .layout > [data-area='favorites'], .layout > [data-area='compare'], .layout > [data-area='adside'] { align-self: start; }
[data-area='hero'] { grid-area: hero; }
[data-area='map'] { grid-area: map; }
[data-area='hourly'] { grid-area: hourly; }
[data-area='daily'] { grid-area: daily; }
[data-area='charts'] { grid-area: charts; }
[data-area='details'] { grid-area: details; }
[data-area='activities'] { grid-area: activities; }
[data-area='best'] { grid-area: best; }
[data-area='compare'] { grid-area: compare; }
[data-area='favorites'] { grid-area: favorites; }
[data-area='adwide'] { grid-area: adwide; }
[data-area='adside'] { grid-area: adside; }
[data-area='admobile'] { grid-area: admobile; display: none !important; }

/* ------------------------------------------------------- Section views
   "Today" is the overview: the whole page, as below. The other four buttons in the header (and in
   the bar at the bottom on phones) open one section on its own, so you get what you asked for and
   nothing beside it. Without JavaScript no view is set and the links simply scroll to a section. */
:root[data-view]:not([data-view='today']) .layout { display: block; }
:root[data-view='map'] .layout > [data-area]:not([data-area='map']),
:root[data-view='best'] .layout > [data-area]:not([data-area='best']),
:root[data-view='compare'] .layout > [data-area]:not([data-area='compare']),
:root[data-view='favorites'] .layout > [data-area]:not([data-area='favorites']) { display: none; }
/* One section alone should still fill the window rather than leave the footer floating. */
:root[data-view]:not([data-view='today']) .layout { min-height: 60vh; }
/* On its own the map may use the whole window; the map itself takes whatever the controls and the
   city strip below it leave over (min-height: 0, or a flex item refuses to shrink). */
:root[data-view='map'] .map-card { display: flex; height: calc(100vh - var(--header-h) - 36px); min-height: 420px; }
:root[data-view='map'] .map-wrap { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head .sub, .muted { color: var(--text-3); font-size: .85rem; }

/* ------------------------------------------------------------------ Hero */
.hero { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; isolation: isolate; }
/* Room for the weather while it loads (scripted pages only), so nothing below jumps when it arrives.
   Heights = the rendered sections at these widths; removed as soon as the weather is shown. */
html.js:not(.wx-ready) #today { min-height: 646px; }
html.js:not(.wx-ready) #hourly { min-height: 227px; }
html.js:not(.wx-ready) #daily { min-height: 233px; }
html.js:not(.wx-ready) #activities { min-height: 322px; }
@media (min-width: 900px) {
  html.js:not(.wx-ready) #today { min-height: 633px; }
  html.js:not(.wx-ready) #activities { min-height: 190px; }
}
.hero-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #2b6fd6 0%, #174a9e 45%, #0c254f 100%); transition: background .6s var(--ease); }
.hero-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 12, 28, 0.82) 100%); }
.hero-sky[data-sky='clear-day'] { background: linear-gradient(160deg, #3d8bf2 0%, #2a6ad4 40%, #123d84 100%); }
.hero-sky[data-sky='clear-night'] { background: radial-gradient(800px 400px at 80% 0%, #24305f 0%, transparent 60%), linear-gradient(170deg, #111a3d 0%, #0a1430 60%, #050b1d 100%); }
.hero-sky[data-sky='partly-day'] { background: linear-gradient(160deg, #4a87d4 0%, #2f62ae 50%, #15335f 100%); }
.hero-sky[data-sky='cloudy-day'] { background: linear-gradient(160deg, #6a7f9e 0%, #45597a 50%, #1c2a42 100%); }
.hero-sky[data-sky='cloudy-night'], .hero-sky[data-sky='partly-night'] { background: linear-gradient(170deg, #252f45 0%, #151d30 60%, #0a0f1d 100%); }
.hero-sky[data-sky='rain-day'], .hero-sky[data-sky='drizzle-day'] { background: linear-gradient(165deg, #4d6280 0%, #2f4058 55%, #141d2c 100%); }
.hero-sky[data-sky='rain-night'], .hero-sky[data-sky='drizzle-night'], .hero-sky[data-sky='storm-night'] { background: linear-gradient(170deg, #1d2536 0%, #111724 60%, #070a12 100%); }
.hero-sky[data-sky='storm-day'] { background: linear-gradient(165deg, #3c4458 0%, #262b3b 55%, #10131c 100%); }
.hero-sky[data-sky='snow-day'] { background: linear-gradient(165deg, #9db4cf 0%, #6f87a8 50%, #2a3a52 100%); }
.hero-sky[data-sky='fog-day'] { background: linear-gradient(165deg, #8b98a8 0%, #5f6c7d 50%, #2a323d 100%); }
/* City / town photo behind the hero (Wikimedia Commons). Readability comes from a soft top shade
   and the existing dark fade towards the metrics; the weather tints the photo a little. */
.hero-photo { position: absolute; inset: 0; background: center 40% / cover no-repeat; opacity: 0; transition: opacity .6s var(--ease); }
.hero-sky.has-photo .hero-photo { opacity: 1; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Photos vary a lot, so the small print (date, "last updated", credit) needs its own shade. */
.hero-sky.has-photo::after { background: linear-gradient(180deg, rgba(4, 12, 28, .58) 0%, rgba(4, 12, 28, .3) 26%, rgba(4, 12, 28, .46) 52%, rgba(4, 12, 28, .86) 100%); }
.hero-sky[data-sky$='-night'] .hero-photo { filter: brightness(.55) saturate(.85); }
.hero-sky[data-sky^='rain'] .hero-photo, .hero-sky[data-sky^='drizzle'] .hero-photo, .hero-sky[data-sky^='storm'] .hero-photo, .hero-sky[data-sky^='fog'] .hero-photo, .hero-sky[data-sky^='cloudy'] .hero-photo { filter: brightness(.92) saturate(.9); }
.hero-sky[data-sky$='-night'][data-sky^='rain'] .hero-photo, .hero-sky[data-sky$='-night'][data-sky^='cloudy'] .hero-photo { filter: brightness(.5) saturate(.75); }
.hero-sky.has-photo ~ .hero-content { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .25); }
.photo-credit { margin: 4px 0 0; font-size: .68rem; opacity: .92; }
.photo-credit a { color: inherit; text-decoration: none; }
.photo-credit a:hover, .photo-credit a:focus-visible { text-decoration: underline; opacity: 1; }
.hero-art { position: absolute; right: -10px; top: 8px; width: 210px; height: 190px; z-index: -1; opacity: .95; pointer-events: none; }

.hero-content { padding: 22px 22px 8px; color: #fff; flex: 1; }
.hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hero-city { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-country { font-size: 1.05rem; color: rgba(255,255,255,.88); margin: 2px 0 0; }
.hero-date { color: rgba(255,255,255,.8); font-size: .95rem; margin: 2px 0 0; }
.hero-actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(5, 15, 35, .35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn[aria-pressed='true'] svg { fill: var(--brand-red); stroke: var(--brand-red); }
.hero-main { display: flex; align-items: flex-end; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.hero-temp { font-size: clamp(4.2rem, 8vw, 5.6rem); font-weight: 800; line-height: .9; letter-spacing: -0.04em; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero-temp sup { font-size: .42em; font-weight: 700; vertical-align: top; position: relative; top: .18em; margin-left: 2px; letter-spacing: 0; }
.hero-cond { padding-bottom: 6px; }
.hero-cond .cond { font-size: 1.35rem; font-weight: 700; }
.hero-cond .feels, .hero-cond .hilo { color: rgba(255,255,255,.88); font-size: .95rem; margin: 2px 0 0; }
.hero-summary { margin: 12px 0 0; color: rgba(255,255,255,.92); font-size: .95rem; max-width: 46ch; }
.hero-meta { margin-top: 6px; font-size: .8rem; color: rgba(255,255,255,.88); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-stale { background: rgba(255, 194, 58, .2); color: var(--yellow-2); padding: 2px 8px; border-radius: 99px; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 16px 0; border-radius: 14px; background: rgba(5, 14, 32, .55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); color: #fff; }
.stat { display: flex; gap: 10px; align-items: center; padding: 12px 12px; min-width: 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.stat svg { width: 26px; height: 26px; flex-shrink: 0; }
.stat .k { font-size: .76rem; color: rgba(255,255,255,.75); }
.stat .v { font-size: 1.12rem; font-weight: 700; white-space: nowrap; }
.stat .s { font-size: .74rem; color: rgba(255,255,255,.7); }
.stat .v small { font-size: .72em; font-weight: 600; opacity: .8; margin-left: 2px; }
.stat .k { overflow-wrap: anywhere; hyphens: auto; }
/* The hero card can be narrow on desktop too: switch the metrics to 2 × 2 by the card's own width. */
:has(> .stats) { container-type: inline-size; }
@container (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:nth-child(3) { border-left: 0; }
  .stats .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}

.hero-lower { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 12px 16px 16px; }
.best-card, .summary-card { border-radius: 14px; background: rgba(5, 14, 32, .55); border: 1px solid rgba(255,255,255,.1); padding: 12px 14px; color: #fff; backdrop-filter: blur(8px); }
.best-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.best-card .sun { width: 40px; height: 40px; grid-row: span 2; }
.best-card .t { font-size: .95rem; font-weight: 600; }
.best-card .range { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.best-card .desc { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.82); margin-top: 6px; }
.summary-card { font-size: .9rem; color: rgba(255,255,255,.9); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #06210f; background: var(--ok); }
.pill.label-excellent { background: #22c55e; }
.pill.label-great { background: #4ade80; }
.pill.label-good { background: #a3e635; }
.pill.label-fair { background: #fbbf24; color: #2a1c00; }
.pill.label-poor { background: #fb7c5c; color: #2a0a00; }

.ssr-hero { color: #fff; }
.ssr-hero .ssr-city { font-size: 2.1rem; font-weight: 800; margin: 0; }
.ssr-hero .ssr-temp { font-size: 5rem; font-weight: 800; margin: 8px 0 0; line-height: 1; }
.ssr-hero .ssr-cond { margin: 4px 0 0; color: rgba(255,255,255,.88); }
.loading-line { color: rgba(255,255,255,.75); }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ Hourly & daily strips */
.hourly-strip, .daily-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; scroll-snap-type: x proximity; }
.hourly-strip::-webkit-scrollbar, .daily-strip::-webkit-scrollbar { height: 6px; }
.hourly-strip::-webkit-scrollbar-thumb, .daily-strip::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 6px; }
.hour, .day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid transparent; scroll-snap-align: start; }
:root[data-theme='light'] .hour:not(.is-now), :root[data-theme='light'] .day { background: var(--bg); }
.hour { width: 62px; }
.hour.is-now { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
.hour.is-now .pop, .hour.is-now .wind { color: #fff; }
.hour .time, .day .dow { font-size: .82rem; font-weight: 600; }
.hour .wx, .day .wx { width: 34px; height: 34px; }
.hour .temp { font-weight: 700; }
.pop { font-size: .76rem; color: var(--rain); display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.pop svg { width: 10px; height: 12px; }
.hour .wind { font-size: .72rem; color: var(--text-3); white-space: nowrap; display: flex; align-items: center; gap: 2px; }
.hour .wind svg { width: 10px; height: 10px; }
.daily-strip { gap: 6px; }
.day { flex: 1 0 64px; min-width: 64px; }
.day .date { font-size: .74rem; color: var(--text-3); margin-top: -4px; }
.day .temps { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.day .temps .lo { color: var(--text-3); font-weight: 600; }
/* Min–max bar on one scale for the whole week; fainter = further ahead, less certain. */
.day .range { position: relative; width: 100%; height: 6px; border-radius: 99px; background: var(--card-border); overflow: hidden; }
.day .range span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.day .range.conf-good span { opacity: .82; }
.day .range.conf-moderate span { opacity: .62; }
.day .range.conf-lower span { opacity: .44; }
.day.is-today { border-color: color-mix(in srgb, var(--blue) 50%, transparent); }
.confidence-legend { font-size: .76rem; color: var(--text-3); }

/* ------------------------------------------------------------------ Charts */
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.chart { margin: 0; background: rgba(255,255,255,.02); border-radius: 12px; padding: 10px 10px 4px; border: 1px solid var(--card-border); min-width: 0; display: flex; flex-direction: column; }
:root[data-theme='light'] .chart { background: var(--bg); }
.chart figcaption { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.chart-box { position: relative; flex: 1; min-height: 170px; }
.chart-box svg { display: block; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-box .grid line { stroke: var(--card-border); stroke-width: 1; }
.chart-box .axis text { fill: var(--text-3); font-size: 10px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 4px 8px; font-size: .78rem; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, -120%); }

/* ------------------------------------------------------------------ Sun & moon */
.details-body { display: grid; gap: 12px; }
.sunarc { display: grid; grid-template-columns: 1fr; gap: 6px; text-align: center; }
.sunarc svg { width: 100%; max-width: 230px; margin: 0 auto; height: auto; }
.sunarc .times { display: flex; justify-content: space-between; font-size: .85rem; }
.sunarc .times b { display: block; font-size: 1.05rem; }
.moon { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--card-border); }
.moon .disc { width: 54px; height: 54px; }
.moon dl, .details-grid { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .86rem; }
.moon dt, .details-grid dt { color: var(--text-3); }
.moon dd, .details-grid dd { margin: 0; font-weight: 600; }
.details-more summary { cursor: pointer; color: var(--blue-2); font-size: .9rem; padding-top: 10px; border-top: 1px solid var(--card-border); }
.details-grid { grid-template-columns: repeat(2, auto 1fr); margin-top: 8px; }

/* ------------------------------------------------------------------ Activities */
.activity-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.activity { border-radius: 12px; padding: 10px 6px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid transparent; background: rgba(34, 197, 94, .1); }
.activity svg.ai { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.activity .name { font-size: .8rem; font-weight: 700; display: flex; gap: 4px; align-items: center; }
.activity .score { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; }
.activity .score small { font-size: .62em; font-weight: 700; color: var(--text-2); }
.activity .lbl { font-size: .78rem; font-weight: 700; }
.activity .win { font-size: .72rem; color: var(--text-2); }
.activity.label-excellent, .activity.label-great { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .3); }
.activity.label-excellent .lbl, .activity.label-great .lbl { color: #4ade80; }
.activity.label-good { background: rgba(163, 230, 53, .1); border-color: rgba(163, 230, 53, .25); }
.activity.label-good .lbl { color: #a3e635; }
.activity.label-fair { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.activity.label-fair .lbl { color: #fbbf24; }
.activity.label-poor { background: rgba(239, 107, 74, .1); border-color: rgba(239, 107, 74, .28); }
.activity.label-poor .lbl { color: #fb8f72; }
:root[data-theme='light'] .activity .lbl { filter: brightness(.7); }

/* ------------------------------------------------------------------ Map */
/* ---------------- World map: premium dark weather map (all styling local, OSM data) */
.map-card { --map-ocean: #0d2556; --glass: rgba(9, 20, 44, .74); --glass-border: rgba(150, 185, 255, .16); padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; background: var(--map-ocean); }
/* The map keeps the proportions of the whole world (≈2:1), so it is never squeezed by the rows below. */
.map-wrap { position: relative; flex: 1 0 auto; aspect-ratio: 1.85 / 1; min-height: 360px; background: var(--map-ocean); isolation: isolate; }
.world-map { position: absolute; inset: 0; background: var(--map-ocean); }
/* Depth: soft ocean light in the centre, gentle edge darkening (inside the map, below markers) */
.www-atmos { position: absolute; left: 0; top: 0; pointer-events: none; background:
  radial-gradient(140% 110% at 50% 50%, transparent 70%, rgba(2, 8, 24, .32) 100%); }
.www-wind { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .15s; }
/* Coastlines: crisp, slightly brighter than the subtle country borders in the tiles */
.leaflet-pane path.www-coast { stroke: rgba(150, 196, 255, .5); fill: none; }
.www-zoomed .leaflet-pane path.www-coast { display: none; }
/* Leaflet only exempts its own overlay pane from the global `svg { max-width: 100% }` rule;
   custom panes (borders) are 0 px wide, so their SVG would collapse to nothing without this. */
.leaflet-container .leaflet-pane svg { max-width: none !important; max-height: none !important; }
/* Country borders: always visible (also while zooming), thin and light over the satellite map */
.leaflet-pane path.www-border { stroke: rgba(255, 255, 255, .62); fill: none; stroke-linecap: round; }
.www-osm .leaflet-pane path.www-border { display: none; }
/* Continent & ocean labels (world view only) */
.www-map-label { background: none; border: 0; pointer-events: none; }
.www-map-label span { display: block; transform: translate(-50%, -50%); width: max-content; max-width: 9em; white-space: normal; text-align: center; line-height: 1.05; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 10px rgba(0, 0, 0, .45); }
.www-map-label.is-ocean span { font-weight: 500; font-size: 13px; max-width: 7em; color: rgba(230, 240, 255, .9); }
.world-map:not(.www-world) .www-map-label { display: none; }
/* Small screens: only continent names, smaller; markers become compact pills. */
.www-narrow .www-map-label.is-ocean { display: none; }
.www-narrow .www-map-label span { font-size: 10px; }
.www-narrow.www-world .city-marker { height: 22px; gap: 4px; padding: 0 8px 0 4px; border-radius: 11px; }
.www-narrow.www-world .city-marker .cm-icon { width: 15px; height: 15px; }
.www-narrow.www-world .city-marker .cm-text { gap: 4px; }
.www-narrow.www-world .city-marker .cm-name { font-size: 10px; }
.www-narrow.www-world .city-marker .cm-value { font-size: 11px; }
.www-narrow.www-world .city-marker.is-selected { height: 25px; padding: 0 9px 0 5px; }

/* Mode selector: compact glass segmented control */
.map-modes { position: absolute; z-index: 420; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 1px; padding: 3px; border-radius: 11px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); max-width: calc(100% - 84px); overflow-x: auto; scrollbar-width: none; }
.map-modes::-webkit-scrollbar { display: none; }
.map-modes button { border: 0; background: transparent; color: #c9d7f2; padding: 0 10px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .82rem; font-weight: 600; letter-spacing: .01em; transition: background .15s, color .15s; }
.map-modes button svg { width: 15px; height: 15px; flex-shrink: 0; fill: currentColor; }
.map-modes button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.map-modes button[aria-selected='true'] { background: linear-gradient(180deg, #3d8bff, #2563eb); color: #fff; box-shadow: 0 2px 10px rgba(47, 123, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Zoom: one stacked glass control */
.map-zoom { position: absolute; right: 10px; top: 10px; z-index: 420; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.map-zoom button { width: 34px; height: 34px; border: 0; background: transparent; color: #dbe6ff; display: grid; place-items: center; }
.map-zoom button + button { border-top: 1px solid rgba(150, 185, 255, .12); }
.map-zoom button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.map-zoom button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Legend: compact glass pill with real tick values */
.map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 420; padding: 7px 12px 6px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); color: #c9d7f2; font-size: .68rem; font-weight: 600; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.map-legend .lg-title { color: #e6eeff; font-weight: 700; }
.map-legend .lg-scale { display: flex; flex-direction: column; gap: 3px; width: 180px; }
.map-legend .bar { display: block; height: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.map-legend .ticks { position: relative; height: 12px; margin: 0 2px; }
.map-legend .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.map-legend .ticks span:first-child { transform: none; }
.map-legend .ticks span:last-child { transform: translateX(-100%); }
.map-legend .lg-scale.is-num { width: 196px; padding: 0 9px; }
.map-legend .lg-scale.is-num .ticks span { transform: translateX(-50%); }
.map-status { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 420; font-size: .76rem; color: #dbe6ff; background: var(--glass); border: 1px solid var(--glass-border); padding: 4px 10px; border-radius: 99px; }
.map-status:empty { display: none; }

/* City markers: compact premium pills  [☀ New York 15°] */
.city-marker { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 5px; border-radius: 13px; background: rgba(8, 18, 40, .72); color: #fff; line-height: 1; white-space: nowrap; border: 1px solid rgba(170, 200, 255, .2); box-shadow: 0 3px 10px rgba(0, 0, 0, .35); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); cursor: pointer; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))); width: max-content; transition: transform .15s, border-color .15s, background .15s; }
.city-marker:hover { border-color: rgba(170, 205, 255, .55); background: rgba(12, 26, 56, .88); transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.05); }
.city-marker .cm-icon { width: 18px; height: 18px; flex-shrink: 0; }
.city-marker .cm-text { display: inline-flex; align-items: baseline; gap: 6px; }
.city-marker .cm-name { font-size: 11.5px; font-weight: 600; color: #d3def3; }
.city-marker .cm-value { font-size: 12.5px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.city-marker.is-selected { height: 30px; padding: 0 12px 0 6px; border-radius: 15px; background: rgba(10, 24, 54, .9); border: 1.5px solid #4f97ff; box-shadow: 0 0 0 3px rgba(61, 139, 255, .22), 0 0 18px rgba(61, 139, 255, .45), 0 4px 14px rgba(0, 0, 0, .45); z-index: 2; }
.city-marker.is-selected .cm-name { color: #fff; }
.city-marker.is-selected .cm-icon { width: 20px; height: 20px; }
.city-marker.is-stale { opacity: .75; }
/* favourite cities: the same pill with a small red heart badge */
.www-icon .city-marker.is-fav { position: relative; }
.city-marker .cm-fav { position: absolute; top: -6px; right: -5px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 18, 40, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none; }
.city-marker .cm-fav svg { width: 9px; height: 9px; fill: #ff5d73; }
.city-marker.is-loading .cm-value { color: #9db0d4; font-weight: 600; }
.city-marker .cm-more { margin-left: -1px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 93, 115, .2); color: #ffd3da; font-size: 11px; font-weight: 800; }
.city-marker.is-cluster.is-open { border-color: rgba(255, 120, 135, .55); }
/* a label moved aside keeps a small pin on the city's real position */
.cm-pin { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #ff5d73; border: 1.5px solid #fff; box-shadow: 0 0 0 2px rgba(8, 18, 40, .5); pointer-events: none; }
/* an opened favourite cluster lists every city underneath */
.cm-stack { position: absolute; left: var(--dx, 0px); top: calc(var(--dy, 0px) + 19px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 2px; }
.cm-stack .city-marker.cm-row { transform: none; position: relative; }
.cm-stack .city-marker.cm-row:hover { transform: scale(1.04); }
.cm-stack .city-marker.cm-row:focus-visible { outline: 3px solid var(--yellow); }
.city-marker:focus-visible, .leaflet-marker-icon:focus-visible .city-marker { outline: 3px solid var(--yellow); }

/* Leaflet surface */
.leaflet-container { background: var(--map-ocean, #061634) !important; font-family: var(--font) !important; outline: none; }
.leaflet-div-icon.www-icon { background: transparent; border: 0; }
.leaflet-control-attribution { background: rgba(7, 17, 38, .7) !important; color: #9fb2d6 !important; font-size: 10px !important; padding: 1px 7px !important; border-radius: 6px 0 0 0; backdrop-filter: blur(6px); }
.leaflet-control-attribution a { color: #b9d0ff !important; }
/* Base map: natural satellite relief (NASA Blue Marble) drawn as-is, slightly livelier colour. */
.map-wrap .www-sat-tiles { filter: saturate(1.12) contrast(1.04); }

/* Close sub-pixel seams at fractional zoom: tiles overlap by 1px and paint normally. The zoom
   transform already rescales tiles, so this adds no extra resampling. */
.map-wrap .www-osm-tiles img.leaflet-tile, .map-wrap .www-sat-tiles img.leaflet-tile { mix-blend-mode: normal; width: 257px !important; height: 257px !important; }
/* Sunshine adds light to the map (screen) so geography stays fully readable. */
.map-wrap[data-mode='sun'] .leaflet-overlay-pane { mix-blend-mode: screen; }

.fallback-map { position: absolute; inset: 0; overflow: hidden; }
.fallback-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-wrap[data-mode='sun'] .fallback-map canvas.ovl { mix-blend-mode: screen; }
.fallback-map .markers { position: absolute; inset: 0; }
.fallback-map .city-marker { position: absolute; }

/* Play timeline: slim, dark translucent */
.play-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-top: 1px solid rgba(150, 185, 255, .08); background: rgba(6, 16, 38, .92); color: #dbe6ff; }
.play-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #2f7bff; color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(47, 123, 255, .16); }
.play-btn:hover { background: #4b8dff; }
.play-btn svg { width: 14px; height: 14px; }
.play-btn .i-pause { display: none; }
.play-btn[aria-pressed='true'] .i-pause { display: block; }
.play-btn[aria-pressed='true'] .i-play { display: none; }
.play-time { min-width: 100px; font-weight: 700; font-size: .78rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #fff; }
.play-end { color: #9db0d4; font-size: .72rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
#play-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: 18px; background: transparent; cursor: pointer; --p: 0%; }
#play-range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #3d8bff var(--p), rgba(255, 255, 255, .28) var(--p)); }
#play-range::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
#play-range::-moz-range-progress { height: 3px; border-radius: 2px; background: #3d8bff; }
#play-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(61, 139, 255, .6), 0 1px 4px rgba(0, 0, 0, .4); }
#play-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(61, 139, 255, .6); }
#play-range:focus-visible { outline: none; }
#play-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--yellow); }
input[type='range'] { flex: 1; accent-color: var(--blue); min-width: 60px; height: 28px; }

/* ------------------------------------------------------------------ Best weather */
.bw-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; color: var(--text-3); grid-column: span 2; min-width: 0; }
.bw-form .field:first-child { grid-column: span 3; }
.bw-form .field:nth-child(5) { grid-column: 4 / span 3; grid-row: 1; }
.field select { height: 42px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: var(--text); padding: 0 8px; font-size: .9rem; min-width: 0; }
.bw-form .btn { grid-column: 1 / -1; }
.btn { height: 46px; border-radius: 12px; border: 1px solid transparent; padding: 0 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--blue-fill); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--card-border); color: var(--text); }
.bw-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bw-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--card-border); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.bw-item:hover { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: var(--blue-soft); }
:root[data-theme='light'] .bw-item { background: var(--bg); }
:root[data-theme='light'] .bw-item:hover { background: var(--blue-soft); }
.bw-thumb { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; position: relative; overflow: hidden; }
.bw-thumb svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.bw-thumb .cc { position: absolute; bottom: 2px; right: 4px; font-size: .62rem; opacity: .9; z-index: 1; }
/* With a city photo the icon and country code need their own shade to stay readable. */
.bw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bw-thumb.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 10, 24, .5), rgba(3, 10, 24, .12) 45%, rgba(3, 10, 24, .6)); }
.bw-thumb.has-photo svg { width: 24px; height: 24px; position: absolute; top: 3px; left: 3px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.bw-thumb.has-photo .cc { text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.bw-name { font-weight: 700; }
.bw-name .rank { color: var(--text-3); margin-right: 4px; }
.bw-desc { font-size: .82rem; color: var(--text-2); }
.bw-score { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 4px; }
.bw-score svg { width: 18px; height: 18px; color: var(--yellow); }
.bw-score small { color: var(--text-3); font-weight: 600; }
.trip-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.trip-actions a, .trip-actions button { font-size: .8rem; font-weight: 600; padding: 7px 10px; min-height: 36px; border-radius: 9px; border: 1px solid var(--card-border); background: transparent; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.trip-actions a:hover, .trip-actions button:hover { border-color: var(--blue); background: var(--blue-soft); }
.trip-actions .forecast { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 40%, transparent); color: var(--blue-2); }
:root[data-theme='light'] .trip-actions .forecast { color: var(--blue); }
.trip-actions .sponsored-mark { font-size: .7rem; color: var(--text-3); }
.disclosure { font-size: .74rem; color: var(--text-3); margin: 10px 0 0; }
.empty-state { color: var(--text-3); font-size: .9rem; padding: 6px 0; }

/* ------------------------------------------------------------------ Compare */
.compare-cities { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-city { flex: 1 1 0; min-width: 84px; border-radius: 12px; padding: 10px 8px; background: rgba(255,255,255,.03); border: 1px solid var(--card-border); text-align: center; position: relative; }
:root[data-theme='light'] .compare-city { background: var(--bg); }
.compare-city .n { font-weight: 700; font-size: .88rem; }
.compare-city .t { font-size: 1.35rem; font-weight: 800; }
.compare-city .wx { width: 34px; height: 34px; margin: 2px auto; }
.compare-city .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); font-size: 1.1rem; line-height: 1; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .82rem; }
.compare-table th { text-align: left; color: var(--text-3); font-weight: 500; padding: 5px 4px; }
.compare-table td { text-align: center; padding: 5px 4px; font-weight: 600; }
.compare-table tr + tr { border-top: 1px solid var(--card-border); }
.compare-table .best { color: var(--ok); }
.outlook { display: flex; gap: 1px; justify-content: center; }
.outlook i { width: 7px; border-radius: 2px; background: var(--blue-2); display: inline-block; }
.compare-add { display: flex; gap: 8px; margin-top: 10px; position: relative; }
.compare-add input { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); padding: 0 12px; min-width: 0; }
.compare-add .search-results { top: 44px; }
.compare-trip { margin-top: 10px; }

/* ------------------------------------------------------------------ Favourites */
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fav { position: relative; }
.fav-list .empty-state { grid-column: 1 / -1; }
.fav button.open { width: 100%; text-align: left; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,.03); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; min-height: 64px; }
:root[data-theme='light'] .fav button.open { background: var(--bg); }
.fav button.open:hover { border-color: var(--blue); }
.fav .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav .c { font-size: .76rem; color: var(--text-3); }
.fav .t { grid-row: span 2; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.fav .t svg { width: 28px; height: 28px; }
.fav .rm { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--card); color: var(--text-3); font-size: 1rem; line-height: 1; display: grid; place-items: center; }

/* ------------------------------------------------------------------ Ads (light, reserved, labelled) */
.ad-slot { position: relative; border-radius: var(--radius); border: 1px dashed var(--card-border); background: rgba(255,255,255,.015); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.ad-slot::before { content: attr(data-label); position: absolute; top: 6px; left: 10px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ad-slot[data-placement='between_content'] { min-height: 120px; }
.ad-slot[data-placement='desktop_sidebar'] { min-height: 280px; }
.ad-slot[data-placement='mobile_inline'] { min-height: 280px; }
.ad-slot .ad-inner { width: 100%; display: flex; justify-content: center; padding: 22px 10px 10px; }
.ad-slot .ad-inner ins { display: block; width: 100%; }
.ad-slot img { max-height: 250px; border-radius: 8px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { border-top: 1px solid var(--card-border); margin-top: 8px; padding: 24px 20px 40px; color: var(--text-2); font-size: .88rem; }
.footer-inner { max-width: 1680px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 24px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-cities h2 { font-size: .9rem; margin-bottom: 8px; color: var(--text); }
.footer-cities ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-cities a { color: var(--text-2); text-decoration: none; }
.footer-cities a:hover { color: var(--text); text-decoration: underline; }
.footer-meta p { margin: 0 0 6px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-2); text-decoration: underline; cursor: pointer; }
.noscript { text-align: center; padding: 20px; }

/* ------------------------------------------------------------------ Dialogs, consent, toast */
.dialog { border: 1px solid var(--card-border); border-radius: 18px; background: var(--card); color: var(--text); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(2, 8, 20, .6); backdrop-filter: blur(2px); }
.dialog-body { padding: 20px; display: grid; gap: 14px; }
.dialog fieldset { border: 0; padding: 0; margin: 0; }
.dialog legend { font-size: .85rem; color: var(--text-3); margin-bottom: 6px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--card-border); background: transparent; padding: 8px 12px; border-radius: 10px; min-height: 40px; font-weight: 600; }
.seg button[aria-pressed='true'] { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
.dialog-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.consent { position: fixed; z-index: 900; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: 0 16px 50px rgba(0,0,0,.45); padding: 18px; }
.consent h2 { font-size: 1.05rem; margin-bottom: 6px; }
.consent p { margin: 0 0 12px; font-size: .9rem; color: var(--text-2); }
.consent .opts { display: grid; gap: 8px; margin-bottom: 12px; }
.consent label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; font-size: .9rem; }
.consent label input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.consent label small { grid-column: 2; color: var(--text-3); }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent .btn { height: 42px; }
.toast { position: fixed; z-index: 950; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }

.bottom-nav { display: none; }

/* ------------------------------------------------------------------ Weather icons */
.wx { overflow: visible; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1199px) {
  .layout {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'hero map'
      'hourly hourly'
      'daily daily'
      'activities activities'
      'charts charts'
      'best compare'
      'best favorites'
      'best details'
      'adwide adwide';
  }
  [data-area='adside'] { display: none !important; }
  .layout > [data-area='details'] { align-self: start; }
  .activity-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brand-tagline { display: none; }
}

@media (max-width: 1440px) {
  /* icon only on these widths, so the search box keeps its room: the text stays readable for
     screen readers (visually hidden, not display:none) */
  .top-nav .nav-link span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .top-nav .nav-link { padding: 9px; }
}

@media (max-width: 899px) {
  :root { --header-h: 120px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  /* the bar at the bottom of the screen carries the same five sections */
  .top-nav { display: none; }
  /* room for that bar under the map */
  :root[data-view='map'] .map-card { height: calc(100vh - var(--header-h) - 130px); }
  /* Scrolled: the logo steps aside so search and tools share one line and the forecast gets
     the screen. The bar at the bottom of the screen does the navigating. Scrolling back to the
     top brings the full header back. */
  :root.is-scrolled { --header-h: 58px; }
  :root.is-scrolled .brand { display: none; }
  :root.is-scrolled .header-inner { padding: 8px 14px; flex-wrap: nowrap; }
  :root.is-scrolled .search { order: 0; flex: 1 1 auto; }
  :root.is-scrolled .header-tools { order: 1; flex-shrink: 0; }
  .unit-toggle { display: none; }
  .layout {
    grid-template-rows: none;
    padding: 12px 12px 96px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'hero' 'hourly' 'daily' 'activities' 'admobile' 'map' 'best' 'compare' 'favorites' 'details' 'charts';
  }
  [data-area='admobile'] { display: flex !important; }
  [data-area='admobile'][hidden] { display: none !important; }
  [data-area='adwide'], [data-area='adside'] { display: none !important; }
  .hero { min-height: 0; }
  .hero-lower { grid-template-columns: 1fr; padding: 10px 12px 14px; }
  .stats { margin: 12px 12px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .hero-content { padding: 18px 16px 6px; }
  .hero-city { font-size: 1.75rem; }
  .hero-art { width: 150px; height: 140px; }
  .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr; }
  .confidence-legend { display: none; }
  .map-card { min-height: 420px; }
  .map-modes { left: 10px; right: 60px; transform: none; max-width: none; }
  .map-modes button { padding: 0 9px; }
  .map-modes button span { display: none; }
  .map-modes button[aria-selected='true'] span { display: inline; }
  .map-legend .lg-scale, .map-legend .lg-scale.is-num { width: 140px; }
  .map-legend .lg-scale.is-temp .ticks span:nth-child(3), .map-legend .lg-scale.is-temp .ticks span:nth-child(5) { display: none; }
  .map-card { min-height: 360px; }
  .bw-form { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 500; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--card-border);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--text-2); text-decoration: none; font-size: .68rem; font-weight: 600; min-height: 48px; text-align: center; }
  .bottom-nav a svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; }
  .bottom-nav a.is-active { color: var(--blue-2); }
  .toast { bottom: 96px; }
  .consent { bottom: 84px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 36px; height: 36px; }
  .tool-btn { min-width: 38px; padding: 0 8px; }
  .hero-temp { font-size: 4rem; }
  .hour { width: 56px; }
}

/* Touch screens: small controls keep their looks but get a finger-sized hit area (~44px).
   An invisible ::before box does the work, so nothing on the card grows or moves. */
@media (pointer: coarse) {
  .fs-heart::before, .fs-next::before { content: ''; position: absolute; inset: -9px; border-radius: inherit; }
  .play-btn { width: 40px; height: 40px; }
  .play-btn svg { width: 16px; height: 16px; }
  .map-zoom button { width: 42px; height: 42px; }
  .map-modes button { height: 40px; }
  .map-modes { padding: 4px; }
  #play-range { height: 34px; }
  #play-range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7.5px; }
  #play-range::-moz-range-thumb { width: 18px; height: 18px; }
  .search-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .card, .city-marker, .btn { border: 1px solid CanvasText; }
}

@media (max-width: 480px) {
  .map-modes button[aria-selected='true'] span { display: none; }
  .map-modes button { padding: 0 10px; }
}

/* ------------------------------------------------------------------ Favorite cities strip (under the map) */
.fav-strip { padding: 8px 12px 10px; border-top: 1px solid rgba(150, 185, 255, .1); background: var(--map-ocean, #0d2556); background: linear-gradient(180deg, rgba(8, 20, 44, .96), rgba(6, 16, 36, .98)); }
.fs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; flex-wrap: wrap; }
.fs-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .9rem; font-weight: 700; color: #fff; }
.fs-head h3 svg { width: 16px; height: 16px; fill: #ef4b5f; }
/* Suggestions, not saved favourites: no heart next to the heading. */
#fav-strip.is-suggested .fs-head h3 svg { display: none; }
.fs-hint { margin: 0; font-size: .74rem; color: #a9bbdb; flex: 1; min-width: 160px; }
.fs-manage { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(170, 200, 255, .25); color: #e6eeff; text-decoration: none; font-size: .82rem; font-weight: 600; }
.fs-manage svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; }
.fs-manage:hover { border-color: rgba(170, 200, 255, .55); background: rgba(47, 123, 255, .14); }
button.fs-manage { background: transparent; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.fs-show-all[hidden] { display: none; }
.fs-wrap { position: relative; }
.fs-row { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.fs-row::-webkit-scrollbar { display: none; }
.fs-card { position: relative; flex: 1 0 140px; max-width: 220px; height: 92px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; color: #fff; padding: 6px 9px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  background: linear-gradient(180deg, rgba(4, 12, 28, .15) 0%, rgba(4, 12, 28, .85) 100%), var(--photo, linear-gradient(160deg, #2f62ae, #15335f)) center / cover no-repeat;
  border: 1px solid rgba(170, 200, 255, .16); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s, border-color .15s; isolation: isolate; }
/* city photo (an <img>, so it is downloaded once) under the same dark gradient as before */
.fs-card .fs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.fs-card.has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 12, 28, .15) 0%, rgba(4, 12, 28, .85) 100%); }
.fs-card:hover { transform: translateY(-2px); border-color: rgba(170, 200, 255, .45); }
.fs-card.is-selected { border: 1.5px solid #4f97ff; box-shadow: 0 0 0 2px rgba(61, 139, 255, .25), 0 4px 14px rgba(0, 0, 0, .35); }
.fs-open { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; z-index: 1; }
.fs-open:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.fs-heart { position: absolute; top: 5px; right: 5px; z-index: 2; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(5, 14, 32, .45); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; }
.fs-heart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.fs-heart[aria-pressed='true'] { background: rgba(229, 56, 59, .2); border-color: rgba(255, 120, 130, .55); }
.fs-heart[aria-pressed='true'] svg { fill: #ef4b5f; stroke: #ef4b5f; }
.fs-name { font-weight: 800; font-size: .86rem; padding-right: 28px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-country { font-size: .66rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-wx { display: flex; align-items: center; gap: 4px; }
.fs-wx .fs-icon { width: 22px; height: 22px; flex-shrink: 0; }
.fs-wx b { font-size: 1rem; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.fs-status { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: .62rem; font-weight: 600; line-height: 1.1; text-align: right; max-width: 78px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.fs-status svg { width: 11px; height: 11px; flex-shrink: 0; }
.fs-status.is-dry svg { fill: #22c55e; }
.fs-status.is-wet svg { fill: #7cc4ff; }
.fs-next { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(170, 200, 255, .3); background: rgba(8, 20, 44, .9); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.fs-next svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; }
.fs-next[hidden] { display: none; }
@media (max-width: 480px) {
  .fs-card { flex-basis: 136px; height: 88px; }
  .fs-hint { display: none; }
}

/* ---------- footer: explanation, attribution and information links */
.footer-explain { margin-top: 6px !important; color: var(--text-3); }
.footer-meta a, .footer-explain a { color: var(--text-2); }
.footer-meta a:hover, .footer-explain a:hover { color: var(--text); }
.footer-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- information pages (about, contact, privacy, terms) */
.info-body .header-inner { justify-content: space-between; }
.info-lang { position: relative; }
.info-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--card-border); color: var(--text); font-size: .9rem; }
.info-lang summary::-webkit-details-marker { display: none; }
.info-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 600; margin: 0; padding: 6px; list-style: none; min-width: 190px; max-height: min(70vh, 520px); overflow-y: auto; background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow); }
.info-lang ul a { display: block; color: var(--text-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.info-lang ul a:hover { color: var(--text); background: var(--blue-soft); }
.info-lang ul a[aria-current='page'] { color: var(--text); font-weight: 700; background: var(--blue-soft); }
.info-lang-code { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 5px; border-radius: 4px; background: var(--blue-soft); }
.info-main { max-width: 820px; margin: 0 auto; padding: 24px 16px 8px; }
.info-main:focus { outline: none; }
.info-article { padding: 28px 32px; }
.info-article h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.info-article h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.info-article p, .info-article li { line-height: 1.6; color: var(--text-2); }
.info-article p { margin: 0 0 10px; }
.info-article ul { margin: 0 0 10px; padding-left: 22px; }
.info-article li { margin-bottom: 6px; }
.info-intro { font-size: 1.08rem; color: var(--text) !important; }
.info-address { font-style: normal; margin: 8px 0 4px; font-weight: 600; }
.info-updated { margin-top: 26px !important; font-size: .88rem; color: var(--text-3) !important; }
.info-back { margin: 20px 0 8px; }
.info-footer { grid-template-columns: 1fr; gap: 6px; }
.info-footer p { margin: 0; }
.info-footer a { color: var(--text-2); }
@media (max-width: 899px) {
  .info-article { padding: 22px 18px; }
  .info-article h1 { font-size: 1.6rem; }
  .info-body .site-footer { padding-bottom: 32px; }
}

/* ---------- 15 languages: menu, settings, footer */
#lang-menu { max-height: min(70vh, 520px); overflow-y: auto; min-width: 200px; }
.lang-badge { flex-shrink: 0; min-width: 26px; padding: 2px 4px; border-radius: 4px; background: var(--blue-soft); color: var(--text-2); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.3; }
.lang-select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: var(--text); font: inherit; }
.footer-langs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .85rem; }
.footer-langs a { color: var(--text-3); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current='page'] { color: var(--text); text-decoration: underline; }

/* ---------- right-to-left (Arabic): the page mirrors, geography and time axes do not */
[dir='rtl'] .menu { right: auto; left: 0; }
[dir='rtl'] .world-map, [dir='rtl'] .leaflet-container, [dir='rtl'] .map-legend, [dir='rtl'] .chart-box, [dir='rtl'] .play-bar, [dir='rtl'] #play-range { direction: ltr; }
[dir='rtl'] .info-article ul { padding-left: 0; padding-right: 22px; }
[dir='rtl'] .hero-art { right: auto; left: -10px; }
[dir='rtl'] .hero-temp { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .unit-toggle button, [dir='rtl'] #set-temp button, [dir='rtl'] #set-wind button { direction: ltr; unicode-bidi: isolate; }
