/* Content pages (/o-nas/, /poradnik/…): the same system as the home page – quiet canvas, hairline rules,
   a graphite footer, crimson only for the action and the decision seam. Tokens mirror site.css and the app. */
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f7f8fa; --surface: #ffffff; --graphite: #0d0d12; --graphite-raised: #191a22; --graphite-line: rgba(255, 255, 255, 0.12);
  --on-graphite: #f2f3f6; --on-graphite-muted: #a9aeba;
  --text: #191b22; --text-2: #596170; --border: #dde1e7; --border-strong: #b9c0cb;
  --brand: #c10a28; --brand-hover: #a60923;
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f1015; --surface: #16171e; --graphite: #08080b; --graphite-raised: #14151b;
  --text: #eceef2; --text-2: #a1a8b5; --border: #272a34; --border-strong: #3b404d;
  --brand: #e5334f; --brand-hover: #f0536b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: compact bar, same lockup as the home page */
.top { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--border); }
.top .wrap { max-width: 1232px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.top a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand-wordmark { display: block; width: 74px; height: 20px; background: currentColor;
  -webkit-mask: url("/assets/logo-ryczalt-wordmark.svg?v=3") center / contain no-repeat; mask: url("/assets/logo-ryczalt-wordmark.svg?v=3") center / contain no-repeat; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.top nav a, .theme-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; white-space: nowrap; color: var(--text-2); }
.top nav a:hover { color: var(--text); background: rgba(128, 133, 150, 0.12); }
.top nav .cta { background: var(--brand); color: #fff; font-weight: 500; padding: 0 16px; margin-left: 8px; }
.top nav .cta:hover { background: var(--brand-hover); color: #fff; }
.theme-btn { width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; cursor: pointer; }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Article */
main { padding: 56px 0 96px; }
.crumbs { margin: 0 0 22px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.022em; margin: 0 0 18px; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.014em; margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); }
h2:first-of-type { }
h3 { font-size: 20px; line-height: 1.3; margin: 30px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); }
.meta { font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-bottom: 28px; }
/* The short answer carries the decision seam: it is the line the rest of the article explains */
.answer { position: relative; margin: 0 0 28px; padding: 4px 0 4px 20px; }
.answer::before, .answer::after { content: ""; position: absolute; background: var(--brand); }
.answer::before { left: 0; top: 0; bottom: 0; width: 2px; }
.answer::after { left: 0; top: 0; width: 9px; height: 2px; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
thead th { font-weight: 400; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border-strong); }
caption { text-align: left; font-size: 13px; color: var(--text-2); padding: 12px 14px 4px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 500; text-decoration: none; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.note { font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 44px; }

/* Guide list: ruled rows, no cards */
.cards { list-style: none; padding: 0; margin: 28px 0 0; border-bottom: 1px solid var(--border); }
.cards li { position: relative; margin: 0; padding: 22px 0; border-top: 1px solid var(--border); }
.cards li:hover h2 a { text-decoration: underline; }
.cards h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 21px; }
.cards h2 a { color: var(--text); text-decoration: none; }
.cards h2 a::after { content: ""; position: absolute; inset: 0; }
.cards p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Footer: graphite, with the parent endorsement */
footer { background: var(--graphite); color: var(--on-graphite-muted); font-size: 13px; padding: 32px 0; }
footer .wrap { max-width: 1232px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: var(--on-graphite); }
footer a:hover { color: #fff; }
footer .endorse { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 8px; color: var(--on-graphite); font-size: 15px; }
footer .endorse a { display: inline-flex; }
footer .endorse img { height: 40px; width: auto; display: block; }

@media (max-width: 760px) {
  .top nav a:not(.cta) { display: none; }
  .brand-wordmark { width: 66px; height: 18px; }
  main { padding-top: 32px; }
}

/* Logo shine: a short sweep across the mark every 20 s */
.logo-shine { position: relative; display: inline-flex; flex: none; overflow: hidden; border-radius: 24%; line-height: 0; }
.logo-shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  animation: logo-shine 20s linear -16s infinite; }
@keyframes logo-shine { 0%, 94% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .logo-shine::after { animation: none; } }
