/* Písma (SIL OFL, licencie v fonts/): Instrument Sans na nadpisy, Source Sans 3 na text. Variabilná váha, latin a latin-ext, lokálne.
   Kurzívu prehliadač zloží zo vzpriamenej (používa sa len pri názvoch polí). */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-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;
}

/* Tmavomodrý pás s vyhľadávaním, biele dlaždice na svetlosivej,
   modrý akcent, tmavá pätička. Bez znakov štátu (erb, logo a názov slovensko.sk, pás „Oficiálna stránka“). */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0e1b2c;
  --muted: #4a5868;
  --line: #dde3ea;
  --line-strong: #8794a3;
  --accent: #1f5bd6;
  --accent-hover: #15449f;
  --accent-soft: #e8effc;
  --on-accent: #ffffff;
  --hero: #0a2449;
  --hero-ink: #ffffff;
  --hero-muted: #c9d4e5;
  --footer: #0e1b2c;
  --footer-ink: #c9d4e5;
  --warn-bg: #fff4d6;
  --warn-line: #f2c14e;
  --focus: #ffb020;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Instrument Sans", "Source Sans 3", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 77.5rem;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320;
    --surface: #121c2c;
    --ink: #e6ebf2;
    --muted: #a7b4c6;
    --line: #24324a;
    --line-strong: #6f7f96;
    --accent: #7ea6ff;
    --accent-hover: #adc6ff;
    --accent-soft: #16243c;
    --on-accent: #0b1320;
    --hero: #08182f;
    --footer: #070f1c;
    --warn-bg: #2b2412;
    --warn-line: #a88227;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1320;
  --surface: #121c2c;
  --ink: #e6ebf2;
  --muted: #a7b4c6;
  --line: #24324a;
  --line-strong: #6f7f96;
  --accent: #7ea6ff;
  --accent-hover: #adc6ff;
  --accent-soft: #16243c;
  --on-accent: #0b1320;
  --hero: #08182f;
  --footer: #070f1c;
  --warn-bg: #2b2412;
  --warn-line: #a88227;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
html[data-size="large"] { font-size: 125%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 40rem) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p, ul, ol, dl { margin: 0; }

.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: calc(0.5rem + env(safe-area-inset-top, 0px)); color: var(--surface); }
#obsah:focus { outline: none; }

/* Tlačidlá */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-dark:hover { background: var(--accent-hover); color: #fff; }
.btn-outline, .print-btn, .ics-btn, .contact button, .next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.05rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover, .print-btn:hover, .ics-btn:hover, .contact button:hover, .next a:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--hero-ink); }
button[type="submit"].print-btn { background: var(--accent); color: var(--on-accent); }
button[type="submit"].print-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.print-btn { justify-self: start; }
.ics-btn { white-space: nowrap; font-size: 0.92rem; }
td .ics-btn { margin-top: 0.45rem; }

/* Hlavička: rovnaká na všetkých stránkach */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand:hover .brand__name { text-decoration: underline; text-decoration-thickness: 2px; }
.brand__mark { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.1; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-header__tools { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.size-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.size-toggle:hover { border-color: var(--accent); }
.size-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.site-header { position: relative; }
.mobile-menu { display: none; }
@media (max-width: 64rem) {
  .site-header__in { gap: 0.5rem 1rem; padding-block: 0.6rem; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.9rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--surface);
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu__icon, .mobile-menu__icon::before, .mobile-menu__icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .mobile-menu__icon::before, .mobile-menu__icon::after { content: ""; position: absolute; left: 0; }
  .mobile-menu__icon::before { top: -6px; }
  .mobile-menu__icon::after { top: 6px; }
  .mobile-menu[open] .mobile-menu__icon { background: transparent; }
  .mobile-menu[open] .mobile-menu__icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .mobile-menu__icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14, 27, 44, 0.45);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
  .mobile-menu__panel ul { list-style: none; margin: 0 auto; padding: 0.4rem max(16px, env(safe-area-inset-left, 0px)) 1rem; max-width: var(--container); }
  .mobile-menu__panel li + li { border-top: 1px solid var(--line); }
  .mobile-menu__panel a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 54px; color: var(--ink); font-weight: 600; font-size: 1.08rem; text-decoration: none; }
  .mobile-menu__panel a:hover { color: var(--accent); }
  .mobile-menu__panel a[aria-current="page"] { color: var(--accent); }
  .mobile-menu__panel a[aria-current="page"]::after { content: "●"; font-size: 0.6rem; }
  .hide-sm { display: none; }
}
@media (max-width: 40rem) {
  .site-header__in { flex-wrap: nowrap; column-gap: 0.6rem; }
  .site-header__tools { gap: 0.45rem; }
  .mobile-menu summary { padding: 0 0.75rem; }
  .site-header__tools .btn-dark { display: none; }
  .brand { gap: 0.55rem; min-width: 0; }
  .brand__mark { width: 2.1rem; height: 2.1rem; }
  .brand__name { font-size: 1.05rem; }
  .brand__rest { display: block; }
}

