:root {
      --brand: #ff6c4d;
      --brand-mid: #ff9a3c;
      --brand-dark: #e85a38;
      --brand-soft: #fff5f0;
      --teal: #0d9488;
      --teal-soft: #f0fdfa;
      --ink: #0f172a;
      --muted: #475569;
      --line: #e2e8f0;
      --surface: #f8fafc;
      --max: min(100%, 72rem);
      --content: min(100%, 42rem);
      --radius: 0.75rem;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    body {
      margin: 0;
      font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
      font-weight: 500;
      color: var(--ink);
      background: #fff;
      line-height: 1.65;
      font-size: 1rem;
    }
    h1, h2, h3, h4, h5, h6 {
      font-family: "Roboto Slab", Georgia, serif;
      font-weight: 800;
    }
    p, a, li, button, label { font-family: "Quicksand", "Segoe UI", Arial, sans-serif; }
    a { color: var(--brand-dark); }
    a:hover { text-decoration: underline; }

    header a.inline-flex {
      font-family: "Quicksand", "Segoe UI", Arial, sans-serif !important;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .hero {
      position: relative;
      background: linear-gradient(145deg, var(--brand-soft) 0%, #fff 42%, #fffbeb 100%);
      border-bottom: 1px solid var(--line);
      padding: 2.25rem 1.25rem 3rem;
      overflow: hidden;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 108, 77, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 179, 58, 0.09) 0%, transparent 40%);
      pointer-events: none;
    }
    .hero .inner { position: relative; max-width: var(--max); margin: 0 auto; }
    .crumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
    .crumb a { color: var(--muted); text-decoration: none; }
    .crumb a:hover { color: var(--brand-dark); text-decoration: underline; }

    .hero h1 {
      margin: 0 0 0.85rem;
      font-family: "Roboto Slab", Georgia, serif !important;
      font-weight: 800 !important;
      letter-spacing: -0.01em;
      line-height: 1.15;
      font-size: clamp(1.875rem, 4vw, 2.25rem);
      max-width: 22ch;
      color: var(--ink);
    }
    @media (min-width: 768px) {
      .hero h1 { font-size: clamp(2rem, 4.2vw, 2.5rem); }
    }
    .lede {
      margin: 0 0 1.5rem;
      font-size: 1.125rem;
      color: var(--muted);
      max-width: 40rem;
    }
    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .hero-badges li {
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid var(--line);
      color: var(--ink);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .layout {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 1.25rem 4rem;
      display: grid;
      gap: 2.5rem;
    }
    @media (min-width: 960px) {
      .layout {
        grid-template-columns: 14rem 1fr;
        align-items: start;
        padding-top: 2rem;
      }
    }

    .toc {
      position: sticky;
      top: 1rem;
      align-self: start;
      padding: 1rem 0;
    }
    @media (min-width: 960px) {
      .toc { top: 5.5rem; }
    }
    .toc-title {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin: 0 0 0.75rem;
    }
    .toc ul { margin: 0; padding: 0; list-style: none; }
    .toc a {
      display: block;
      font-size: 0.875rem;
      padding: 0.4rem 0;
      color: var(--muted);
      text-decoration: none;
      border-left: 2px solid transparent;
      padding-left: 0.75rem;
      margin-left: -2px;
      transition: color 0.15s, border-color 0.15s;
    }
    .toc a:hover { color: var(--brand-dark); border-left-color: rgba(255, 108, 77, 0.4); }
    .toc a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
    @media (max-width: 959px) {
      .toc {
        position: relative;
        top: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        background: var(--surface);
      }
      .toc ul { columns: 2; column-gap: 1.5rem; }
      .toc li { break-inside: avoid; }
    }

    .main article > section {
      padding-top: 2.75rem;
      border-top: 1px solid var(--line);
      margin-top: 0.25rem;
      scroll-margin-top: 1.25rem;
    }
    .main article > section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

    .main article h2 {
      margin: 0 0 0.85rem;
      font-family: "Roboto Slab", Georgia, serif;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.2;
      font-size: clamp(1.5rem, 2.6vw, 1.875rem);
      color: var(--ink);
    }
    .main article h3 {
      margin: 1.5rem 0 0.5rem;
      font-family: "Roboto Slab", Georgia, serif;
      font-weight: 700;
      letter-spacing: -0.02em;
      font-size: 1.125rem;
      line-height: 1.35;
      color: var(--ink);
    }
    .subhead {
      font-size: 1.05rem;
      color: var(--muted);
      margin: -0.35rem 0 1.25rem;
      max-width: var(--content);
    }
    p { margin: 0 0 1rem; color: var(--muted); max-width: var(--content); }
    p strong { color: var(--ink); }
    ul.detail-list {
      margin: 0 0 1.15rem;
      padding-left: 1.2rem;
      color: var(--muted);
      max-width: var(--content);
    }
    ul.detail-list li { margin-bottom: 0.45rem; }

    .steps {
      counter-reset: s;
      list-style: none;
      padding: 0;
      margin: 0 0 1.25rem;
      max-width: var(--content);
    }
    .steps li {
      position: relative;
      padding-left: 2.65rem;
      margin-bottom: 1.15rem;
      color: var(--muted);
    }
    .steps li::before {
      counter-increment: s;
      content: counter(s);
      position: absolute;
      left: 0;
      top: 0.05rem;
      width: 1.85rem;
      height: 1.85rem;
      background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
      color: #fff;
      font-weight: 800;
      font-size: 0.82rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(255, 108, 77, 0.3);
    }

    .panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1.25rem 1.35rem;
      margin: 1.25rem 0;
      max-width: min(100%, 48rem);
    }
    .panel h4 {
      margin: 0 0 0.65rem;
      font-family: "Roboto Slab", Georgia, serif;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--ink);
    }
    .panel p:last-child { margin-bottom: 0; }

    .callout {
      border-left: 4px solid var(--teal);
      background: var(--teal-soft);
      padding: 1rem 1.25rem;
      border-radius: 0 var(--radius) var(--radius) 0;
      margin: 1.25rem 0;
      max-width: min(100%, 48rem);
    }
    .callout p { margin: 0; color: var(--ink); }
    .callout.warn { border-left-color: var(--brand); background: var(--brand-soft); }

    pre.code-block {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
      font-size: 0.82rem;
      line-height: 1.6;
      background: #0f172a;
      color: #e2e8f0;
      padding: 1rem 1.15rem;
      border-radius: var(--radius);
      overflow-x: auto;
      max-width: min(100%, 52rem);
      margin: 1rem 0;
      border: 1px solid #1e293b;
    }
    pre.code-block .cmt { color: #94a3b8; }
    code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    }
    p code, li code, td code {
      font-size: 0.88em;
      background: var(--surface);
      padding: 0.1rem 0.35rem;
      border-radius: 4px;
      color: var(--ink);
      border: 1px solid var(--line);
    }

    table.rules {
      width: 100%;
      max-width: min(100%, 52rem);
      border-collapse: collapse;
      font-size: 0.9rem;
      margin: 1rem 0 1.25rem;
    }
    table.rules th,
    table.rules td {
      border: 1px solid var(--line);
      padding: 0.65rem 0.85rem;
      text-align: left;
      vertical-align: top;
    }
    table.rules th {
      background: var(--surface);
      font-family: "Roboto Slab", Georgia, serif;
      font-weight: 700;
      color: var(--ink);
    }
    table.rules td { color: var(--muted); }

    .note {
      font-size: 0.92rem;
      padding: 1rem 1.25rem;
      background: var(--brand-soft);
      border-radius: var(--radius);
      border: 1px solid rgba(255, 108, 77, 0.25);
      color: var(--ink);
      max-width: min(100%, 48rem);
    }
    .note p { margin: 0; color: inherit; max-width: none; }
  

    .przio-lightbox-enabled { cursor: zoom-in; }
    .przio-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(10, 13, 20, .78); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
    .przio-lightbox.is-open { opacity: 1; pointer-events: auto; }
    .przio-lightbox__figure { position: relative; margin: 0; max-width: min(1120px, 94vw); max-height: 88vh; }
    .przio-lightbox__image { display: block; max-width: 100%; max-height: 82vh; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
    .przio-lightbox__caption { margin-top: 12px; color: #fff; font-size: 14px; text-align: center; }
    .przio-lightbox__close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #fff; color: #111827; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
