/* lucembursko.org - redakcni cestovni pruvodce. Motiv: trikolora lucemburske vlajky, Literata (nadpisy) + Instrument Sans (text). Zadna kurziva v nadpisech - uzivatel nechce kroucena pismena.
   Barvy grafu (--c-temp, --c-rain, --c-sun) jsou overene validatorem dataviz pro oba rezimy - menit jen s novou validaci. */

:root {
  color-scheme: light;
  --paper: #F4EFE6;
  --surface: #FFFCF6;
  --ink: #1A2233;
  --ink-2: #3A4252;
  --muted: #5E6573;
  --line: #DDD5C7;
  --line-strong: #C9BFAE;
  --red: #C8282F;
  --sky: #1B87BF;
  --sky-ink: #136A97;
  --sky-soft: #E2F0F6;
  --red-soft: #F8E4E1;
  --flag-red: #EF3340;
  --flag-white: #FFFFFF;
  --flag-sky: #00A3E0;
  --c-temp: #C8282F;
  --c-rain: #1B87BF;
  --c-sun: #B47A05;
  --night: #121A28;
  --shadow: 0 1px 2px rgb(26 34 51 / .06), 0 8px 28px rgb(26 34 51 / .08);
  --grain-opacity: .05;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1520;
    --surface: #18202F;
    --ink: #ECE6DA;
    --ink-2: #C9C3B7;
    --muted: #9AA1AD;
    --line: #2A3446;
    --line-strong: #3A465C;
    --red: #E2555A;
    --sky: #2A92C2;
    --sky-ink: #6CC0E8;
    --sky-soft: #15283A;
    --red-soft: #33191D;
    --flag-white: #ECE6DA;
    --c-temp: #E2555A;
    --c-rain: #2A92C2;
    --c-sun: #B98A26;
    --night: #0A0F18;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
    --grain-opacity: .07;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1520;
  --surface: #18202F;
  --ink: #ECE6DA;
  --ink-2: #C9C3B7;
  --muted: #9AA1AD;
  --line: #2A3446;
  --line-strong: #3A465C;
  --red: #E2555A;
  --sky: #2A92C2;
  --sky-ink: #6CC0E8;
  --sky-soft: #15283A;
  --red-soft: #33191D;
  --flag-white: #ECE6DA;
  --c-temp: #E2555A;
  --c-rain: #2A92C2;
  --c-sun: #B98A26;
  --night: #0A0F18;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
  --grain-opacity: .07;
}

/* ---------- zaklad ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
/* jemne zrno papiru */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--flag-sky); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-optical-sizing: auto; color: var(--ink); margin: 0; font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6.8vw, 5rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: .5em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.15; margin-bottom: .4em; }
h4 { font-size: 1.15rem; margin-bottom: .3em; }
h1 em, h2 em { font-style: normal; color: var(--red); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 6px; background: linear-gradient(var(--flag-red) 0 33.4%, var(--flag-white) 33.4% 66.6%, var(--flag-sky) 66.6%); box-shadow: 0 0 0 1px var(--line); }
.lead { font: 400 clamp(1.15rem, 2vw, 1.35rem)/1.5 var(--sans); letter-spacing: -.005em; color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--muted); }
.source { font-size: .82rem; color: var(--muted); }

/* ---------- trikolora ---------- */
.flag-rule { display: grid; grid-template-rows: repeat(3, 1fr); height: 9px; }
.flag-rule span:nth-child(1) { background: var(--flag-red); }
.flag-rule span:nth-child(2) { background: var(--flag-white); }
.flag-rule span:nth-child(3) { background: var(--flag-sky); }
.flag-rule--top { height: 6px; position: relative; z-index: 60; }

/* ---------- hlavicka ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { display: grid; grid-template-rows: repeat(3, 1fr); width: 20px; height: 15px; box-shadow: 0 0 0 1px var(--line-strong); }
.brand__mark span:nth-child(1) { background: var(--flag-red); }
.brand__mark span:nth-child(2) { background: var(--flag-white); }
.brand__mark span:nth-child(3) { background: var(--flag-sky); }
.brand__name { font: 600 1.3rem/1 var(--serif); letter-spacing: -.01em; }
.brand__tld { font-weight: 300; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 -2px 0 var(--red); }

.nav-button, .theme-toggle {
  font: 600 .9rem var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.nav-button { display: none; padding: 8px 16px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }
.theme-toggle svg { width: 18px; height: 18px; fill: var(--ink); }

@media (max-width: 959px) {
  .js .nav-button { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .js .site-nav a { border-radius: 8px; padding: 12px; font-size: 1.05rem; }
  /* bez JS: menu jako vodorovne posuvny pruh pod znackou */
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}

