/* Verejný blog Stepiora — rovnaké farby a písma ako úvodná stránka („STEP + ORIGAMI“).
   Stránky blogu vykresľuje server (server/cms/public-site.ts) a nepoužívajú žiadny skript. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/blog/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/blog/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog/assets/fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog/assets/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog/assets/fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog/assets/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/blog/assets/fonts/manrope-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/blog/assets/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  color-scheme: light dark;
  --ink: #0b1724;
  --text: #3b4856;
  --muted: #66758a;
  --teal: #0f766e;
  --teal-strong: #0b5e57;
  --teal-bright: #0ea5a4;
  --mint-soft: #ecfaf7;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --line: #e3eaef;
  --header-bg: rgba(255, 255, 255, .92);
  --warn-soft: #fdf3e7;
  --warn: #a5601a;
  --info-soft: #eaf3fc;
  --info: #2a5f9e;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef4f8;
    --text: #c3cfda;
    --muted: #93a3b5;
    --teal: #2dd4bf;
    --teal-strong: #5eead4;
    --teal-bright: #5eead4;
    --mint-soft: #10302e;
    --page: #0b1724;
    --surface: #111f2e;
    --surface-2: #0f1c2a;
    --line: #223345;
    --header-bg: rgba(11, 23, 36, .92);
    --warn-soft: #33260f;
    --warn: #f0b561;
    --info-soft: #12283f;
    --info: #8fc0f5;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 { color: var(--ink); font-family: Manrope, Inter, system-ui, sans-serif; line-height: 1.2; text-wrap: balance; }
a { color: var(--teal); }
a:hover { color: var(--teal-strong); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2.5px solid var(--teal-bright); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; padding: 8px 12px; background: var(--surface); border-radius: 8px; }

/* hlavička */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; flex: 1; flex-wrap: wrap; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #0f766e, #0a8e84); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0b6b64, #09867c); color: #fff; }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* úvod zoznamu */
.blog-hero { padding: 56px 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.blog-hero p { margin: 0; max-width: 640px; color: var(--muted); font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.chips a[aria-current="page"] { background: var(--mint-soft); border-color: transparent; color: var(--teal-strong); }

/* karty článkov */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin: 28px 0 56px; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.card-meta .cat { color: var(--teal); font-weight: 700; }
.card h2 { margin: 0; font-size: 21px; font-weight: 700; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--teal); }
.card p { margin: 0; color: var(--text); font-size: 15.5px; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 700; text-decoration: none; }

.empty { margin: 40px 0 80px; padding: 36px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 64px; }

/* článok */
.article-head { padding: 48px 0 8px; }
.article-head .crumbs { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.article-head .crumbs a { color: var(--muted); text-decoration: none; }
.article-head .crumbs a:hover { color: var(--teal); }
.article-head h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.article-head .lead { margin: 0 0 20px; color: var(--text); font-size: 20px; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.article-meta .cat { color: var(--teal); font-weight: 700; text-decoration: none; }
.article-hero { margin: 28px auto 0; width: min(1000px, calc(100% - 40px)); }
.article-hero img { display: block; width: 100%; border-radius: 18px; }

.article-body { padding: 34px 0 20px; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { margin: 1.9em 0 .6em; font-size: 28px; font-weight: 800; scroll-margin-top: 90px; }
.article-body h3 { margin: 1.7em 0 .5em; font-size: 22px; font-weight: 700; scroll-margin-top: 90px; }
.article-body h4 { margin: 1.5em 0 .4em; font-size: 18px; font-weight: 700; scroll-margin-top: 90px; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin: .3em 0; }
.article-body li > p { margin: 0; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--teal-bright); color: var(--ink); font-size: 19px; font-style: italic; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.article-body code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.article-body pre { overflow-x: auto; margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; }
.article-body pre code { padding: 0; background: none; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table-wrap th, .table-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td > p, .table-wrap th > p { margin: 0; }

.art-image, .art-video, .art-chart { margin: 1.8em 0; }
.art-image img { display: block; width: 100%; border-radius: 14px; }
.art-image.size-small { width: min(420px, 100%); margin-left: auto; margin-right: auto; }
.art-image.size-wide, .art-video, .art-chart { width: min(1000px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.callout { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--teal-bright); border-radius: 0 12px 12px 0; background: var(--mint-soft); color: var(--ink); }
.callout > :last-child { margin-bottom: 0; }
.callout-tip { border-left-color: var(--info); background: var(--info-soft); }
.callout-warning { border-left-color: var(--warn); background: var(--warn-soft); }

.art-cta { margin: 1.8em 0; text-align: center; }

.art-chart { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.chart { display: block; width: 100%; height: auto; }
.chart-bar { fill: var(--teal); }
.chart-line { stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--teal); }
.chart-axis { stroke: var(--line); stroke-width: 1.5; }
.chart-label { fill: var(--muted); font-size: 13px; }
.chart-value { fill: var(--ink); font-size: 13px; font-weight: 700; }

/* kroky postupu — číslované kroky spojené čiarou (motív „krok za krokom“) */
.art-steps { margin: 1.8em 0; padding: 22px 24px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.art-steps-title { margin: 0 0 16px; color: var(--ink); font-size: 17px; font-weight: 800; }
.art-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.art-steps li { position: relative; margin: 0; padding: 0 0 18px 52px; counter-increment: step; }
.art-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 15px; font-weight: 800; }
.art-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.art-steps li strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.4; }
.art-steps li span { display: block; margin-top: 3px; color: var(--text); font-size: 15.5px; line-height: 1.55; }
@media (prefers-color-scheme: dark) { .art-steps li::before { color: #0b1724; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }

.article-cta { margin: 44px 0 20px; padding: 30px; border-radius: 18px; background: linear-gradient(135deg, #0b1724, #12303c); color: #dbe7ee; text-align: center; }
.article-cta h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.article-cta p { margin: 0 0 18px; }

.related { padding: 12px 0 30px; border-top: 1px solid var(--line); margin-top: 30px; }
.related h2 { margin: 28px 0 0; font-size: 22px; }
.related .cards { margin-bottom: 30px; }

.preview-bar { padding: 10px 20px; background: var(--warn-soft); color: var(--warn); font-size: 14.5px; font-weight: 600; text-align: center; }

/* pätička */
.footer { margin-top: 40px; padding: 36px 0 30px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14.5px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--teal); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* na telefóne hlavička neostáva prilepená (zabrala by štvrtinu obrazovky) a výzva je až pod článkom */
  .site-header { position: static; }
  .nav { flex-wrap: wrap; gap: 6px 16px; min-height: 0; padding: 10px 0; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .btn { min-height: 42px; padding: 0 16px; }
  .article-head { padding-top: 32px; }
  .article-head .lead { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
