/* Alkoholová kalkulačka – „noc v baru“: tmavé pozadí, teplý přechod západu slunce, kruhový ukazatel. Mobil na prvním místě. */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f3faf6; --bg-2: #ffffff; --sheet: #ffffff; --card: #ffffff; --card-2: #edf6f0; --line: #dfece4;
  --ink: #14261d; --text: #2f4339; --muted: #5f7468; --dim: #8aa094;
  --sun-1: #4ade80; --sun-2: #16a34a; --sun-3: #0d9488;
  --ok: #16a34a; --low: #d9a300; --mid: #ea7a1f; --high: #e5484d; --max: #c2255c;
  --lvl: var(--ok); --r: 24px; --r-sm: 16px;
  --shadow: 0 1px 2px rgba(20, 38, 29, .05), 0 14px 34px -18px rgba(20, 38, 29, .25);
  --font: ui-rounded, "SF Pro Rounded", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body[data-lvl="low"] { --lvl: var(--low); } body[data-lvl="mid"] { --lvl: var(--mid); }
body[data-lvl="high"] { --lvl: var(--high); } body[data-lvl="max"] { --lvl: var(--max); }

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; background: var(--bg); }
body { overflow-x: clip; margin: 0; font: 16px/1.55 var(--font); color: var(--text); min-height: 100vh;
  background: radial-gradient(900px 520px at 50% -160px, rgba(74, 222, 128, .28), transparent 70%),
              radial-gradient(700px 500px at 100% 20%, rgba(13, 148, 136, .10), transparent 70%), var(--bg); }