/* ---------- hero (uvod) ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero .photo { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; animation: hero-zoom 18s ease-out both; }
.hero .photo figcaption { position: absolute; right: 12px; bottom: 10px; color: rgb(255 255 255 / .82); font-size: .72rem; z-index: 2; }
.hero .photo figcaption a { color: inherit; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgb(10 15 24 / .35) 0%, rgb(10 15 24 / 0) 28%, rgb(10 15 24 / .05) 50%, rgb(10 15 24 / .78) 100%); }
.hero__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); }
.hero .kicker { color: #fff; }
.hero .kicker::before { box-shadow: none; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 11.5vw, 8.5rem); font-weight: 500; line-height: .95; letter-spacing: -.025em; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero__sub { font: 400 clamp(1.05rem, 2vw, 1.3rem)/1.5 var(--sans); max-width: 40ch; margin: 22px 0 0; color: rgb(255 255 255 / .94); text-shadow: 0 1px 12px rgb(0 0 0 / .3); }
.hero .weather-chip { position: absolute; top: clamp(18px, 4vh, 36px); right: var(--gutter); }

.weather-chip {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 0;
  padding: 9px 14px; border-radius: 999px; font-size: .88rem;
  background: rgb(15 21 32 / .45); color: #fff; border: 1px solid rgb(255 255 255 / .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.weather-chip strong { font: 500 1.15rem/1 var(--serif); }
.weather-chip__label { opacity: .78; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.weather-chip--plain { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: none; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .kicker, .hero h1, .hero__sub { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .12s; }
.hero__sub { animation-delay: .28s; }

/* ---------- hlavicka podstranek ---------- */
.page-head { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); position: relative; }
.page-head h1 { max-width: 15ch; }
.page-head .lead { margin-top: 22px; }
.page-head__aside { margin-top: 26px; }