/* Tmavomodrý pás s nadpisom a vyhľadávaním (úvod) */
.hero {
  background-color: var(--hero);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--hero-ink);
}
.hero__in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5rem 3.5rem; padding-block: 4.5rem 5rem; }
.hero__main { flex: 999 1 32rem; min-width: 0; display: grid; gap: 1.6rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.03; letter-spacing: -0.025em; color: var(--hero-ink); }
.hero__lead { font-size: 1.2rem; color: var(--hero-muted); max-width: 38rem; text-wrap: pretty; }
.hero__card {
  flex: 1 1 20rem;
  min-width: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.hero__card-head { display: flex; align-items: center; gap: 0.75rem; }
.hero__card h2 { font-size: 1.35rem; }
.hero__card p { color: var(--muted); text-wrap: pretty; }
.hero__card .btn { width: 100%; min-height: 48px; }
.hero__card-foot { border-top: 1px solid var(--line); padding-top: 0.9rem; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.hero__card-foot span { color: var(--muted); }
.hero__card-foot a { font-weight: 600; }
.icon-box { width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
@media (max-width: 40rem) {
  .hero__in { padding-block: 2.5rem 3rem; }
}

/* Vyhľadávanie */
.search { display: grid; gap: 0.6rem; max-width: 42rem; }
.search label { font-weight: 600; color: var(--hero-ink); }
.search__box { display: flex; flex-wrap: wrap; gap: 0.5rem; background: #fff; border-radius: 14px; padding: 0.5rem; }
.search__box input {
  flex: 1 1 15rem;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0e1b2c;
  font: inherit;
  font-size: max(16px, 1.06rem);
  padding: 0.7rem 0.8rem;
}
.search__box input::placeholder { color: #5d6b7b; }
.search__box input:focus { outline: none; }
.search__box:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search__box button { min-height: 48px; padding-inline: 1.4rem; }
@media (max-width: 40rem) {
  .search__box input { flex-basis: 8rem; }
  .search__box button { padding-inline: 1rem; }
}
.search-results ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.search-results a { display: block; padding: 0.65rem 0.95rem; border-radius: 10px; background: #fff; color: #0e1b2c; font-weight: 600; text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: #e8effc; color: #15449f; }
.search-results p { color: var(--hero-muted); }
.search-results p a { display: inline; padding: 0; background: none; color: #fff; text-decoration: underline; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.popular > span { color: var(--hero-muted); font-size: 0.95rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; color: #fff; text-decoration: none; font-size: 0.95rem; }
.chip:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Sekcie úvodu */
.section { padding-block: 4.5rem 1rem; }
.section + .section { padding-top: 3.5rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section__head > div { display: grid; gap: 0.6rem; max-width: 40rem; }
.section__head p:not(.kicker) { color: var(--muted); text-wrap: pretty; }
.kicker { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16.5rem, 100%), 1fr)); gap: 1rem; }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
a.tile { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.tile:hover { border-color: var(--accent); box-shadow: 0 10px 30px -12px rgba(14, 27, 44, 0.25); transform: translateY(-2px); color: var(--ink); }
.tile h3 { font-size: 1.2rem; }
a.tile:hover h3 { color: var(--accent); }
.tile p { color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.tile__icon { width: 3rem; height: 3rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tile__links { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.tile__links a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.tile__links a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.tile, a.tile:hover { transition: none; transform: none; } }

.split { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.split__text { flex: 1 1 18rem; min-width: 0; display: grid; gap: 0.85rem; align-content: start; }
.split__text p:not(.kicker) { color: var(--muted); max-width: 24rem; text-wrap: pretty; }
.rows { flex: 999 1 32rem; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 1.2rem; padding: 1.25rem 1.6rem; color: var(--ink); text-decoration: none; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--bg); color: var(--ink); }
.row__text { flex: 1 1 auto; display: grid; gap: 0.1rem; }
.row__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.row:hover .row__text strong { color: var(--accent); }
.row__text span { color: var(--muted); font-size: 0.95rem; }
.row svg { flex: none; color: var(--accent); }

.help { background: var(--accent-soft); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 2.5rem; }
.help__text { flex: 999 1 24rem; min-width: 0; display: grid; gap: 0.75rem; }
.help__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.help__text p { max-width: 34rem; text-wrap: pretty; }
.help__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin-top: 0.4rem; }
.help__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.help__card { flex: 1 1 18rem; min-width: 0; background: var(--surface); border-radius: 18px; padding: 1.5rem 1.75rem; display: grid; gap: 0.9rem; }
.help__card dl { display: grid; gap: 0.9rem; }
.help__card dt { font-size: 0.88rem; color: var(--muted); }
.help__card dd { margin: 0; font-weight: 600; }
.help__card .phone { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.news { list-style: none; padding: 0; display: grid; gap: 0.6rem; max-width: var(--measure); }
.news strong { font-variant-numeric: tabular-nums; }

/* Podstránka: pás s nadpisom, článok a obsah stránky vedľa */
.page-band {
  background-color: var(--hero);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--hero-ink);
}
.page-band__in { display: grid; gap: 0.9rem; padding-block: 1.4rem 2.6rem; }
.page-band h1 { color: var(--hero-ink); max-width: 46rem; }
.page-band .lead { color: var(--hero-muted); max-width: 44rem; font-size: 1.18rem; text-wrap: pretty; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; font-size: 0.95rem; }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; color: var(--hero-muted); }
.crumbs li + li::before { content: "›"; color: var(--hero-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.crumbs a:hover { color: #fff; }
.eyebrow { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hero-muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 1rem; }
@media (min-width: 64rem) {
  .page-body { grid-template-columns: minmax(0, var(--measure)) minmax(13rem, 17rem); justify-content: start; gap: 3rem; margin-top: -1.5rem; }
}
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3.5vw, 2.4rem); min-width: 0; }
.article > section:first-child, .article > .toc-mobile + section { padding-top: 0; }
.page-toc { display: none; }
@media (min-width: 64rem) {
  .page-toc { display: block; position: sticky; top: 1.5rem; align-self: start; padding-top: 2.5rem; }
  .toc-mobile { display: none; }
}
.page-toc p, .toc-mobile summary { font-weight: 700; font-family: var(--font-display); }
.page-toc ul, .toc-mobile ul { list-style: none; padding: 0; margin-top: 0.5rem; display: grid; gap: 0.1rem; border-left: 2px solid var(--line); }
.page-toc a, .toc-mobile a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.page-toc a:hover, .toc-mobile a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc-mobile { border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 1rem; margin-bottom: 1.5rem; }
.toc-mobile summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%); }
.toc-mobile[open] summary::after { transform: rotate(-135deg); }
.toc-mobile ul { margin-bottom: 0.6rem; }

.article section { padding-block: 2rem 0.25rem; display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.article > section + section { border-top: 1px solid var(--line); margin-top: 1.75rem; }
.article h2 { font-size: 1.55rem; }
.sub { display: grid; gap: 0.9rem; padding-top: 0.6rem; }
.sub h3 { padding-top: 0.3rem; }
.intro { font-size: 1.1rem; }
.small { font-size: 0.94rem; color: var(--muted); }

ul.plain { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
ul.plain li::marker { color: var(--accent); }

/* Očíslované kroky */
ol.steps { list-style: none; padding: 0; counter-reset: krok; display: grid; gap: 0.9rem; }
ol.steps > li { counter-increment: krok; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.85rem; align-items: start; }
ol.steps > li::before {
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.steps-label { font-weight: 700; font-family: var(--font-display); }

/* Názov tlačidla na portáli */
.ui {
  font-weight: 700;
  font-size: 0.93em;
  padding: 0.02em 0.42em;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.field { font-style: italic; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* BOK */
.bok { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.2rem; }
.bok-boxes { display: flex; gap: 0.35rem; }
.bok-boxes span { width: 2rem; height: 2.4rem; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 8px; font-size: 1.2rem; color: var(--muted); background: var(--surface); }
.bok p { flex: 1 1 16rem; min-width: 0; }

/* Tabuľka */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { background: var(--bg); font-size: 0.9rem; font-weight: 700; }
tbody th { font-weight: 700; min-width: 9rem; }
td a { overflow-wrap: anywhere; }
@media (max-width: 34rem) {
  table { min-width: 0; }
  tbody th { min-width: 0; }
  /* Tabuľka s viacerými stĺpcami: na mobile každý riadok ako karta, nadpis stĺpca nad textom */
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: auto; }
  table.stack tr { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { padding: 0; border: 0; }
  table.stack td { margin-top: 0.6rem; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 0.1rem; }
}

/* Upozornenia a tipy */
.note { border-radius: 14px; padding: 1.05rem 1.2rem; display: grid; gap: 0.5rem; background: var(--accent-soft); }
.note-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.note-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }

/* Pomoc */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.2rem; }
.contact .phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.contact p { flex-basis: 100%; color: var(--muted); font-size: 0.97rem; }
.links { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.links li { display: grid; gap: 0.1rem; }
.links a { font-weight: 700; overflow-wrap: anywhere; }
.links span { color: var(--muted); font-size: 0.95rem; }

/* Slovník */
dl.terms { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.8rem 1.2rem; }
dl.terms dt { font-weight: 700; }
dl.terms dd { margin: 0; }
@media (max-width: 34rem) {
  dl.terms { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  dl.terms dd { margin-bottom: 0.75rem; }
}

/* Postup: rýchly prehľad, zdroje, ďalšie */
.facts {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 0.6rem 1.1rem;
  margin: 0;
  background: var(--bg);
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
}
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}
.sources { padding-left: 1.2rem; display: grid; gap: 0.5rem; font-size: 0.95rem; color: var(--muted); }
.sources a { overflow-wrap: anywhere; }
.next { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.datum { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Nástroje: otázky s veľkými voľbami, výsledok */
.quiz { display: grid; gap: 1.2rem; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1rem 1.1rem 1.1rem; margin: 0; min-width: 0; display: grid; gap: 0.55rem; }
.quiz legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 0; float: left; width: 100%; }
.quiz .hint, .field-row .hint { font-size: 0.95rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0.45rem 0.95rem;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-weight: 600; line-height: 1.35;
}
.choices input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); margin: 0; font-size: 16px; }
.choices label:hover { border-color: var(--line-strong); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.result { border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); padding: 1.05rem 1.2rem; display: grid; gap: 0.7rem; }
.result h3 { color: var(--accent); }
.result.is-empty { border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.result .print-btn { justify-self: start; }
.lehota-koniec { font-size: 1.7rem; color: var(--accent); }
.field-row { display: grid; gap: 0.35rem; }
.field-row label { font-weight: 700; }
.field-row input[type="text"], .field-row input[type="url"], .field-row input[type="date"], .field-row textarea, .field-row select {
  font: inherit; font-size: max(16px, 1rem); color: var(--ink); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: 10px; padding: 0.55rem 0.75rem; min-height: 48px; width: 100%;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field-row textarea { min-height: 8rem; resize: vertical; }
.output { white-space: pre-wrap; font-family: var(--font); background: var(--bg); border-radius: 10px; padding: 0.85rem 0.95rem; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.badge-ok { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn-line); }
.noscript { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 0.9rem 1rem; }

/* Odškrtávací zoznam „Čo si pripraviť“ */
ul.check { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
ul.check li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.9rem; }
ul.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--accent); cursor: pointer; font-size: 16px; }
ul.check label { cursor: pointer; }
ul.check li:has(input:checked) label { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.check-meta { font-size: 0.9rem; color: var(--muted); }

/* Mobil: článok na celú šírku displeja, kompaktné dlaždice, menej voľného miesta */
@media (max-width: 40rem) {
  .page-band__in { padding-block: 1rem 2rem; gap: 0.75rem; }
  .page-band .lead { font-size: 1.08rem; }
  .btn[data-print] { display: none; }
  .page-body { padding-block: 0 0.5rem; padding-inline: 0; }
  .article { border-radius: 0; border-inline: 0; border-top: 0; padding: 1.25rem max(16px, env(safe-area-inset-left, 0px)) 1.5rem; }
  .article h2 { font-size: 1.4rem; }
  .section { padding-block: 3rem 0.5rem; }
  .section + .section { padding-top: 2.5rem; }
  .section__head { margin-bottom: 1.25rem; }
  .tiles { gap: 0.75rem; }
  .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.85rem; row-gap: 0.5rem; padding: 1.05rem 1.1rem; border-radius: 16px; }
  .tile > :not(.tile__icon):not(h3) { grid-column: 1 / -1; }
  .tile__icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
  .tile h3 { font-size: 1.12rem; }
  .row { padding: 1rem 1.1rem; }
  .help { border-radius: 18px; }
  .hero__in { gap: 2rem; }
  .hero__card { padding: 1.3rem; border-radius: 18px; }
  .site-footer { margin-top: 3rem; }
}

/* Pätička */
.site-footer { margin-top: 4.5rem; background: var(--footer); color: var(--footer-ink); }
.site-footer__in { display: grid; gap: 2.2rem; padding-block: 3.2rem 2.5rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 2rem; }
.site-footer__brand { display: grid; gap: 0.5rem; align-content: start; }
.site-footer__brand strong { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.site-footer nav { display: grid; gap: 0.2rem; align-content: start; }
.site-footer nav p { font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__note { border-top: 1px solid #2a3a50; padding-top: 1.25rem; display: grid; gap: 0.4rem; font-size: 0.92rem; color: #9fb0c6; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Tlač: čierne na bielom, bez hlavičky, pásov a ovládacích prvkov, adresy odkazov vypísané */
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #999; --line-strong: #666;
    --accent: #000; --accent-hover: #000; --accent-soft: #fff; --on-accent: #fff; --hero: #fff; --hero-ink: #000; --hero-muted: #333;
    --warn-bg: #fff; --warn-line: #000; color-scheme: light;
  }
  html, html[data-size="large"] { font-size: 11pt; }
  .skip, .site-header, .crumbs, .toolbar, .page-toc, .toc-mobile, .next, .search, .popular, .contact button, .ics-btn, .print-btn { display: none !important; }
  .page-band, .hero { background: none; }
  .page-band__in { padding-block: 0 0.5rem; }
  .article { border: 0; padding: 0; }
  .page-body { padding-block: 0; }
  .site-footer { background: none; color: #000; margin-top: 1rem; }
  .site-footer__cols { display: none; }
  .site-footer__note { color: #000; border-color: #999; }
  .article section { padding-block: 1rem 0; break-inside: auto; }
  ol.steps > li, .note, .facts, ul.check li, .tile { break-inside: avoid; }
  ol.steps > li::before { background: #fff; color: #000; border: 1px solid #000; }
  a { color: #000; text-decoration: underline; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
  .table-wrap { overflow: visible; border-color: #999; }
  table { min-width: 0; }
  ul.check input { border: 1px solid #000; }
  ul.check li:has(input:checked) label { text-decoration: none; color: #000; }
}