a { color: #15803d; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; }
.small { font-size: .88rem; color: var(--muted); }
.i { flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 2px; }

/* hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 250, 246, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; max-width: 760px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { display: block; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .55); }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); }
.logo-t b { font-size: 1.22rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin-top: 2px; }
.nav { display: none; }
.nav-toggle { display: block; background: var(--card); box-shadow: var(--shadow); border: 0; width: 42px; height: 42px; padding: 12px 11px; cursor: pointer; border-radius: 50%; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 3.5px 0; border-radius: 2px; }
.nav.open { display: flex; flex-direction: column; position: absolute; top: 58px; left: 12px; right: 12px; padding: 8px; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 20px 50px -10px rgba(20, 38, 29, .3); }
.nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.nav a[aria-current="page"], .nav a:hover { background: var(--card-2); }
.crumbs { padding-top: 14px; font-size: .86rem; color: var(--dim); } .crumbs a { color: var(--muted); }

/* aplikace */
.app { max-width: 560px; margin: 0 auto; padding: 4px 14px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.app > * { min-width: 0; }

.meter { text-align: center; padding: 6px 0 2px; }
.meter-when { margin: 0; color: var(--muted); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.gauge { position: relative; width: min(72vw, 280px); aspect-ratio: 1; margin: 6px auto 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gauge .track { fill: none; stroke: #e3efe8; stroke-width: 18; }
.gauge .fill { transition: opacity .3s; fill: none; stroke: var(--lvl); stroke-width: 18; stroke-linecap: round; transition: stroke-dasharray .6s cubic-bezier(.2, .8, .2, 1), stroke .4s;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--lvl) 45%, transparent)); }
.gauge .peak { fill: none; stroke: var(--sun-2); stroke-opacity: .25; stroke-width: 18; stroke-linecap: round; transition: stroke-dasharray .6s, opacity .3s; }
.rising { margin: 10px auto 0; display: table; padding: 8px 16px; border-radius: 999px; background: #e7f8ee; color: #166534; font-weight: 700; font-size: .95rem; }
.rising b { color: #15803d; }
.rising[hidden] { display: none; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bac { font-size: clamp(3.6rem, 17vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.unit { color: var(--muted); font-weight: 700; margin-top: 2px; }
.lvl { margin-top: 10px; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; background: var(--lvl); transition: background .4s; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.facts div { display: flex; flex-direction: column; padding: 12px 8px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow); text-align: center; min-width: 0; }
.facts small { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; margin: 2px 0; white-space: nowrap; }
.facts span { font-size: .74rem; color: var(--dim); line-height: 1.3; }

.panel { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.tip { color: var(--dim); font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.k-line { width: 14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); }
.k-band { width: 14px; height: 10px; border-radius: 3px; background: rgba(34, 197, 94, .3); margin-left: 6px; }
.text-btn { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 4px 6px; }
.text-btn:hover { color: var(--high); }

/* období pití od – do */
.window { display: flex; align-items: flex-end; gap: 8px; }
.window label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .76rem; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.window input { width: 100%; padding: 12px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: 800 1.15rem var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.window input:focus { border-color: var(--sun-2); outline: none; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.window-dash { padding-bottom: 14px; color: var(--dim); font-weight: 800; }
.hint { margin: 8px 0 14px; color: var(--muted); font-size: .85rem; }

/* posuvník času */
.scrub { margin: 16px 0 4px; padding: 12px 14px 8px; border-radius: var(--r-sm); background: var(--card-2); text-align: left; }
.scrub[hidden] { display: none; }
.scrub-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink); font-size: .9rem; }
.scrub-now { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; font: 800 .78rem var(--font); cursor: pointer; }
.scrub-now[hidden] { display: none; }
#scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 4px 0 0; cursor: pointer; }
#scrub::-webkit-slider-runnable-track { height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--line) 0 calc(var(--p, 0%) - 1px), var(--ink) calc(var(--p, 0%) - 1px) calc(var(--p, 0%) + 1px), var(--line) calc(var(--p, 0%) + 1px)); }
#scrub::-moz-range-track { height: 8px; border-radius: 8px; background: var(--line); }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--lvl);
  box-shadow: 0 3px 10px rgba(20, 38, 29, .3); }
#scrub::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--lvl); }
.scrub-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: .74rem; font-weight: 700; }
.meter-when.future { color: var(--ink); } .meter-when b { color: var(--sun-2); }
.c-nowl { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 2 4; }
.c-nowtxt { fill: var(--dim); }
.c-sel { stroke: var(--lvl); stroke-width: 1.8; }
.c-sel-t { font: 800 12px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; }

/* kategorie nápojů – kulatá tlačítka */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dr { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; min-width: 0; }
.dr-e { width: 58px; height: 58px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem; margin-bottom: 6px;
  background: radial-gradient(circle at 30% 25%, #fff, #ecfdf3); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(22, 163, 74, .35); transition: transform .15s, background .2s; }
.dr b { font-size: .8rem; font-weight: 800; white-space: nowrap; }
@media (hover: hover) { .dr:hover .dr-e { background: #dcfce7; transform: translateY(-2px); } }
.recent { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.recent::-webkit-scrollbar { display: none; }
.recent[hidden] { display: none; }
.recent-l { flex: none; align-self: center; color: var(--dim); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--ink); font-weight: 800; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--dim); font-weight: 700; }
.chip.tap, .dr.tap .dr-e { animation: tap .45s; }
@keyframes tap { 30% { transform: scale(.88); background: #bbf7d0; } }

/* výběr konkrétního nápoje – spodní panel */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 86vh; border-radius: 26px 26px 0 0; background: var(--sheet); color: var(--text);
  box-shadow: 0 -20px 60px rgba(20, 38, 29, .25); }
.sheet::backdrop { background: rgba(20, 38, 29, .35); backdrop-filter: blur(3px); }
.sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-in { display: flex; flex-direction: column; max-height: 86vh; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; position: relative; }
.sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.sheet-head h2 { margin: 6px 0 0; font-size: 1.2rem; flex: 1; }
.sheet-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; margin-top: 6px; }
.sheet-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tabs button { flex: none; border: 0; padding: 8px 12px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-weight: 800; font-size: .84rem; cursor: pointer; }
.sheet-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.sheet-list { list-style: none; margin: 0; padding: 0 10px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-list button { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 14px;
  background: none; color: var(--text); text-align: left; cursor: pointer; }
.sheet-list button:hover, .sheet-list button:focus-visible { background: var(--card-2); }
.sheet-list .e { font-size: 1.6rem; text-align: center; }
.sheet-list b { display: block; font-weight: 800; font-size: .98rem; }
.sheet-list small { color: var(--dim); font-size: .8rem; }
.sheet-list .add { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sun-1), var(--sun-3)); color: #fff; font-weight: 900; font-size: 1.3rem; }
.sheet-note { margin: 0; padding: 0 18px 18px; color: var(--dim); font-size: .8rem; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; max-width: calc(100vw - 30px); text-align: center;
  font-weight: 800; font-size: .88rem; box-shadow: 0 10px 30px rgba(20, 38, 29, .3); pointer-events: none; opacity: 0; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* časová osa */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 87px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline:empty::before { display: none; }
.tl { display: grid; grid-template-columns: 72px 34px minmax(0, 1fr) 36px; align-items: center; gap: 0 8px; padding: 6px 0; position: relative; }
.tl.pop { animation: pop .5s; }
@keyframes pop { from { transform: translateX(-10px); opacity: 0; } }
.tl-time { width: 72px; padding: 8px 2px; border: 1.5px solid transparent; border-radius: 10px; background: var(--card-2); color: var(--ink); font: 800 .92rem var(--font); display: block; cursor: pointer;
  text-align: center; font-variant-numeric: tabular-nums; }
.tl-time::-webkit-calendar-picker-indicator { display: none; }
.tl-time:hover, .tl-time:focus { border-color: var(--sun-2); outline: none; }
.tl-time.fixed { background: #fff; border-color: var(--line); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 1.05rem; z-index: 1; }
.tl-main { display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; padding: 4px 0; min-width: 0; }
.tl-main b { font-weight: 800; font-size: .96rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-main span { font-size: .78rem; color: var(--dim); }
.tl-del { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--dim); font-size: 1.35rem; cursor: pointer; }
.tl-del:hover { color: var(--high); background: var(--card-2); }
.tl-edit { display: none; grid-column: 3 / 5; gap: 8px; flex-wrap: wrap; align-items: end; padding: 6px 0 4px; }
.tl.open .tl-edit { display: flex; }
.tl-edit label { display: flex; flex-direction: column; font-size: .7rem; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.tl-edit label span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.tl-edit input { width: 72px; padding: 8px; border: 0; border-radius: 10px; background: var(--card-2); color: var(--ink); font: 800 .95rem var(--font); }
.tl-dup { border: 1px dashed var(--line); background: none; color: #15803d; font-weight: 800; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: .85rem; }
.empty { color: var(--dim); margin: 0; font-size: .92rem; }

/* o vás */
.me { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.toggle, .food { display: grid; gap: 6px; padding: 4px; background: var(--card-2); border-radius: var(--r-sm); }
.toggle { grid-template-columns: 1fr 1fr; }
.food { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.toggle button, .food button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--muted);
  padding: 10px 4px; border-radius: 12px; font-weight: 800; font-size: .88rem; cursor: pointer; transition: background .2s, color .2s; }
.food button { flex-direction: column; gap: 2px; padding: 9px 4px; }
.toggle button span, .food button span { font-size: 1.15rem; filter: grayscale(.6); transition: filter .2s; }
.toggle button[aria-checked="true"], .food button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(20, 38, 29, .35), inset 0 0 0 1.5px var(--sun-1); }
.toggle button[aria-checked="true"] span, .food button[aria-checked="true"] span { filter: none; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--card-2); border-radius: var(--r-sm); }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 2px 6px -3px rgba(20, 38, 29, .3); font-size: 1.4rem; font-weight: 700; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stepper button:active { background: #bbf7d0; }
.stepper label { display: flex; align-items: baseline; gap: 2px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.stepper input { width: 46px; border: 0; background: none; color: var(--ink); font: 800 1.3rem var(--font); text-align: right; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.precise { margin-top: 10px; }
.precise summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: .88rem; list-style: none; }
.precise summary::-webkit-details-marker { display: none; }
.precise summary::before { content: "＋ "; color: var(--sun-2); }
.precise[open] summary::before { content: "－ "; }
.precise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.precise-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.precise-grid span { display: flex; align-items: center; gap: 6px; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.precise-grid input { width: 100%; padding: 10px; border: 0; border-radius: 12px; background: var(--card-2); color: var(--ink); font: 800 1rem var(--font); }

.remember { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--text); cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: var(--sun-2); margin: 1px 0 0; flex: none; }
.remember small { display: block; font-weight: 600; color: var(--dim); font-size: .78rem; }

/* graf */
#chart { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.chart-tip { margin: 6px 0 0; text-align: center; color: var(--dim); font-size: .8rem; font-weight: 700; }
.c-grid { stroke: #e8f1ec; }
.c-ax { font: 700 11px var(--font); fill: var(--dim); }
.c-band { fill: rgba(34, 197, 94, .16); }
.c-line { fill: none; stroke: url(#c-line); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.c-drink { font-size: 15px; }
.c-dot { fill: var(--lvl); stroke: #fff; stroke-width: 3; }
.c-empty { font: 700 14px var(--font); fill: var(--dim); }

/* poznámka a sdílení */
.note { display: grid; gap: 10px; }
.effect { margin: 0; font-size: .96rem; color: var(--text); }
.effect b { color: var(--lvl); }
.drive { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #fff1f0; color: #9b2c2c; font-size: .86rem; line-height: 1.45; }
.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 18px; cursor: pointer;
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3)); color: #fff; font-weight: 800; font-size: 1rem; text-shadow: 0 1px 2px rgba(10, 70, 40, .3); }
.sticky-bac { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 999px; background: rgba(20, 38, 29, .94); backdrop-filter: blur(10px); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -8px rgba(20, 38, 29, .5); white-space: nowrap; }
.sticky-bac[hidden] { display: none; }
.sticky-bac b { color: var(--sun-1); font-size: 1.15rem; } .sticky-bac span { color: #d8d1e8; font-size: .84rem; }

/* informace pod kalkulačkou a články */
.info { padding-top: 26px; padding-bottom: 30px; }
.info h1 { font-size: 1.5rem; margin: 0 0 8px; } .info h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.info > p { color: var(--muted); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.links a, .others a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r-sm); background: var(--card);
  text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.links a:hover, .others a:hover { background: var(--card-2); }
.faq details { background: var(--card); border-radius: var(--r-sm); margin-bottom: 8px; padding: 0 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--ink); }
.faq p { margin: 0 0 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0; font: 800 .95rem var(--font); cursor: pointer; text-decoration: none; }
.btn-primary { background: linear-gradient(90deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3)); color: #fff; }
.btn-ghost { background: var(--card-2); color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.article { padding-top: 8px; padding-bottom: 40px; }
.article-head h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 10px 0 8px; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 16px; }
.prose { margin-top: 22px; }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--text); } .prose b { color: var(--ink); }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.sources li { color: var(--dim); font-size: .85rem; }
.others { margin-top: 28px; } .others h2 { font-size: 1.15rem; }
.others ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.updated { margin-top: 20px; color: var(--dim); }
.contact-card { font-style: normal; background: var(--card); box-shadow: var(--shadow); border-radius: var(--r-sm); padding: 18px 20px; line-height: 1.8; }
.notfound { padding: 70px 18px 90px; text-align: center; } .notfound .lead { margin: 0 auto 22px; }

/* patička */
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 26px; padding-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-grid a { color: var(--muted); }
.footer-h { color: var(--ink); font-size: .9rem; margin: 0 0 8px; }
.warn-foot { display: flex; gap: 8px; align-items: center; color: #15803d; font-weight: 800; }
.footer-legal { padding-top: 10px; padding-bottom: 80px; font-size: .78rem; }

.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; box-shadow: 0 20px 50px -15px rgba(20, 38, 29, .35); }
.consent h2 { margin: 0 0 4px; font-size: 1rem; } .consent p { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn { justify-content: center; }

@media (max-width: 380px) { .dr-e { width: 48px; height: 48px; font-size: 1.45rem; } .dr b { font-size: .72rem; } .facts b { font-size: 1.05rem; } }

/* širší displej: ukazatel vlevo, ovládání vpravo */
@media (min-width: 900px) {
  .header-inner, .wrap { max-width: 1080px; }
  .nav { display: flex; gap: 2px; } .nav-toggle { display: none; }
  .nav a { padding: 8px 12px; border-radius: 999px; font-size: .92rem; color: var(--muted); }
  .nav a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
  .app { max-width: 1080px; grid-template-columns: 420px minmax(0, 1fr); align-items: start; gap: 16px 22px; padding-top: 18px; }
  .app > .meter { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 76px; padding: 22px 18px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
  .app > .panel { grid-column: 2; }
  .sheet { margin: auto; border-radius: 26px; max-height: 80vh; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid ul { flex-direction: column; }
}

/* decentní tip na Dokládek */
.dk-tip { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid #e4dcff; border-left: 4px solid #6c4cf5;
  background: #f8f6ff; color: #4a3a8c; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.dk-tip img { flex: none; }
.dk-tip small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8b80b8; }
.dk-tip b { color: #2a1f66; font-weight: 800; }
.dk-go { margin-left: auto; color: #6c4cf5; font-weight: 900; transition: transform .15s; }
.dk-tip:hover { background: #f1edff; } .dk-tip:hover .dk-go { transform: translateX(3px); }
.article .dk-tip { margin-top: 26px; }
.footer-also a { color: var(--muted); }
@media (min-width: 900px) { .app > .dk-tip { grid-column: 2; } }