/* ---------- sekce ---------- */
.section { padding: clamp(48px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--surface + .section { padding-top: clamp(48px, 8vw, 104px); }
.section-head { display: grid; gap: 6px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 60ch; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .split--reverse { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .split--reverse > :first-child { order: 2; }
  .sticky { position: sticky; top: 96px; }
}

/* ---------- fotky ---------- */
.photo { margin: 0; }
.photo img { width: 100%; background: var(--line); }
.photo figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.photo figcaption a { color: var(--muted); }
.photo figcaption span + .credit::before { content: "· "; }
.photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo--wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.photo--frame img { box-shadow: var(--shadow); }
.bleed { margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 1260px) { .bleed { margin-inline: calc((100vw - var(--wrap)) / -2 - var(--gutter) + var(--gutter)); } }

/* ---------- cisla ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.fact { padding: 22px 18px 24px 0; border-bottom: 1px solid var(--line); }
.fact__value { display: block; font: 450 clamp(2.1rem, 4.4vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.fact__value small { font-size: .45em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.fact__label { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- karty regionu ---------- */
.cards { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.card .photo figcaption { padding: 0 18px; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--ink-2); font-size: .98rem; }
.card__more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card__more::after { content: " →"; }
@media (min-width: 900px) {
  .cards--feature { grid-template-columns: 1.4fr 1fr 1fr; }
  .cards--feature .card:first-child { grid-row: span 2; }
  .cards--feature .card:first-child .photo img { aspect-ratio: 4 / 5; }
}

/* ---------- poznamky, citaty ---------- */
.note { margin: 28px 0; padding: 18px 22px; background: var(--sky-soft); border-left: 3px solid var(--sky); }
.note__title { display: block; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }
.note--red { background: var(--red-soft); border-left-color: var(--red); }
.note--red .note__title { color: var(--red); }
.pull { margin: 40px 0; padding: 0; font: 500 clamp(1.4rem, 2.8vw, 1.9rem)/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); border: 0; }
.pull::before { content: ""; display: block; width: 48px; height: 9px; margin-bottom: 18px; background: linear-gradient(var(--flag-red) 0 33.4%, var(--flag-white) 33.4% 66.6%, var(--flag-sky) 66.6%); box-shadow: 0 0 0 1px var(--line); }
.pull cite { display: block; margin-top: 12px; font: normal 400 .9rem var(--sans); color: var(--muted); }

/* ---------- tabulka faktu ---------- */
.factsheet { display: grid; grid-template-columns: minmax(0, 12rem) 1fr; margin: 0; border-top: 1px solid var(--line-strong); }
.factsheet dt, .factsheet dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.factsheet dt { color: var(--muted); font-size: .92rem; padding-right: 16px; }
.factsheet dd { font-weight: 500; }
@media (max-width: 560px) {
  .factsheet { grid-template-columns: 1fr; }
  .factsheet dt { border-bottom: 0; padding-bottom: 0; }
  .factsheet dd { padding-top: 2px; }
}

/* ---------- casova osa ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.2rem; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.4rem; padding: 10px 0 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.2rem - 5px); top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--red); }
.timeline__year { font: 500 1.35rem/1.2 var(--serif); text-align: right; color: var(--ink); font-variant-numeric: lining-nums; }
.timeline li.is-czech::before { background: var(--red); }
.timeline li.is-czech .timeline__year { color: var(--red); }
.timeline p { margin: 0; }
.timeline strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }

/* ---------- rodokmen Lucemburku ---------- */
.kings { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-strong); }
.king { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.king__years { font-size: .85rem; color: var(--muted); }
.king h3 { margin: 4px 0 8px; }
.king p { font-size: .96rem; color: var(--ink-2); margin: 0; }

/* ---------- seznam / kroky ---------- */
.ways { display: grid; gap: clamp(20px, 3vw, 28px); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.way { background: var(--surface); border: 1px solid var(--line); padding: 22px 22px 24px; }
.way__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sky-soft); margin-bottom: 14px; }
.way__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sky-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way h3 { font-size: 1.3rem; }
.way .way__stat { font: 500 1.6rem/1 var(--serif); margin: 4px 0 12px; color: var(--ink); }
.way__stat small { font: 400 .85rem var(--sans); color: var(--muted); }
.way p { font-size: .97rem; color: var(--ink-2); }
.way p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: attr(data-n); font: 500 1.25rem/1.2 var(--serif); color: var(--red); }

