/* Content pages (eet-2-0, pro-koho, doporucena-zarizeni, euctenka-a-moje-eet): one reading column under the landing page's header.
   The palette, base, button, nav, store button and footer rules repeat the ones inlined in index.html. Change both together. */
:root {
  --bg: #f2f6f5;
  --surface: #ffffff;
  --ink: #10302c;
  --muted: #4d6662;
  --line: #d5e2df;
  --teal: #009688;
  --teal-deep: #00695f;
  --teal-soft: #dcefeb;
  --coral: #d9453f;
  --coral-soft: #fbe3e1;
  --paper: #fdfdfb;
  --paper-ink: #1d2322;
  --on-teal: #ffffff;
  --band: #0d3f39;
  --band-ink: #e5f3f0;
  --band-muted: #a8cbc5;
  --shadow: 0 30px 60px -30px rgba(13, 63, 57, .45);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1614; --surface: #12221f; --ink: #e3efec; --muted: #9bb5b0; --line: #22393550;
    --teal: #35c2b2; --teal-deep: #6fd8cb; --teal-soft: #173430; --coral: #ff7a72; --coral-soft: #3a1c1b;
    --paper: #f4f3ee; --paper-ink: #1d2322; --on-teal: #06201d; --band: #071f1c; --band-ink: #e3efec; --band-muted: #93b8b1;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1614; --surface: #12221f; --ink: #e3efec; --muted: #9bb5b0; --line: #22393550;
  --teal: #35c2b2; --teal-deep: #6fd8cb; --teal-soft: #173430; --coral: #ff7a72; --coral-soft: #3a1c1b;
  --paper: #f4f3ee; --paper-ink: #1d2322; --on-teal: #06201d; --band: #071f1c; --band-ink: #e3efec; --band-muted: #93b8b1;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(69px + env(safe-area-inset-top, 0px)); }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; }
h1 em { font-style: normal; color: var(--teal); }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.lead { color: var(--muted); font-size: 19px; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font: 800 26px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.nav-links { margin-right: 4px; }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.btn-login { background: transparent; border-color: var(--teal); color: var(--teal-deep); }
.btn-login:hover { background: var(--teal-soft); }
.btn-login svg { width: 18px; height: 18px; }
@media (max-width: 880px) { .nav-links { display: none; } .nav-links + .nav-actions { margin-left: auto; } }
@media (max-width: 440px) { .nav .wrap { gap: 12px; } .nav .btn { padding: 10px 14px; } .login-long { display: none; } }

/* Page head */
.page { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head { display: grid; gap: 16px; margin-bottom: 36px; }
.stamp { font: 500 13px/1.5 var(--mono); color: var(--muted); }

/* Prose: headings get extra room above, on top of the grid gap */
.prose { display: grid; gap: 18px; }
.prose > * { min-width: 0; }
.prose > h2 { margin-top: 40px; }
.prose > h3 { margin-top: 14px; }
.prose > :is(h2, h3) { margin-bottom: -4px; }
.prose [id] { scroll-margin-top: 24px; }
.prose a, .stamp a { color: var(--teal-deep); text-underline-offset: 3px; }
.prose b { font-weight: 600; }
.prose :is(ul, ol):not([class]) { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose :is(ul, ol):not([class]) li::marker { color: var(--teal); font-weight: 700; }
.note { background: var(--teal-soft); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 8px; }
.small { color: var(--muted); font-size: 14.5px; }

/* Dates */
.dates { list-style: none; margin: 0; padding: 0; display: grid; }
.dates li { display: grid; grid-template-columns: 180px 1fr; gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates b { font: 700 17px/1.5 var(--display); color: var(--teal-deep); }
@media (max-width: 560px) { .dates li { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); font: 700 20px/41px var(--display); width: 44px; height: 44px; text-align: center; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal-deep); }
.steps > li > div { display: grid; gap: 6px; min-width: 0; }
.steps p { color: var(--muted); font-size: 16px; }

/* Cards, chips and tags */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .use { font: 500 12.5px/1.4 var(--mono); color: var(--teal-deep); }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.prose .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; }
.prose .chip:hover { border-color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; background: var(--teal-soft); color: var(--teal-deep); padding: 4px 10px; border-radius: 6px; font-weight: 500; }

/* Tables: on phones each row stacks into a block and the cells take their column name from data-label */
.table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.table thead th, .table thead td { border-top: 0; }
.table thead th { font: 700 17px/1.3 var(--display); }
.table thead small { display: block; font: 400 13px/1.4 var(--body); color: var(--muted); margin-top: 2px; }
.table tbody th { width: 24%; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .table table, .table tbody, .table tbody th, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tbody tr { display: grid; gap: 6px; padding: 16px 18px; border-top: 1px solid var(--line); }
  .table tbody tr:first-child { border-top: 0; }
  .table tbody th, .table td { width: auto; padding: 0; border: 0; }
  .table tbody th { font: 700 17px/1.3 var(--display); color: var(--ink); }
  .table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

/* Links to the other content pages */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prose .more a { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.prose .more a:hover { border-color: var(--teal); }
.more b { font: 700 17px/1.3 var(--display); }
.more small { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 720px) { .more { grid-template-columns: 1fr; } }

/* Store buttons and the download block */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 11px 22px 11px 16px; border-radius: 12px; background: #0e1413; color: #ffffff; border: 1px solid #ffffff2e; text-decoration: none; font: 600 19px/1.1 var(--body); transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.download { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--band); color: var(--band-ink); border-radius: 24px; padding: clamp(28px, 5vw, 48px); margin-top: 64px; }
.download > * { min-width: 0; }
.download > div:first-child { display: grid; gap: 12px; }
.download .eyebrow { color: var(--band-muted); }
.download p { color: var(--band-muted); }
.download .stores { flex-direction: column; }
@media (max-width: 820px) { .download { grid-template-columns: 1fr; } .download .stores { flex-direction: row; } }

/* Footer */
footer { padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
