/* Blog HyperQuant: te same tokeny co desk (src/index.css, docs/STYLEGUIDE.md), układ do czytania. */
:root {
  color-scheme: dark;
  --page: #070a11;
  --surface-1: #0b1019;
  --surface-2: #101826;
  --surface-3: #16202f;
  --line: #1b2533;
  --line-strong: #283447;
  --ink-1: #eef2f7;
  --ink-2: #a9b4c4;
  --ink-3: #7a889c;
  --accent: #3fc6dd;
  --level: #e0a045;
  --buy: #19a88e;
  --sell: #d9582e;
  --buy-ink: #35c9a8;
  --sell-ink: #f07c55;
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-1);
  font: 400 16px/1.6 var(--font-sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ───── Nagłówek i stopka ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(7 10 17 / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-1);
  text-decoration: none;
  font: 700 18px/1 var(--font-display);
  letter-spacing: -0.01em;
}
@media (max-width: 419px) {
  .brand span {
    display: none;
  }
}
.brand span {
  font: 400 11px/1 var(--font-sans);
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.site-header nav {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.site-header nav a:hover {
  color: var(--ink-1);
}
.site-header nav a[aria-current='page'] {
  color: var(--ink-1);
  background: var(--surface-2);
  border-color: var(--line);
}
.site-header nav .nav-lang {
  margin-left: 4px;
  border-color: var(--line);
}
/* Na telefonie Desk prowadzi przez logo, a RSS jest w stopce */
@media (max-width: 559px) {
  .site-header nav a {
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .site-header nav .nav-desk,
  .site-header nav .nav-rss {
    display: none;
  }
}
main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
}
.site-footer p {
  margin: 0 0 8px;
  max-width: 62ch;
}
.site-footer a {
  color: var(--ink-2);
}

/* ───── Elementy wspólne ───── */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow a {
  text-decoration: none;
}
.eyebrow > * + *::before {
  content: '/';
  margin-right: 8px;
  color: var(--line-strong);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
}
.post--note h1 {
  font-size: clamp(24px, 5vw, 30px);
}

/* ───── Wpis ───── */
.meta {
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 13px;
}
.lead {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
}
.facts {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 12px;
  margin: 0 0 8px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.facts .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.facts .v {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.facts .s {
  grid-column: 2;
  font-size: 12px;
  color: var(--ink-3);
}
.block {
  margin-top: 32px;
}
.block h2,
.prose h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

/* Mapa poziomów: skala (SVG) + wiersze w HTML */
.ladder {
  position: relative;
  max-width: 560px;
  margin: 0;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ladder svg {
  position: absolute;
  left: 8px;
  top: 0;
}
.ladder ol {
  position: absolute;
  inset: 0 16px 0 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder li {
  position: absolute;
  left: 0;
  right: 0;
  /* pierwszy wiersz (nazwa, cena) wyśrodkowany na pozycji, notka pod nim */
  transform: translateY(-10px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 52px;
  align-items: baseline;
  column-gap: 10px;
  font-size: 14px;
  line-height: 20px;
}
.ld-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.ld-note {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 16px;
}
.ld-price,
.ld-dist {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ld-price {
  font-weight: 500;
}
.ld-dist {
  color: var(--ink-3);
  font-size: 13px;
}
.ladder li.is-now .ld-label,
.ladder li.is-now .ld-price {
  color: var(--accent);
}
.ld-axis {
  stroke: var(--line-strong);
  stroke-width: 2;
}
.ld-level {
  stroke: var(--level);
  stroke-width: 2;
}
.ld-now {
  stroke: var(--accent);
  stroke-width: 3;
}
.ld-leader {
  fill: none;
  stroke-width: 1;
  stroke-opacity: 0.45;
}

/* Scenariusze */
.scenarios {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.scenarios li {
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sc-label {
  font-weight: 600;
  font-size: 15px;
}
.sc-p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sc-bar {
  height: 6px;
  margin-top: 10px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.sc-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.sc-note {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.sc-rest {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* W skrócie */
.summary {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.summary h2,
.block--inline figcaption,
.su-k {
  margin: 0 0 8px;
  color: var(--ink-3);
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary ul {
  margin: 0;
  padding-left: 1.2em;
}
.summary li {
  font-size: 16px;
  line-height: 1.55;
}
.summary li + li {
  margin-top: 6px;
}
.summary li::marker {
  color: var(--accent);
}

/* Bloki wstawione w treść: podpis zamiast nagłówka sekcji */
.block--inline {
  margin: 1.6em 0 2em;
}
.prose .block--inline p {
  margin: 0;
}
.prose .block--inline ol,
.prose .block--inline ul {
  margin: 0;
  padding: 0;
}
.prose .block--inline li + li {
  margin-top: 0;
}
.prose .block--inline {
  font-size: 15px;
  line-height: 1.5;
}

/* Kierunek: znak + kolor */
.bias {
  margin-right: 6px;
  font-size: 0.75em;
}
.bias--up {
  color: var(--buy-ink);
}
.bias--down {
  color: var(--sell-ink);
}
.bias--flat {
  color: var(--ink-3);
}

/* Legenda i przypisy diagramów */
.prose .legend,
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.legend b {
  color: var(--ink-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}
.sw--short,
.sw--buy,
.liq-bar--short,
.fl-bar--buy {
  background: var(--buy);
}
.sw--long,
.sw--sell,
.liq-bar--long,
.fl-bar--sell {
  background: var(--sell);
}
/* Wykresy wpisu: SVG w dwóch układach, widoczny jeden (szeroki od 640 px) */
.chart-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
}
.chart {
  display: block;
  width: 100%;
  height: auto;
}
.chart--w {
  display: none;
}
@media (min-width: 640px) {
  .chart--w {
    display: block;
  }
  .chart--n {
    display: none;
  }
}
.sw + .sw {
  margin-left: -3px;
}
.sw--line {
  width: 14px;
  height: 0;
  border-radius: 0;
  border-top: 2px solid var(--ink-1);
  vertical-align: 3px;
}
.sw--vwap {
  border-top-color: #e6ebf2;
}
.sw--poc {
  border-top-color: var(--level);
}
.sw--va {
  border-top: 1px dashed var(--ink-3);
}
.sw--prev {
  border-top: 2px dotted var(--ink-2);
}
.sw--dot {
  border-radius: 50%;
  opacity: 0.8;
}
.sw--zone-up {
  background: rgba(25, 168, 142, 0.35);
}
.sw--zone-down {
  background: rgba(217, 88, 46, 0.35);
}
.sw--poc-frame {
  border: 1.5px solid var(--level);
}
.sw--imb {
  width: 4px;
  background: #5cf2cf;
  box-shadow: 6px 0 0 #ff9a6a;
  margin-right: 12px;
}

.prose .fig-note,
.fig-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}
.fig-table {
  margin-top: 8px;
  font-size: 13px;
}
.fig-table summary {
  color: var(--ink-2);
  cursor: pointer;
}
.fig-table .table-wrap {
  margin: 8px 0 0;
}

/* Panel danych */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.metrics li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose .metrics li + li {
  margin-top: 0;
}
.mt-label {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.mt-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.mt-note {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

/* Mapa likwidacji: przedziały ceny jako wiersze */
.liq,
.flows {
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.liq-rows,
.fl-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.liq-rows li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  height: 18px;
  font-size: 12px;
  line-height: 18px;
}
.liq-px,
.liq-v {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.liq-px {
  text-align: right;
}
.liq-v {
  color: var(--ink-2);
}
.liq-track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  border-left: 1px solid var(--line-strong);
}
.liq-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 12px;
}
.liq-bar {
  display: block;
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 0 4px 4px 0;
}
.liq-rows .liq-now {
  height: 26px;
}
.liq-now .liq-px,
.liq-now .liq-v {
  color: var(--accent);
  font-weight: 600;
}
.liq-now .liq-track {
  border-left: 0;
}
.liq-line {
  flex: 1;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Przepływy: słupki od zera w obie strony */
.fl-rows li {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 52px;
  align-items: center;
  column-gap: 12px;
  min-height: 36px;
  padding: 4px 0;
}
.prose .fl-rows li + li {
  margin-top: 0;
}
.fl-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.fl-label small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 400;
}
.fl-track {
  position: relative;
  height: 16px;
}
.fl-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  border-left: 1px solid var(--line-strong);
}
.fl-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
}
.fl-bar--buy {
  left: calc(50% + 1px);
  border-radius: 0 4px 4px 0;
}
.fl-bar--sell {
  right: 50%;
  border-radius: 4px 0 0 4px;
}
.fl-v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Scenariusze warunkowe */
.prose .su-note,
.su-note {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}
.setups {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .setups > li + li {
  margin-top: 0;
}
.setup {
  padding: 16px 18px 18px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.su-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.su-bias {
  color: var(--ink-3);
}
.setup--up .su-bias {
  color: var(--buy-ink);
}
.setup--down .su-bias {
  color: var(--sell-ink);
}
.su-window {
  color: var(--ink-3);
  font-weight: 500;
}
.setup h3,
.prose .setup h3 {
  margin: 6px 0 12px;
  font-size: 19px;
  line-height: 1.3;
}
.setup .su-k,
.prose .setup .su-k {
  margin: 16px 0 8px;
}
.prose .setup p,
.prose .setup ol,
.prose .setup ul {
  margin: 0;
}
.su-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
.setup .su-zone .su-k {
  flex-basis: 100%;
  margin: 0;
}
.su-zone b {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.su-dist {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.su-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: su;
}
.su-checks li {
  position: relative;
  padding-left: 30px;
  counter-increment: su;
}
.su-checks li + li {
  margin-top: 6px;
}
.su-checks li::before {
  content: counter(su);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  font: 600 11px/18px var(--font-sans);
  text-align: center;
}
.su-invalid {
  position: relative;
  padding-left: 30px;
}
.su-invalid::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
  font: 600 14px/20px var(--font-sans);
  text-align: center;
}
.su-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .su-reactions li + li {
  margin-top: 0;
}
.su-reactions li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
}
.su-reactions b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.su-reactions span:not(.su-dist) {
  color: var(--ink-2);
}
.su-evidence {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.setup .su-evidence .su-k {
  display: block;
  margin: 0 0 4px;
}

/* Treść */
.prose {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.75;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 1.1em;
}
.prose h2 {
  margin-top: 1.9em;
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.3em;
}
.prose strong {
  font-weight: 600;
}
.prose blockquote {
  padding-left: 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-2);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prose th {
  background: var(--surface-1);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose td[align='right'],
.prose th[align='right'] {
  text-align: right;
}
.history {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.history a {
  color: var(--ink-2);
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.pager a {
  display: block;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 150ms;
}
.pager a:hover {
  border-color: var(--line-strong);
}
.pager a span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pager-newer {
  text-align: right;
}

/* ───── Udostępnianie ───── */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn,
.share-net {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 150ms,
    color 150ms;
}
.share-net {
  width: 44px;
  padding: 0;
}
.share-btn[hidden] {
  display: none;
}
.share-btn:hover,
.share-net:hover {
  border-color: var(--line-strong);
  color: var(--ink-1);
}
.share svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}
.share svg.line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-btn .ico-check,
.share-btn[data-done] .ico-link {
  display: none;
}
.share-btn[data-done] .ico-check {
  display: block;
}
.share-btn[data-done] {
  color: var(--accent);
}
/* Rząd ikon pod tytułem, obok daty */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 20px;
}
.byline .meta {
  margin: 0;
}
.share--compact .share-row {
  gap: 6px;
}
.share--compact .share-btn,
.share--compact .share-net {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}
.share--compact svg {
  width: 16px;
  height: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ───── Lista wpisów ───── */
.intro p:not(.eyebrow) {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 17px;
}
.hero {
  display: block;
  margin-top: 32px;
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink-1);
  text-decoration: none;
  transition: border-color 150ms;
}
.hero:hover {
  border-color: var(--accent);
}
.hero-title {
  display: block;
  margin: 8px 0 10px;
  font: 600 clamp(24px, 5vw, 30px) / 1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.hero-lead {
  display: block;
  color: var(--ink-2);
  font-size: 16px;
}
.hero-price {
  display: block;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-price b {
  color: var(--ink-1);
  font-weight: 500;
}
.empty {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
}
.day h2 {
  margin: 36px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.day ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
  text-decoration: none;
}
.entry a:hover .entry-title {
  color: var(--accent);
}
.entry-meta {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.entry .entry-meta time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.entry-meta time::after {
  content: '·';
  margin: 0 8px;
}
.entry-title {
  display: block;
  margin-top: 4px;
  transition: color 150ms;
}
.entry--article .entry-title {
  font: 600 20px/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.entry--note .entry-title {
  font-size: 16px;
  font-weight: 500;
}
.entry-lead {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.archive {
  margin-top: 40px;
}
.archive h2 {
  margin: 0 0 8px;
  color: var(--ink-3);
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive a {
  color: var(--ink-2);
}

/* ───── Przyciski ───── */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink-1);
  font: 600 15px/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  transition:
    border-color 150ms,
    background 150ms;
}
.btn:hover {
  border-color: var(--accent);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--page);
}
.btn--primary:hover {
  background: #6ad5e7;
  border-color: #6ad5e7;
}

/* ───── Powtórka pod wpisem ───── */
.replay {
  padding: 20px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
}
.replay p {
  margin: 0;
  color: var(--ink-2);
}
.replay .cta {
  margin: 16px 0 8px;
}
.replay [hidden] {
  display: none;
}

/* ───── Strony serwisu: Wykresy, Lekcje, atlas wskaźników ───── */
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.shot figcaption {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 13px;
}
/* Na szerokim ekranie zrzut wychodzi poza kolumnę tekstu, żeby szczegóły wykresu były czytelne */
@media (min-width: 900px) {
  .shot {
    --shot-w: min(1120px, calc(100vw - 48px));
    width: var(--shot-w);
    margin-left: calc((100% - var(--shot-w)) / 2);
  }
}
.page .block > p {
  margin: 0 0 12px;
  max-width: 68ch;
  color: var(--ink-2);
}
.page .block > h3 {
  margin: 28px 0 0;
  color: var(--ink-3);
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.features,
.cards,
.more {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.features h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}
.features p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.features li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.cards a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-1);
  text-decoration: none;
  transition: border-color 150ms;
}
.cards a:hover {
  border-color: var(--accent);
}
.card-meta {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.card-title {
  display: block;
  margin-top: 2px;
  font: 600 17px/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.card-text {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.questions {
  margin: 0;
  padding-left: 1.3em;
  color: var(--ink-2);
}
.questions li + li {
  margin-top: 6px;
}
.questions b {
  color: var(--ink-1);
  font-weight: 600;
}
.tab-link {
  margin: 12px 0 0;
  font-weight: 500;
}
.page > .cta:last-of-type {
  margin-top: 40px;
}
.more {
  margin-top: 24px;
}
.page--atlas .prose {
  margin-top: 0;
}
@media (min-width: 640px) {
  .features,
  .cards--atlas {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
  main.wrap {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
