/* TimezonesMap – „zmierzch na papierze”: ciepły papier za dnia, granat nocą (motyw wg systemu albo przełącznika w nagłówku).
   Fonty: Manrope (tekst) i JetBrains Mono (zegary, etykiety) – OFL, z tej domeny. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f1e7;
  --surface: #fffaf1;
  --surface2: #efe8d9;
  --ink: #1c1e3b;
  --ink2: #57597c;
  --line: #e2dac8;
  --accent: #d5701f;
  --accent-ink: #ffffff;
  --night: #232a5c;
  --night-ink: #eef0ff;
  --work: #cfe8d6;
  --day: #f7efd9;
  --eve: #f2d6b6;
  --nightcell: #2f3668;
  --ahead: #2a7d5c;
  --behind: #b04a2a;
  --ocean: #e7e2d4;
  --land: #d5cfbe;
  --radius: 14px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light dark;
}
/* Granat nocą: według systemu, chyba że wybrano jasny motyw przełącznikiem w nagłówku (<html data-theme>);
   te same zmienne przy wymuszonym ciemnym. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1124;
    --surface: #151a35;
    --surface2: #1c2243;
    --ink: #f0ebdf;
    --ink2: #a8a7c7;
    --line: #272d53;
    --accent: #f4a940;
    --accent-ink: #1a1405;
    --night: #070918;
    --night-ink: #eef0ff;
    --work: #1f4b3c;
    --day: #2a3157;
    --eve: #4a3a33;
    --nightcell: #0b0e22;
    --ahead: #6fd3a5;
    --behind: #ff9a76;
    --ocean: #141936;
    --land: #2b335d;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1124;
  --surface: #151a35;
  --surface2: #1c2243;
  --ink: #f0ebdf;
  --ink2: #a8a7c7;
  --line: #272d53;
  --accent: #f4a940;
  --accent-ink: #1a1405;
  --night: #070918;
  --night-ink: #eef0ff;
  --work: #1f4b3c;
  --day: #2a3157;
  --eve: #4a3a33;
  --nightcell: #0b0e22;
  --ahead: #6fd3a5;
  --behind: #ff9a76;
  --ocean: #141936;
  --land: #2b335d;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  font-feature-settings: 'tnum' 1;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 .8em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink2); }
.small { font-size: .85rem; }
.kicker { font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .6em; }
.kicker a { color: inherit; }
.lead { font-size: 1.08rem; color: var(--ink2); max-width: 62ch; }
.badge { font: 600 .7rem var(--mono); padding: .1em .45em; border-radius: 4px; background: var(--surface2); color: var(--ink2); white-space: nowrap; }
.button { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.button:hover { background: var(--accent); color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* --- nagłówek --- */
.site-header { display: flex; align-items: center; gap: 1.2rem; padding: .8rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); position: relative; z-index: 20; background: var(--bg); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; }
.bm-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2.6; }
.bm-night { fill: var(--night); }
.bm-hands { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.site-nav a, .maps-menu summary { display: block; padding: .4rem .7rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .94rem; cursor: pointer; }
.site-nav a[aria-current] { background: var(--surface2); color: var(--accent); }
.maps-menu { position: relative; }
.maps-menu summary { list-style: none; }
.maps-menu summary::after { content: ' ▾'; font-size: .8em; }
.maps-list .maps-more { border-top: 1px solid var(--line); margin-top: .25rem; padding-top: .25rem; }
.maps-list .maps-more a { color: var(--accent); }
.maps-list { position: absolute; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .3rem; min-width: 230px; flex-direction: column; align-items: stretch !important; box-shadow: 0 12px 30px rgb(0 0 0 / .15); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: .3rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.header-tools { display: flex; align-items: center; gap: .6rem; }
.h12-toggle { font: 600 .78rem var(--mono); background: var(--surface2); color: var(--ink); border: 0; border-radius: 6px; padding: .35rem .55rem; cursor: pointer; }
.lang-switch { margin: 0; display: flex; gap: 2px; font: 600 .78rem var(--mono); }
.lang-switch a { padding: .35rem .45rem; border-radius: 6px; text-decoration: none; color: var(--ink2); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
/* Przełącznik motywu: moduł theme (assets/theme/theme.css) na zmiennych projektu */
.site-header {
  --theme-switch-size: 26px; --theme-switch-gap-left: 0; --theme-switch-gap-left-compact: 0;
  --theme-switch-bg: var(--surface2); --theme-switch-border: transparent; --theme-switch-bg-compact: transparent;
  --theme-switch-fg: var(--ink2); --theme-switch-fg-active: var(--accent); --theme-switch-active: var(--bg); --theme-switch-focus: var(--accent);
}
.site-header .theme-switch { flex: none; }
.h12-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Obrazek PNG (moduł export – assets/export/export.css): przycisk i menu formatów na zmiennych projektu */
:root { --export-line: var(--line); --export-ink-2: var(--ink2); --export-muted: var(--ink2); --export-hover: var(--surface2); --export-radius: 8px; --export-font: var(--sans); }

/* Pełne menu z przełącznikami (12h/24h, języki, motyw) na węższym ekranie: ciaśniej, żeby zmieściło się w jednym wierszu */
@media (max-width: 1120px) {
  .site-header { gap: .7rem; }
  .site-nav a, .maps-menu summary { padding: .4rem .45rem; }
  .header-tools { gap: .4rem; }
}
/* Menu w jednym wierszu mieści się od ~1010 px (5 pozycji, „Inne mapy”, 12h/24h, języki, motyw) – węziej hamburger */
@media (max-width: 1010px) {
  .nav-toggle { display: block; }
  .site-nav { order: 3; margin-left: 0; }
  .site-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .site-nav.is-open ul { display: flex; }
  .maps-list { position: static; box-shadow: none; }
  .header-tools { margin-left: auto; }
}
/* Telefon: z motywu widać tylko bieżący tryb – dotknięcie przełącza auto → jasny → ciemny (moduł theme);
   ciaśniejsze odstępy, żeby nazwa, menu, 12h/24h, języki i motyw zmieściły się w jednym wierszu. */
@media (max-width: 480px) {
  .site-header { gap: .5rem; }
  .header-tools { gap: .3rem; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: .75rem; }
  .brand { font-size: 1.02rem; gap: .4rem; }
  .brand-mark { width: 26px; height: 26px; }
  .lang-switch a { padding-inline: .3rem; }
}

/* --- układ stron --- */
.page, .home { max-width: 1240px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.page-head { margin: .5rem 0 1.5rem; }
.section { margin: 2.2rem 0; }
.crumbs { font-size: .85rem; color: var(--ink2); margin-bottom: 1rem; }
.crumbs a { color: var(--ink2); }
.prose, .prose-page .section { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* --- strona główna: mapa na całą wysokość okna, panel po prawej, reszta pod mapą --- */
/* Wysokość nagłówka (jeden wiersz); pierwszy ekran = okno minus nagłówek – bez skoku układu, wysokości tylko w CSS */
:root { --header-h: 63px; }
.site-header { min-height: var(--header-h); }
.page-home .home { max-width: none; padding: 0; }
.map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 380px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: 'map side' 'key side';
  gap: .6rem 1.1rem;
  padding: .9rem clamp(1rem, 1.6vw, 1.6rem) .8rem;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 600px;
}
.map-area { grid-area: map; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.map-area .map-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-area .map-box { flex: 1; min-height: 0; }
.map-key { grid-area: key; min-width: 0; }
.map-key .map-legend { margin: 0 0 .35rem; }
.map-key .map-legend .chip { font-size: .7rem; padding: .32em .45em; }
.map-key .map-note { margin: 0; }
/* Dyskretna wskazówka, że pod mapą jest dalsza część strony */
.more-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink2);
  font: 600 .74rem/1.2 var(--mono); letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 0 0 / .12); backdrop-filter: blur(4px);
}
.more-hint:hover { color: var(--accent); border-color: var(--accent); }
.below { max-width: 1240px; margin: 0 auto; padding: .4rem clamp(1rem, 3vw, 2rem) 0; scroll-margin-top: 1rem; }

/* Panel: wstęp (tytuł, Twój czas, wyszukiwarka) stoi, a niżej przewija się kontekst wybranego kraju/miasta */
.side {
  grid-area: side; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.side-intro { flex: none; position: relative; z-index: 3; padding: 1.15rem 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.side-intro h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.side-intro .lead { font-size: .9rem; line-height: 1.5; margin-bottom: .8rem; }
.side .atlas-panel { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 0 0 var(--radius) var(--radius); position: static; scrollbar-width: thin; }
.side .search { max-width: none; margin-top: .8rem; }
.side .search input { padding-block: .6rem; }
/* Wąski panel: wynik w jednym wierszu (nazwa, region ucięty wielokropkiem, godzina) – lista nie wychodzi daleko w dół */
.side .search-results li > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .search-results strong { flex: none; max-width: 62%; }
.side .search-results .muted { flex: 1 1 auto; }
.side .search-results .sr-time { flex: none; }
.now-clock {
  border-radius: 12px; padding: .7rem 1rem .65rem; color: var(--night-ink);
  background: radial-gradient(120% 160% at 100% 0%, #3b3f8f 0%, #1c2050 45%, #0c0f2a 100%);
  position: relative; overflow: hidden;
}
.now-clock::after { content: ''; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #ffd07a 0%, #f39a3d 45%, transparent 70%); opacity: .5; }
.now-clock p { position: relative; z-index: 1; margin: 0; }
.hero-label { font: 600 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #ffc77a; }
.hero-time { font: 700 2.1rem/1.05 var(--mono); margin: .15em 0 .15em !important; letter-spacing: -.04em; }
.hero-date { color: #c9cbf1; font-size: .85rem; }
.hero-utc { font: 500 .8rem var(--mono); color: #9fa3d9; white-space: nowrap; }

@media (max-width: 900px) {
  .map-stage {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'map' 'side' 'key';
    height: auto; min-height: 0; padding: .6rem clamp(.75rem, 3vw, 1rem) .4rem; gap: .8rem;
  }
  .map-area .map-frame { flex: none; }
  /* Wysokość (ok. połowa ekranu) i przewijanie pasa mapy w bok – tryb phone modułu world-map (home.js) */
  .map-area .map-box { flex: none; }
  .side .atlas-panel { overflow: visible; min-height: 0; }
  .side-intro h1 { font-size: 1.6rem; }
  .more-hint { display: none; }
}
@media print { .more-hint { display: none; } }

.search { position: relative; max-width: 480px; margin-top: 1.2rem; }
.search input { width: 100%; font: inherit; padding: .8rem 1rem .8rem 2.6rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%23888' stroke-width='2'/%3E%3Cpath d='M13 13l4 4' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat .9rem center / 18px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); }
.search-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .18); }
.search-results li { padding: .5rem .7rem; border-radius: 8px; cursor: pointer; display: flex; gap: .5rem; align-items: baseline; }
.search-results li[aria-selected], .search-results li:hover { background: var(--surface2); }
.sr-time { margin-left: auto; font: 600 .85rem var(--mono); color: var(--ink2); }

.map-box { border-radius: var(--radius); overflow: hidden; background: var(--ocean); }
.atlas-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; min-height: 220px; position: sticky; top: 1rem; }
.atlas-panel h2 { font-size: 1.45rem; margin-bottom: .3rem; }
.atlas-panel h2 a { text-decoration: none; }
.panel-hint { color: var(--ink2); }
.panel-hint:focus { outline: none; }
/* × – wyczyść wybór (kraj/miasto) i wróć do listy wielkich miast */
.side .atlas-panel { position: relative; top: auto; }
.panel-close {
  position: absolute; top: .7rem; right: .8rem; width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink2);
  font: 400 1.25rem/1 var(--sans); cursor: pointer;
}
.panel-close:hover { color: var(--accent); border-color: var(--accent); }
.panel-close:focus-visible, .now-city:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atlas-panel .panel-close + .kicker { padding-right: 2.4rem; }
/* „Teraz w wielkich miastach” – dwie kolumny przycisków; noc w mieście = granat jak na zegarach pod mapą */
.panel-idle .panel-hint { margin: 0; }
.now-cities { margin-top: .9rem; }
.now-cities[hidden] { display: none; }
.atlas-panel .now-h { font: 600 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.now-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.now-city {
  width: 100%; display: grid; gap: .05rem; padding: .45rem .65rem; text-align: left; cursor: pointer; position: relative;
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: background .4s, color .4s, border-color .2s;
}
.now-city:hover { border-color: var(--accent); }
.now-city .nc-name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1.1rem; }
.now-city .nc-time { font: 600 .8rem var(--mono); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-city::after { content: '☀'; content: '☀' / ''; position: absolute; right: .55rem; top: .45rem; font-size: .8rem; color: var(--accent); }
.now-city.is-night { background: var(--night); color: var(--night-ink); border-color: transparent; }
.now-city.is-night .nc-time { color: #a9addc; }
.now-city.is-night::after { content: '☾'; content: '☾' / ''; color: #c9cdfa; }
.now-city.is-night:hover { border-color: var(--accent); }
/* Telefon i wąskie okna: panel stoi pod mapą, a te same miasta są zaraz niżej w „Zegarach świata” – lista ukryta */
@media (max-width: 900px) { .now-cities { display: none; } }
.panel-time { font: 700 2.4rem/1.05 var(--mono); letter-spacing: -.03em; margin: .2em 0 .1em; }
.panel-date { color: var(--ink2); font-size: .92rem; }
.panel-zones { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .35rem; max-height: 260px; overflow: auto; }
.panel-zones li { display: flex; align-items: center; gap: .5rem; }
.panel-zones [data-ptz-short] { font: 600 .92rem var(--mono); }
.day-icon { font-size: .9em; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px; margin: .7rem 0 .4rem; }
.map-note { font-size: .8rem; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.swatch { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; }
.swatch-night { background: linear-gradient(90deg, transparent, rgb(6 9 38 / .6)); border: 1px solid var(--line); }
.swatch-multi { background: repeating-linear-gradient(45deg, #e9a3c9 0 3px, #8dc0e8 3px 6px); }

.chip { display: inline-block; font: 600 .76rem/1 var(--mono); padding: .38em .55em; border-radius: 6px; background: var(--chip, var(--surface2)); color: #14152b; text-decoration: none; white-space: nowrap; }
a.chip:hover { color: #14152b; box-shadow: 0 0 0 2px var(--ink); }

.clock-wall { margin-top: 2.6rem; }
.clock-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: .7rem; }
.clock-card a { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: background .4s, color .4s; }
.clock-card.is-night a { background: var(--night); color: var(--night-ink); border-color: transparent; }
.clock-card.is-night .cc-meta { color: #a9addc; }
.cc-name { font-weight: 800; }
.cc-time { font: 700 1.8rem/1.1 var(--mono); letter-spacing: -.03em; }
.cc-meta { font: 500 .76rem var(--mono); color: var(--ink2); }
.clock-card a { position: relative; }
.clock-card a::before { content: "☀"; position: absolute; right: 1rem; top: .85rem; color: var(--accent); }
.clock-card.is-night a::before { content: '☾'; color: #c9cdfa; }

.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.4rem; }
.home-stats { grid-column: 1 / -1; font: 500 .8rem var(--mono); color: var(--ink2); }
@media (max-width: 760px) { .home-links { grid-template-columns: 1fr; } }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-list a, nav.pill-list > a { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill-list small { font-family: var(--mono); color: var(--accent); }

/* --- mapy (zmienne assetu) --- */
.wm, .rm {
  --wm-ocean: var(--ocean); --wm-sphere-stroke: var(--line); --wm-land: var(--land); --wm-land-hover: color-mix(in srgb, var(--land) 70%, var(--ink));
  --wm-border: var(--bg); --wm-border-width: .5px; --wm-selected: var(--accent); --wm-selected-outline: var(--ink); --wm-hover-outline: var(--ink);
  --wm-marker: var(--ink); --wm-marker-stroke: var(--surface); --wm-font: var(--sans);
  --wm-tooltip-bg: var(--ink); --wm-tooltip-fg: var(--bg); --wm-control-bg: var(--surface); --wm-control-fg: var(--ink); --wm-control-border: var(--line);
  --rm-land: var(--land); --rm-border: var(--bg); --rm-outline: var(--ink2); --rm-frame: var(--line); --rm-hover-outline: var(--ink);
  --rm-tooltip-bg: var(--ink); --rm-tooltip-fg: var(--bg); --rm-dot-stroke: var(--ink2); --rm-font: var(--sans);
}
.wm[data-wm-theme], .rm[data-rm-theme] { color-scheme: inherit; }
.night-shade { pointer-events: none; }
.terminator { fill: none; stroke: #ffb347; stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; opacity: .85; pointer-events: none; }
.wm-marker.sun-marker circle { fill: #ffcf4d; stroke: #fff3c4; stroke-width: 2px; filter: drop-shadow(0 0 6px #ffb347); pointer-events: none; }
.wm-marker.city-marker circle { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5px; cursor: pointer; }
.wm-marker.city-marker:hover circle, .wm-marker.is-found circle { fill: var(--accent); }
.legend-focus .wm-country:not(.is-hit) { opacity: .28; }
.marker-tip { position: absolute; z-index: 10; pointer-events: none; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 700; padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; }
.region-map { max-width: 900px; }
.region-section .map-legend { margin-top: 1rem; }

/* --- strony zegara (miasto, kraj, strefa) --- */
.clock-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .clock-head { grid-template-columns: 1fr; } }
.big-time { font: 700 clamp(3rem, 11vw, 6.6rem)/1 var(--mono); letter-spacing: -.05em; margin: .1em 0 .15em; }
.big-date { font-size: 1.1rem; color: var(--ink2); }
.facts { margin: 0; display: grid; gap: .1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1.1rem; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border: 0; }
.facts dt { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); padding-top: .2em; }
.facts dd { margin: 0; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.card-map { padding: 0; overflow: hidden; background: var(--ocean); min-height: 200px; }
.mini-map { height: 100%; min-height: 220px; }
/* Obrazek PNG (moduł export): przycisk w lewym dolnym rogu mapy, menu formatów w górę; mapka przycina się sama
   (zaokrąglone rogi), a karta nie – menu może wyjść poza nią. Na czas kopiowania mapy (.is-exporting) obrazek cienia
   nocy w SVG jest przezroczysty – cień rysuje moduł z płótna (opcja overlays), raz. */
.map-frame { position: relative; }
.card-map { position: relative; overflow: visible; }
.card-map .mini-map { border-radius: inherit; overflow: hidden; }
.map-frame > .map-export-wrap, .card-map > .map-export-wrap { position: absolute; z-index: 5; left: 10px; bottom: 10px; }
svg.is-exporting .night-shade { opacity: 0 !important; }
.diff-map { margin-top: 1.6rem; }
/* Szeroka tabela (strefy kraju) na telefonie przewija się w poziomie, strona – nie */
.table-scroll { overflow-x: auto; }
.diff-map .mini-map { aspect-ratio: 2 / 1; max-height: 440px; min-height: 0; }
.changes { padding-left: 1.1rem; margin: 0 0 .8rem; }
.changes li { margin-bottom: .4rem; }
.next { background: var(--surface2); border-radius: 10px; padding: .6rem .8rem; }
.sun { margin: 0 0 .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sun div { background: var(--surface2); border-radius: 10px; padding: .55rem .7rem; }
.sun dt { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.sun dd { margin: 0; font: 700 1.3rem var(--mono); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.table time, .city-list time, .country-grid time, .city-columns time { font-family: var(--mono); font-weight: 600; }
.diff { font: 700 .95rem var(--mono); }
.diff.ahead, .duel-diff.ahead { color: var(--ahead); }
.diff.behind, .duel-diff.behind { color: var(--behind); }
.city-list, .city-columns, .country-grid { list-style: none; padding: 0; margin: 0; }
.city-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.city-columns { columns: 4 200px; column-gap: 1.5rem; }
.city-columns li { break-inside: avoid; padding: .25rem 0; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .1rem 1.5rem; }
.country-grid li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.country-grid li > a { font-weight: 700; margin-right: auto; }

.offset-rows { list-style: none; margin: 0; padding: 0; }
.offset-rows li { display: grid; grid-template-columns: 6.5rem 6.5rem 1fr; gap: 1rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.or-time { font: 700 1.15rem var(--mono); }
@media (max-width: 640px) { .offset-rows li { grid-template-columns: 6rem 1fr; } .or-list { grid-column: 1 / -1; } }
.offset-nav { display: flex; gap: .6rem; justify-content: flex-end; font: 600 .9rem var(--mono); }

/* --- różnica czasu --- */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; }
.duel .big-time { font-size: clamp(2.2rem, 6vw, 4rem); }
.duel-name { font-weight: 800; font-size: 1.2rem; margin: 0; }
.duel-gap { display: grid; justify-items: center; text-align: center; gap: .3rem; }
.duel-diff { font: 700 1.8rem var(--mono); }
.swap { font-size: 1.4rem; text-decoration: none; }
@media (max-width: 700px) { .duel { grid-template-columns: 1fr; text-align: center; } }
.hours-table { max-width: 520px; font-family: var(--mono); }
.hours-table tr.both-work td { background: var(--work); }
.hours-table tr.night td:last-child { background: var(--nightcell); color: var(--night-ink); }

/* --- planer --- */
.planner-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.planner-tools .search { margin: 0; flex: 1 1 260px; }
.date-pick { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.date-pick input { font: inherit; padding: .5rem .6rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.planner-grid { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.planner-table { border-collapse: separate; border-spacing: 2px; font: 600 .85rem var(--mono); width: 100%; }
.planner-table th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: .4rem .6rem; min-width: 11rem; font-family: var(--sans); white-space: nowrap; }
.planner-table th > * { display: block; }
.planner-table th .row-x { display: inline; position: absolute; right: .3rem; top: .3rem; background: none; border: 0; color: var(--ink2); cursor: pointer; font-size: 1.1rem; }
.planner-table td { min-width: 2.2rem; height: 2.6rem; text-align: center; border-radius: 6px; cursor: pointer; }
.planner-table td small { font-size: .65rem; text-transform: uppercase; }
.planner-table td.work { background: var(--work); }
.planner-table td.day { background: var(--day); }
.planner-table td.eve { background: var(--eve); }
.planner-table td.night { background: var(--nightcell); color: var(--night-ink); }
.planner-table td.newday { box-shadow: inset 2px 0 0 var(--accent); }
.planner-table td.now { outline: 2px dashed var(--accent); outline-offset: -2px; }
.planner-table td.picked { outline: 3px solid var(--ink); outline-offset: -3px; }
.planner-pick { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; }
.planner-static { font-family: var(--mono); }

/* --- błąd i stopka --- */
.page-error { text-align: center; padding-top: 3rem; padding-bottom: 4rem; }
.error-clock { font: 700 clamp(4rem, 18vw, 9rem)/1 var(--mono); color: var(--accent); margin: 0; letter-spacing: -.06em; }
.error-clock span { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .error-clock span { animation: none; } }
.page-error .lead { margin: 0 auto 1.5rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem clamp(1rem, 3vw, 2rem); font-size: .82rem; color: var(--ink2); }
.site-footer p { max-width: 1240px; margin: 0 auto .3rem; }
/* Ikonki kanałów marki w stopce (Series::socialLinks, moduł series): kolor tekstu stopki, przy najechaniu i fokusie jaśniej */
.series-social-link { transition: opacity .15s; }
.series-social-link:hover, .series-social-link:focus-visible { opacity: .7; }
.footer-copy { opacity: .85; }

/* --- kontakt --- */
.contact-form { display: grid; gap: 1rem; margin-top: 1.2rem; max-width: 640px; }
.contact-form .field { display: grid; gap: .35rem; margin: 0; }
.contact-form label { font-weight: 700; }
.contact-form input[type='text'], .contact-form input[type='email'], .contact-form textarea {
  width: 100%; font: inherit; padding: .65rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 10rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form [aria-invalid='true'] { border-color: var(--behind); }
.contact-form .field-check { grid-template-columns: auto 1fr; align-items: start; gap: .25rem .6rem; }
.contact-form .field-check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--accent); }
.contact-form .field-check label { font-weight: 400; font-size: .94rem; color: var(--ink2); }
.contact-form .field-check .field-error { grid-column: 2; }
.req { color: var(--accent); }
.field-error { margin: 0; color: var(--behind); font-size: .9rem; font-weight: 600; }
.form-required { margin: 0; color: var(--ink2); font-size: .85rem; }
.form-notice { padding: .8rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); max-width: 640px; }
.form-notice.is-ok { border-color: var(--ahead); color: var(--ahead); font-weight: 700; }
.form-notice.is-error { border-color: var(--behind); color: var(--behind); }
.form-info { margin-top: 1.6rem; font-size: .85rem; color: var(--ink2); max-width: 640px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Quiz (/quiz – moduł quiz z assets) ---------- */
.quiz-stage { margin: 18px 0 28px; }
.quiz-stage .quiz { --quiz-accent: var(--accent); --quiz-accent-ink: var(--accent-ink); --quiz-surface: var(--surface); --quiz-radius: var(--radius); }
.quiz-map {
  --wm-ocean: var(--ocean); --wm-sphere-stroke: var(--line); --wm-land: var(--land); --wm-land-hover: color-mix(in srgb, var(--land) 70%, var(--ink));
  --wm-dot: var(--land); --wm-border: var(--bg); --wm-border-width: .6px; --wm-font: var(--sans);
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.quiz-about { max-width: 70ch; color: var(--ink2); }
