/* Léky a lékárny — built for older readers with weaker sight.
   Large type (20 px body), near-black on white (AAA contrast for all text), classic blue underlined links,
   thick borders, big click targets, no thin grey text. Status is never colour alone: every badge has a symbol
   and a word. Lexend (OFL) — wide letter shapes designed for easier reading, plain zero.
   Text size switch (A / A+ / A++) scales the root font size, everything is in rem. Light and dark via light-dark(). */

@font-face {
    font-family: "Lexend";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/lexend-latin-ext-400.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: "Lexend";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/lexend-latin-ext-700.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: "Lexend";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/lexend-latin-400.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: "Lexend";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/lexend-latin-700.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;
}

:root {
    color-scheme: light dark;
    --sans: "Lexend", Verdana, Tahoma, "Segoe UI", Arial, sans-serif;

    /* "Lékárna": warm paper, pharmacy green; every text colour has at least 7:1 against --bg and --surface-2 */
    --bg: light-dark(#fbf7ef, #15130e);
    --surface: light-dark(#ffffff, #1e1b15);
    --surface-2: light-dark(#f3ecdf, #2a261e);
    --ink: light-dark(#1d1a14, #f6f1e6);
    --ink-2: light-dark(#2f2a20, #e9e2d3);
    --muted: light-dark(#4a4234, #d6ccb8);
    --line: light-dark(#8a7f6a, #8f8573);
    --line-soft: light-dark(#ddd3bf, #3d382d);
    --link: light-dark(#00594a, #8fdcc8);
    --link-hover: light-dark(#003b31, #c2efe3);
    --btn: light-dark(#00594a, #8fdcc8);
    --btn-ink: light-dark(#ffffff, #0b0b0b);
    --brand: light-dark(#00594a, #8fdcc8);
    --focus: #ffd400;
    --focus-ink: #0b0b0b;

    --ok: light-dark(#075224, #8be0a8);
    --ok-soft: light-dark(#e3f3e8, #0f2a18);
    --warn: light-dark(#663c00, #ffc766);
    --warn-soft: light-dark(#fff1d6, #2e2209);
    --bad: light-dark(#8f0f08, #ffa39b);
    --bad-soft: light-dark(#fde8e6, #351310);
    --grey: light-dark(#333333, #dadada);
    --grey-soft: light-dark(#ececec, #262626);

    --radius: 16px;
    --head: var(--sans);
    --border: 2px;
    --card-shadow: 0 2px 0 light-dark(#e6dcc8, #0a0907);
    /* green header band */
    --header-bg: light-dark(#00594a, #0d3a31);
    --header-ink: #ffffff;
    --header-line: light-dark(#00594a, #0d3a31);
    --header-hover: rgb(255 255 255 / .16);
    --header-brand: #ffffff;
    --header-btn: #ffd98a;
    --header-btn-ink: #1d1a14;
    --wrap: 58rem;
    --gutter: clamp(16px, 4vw, 40px);

    --text: 1.25rem;
    --text-s: 1.125rem;
    --h1: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    --h2: clamp(1.6rem, 1.4rem + 1vw, 2rem);
    --h3: 1.4rem;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* manual choice in the header overrides the system setting */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-size="l"] { font-size: 115%; }
html[data-size="xl"] { font-size: 132%; }

*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute must win over display set by classes (.btn, .switch, …) */
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 var(--text)/1.6 var(--sans);
    font-variant-numeric: lining-nums tabular-nums;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--link-hover); text-decoration-thickness: .16em; }
strong, b { font-weight: 700; }

/* focus: yellow background and black underline, visible on any colour (GOV.UK pattern) */
:focus-visible { outline: 4px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 7px var(--focus-ink); }
a:focus-visible { outline: none; background: var(--focus); color: var(--focus-ink); box-shadow: 0 -3px var(--focus), 0 4px var(--focus-ink); text-decoration: none; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; font-family: var(--head); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { padding-bottom: 3rem; min-height: 60vh; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--focus); color: var(--focus-ink); padding: 12px 16px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--text-s); }
.lead { font-size: 1.375rem; color: var(--ink-2); max-width: 46rem; }
.nowrap { white-space: nowrap; }

/* Toolbar (text size, light / dark) above a slim header: brand + three tasks, then the search */
.toolbar { background: var(--surface-2); border-bottom: 1px solid var(--line-soft); font-size: var(--text-s); }
.toolbar__inner { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-top: 8px; padding-bottom: 8px; }
.switch { display: flex; align-items: center; gap: 6px; }
.switch[hidden] { display: none; }
.switch__label { margin-right: 4px; }
.switch__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 2.75rem; min-height: 2.75rem; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 700 1rem/1 var(--sans); cursor: pointer; }
.switch__btn--l { font-size: 1.2rem; }
.switch__btn--xl { font-size: 1.45rem; }
.switch__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 3px solid var(--header-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.75rem; line-height: 1.1; }
.brand:hover { color: var(--brand); }
.brand__mark { width: 40px; height: 40px; }
.brand__name { color: var(--ink); }
.site-header .brand, .site-header .brand:hover { color: var(--header-brand); }
.site-header .brand__name { color: var(--header-ink); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav__link { display: inline-block; padding: 10px 18px; border-radius: var(--radius); color: var(--header-ink); font-weight: 700; font-size: 1.25rem; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.nav__link:hover { background: var(--header-hover); color: var(--header-ink); }
.nav__link[aria-current="page"] { background: var(--header-ink); color: var(--header-bg); text-decoration: none; }
.site-header__search { padding-bottom: 22px; }
.site-header .search__btn { background: var(--header-btn); border-color: var(--header-btn); color: var(--header-btn-ink); }
.site-header .search__input { border-color: var(--header-line); }

/* Search */
.search { position: relative; max-width: 46rem; }
.search__label { display: block; font-weight: 700; font-size: 1.375rem; margin-bottom: 8px; }
.search__field { display: flex; align-items: stretch; gap: 0; }
.search__input { flex: 1; min-width: 0; height: 3.5rem; padding: 0 16px; border: 3px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface); color: var(--ink); font: 400 1.375rem var(--sans); }
.search__input::placeholder { color: var(--muted); opacity: 1; }
.search__input:focus-visible { outline: 4px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.search__btn { flex: none; height: 3.5rem; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 22px; font-size: 1.375rem; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none; background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); z-index: 20; max-height: 70vh; overflow: auto; }
.suggest__item { margin: 0; border-bottom: 1px solid var(--line-soft); }
.suggest__item:last-child { border-bottom: 0; }
.suggest__item a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.suggest__item a strong { color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; }
.suggest__item a:hover, .suggest__item[aria-selected="true"] a { background: var(--surface-2); }
.suggest__meta { display: block; color: var(--muted); font-size: var(--text-s); }

/* Buttons, tags, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 3rem; background: var(--btn); color: var(--btn-ink); border: 3px solid var(--btn); border-radius: var(--radius); padding: 8px 20px; font: 700 var(--text)/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--btn-ink); text-decoration: underline; }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { color: var(--link-hover); }
.tag { display: inline-block; font-size: var(--text-s); font-weight: 700; padding: 4px 12px; border-radius: var(--radius); border: 2px solid currentColor; color: var(--ink); margin: 0 6px 6px 0; }
.tag--rx { color: var(--bad); background: var(--bad-soft); }
.tag--otc { color: var(--ok); background: var(--ok-soft); }
.tag--plain { color: var(--ink-2); font-weight: 400; }

/* status: symbol + word, never colour alone */
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--text-s); line-height: 1.3; padding: 4px 12px 4px 6px; border-radius: var(--radius); border: 2px solid currentColor; }
.badge::before { flex: none; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--tone, var(--grey)); color: var(--bg); font-size: .85em; line-height: 1; content: "–"; }
.badge--ok { --tone: var(--ok); background: var(--ok-soft); color: var(--ok); }
.badge--ok::before { content: "✓"; }
.badge--warn { --tone: var(--warn); background: var(--warn-soft); color: var(--warn); }
.badge--warn::before { content: "!"; }
.badge--bad { --tone: var(--bad); background: var(--bad-soft); color: var(--bad); }
.badge--bad::before { content: "✕"; }
.badge--muted { --tone: var(--grey); background: var(--grey-soft); color: var(--grey); }
.badge--small { font-size: var(--text-s); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 24px 0 16px; font-size: var(--text-s); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); }

/* Product head and cards */
.product-head { margin: 8px 0 28px; }
.eyebrow { margin: 0 0 12px; }
.h1-sub { display: block; font-size: 1.5rem; font-weight: 400; color: var(--ink-2); margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; margin-bottom: 8px; }
.card { background: var(--surface); box-shadow: var(--card-shadow); border: var(--border) solid var(--line); border-radius: var(--radius); padding: 24px; }
.card__title { font-size: 1.375rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.card__hint { display: block; font-size: var(--text-s); font-weight: 400; color: var(--muted); }
.card__big { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 10px; }
.card__text { margin: 0; color: var(--ink-2); }
.card--status { border-left-width: 12px; border-left-color: var(--grey); }
.card--ok { border-left-color: var(--ok); } .card--ok .card__big { color: var(--ok); }
.card--warn { border-left-color: var(--warn); } .card--warn .card__big { color: var(--warn); }
.card--bad { border-left-color: var(--bad); } .card--bad .card__big { color: var(--bad); }
.card--muted .card__big { color: var(--grey); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 16px 24px; margin: 0 0 12px; }
.facts dt { font-size: var(--text-s); color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 1.375rem; }
.facts > div:has(.facts__key) { grid-column: 1 / -1; }
.facts__key { font-size: 2.25rem !important; line-height: 1.15; }
.facts--inline { margin-top: 20px; }
.facts--inline dd { font-size: var(--text); }

/* Sections */
.section h3 { margin-top: 1.4em; }
.section h2 + h3 { margin-top: .4em; }
.section { margin-top: 3rem; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: .5em; }
.section__head h2 { margin: 0; }

/* Product list */
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.plist--numbered { counter-reset: n; }
.plist__item { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 4px; margin: 0; border-bottom: 2px solid var(--line-soft); flex-wrap: wrap; }
.plist--numbered .plist__item::before { counter-increment: n; content: counter(n) "."; color: var(--muted); font-weight: 700; min-width: 2.5ch; }
.plist__link { flex: 1 1 18rem; text-decoration: none; color: var(--ink); }
.plist__name { display: block; font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plist__link:hover .plist__name { color: var(--link-hover); text-decoration-thickness: .16em; }
.plist__link:focus-visible .plist__name { color: var(--focus-ink); }
.plist__meta { display: block; font-size: var(--text-s); color: var(--muted); margin-top: 2px; }
.plist__side { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.plist__price { font-size: var(--text-s); color: var(--ink); font-weight: 700; }

/* Tables (stacked into cards on phones, see bottom) */
.table-wrap { overflow-x: auto; box-shadow: var(--card-shadow); border: var(--border) solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-s); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table thead th { background: var(--surface-2); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table td:first-child { min-width: 13rem; }
.table--compact td { padding: 10px 16px; }

/* Chart */
.chart { margin: 0; background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius); padding: 16px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart__bar { fill: var(--link); }
.chart__bar:hover { fill: var(--link-hover); }
.chart__axis { stroke: var(--ink); stroke-width: 2; }
.chart__label { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: var(--sans); }

/* Chips, tiles, links */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { margin: 0; }
.chip { display: inline-block; padding: 8px 16px; border: 2px solid var(--link); border-radius: var(--radius); background: var(--surface); color: var(--link); font-size: var(--text-s); font-weight: 700; }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); text-decoration: none; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 14px; }
.tiles li { margin: 0; }
.tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; background: var(--surface); box-shadow: var(--card-shadow); border: var(--border) solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--link); background: var(--surface-2); color: var(--ink); }
.tile__code { font-weight: 700; color: var(--muted); font-size: var(--text-s); }
.tile__name { font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.tile__meta { font-size: var(--text-s); color: var(--muted); margin-top: auto; }
.tiles--small .tile { padding: 14px 16px; }
.links { padding-left: 1.4em; }
.links li { margin-bottom: 12px; }
.cols { columns: 3 15rem; column-gap: 40px; padding: 0; list-style: none; }
.cols li { break-inside: avoid; padding: 4px 0; margin: 0; }
.letters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.letters a { display: inline-grid; place-items: center; min-width: 3rem; min-height: 3rem; border: 2px solid var(--link); border-radius: var(--radius); font-weight: 700; background: var(--surface); }
.letter { margin-top: 28px; }

/* Home: hero, stats */
.hero { padding: clamp(28px, 5vw, 56px) 0 8px; }
.hero__grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__panel { background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); border-top: 10px solid var(--brand); padding: clamp(20px, 2.5vw, 28px); min-width: 0; display: flex; flex-direction: column; }
.hero__title { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem); max-width: 20ch; margin-top: 0; }
.hero__lead { font-size: 1.375rem; color: var(--ink-2); max-width: 40rem; }
.hero .search { margin-top: 24px; }
.hero__locate { margin-top: 14px; }
.hero__examples.hero__more { margin-top: auto; padding-top: 16px; }
.hero .search__btn { padding: 0 16px; }
.hero .search__input { padding: 0 12px; }
.pmap--bare .pmap__find { display: none; }
#mapa { scroll-margin-top: 16px; }
.hero__examples { margin-top: 16px; color: var(--ink-2); }
.hero__examples a { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 14px; margin: 16px 0 24px; }
.stat { display: block; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; box-shadow: var(--card-shadow); border: var(--border) solid var(--line); border-left-width: 10px; background: var(--surface); color: var(--ink); }
.stat:hover { background: var(--surface-2); color: var(--ink); }
.stat__value { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1.1; }
.stat__label { display: block; color: var(--ink); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.stat--bad { border-left-color: var(--bad); } .stat--bad .stat__value { color: var(--bad); }
.stat--warn { border-left-color: var(--warn); } .stat--warn .stat__value { color: var(--warn); }
.stat--ok { border-left-color: var(--ok); } .stat--ok .stat__value { color: var(--ok); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 28px; }

/* Tabs and filters */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
.tabs__tab { display: inline-block; padding: 10px 18px; border: 2px solid var(--link); border-radius: var(--radius); font-weight: 700; }
.tabs__tab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); text-decoration: none; }
.tabs__count { font-weight: 400; }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters label { font-weight: 700; }
.filters select { font: inherit; min-height: 3rem; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 100%; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--line-soft); }
.faq details:first-of-type { border-top: 2px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; gap: 14px; align-items: baseline; color: var(--link); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 2px solid currentColor; border-radius: 50%; line-height: 1; }
.faq details[open] summary::before { content: "−"; }
.faq summary:hover { text-decoration: underline; }
.faq details p { margin: 0 0 18px; padding-left: calc(1.6em + 14px); color: var(--ink); max-width: 46rem; }

/* Pharmacies */
.pharmacies { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
.pharmacies > li { margin: 0; }
.pharmacy { background: var(--surface); box-shadow: var(--card-shadow); border: var(--border) solid var(--line); border-radius: var(--radius); padding: 20px; }
.pharmacy__name { display: flex; gap: 10px; align-items: center; font-size: 1.375rem; margin-bottom: 6px; }
.pharmacy__meta { color: var(--ink-2); margin-bottom: 10px; }
.hours { border-collapse: collapse; font-size: var(--text); }
.hours th { text-align: left; font-weight: 400; padding: 6px 28px 6px 0; color: var(--ink-2); }
.hours td { padding: 6px 0; }
.hours__today th, .hours__today td { font-weight: 700; color: var(--ink); }
.hours__today th::after { content: " (dnes)"; font-weight: 400; }

/* Prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose li { margin-bottom: 10px; }

/* Product page: answers first */
.page-head { margin: 4px 0 24px; }
.page-head h1 { margin-bottom: .25em; }
.page-head__meta { font-size: 1.25rem; margin: 0; }
.answers { display: grid; gap: 0; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.answer { display: grid; grid-template-columns: 15rem 1fr; gap: 4px 24px; padding: 20px 24px; border-top: 2px solid var(--line-soft); }
.answer:first-child { border-top: 0; }
.answer > * { grid-column: 2; }
.answer__q { grid-column: 1; grid-row: 1 / span 3; font-size: 1.25rem; margin: 0; padding-top: .3em; color: var(--ink-2); }
.answer__a { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
.answer__more { margin: 0; color: var(--ink-2); }
.answer__limit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.answer--ok .answer__a { color: var(--ok); }
.answer--warn .answer__a { color: var(--warn); }
.answer--bad .answer__a { color: var(--bad); }
.answer--muted .answer__a { color: var(--grey); }
.status-icon { flex: none; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--grey); color: var(--bg); font-size: .9em; line-height: 1; }
.status-icon::before { content: "–"; }
.status-icon--ok { background: var(--ok); } .status-icon--ok::before { content: "✓"; }
.status-icon--warn { background: var(--warn); } .status-icon--warn::before { content: "!"; }
.status-icon--bad { background: var(--bad); } .status-icon--bad::before { content: "✕"; }
.notice { margin: 20px 0 0; padding: 14px 18px; background: var(--warn-soft); border-left: 8px solid var(--warn); border-radius: var(--radius); }
.packs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pack { margin: 0; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pack__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.pack__title { margin: 0; font-size: 1.375rem; }
.pack__price { margin: 0 0 4px; font-size: 1.375rem; }
.pack__price strong { font-size: 1.6rem; }
.pack__meta { margin: 0; color: var(--ink-2); font-size: var(--text-s); }
.more__item { border: 2px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; background: var(--surface); }
.more__item > summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.more__item[open] > summary { margin-bottom: 4px; }
.more__item > :last-child { margin-bottom: 18px; }

/* Shortage list: one block per package, facts in a row that wraps */
.slist { list-style: none; padding: 0; margin: 0 0 20px; border-top: 2px solid var(--line); }
.slist__item { margin: 0; padding: 16px 4px; border-bottom: 2px solid var(--line-soft); }
.slist__name { font-weight: 700; font-size: var(--text); }
.slist__pack { display: block; color: var(--muted); font-size: var(--text-s); margin: 2px 0 10px; }
.slist__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: var(--text-s); }

/* Home */
.promises { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; }
.promise { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 18px; border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font-size: var(--text-s); }
.promise strong { display: block; font-size: var(--text); }
.promise .status-icon, .promise__icon { font-size: 1.25rem; margin-top: 2px; }
.promise__icon { flex: none; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--link); color: var(--bg); font-size: 1rem; font-weight: 700; width: 1.6rem; height: 1.6rem; }

/* Maps (Leaflet) and pharmacies nearby */
.map { height: 22rem; margin: 0 0 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface-2); z-index: 0; }
.map--big { height: 28rem; }
.map--full { height: max(26rem, 65vh); }
.map--home { height: 28rem; }
.pmap__find { display: grid; gap: 20px; margin: 8px 0 20px; }
.checks { margin: 0 0 16px; padding: 14px 20px 8px; border: 2px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px 28px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.checks legend { font-weight: 700; font-size: 1.375rem; padding: 0 6px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 3rem; cursor: pointer; }
.check input { flex: none; width: 1.6rem; height: 1.6rem; accent-color: var(--link); cursor: pointer; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgb(0 89 74 / .35) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: #00594a !important; color: #ffffff; }
.marker-cluster div { width: 36px !important; height: 36px !important; margin: 2px 0 0 2px !important; border-radius: 18px !important; font: 700 15px/36px var(--sans) !important; }
.marker-cluster { width: 40px !important; height: 40px !important; border-radius: 20px !important; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.map-pin { background: none; border: 0; }
.map-pin__dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #00594a; border: 3px solid #ffffff; box-shadow: 0 2px 6px rgb(0 0 0 / .45); color: #ffffff; font: 700 17px/1 var(--sans); }
.map-pin__dot > span { transform: rotate(45deg); }
.map-pin__dot:empty::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; }
.map-label { font: 700 15px/1.2 var(--sans); color: #111111; padding: 4px 8px; border: 2px solid #111111; }
.leaflet-container { font: 400 1rem var(--sans); }
/* the OpenStreetMap land colour instead of Leaflet's grey while tiles load */
.leaflet-container.map { background: #f2efe9; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 42px !important; font-size: 26px !important; }
.leaflet-popup-content { font-size: 1.05rem; }
.btn--big { min-height: 3.5rem; padding: 10px 26px; font-size: 1.375rem; }
.locate { display: grid; gap: 20px; margin: 8px 0 20px; }
.locate__gps p { margin: 8px 0 0; }
.nearby-status { font-size: 1.375rem; font-weight: 700; min-height: 1.6em; }
.nearby { list-style: none; padding: 0; margin: 0 0 16px; border-top: 2px solid var(--line); }
.nearby__item { display: flex; gap: 16px; margin: 0; padding: 16px 4px; border-bottom: 2px solid var(--line-soft); }
.nearby__num { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--link); color: var(--btn-ink); font-weight: 700; }
.nearby__name { font-size: 1.375rem; margin: 0 0 4px; }
.nearby__meta { margin: 0 0 6px; }
.nearby__meta .badge { margin-right: 6px; }

/* Guides, glossary, help */
.guide-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 2px solid var(--line-soft); }
.guide-list li { margin: 0; padding: 14px 4px; border-bottom: 2px solid var(--line-soft); }
.guide-list__link { display: block; font-weight: 700; font-size: var(--text); }
.guide-list span { display: block; color: var(--ink-2); font-size: var(--text-s); margin-top: 2px; }
.guide h2 { margin-top: 1.6em; }
.guide__sources { margin-top: 2.5rem; padding-top: 8px; border-top: 2px solid var(--line-soft); font-size: var(--text-s); }
.limit-table { margin-bottom: 1em; }
.glossary { margin: 0; }
.glossary__item { padding: 16px 0; border-bottom: 2px solid var(--line-soft); scroll-margin-top: 16px; }
.glossary__item:target { background: var(--warn-soft); padding-left: 12px; padding-right: 12px; }
.glossary dt { font-weight: 700; font-size: 1.375rem; }
.glossary dd { margin: 4px 0 0; }
.term { color: inherit; text-decoration-style: dotted; text-decoration-thickness: .1em; cursor: help; }
.code-help { margin: 16px 0; max-width: 46rem; }
.code-help > summary { cursor: pointer; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.box-figure { margin: 12px 0 0; }
.box-figure svg { width: 100%; max-width: 32rem; height: auto; display: block; }
.box-figure figcaption { margin-top: 8px; }
.speak-row { margin: 0 0 12px; }
.open-now { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; margin: 0 0 16px; }
.open-now--ok { color: var(--ok); }
.open-now--muted { color: var(--grey); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.notice--info { background: var(--surface-2); border-left-color: var(--link); }

.ooh { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line); }
.ooh__item { display: grid; gap: 2px; margin: 0; padding: 14px 4px; border-bottom: 2px solid var(--line-soft); }
.ooh__name { font-weight: 700; font-size: var(--text); }
.ooh__addr, .ooh__hours { font-size: var(--text-s); color: var(--ink-2); }
.ooh__hours .badge { margin-right: 8px; }
.chips-nav { margin: 8px 0 0; }

/* Consent banner: big, at the bottom, both answers equally prominent */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 4px solid var(--brand); box-shadow: 0 -4px 20px rgb(0 0 0 / .18); }
.consent__inner { padding-top: 18px; padding-bottom: 18px; }
.consent__title { font-size: 1.5rem; margin: 0 0 6px; }
.consent p { margin: 0 0 12px; max-width: 46rem; }
.consent__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.link-button { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Voice search, page tools, price per piece */
.search__mic { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 3px solid var(--ink); border-left: 0; border-right: 0; background: var(--surface); color: var(--link); cursor: pointer; }
.site-header .search__mic { border-color: var(--header-line); }
.search__mic:hover { background: var(--surface-2); }
.search__mic.is-listening { background: var(--bad); color: #ffffff; }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.page-tools .btn { min-height: 2.75rem; padding: 6px 16px; font-size: var(--text-s); }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 18px; }
.social__label { font-weight: 700; margin-right: 2px; }
.social__link { display: inline-flex; align-items: center; gap: 8px; min-height: 2.75rem; padding: 6px 14px; border: 2px solid var(--line-soft); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--text-s); font-weight: 700; text-decoration: none; }
.social__link:hover { border-color: currentColor; color: var(--ink); text-decoration: underline; }
.social__link svg { flex: none; }
.social__link--facebook svg, .social__link--messenger svg { color: light-dark(#1559c9, #8fb4ff); }
.social__link--whatsapp svg { color: light-dark(#0f7a3a, #6fdc96); }
.page-tools__msg { margin: 0; font-weight: 700; color: var(--ok); }
.page-tools__msg:empty { display: none; }
.pack__unit { margin: 6px 0 0; font-size: var(--text-s); }
.best-unit { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .95em; }
.print-only { display: none; }

/* "Jak se tu žije" from kdezit.cz */
.living__box { padding: 20px 24px; border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.living__index { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; }
.living__value { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--brand); }
.living__of { font-weight: 700; }
.living__label { flex-basis: 100%; color: var(--ink-2); }
.living__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 8px 32px; margin-bottom: 8px; }
.living__title { font-size: var(--text); margin: 8px 0 6px; }
.living__list { list-style: none; padding: 0; margin: 0; }
.living__list li { display: grid; grid-template-columns: 1fr 6rem 2.5rem; align-items: center; gap: 10px; margin: 0 0 6px; }
.living__list strong { text-align: right; }
.living__bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--brand) var(--v), var(--line-soft) var(--v)); }
.living-line { margin: 0 0 16px; }

/* Footer */
.data-note { margin-top: 3rem; font-size: var(--text-s); color: var(--ink-2); border-top: 2px solid var(--line-soft); padding-top: 16px; }
.site-footer { background: var(--surface-2); border-top: 3px solid var(--ink); padding: 36px 0 28px; font-size: var(--text-s); color: var(--ink); }
.disclaimer { background: var(--warn-soft); color: var(--ink); border: 2px solid var(--warn); border-left-width: 10px; border-radius: var(--radius); padding: 16px 20px; font-size: var(--text); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin: 28px 0; }
.site-footer__grid ul { list-style: none; padding: 0; margin: 0; }
.site-footer__grid li { margin-bottom: 10px; }
.site-footer__title { font-weight: 700; font-size: var(--text); margin-bottom: 10px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--line-soft); padding-top: 18px; }
.brand--footer { margin-bottom: 10px; font-size: 1.4rem; }
.brand--footer .brand__mark { width: 32px; height: 32px; }

/* soft borders of boxes; the coloured left edge of status boxes stays */
.card:not(.card--status), .tile, .pharmacy, .table-wrap { border-color: var(--line-soft); }
.card--status, .stat { border-top-color: var(--line-soft); border-right-color: var(--line-soft); border-bottom-color: var(--line-soft); }
.site-footer { border-top-color: var(--brand); }

@media (max-width: 760px) {
    :root { --text: 1.125rem; --text-s: 1.0625rem; }
    .lead, .hero__lead { font-size: 1.25rem; }
    .brand { font-size: 1.5rem; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .nav__link { padding: 8px 12px; font-size: 1.125rem; border: 2px solid var(--line-soft); }
    .search__input, .search__btn { height: 3.25rem; font-size: 1.2rem; }
    .search__btn { padding: 0 14px; }
    .search__mic { width: 2.75rem; height: 3.25rem; }
    .search__input { padding: 0 10px; }
    .card { padding: 18px; }
    .answer { grid-template-columns: 1fr; padding: 16px; }
    .answer > *, .answer__q { grid-column: auto; grid-row: auto; }
    .answer__q { padding: 0; }
    .answer__a { font-size: 1.5rem; }
    .toolbar__inner { justify-content: flex-start; }
    .switch__label { display: none; }
    .facts__key { font-size: 2rem !important; }

    /* tables become one card per row: label from data-label, no sideways scrolling */
    .table-wrap:has(.table--stack) { overflow: visible; border: 0; background: none; }
    .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
    .table--stack tr { border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 6px 0; background: var(--surface); }
    .table--stack td { border: 0; padding: 6px 14px; text-align: left !important; white-space: normal !important; }
    .table--stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
    .table--stack td:first-child { font-size: var(--text); }
    .table--stack td:empty { display: none; }
}

@media (prefers-contrast: more) {
    :root { --line: light-dark(#000000, #ffffff); --line-soft: light-dark(#555555, #bbbbbb); --muted: var(--ink); --ink-2: var(--ink); }
}

@media (forced-colors: active) {
    .badge, .tag, .card, .stat, .chip, .tabs__tab { border-color: CanvasText; }
}

/* ---------- Motion: small, calm and only for people who did not ask the system for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    a, .btn, .chip, .tile, .card, .pack, .promise, .plist__item, .nav__link, .switch__btn, .search__input, .faq summary::before {
        transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgb(0 0 0 / .14); }
    .btn:active, .switch__btn:active, .chip:active { transform: translateY(0) scale(.97); box-shadow: none; }
    .tile:hover, .pack:hover, .promise:hover, .pharmacy:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgb(0 0 0 / .1); }
    .plist__item:hover { background: var(--surface); }
    .plist__item:hover .badge { transform: scale(1.04); }
    .badge { transition: transform .2s ease; }

    /* the map pin of the logo drops in when the page opens and hops on hover */
    .brand__mark { transform-origin: 50% 100%; animation: pin-drop .6s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
    .brand:hover .brand__mark { animation: pin-hop .5s ease-in-out; }
    @keyframes pin-drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes pin-hop { 40% { transform: translateY(-5px); } }

    /* page head and the answers come in softly */
    .page-head, .hero__title, .hero__lead { animation: rise .5s ease-out both; }
    .hero__lead { animation-delay: .08s; }
    .answer { animation: rise .45s ease-out both; }
    .answer:nth-child(2) { animation-delay: .08s; }
    .answer:nth-child(3) { animation-delay: .16s; }
    .answer:nth-child(4) { animation-delay: .24s; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

    /* status symbol pops in */
    .answer__a .status-icon, .open-now .status-icon { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .35s both; }
    @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

    /* sections fade in when scrolled into view (only with JS: html.js) */
    html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    html.js .reveal.is-visible { opacity: 1; transform: none; }

    /* FAQ and folded details */
    .faq details[open] summary::before { transform: rotate(180deg); }
    .faq details[open] > p, .more__item[open] > :not(summary) { animation: rise .3s ease-out both; }

    /* map pins drop in, the found list slides in */
    .map-pin__dot { animation: drop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
    @keyframes drop { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
    .nearby__item { animation: rise .35s ease-out both; }
    .nearby__item:nth-child(2) { animation-delay: .04s; }
    .nearby__item:nth-child(3) { animation-delay: .08s; }
    .nearby__item:nth-child(4) { animation-delay: .12s; }
    .nearby__item:nth-child(n+5) { animation-delay: .16s; }

    /* waiting text breathes */
    .nearby-status.is-loading { animation: breathe 1.2s ease-in-out infinite; }
    @keyframes breathe { 50% { opacity: .45; } }

    /* consent banner slides up */
    .consent:not([hidden]) { animation: slide-up .4s ease-out both; }
    @keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
    .search__mic.is-listening { animation: breathe 1s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { html.js .reveal { opacity: 1; transform: none; } }

/* Print: just the content in black on white, big enough to read, without menus, maps and buttons */
@media print {
    @page { margin: 15mm; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    :root { --text: 13pt; --text-s: 12pt; color-scheme: light; }
    html, body { background: #ffffff !important; color: #000000 !important; font-size: 12pt; }
    .toolbar, .nav, .site-header__search, .site-footer, .skip, .consent, .page-tools, .social, .speak-row, .actions, .map, .pmap,
    .map-links, .chips, .chips-nav, .code-help, .search, .hero__examples, .more, .faq, .btn, .notice--info,
    #potize, .section:has(> .guide-list), .data-note a { display: none !important; }
    .site-header { background: none !important; border-bottom: 2px solid #000; }
    .site-header__inner { padding: 0 0 6pt; }
    .site-header .brand, .site-header .brand__name { color: #000 !important; }
    .print-only { display: block; margin: 0 0 8pt; font-size: 10pt; color: #000; }
    .wrap { max-width: none; padding: 0; }
    a { color: #000 !important; text-decoration: none; }
    .answers, .card, .pack, .plist, .table-wrap { box-shadow: none !important; border-color: #000 !important; }
    .card, .pack { break-inside: avoid; }
    .plist__name, .tile__name, .ooh__name, .nearby__name a, .term { color: #000 !important; text-decoration: none !important; }
    h2, h3 { break-after: avoid; }
    .answer, .pack, .plist__item, .ooh__item, .nearby__item { break-inside: avoid; }
    .section { margin-top: 14pt; }
    h1 { font-size: 22pt; } h2 { font-size: 16pt; }
    .badge, .tag, .status-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