.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.phones li { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.phones b { display: block; font: 550 1.9rem/1 var(--serif); color: var(--red); }
.phones span { font-size: .9rem; color: var(--muted); }

.calendar { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.calendar li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calendar__when { font: 500 1rem/1.35 var(--serif); color: var(--red); }
.calendar p { margin: 0; }
@media (max-width: 560px) { .calendar li { grid-template-columns: 1fr; gap: 2px; } }

.contact { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.contact address { font-style: normal; line-height: 1.7; }
.contact h3 { margin-bottom: 12px; }

/* ---------- mapa ---------- */
.map-layout { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .map-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } }
.map-card { background: var(--surface); border: 1px solid var(--line); padding: 18px 18px 12px; }
.map-card .source { margin: 8px 0 0; font-size: .74rem; }
.lux-map { width: 100%; height: auto; display: block; font-family: var(--serif); }
.lux-map__land { fill: var(--paper); }
.lux-map__cantons { fill: none; stroke: var(--line-strong); stroke-width: .6; stroke-dasharray: 2 3; }
.lux-map__rivers { fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lux-map__rivers-minor { fill: none; stroke: var(--sky); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.lux-map__border { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.lux-map__region { font: 600 9.5px var(--sans); letter-spacing: .22em; fill: var(--muted); opacity: .85; }
.lux-map__dot { fill: var(--red); stroke: var(--surface); stroke-width: 2; }
.lux-map__dot--minor { fill: var(--muted); }
.lux-map__capital-ring { fill: none; stroke: var(--red); stroke-width: 1.2; }
.lux-map__label { font-size: 13.5px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.lux-map__label--capital { font-size: 17px; font-weight: 650; }
.lux-map__label--minor { font-size: 11.5px; fill: var(--muted); }
.lux-map__place { text-decoration: none; }
a.lux-map__place:hover .lux-map__label, a.lux-map__place:focus .lux-map__label { fill: var(--red); }
a.lux-map__place:hover .lux-map__dot { r: 7; }
.lux-map__scale line { stroke: var(--ink); stroke-width: 1.5; }
.lux-map__scale text { font: 500 10px var(--sans); fill: var(--muted); }

.region { padding-top: 8px; scroll-margin-top: 90px; }
.region + .region { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.region__tag { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.region h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 14px; }
.region .photo { margin: 20px 0; }
.sights { list-style: none; padding: 0; margin: 16px 0 0; }
.sights li { padding: 12px 0 12px 1.4rem; border-top: 1px solid var(--line); position: relative; }
.sights li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
.sights b { font-weight: 600; }

/* ---------- grafy klimatu ---------- */
.climate { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.climate__item { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 16px 14px 8px; }
.climate__item figcaption { font-size: .86rem; color: var(--muted); margin: 0 4px 6px; }
.climate__item figcaption strong { display: block; font: 500 1.2rem var(--serif); color: var(--ink); }
.climate-chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); }
.climate-chart .grid { stroke: var(--line); stroke-width: 1; }
.climate-chart .grid--zero { stroke: var(--line-strong); }
.climate-chart .tick, .climate-chart .unit { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.climate-chart .label { font-size: 11px; font-weight: 600; fill: var(--ink); }
.marks--temp rect:not(.hit__area), .marks--temp path { fill: var(--c-temp); }
.marks--rain path { fill: var(--c-rain); }
.marks--sun path { fill: var(--c-sun); }
.hit { cursor: default; outline: none; }
.climate-chart .hit__area { fill: transparent; }
.hit:hover rect:not(.hit__area), .hit:hover path, .hit:focus-visible rect:not(.hit__area), .hit:focus-visible path { filter: brightness(1.18); }
.climate-chart .hit:focus-visible .hit__area { fill: var(--sky-soft); }
.chart-tip {
  position: fixed; z-index: 120; pointer-events: none; max-width: 240px;
  padding: 8px 12px; border-radius: 6px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .86rem; line-height: 1.35;
}
.chart-tip[hidden] { display: none; }
.table-view { margin-top: 14px; }
.table-view summary { cursor: pointer; font-weight: 600; color: var(--sky-ink); }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.table-scroll th, .table-scroll td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll th:first-child { text-align: left; }
.table-scroll thead th { font-weight: 600; color: var(--muted); font-size: .8rem; }

/* ---------- uvod: rozcestnik ---------- */
.intro-grid { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.big-quote { font: 500 clamp(1.6rem, 3.2vw, 2.3rem)/1.3 var(--sans); letter-spacing: -.015em; margin: 0; }
.big-quote b { font-weight: 700; color: var(--red); }
.teaser { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--red); color: #fff; }
.btn::after { content: "→"; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--red); background: transparent; color: var(--red); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 12vw, 160px) 0; text-align: left; }
.notfound .big { font: 400 clamp(6rem, 22vw, 14rem)/.85 var(--serif); color: var(--red); }

/* ---------- paticka ---------- */
.site-footer { background: var(--night); color: #D9D4CA; }
main > :last-child:not(.section--surface):not(.hero) { padding-bottom: clamp(64px, 9vw, 120px); }
.site-footer .flag-rule span:nth-child(2) { background: #fff; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer__brand { font: 500 2rem/1 var(--serif); color: #fff; margin-bottom: 12px; }
.site-footer__brand span { font-weight: 300; color: #9AA1AD; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
.site-footer a:hover { color: #7FD0F2; }
.site-footer__note, .site-footer__copy { grid-column: 1 / -1; font-size: .84rem; color: #9AA1AD; margin: 0; max-width: 90ch; }

/* ---------- postupne odhaleni pri scrollu (jen s JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body::before, .site-header, .flag-rule--top, .theme-toggle, .site-footer nav { display: none; }
  .hero { min-height: 0; color: var(--ink); }
  .hero .photo { position: static; }
  .hero h1, .hero__sub, .hero .kicker { color: var(--ink); text-shadow: none; }
  .hero::after { display: none; }
}

/* Mapa na telefonu: SVG se zmensi na ~60 %, proto vetsi popisky (v jednotkach viewBoxu). */
@media (max-width: 600px) {
  .lux-map__label { font-size: 18px; stroke-width: 4.5px; }
  .lux-map__label--capital { font-size: 22px; }
  .lux-map__label--minor { font-size: 15px; }
  .lux-map__region { font-size: 12px; letter-spacing: .16em; }
  .lux-map__scale text { font-size: 13px; }
}
