/* Rozcestník – veřejná stránka z QR. Mobilní zobrazení je hlavní. */
:root {
    color-scheme: light dark;
    --bg: #f6f7f5;
    --card: #ffffff;
    --text: #1d2420;
    --muted: #5d6862;
    --line: #dde3df;
    --accent: #1f6f4a;
    --info-bg: #e8f1fb;
    --warn-bg: #fff4dc;
    --error-bg: #fde8e8;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141816;
        --card: #1d2320;
        --text: #e8ece9;
        --muted: #a3ada7;
        --line: #333b37;
        --accent: #6fcf9d;
        --info-bg: #1c2a3a;
        --warn-bg: #3a3018;
        --error-bg: #3d1f1f;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
header.product { padding: 1.25rem 0 0.5rem; }
.brand { margin: 0; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
footer .brand { text-transform: none; letter-spacing: 0; font-weight: 400; }
h1 { margin: 0.2rem 0; font-size: 1.6rem; line-height: 1.2; }
.variant { margin: 0; font-size: 1.1rem; }
.gtin { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.lead { margin: 0; font-weight: 600; }
.small { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.45rem 0.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { width: 45%; font-weight: 500; color: var(--muted); }
table.parts { margin-top: 0.75rem; }
table.parts thead th { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
tfoot th, tfoot td { border-bottom: 0; font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.bad { color: #b42318; }
.notice { border-radius: 10px; padding: 0.75rem 1rem; margin: 1rem 0; }
.notice.info { background: var(--info-bg); }
.notice.warning { background: var(--warn-bg); }
.notice.error { background: var(--error-bg); }
footer { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 1.5rem 0 2rem; }
footer a.brand { text-decoration: none; }
footer a.brand img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.25em; }
h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }
section.info p { margin: 0.25rem 0 0; }
.photos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.photos figure { margin: 0; }
.photos img { display: block; max-width: 100%; height: auto; border-radius: 8px; background: var(--bg); }
.photos figure.main { flex: 1 1 100%; }
.photos figure.main img { width: 100%; max-height: 22rem; object-fit: contain; }
.photos figure.thumb { flex: 0 0 calc(33.333% - 0.34rem); }
.photos figure.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }
.preview-badge { position: sticky; bottom: 0; margin: 0; padding: 0.5rem; text-align: center; background: var(--warn-bg); border-radius: 8px; font-size: 0.85rem; }

/* Veřejné dokumenty (ADR 0017) */
ul.docs { padding-left: 1.1rem; margin: 0.25rem 0 0; }
ul.docs li { margin: 0.2rem 0; }
ul.docs small { color: inherit; opacity: 0.7; }

/* Rozevírací bloky rozcestníku (ADR 0034) */
details.block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0.75rem 0; }
details.block > summary { cursor: pointer; list-style: none; padding: 0.9rem 1rem; font-size: 1.05rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details.block[open] > summary::after { content: "–"; }
details.block > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
details.block[open] > summary { border-bottom: 1px solid var(--line); }
.block-body { padding: 0.25rem 1rem 1rem; }
.block-body > h3:first-child { margin-top: 0.75rem; }
/* Označení částí obalu pro třídění: barevný pruh, text a ikona recyklace */
ul.sorting { list-style: none; margin: 0.5rem 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; }
ul.sorting li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-left: 6px solid var(--mark, #999); padding: 0.25rem 0 0.25rem 0.75rem; }
ul.sorting .sorting-text { display: grid; gap: 0.1rem; }
ul.sorting .sorting-text strong { color: var(--mark, inherit); font-size: 1.05rem; }
ul.sorting .sorting-text .how { font-weight: 600; }
ul.sorting .recycle-icon { flex: none; color: var(--text, #111); }
p.logo img { max-height: 64px; width: auto; }
ul.sorting li.sort-plastic { --mark: #f2bd00; }
ul.sorting li.sort-paper { --mark: #0070b6; }
ul.sorting li.sort-metal { --mark: #7a8794; }
ul.sorting li.sort-wood { --mark: #8a5a2b; }
ul.sorting li.sort-textile { --mark: #7b4fa0; }
ul.sorting li.sort-glass { --mark: #387943; }
ul.sorting li.sort-composite { --mark: #e8710a; }
ul.sorting li.sort-other { --mark: #999999; }
ul.sorting li.sort-metal { --mark: #6b7c8c; }
.sorting-instructions { margin: 1rem 0 0.25rem; padding: 0.75rem 1rem; border-left: 4px solid var(--accent, #315d46); background: rgba(49, 93, 70, 0.07); border-radius: 0 10px 10px 0; }
.sorting-instructions h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.sorting-instructions p { margin: 0; line-height: 1.6; }
.epr-system .epr-icon { height: 1.6em; width: auto; vertical-align: middle; margin-right: 0.35em; }
