/* Společné styly webu stravon.cz (úvodní stránka i návody): barvy a písma z aplikace STRAVON (teal/slate), hlavička, tlačítka, lišta souhlasu, patička. */
/* Písma na vlastním serveru (proměnná woff2 z Google Fonts, licence SIL OFL 1.1; latinka + rozšířená latinka pro češtinu). */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; 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; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: only light; /* jen světlý režim (rozhodnutí 16. 11. 2026) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-fg: #ffffff;
  --accent-soft: #f0fdfa;
  --accent-ink: #134e4a;
  --warn: #b45309;
  --band: #0f172a;
  --band-fg: #e2e8f0;
  --band-muted: #94a3b8;
  --band-accent: #2dd4bf;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 3.25rem);
  --radius: 10px;
  --wrap: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.lead { color: var(--muted); max-width: 40rem; font-size: var(--step-1); }
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 46rem; }

/* Hlavička */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; text-decoration: none; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 600; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.975rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn { min-height: 38px; padding: 0.4rem 0.9rem; color: var(--fg); }
@media (max-width: 760px) { .nav .anchor { display: none; } }

/* Lišta souhlasu s analytickými cookies */
.consent { position: fixed; inset: auto 0 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px color-mix(in srgb, var(--fg) 40%, transparent); padding-bottom: env(safe-area-inset-bottom, 0px); }
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1rem; }
.consent p { max-width: 46rem; font-size: 0.95rem; color: var(--muted); }
.consent .actions .btn { min-height: 40px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Patička */
footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.925rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
footer nav.foot-guides { flex-direction: column; gap: 0.35rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Návody k povinnostem (/rocni-hlaseni-o-odpadech/ a další): text vlevo, „Ve zkratce“ vpravo. Signaturou jsou citace ustanovení (.cite). */
.guide { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.guide article { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 20rem); column-gap: clamp(2rem, 5vw, 4rem); row-gap: 2.5rem; align-items: start; }
.guide article > * { grid-column: 1; min-width: 0; }
.guide article > .glance { grid-column: 2; grid-row: 1 / span 3; }
.guide header { display: flex; flex-direction: column; gap: 1rem; }
.guide h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
.guide .meta { font-size: 0.9rem; color: var(--muted); }
.crumbs { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { color: var(--muted); }
.guide article > section { padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.guide article p, .guide article li { max-width: 42rem; }
.guide article ul, .guide article ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; }
.guide article ol.events { list-style: none; padding: 0; counter-reset: ev; }
.guide article ol.events li { counter-increment: ev; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; }
.guide article ol.events li::before { content: counter(ev, lower-alpha) ")"; font-family: var(--font-mono); color: var(--accent); }
.cite { font-family: var(--font-mono); font-size: 0.8125rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0.05rem 0.4rem; }
.example { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.example strong { font-size: 0.95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.975rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); }
.table-wrap thead th { border-top: 0; font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.glance h2 { font-size: 1.05rem; letter-spacing: 0; font-weight: 700; }
.glance dl { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem; }
.glance dt { font-size: 0.8125rem; color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; }
.glance .big { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; color: var(--accent); }
.cta { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.cta h2 { font-size: var(--step-1); }
.sources { font-size: 0.95rem; color: var(--muted); }
.sources a { color: var(--fg); }
.disclaimer { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.faq-s details { border-bottom: 1px solid var(--line); padding-block: 0.8rem; }
.faq-s summary { cursor: pointer; font-weight: 700; }
.faq-s details p { color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 900px) { .guide article { grid-template-columns: minmax(0, 1fr); } .guide article > .glance { grid-column: 1; grid-row: auto; } }

/* Odkazy na návody (úvodní stránka) */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.guides a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.guides a:hover { border-color: var(--accent); }
.guides span { color: var(--muted); font-size: 0.975rem; }
.guides h2, .guides h3 { font-size: var(--step-1); }
.hub .wrap { display: flex; flex-direction: column; gap: 2rem; }
.hub header { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.table-wrap td.mono { white-space: nowrap; }

/* Snímky aplikace (úvodní stránka) */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.shot-grid figure { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.shot-grid img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 1px 2px color-mix(in srgb, var(--fg) 6%, transparent), 0 12px 32px -18px color-mix(in srgb, var(--fg) 30%, transparent); background: var(--surface); }
.shot-grid figcaption { color: var(--muted); font-size: 0.975rem; }
.shot-grid figcaption strong { color: var(--fg); }
