/* zorgpayroll.nl — shared stylesheet (Nouveau Bauhaus, functional). Jost: SIL OFL 1.1. */
  /* Jost (SIL Open Font License 1.1, indestructible type*), self-hosted: no requests to third parties. */
  @font-face { font-family: "Jost"; src: url("/fonts/jost.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

  :root {
    --paper: #e9e8e2; --panel: #ffffff; --ink: #000000; --muted: #55554f; --rule: #000000;
    --red: #d9442e; --blue: #2a4db4; --yellow: #f1be32; --grey: #b9b8b0; --field: #ffffff;
    --ok: #1f6b3a; --focus: #2a4db4;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #1b1b19; --panel: #262624; --ink: #f0efe9; --muted: #a9a8a0; --rule: #f0efe9;
      --red: #e4583f; --blue: #5b7be0; --yellow: #f2c543; --grey: #5c5b56; --field: #1f1f1d;
      --ok: #7fd19a; --focus: #f2c543;
    }
  }

  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
         font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums; }
  a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; }
  .skip:focus { left: 8px; z-index: 10; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
  .grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: start; }
  .c7 { grid-column: span 12; } .c5 { grid-column: span 12; } .c4 { grid-column: span 12; } .c6 { grid-column: span 12; } .c8 { grid-column: span 12; }
  @media (min-width: 880px) {
    .c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; }
  }

  h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
  h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; }
  h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin-bottom: 20px; }
  h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
  p { margin: 0 0 14px; max-width: 66ch; }
  .lead { font-size: 1.22rem; line-height: 1.5; }
  .muted { color: var(--muted); }
  .small { font-size: .92rem; line-height: 1.5; }

  /* Header */
  header { border-bottom: 3px solid var(--rule); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
  .brand span { font-weight: 400; color: var(--muted); }
  .brand svg { width: 30px; height: 30px; display: block; }
  nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 1rem; }
  nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
  nav a:hover { border-bottom-color: var(--rule); }

  /* Hero */
  .hero { padding: 56px 0 64px; border-bottom: 3px solid var(--rule); }
  .hero .lead { margin: 22px 0 30px; }
  .actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { display: inline-block; font: inherit; font-weight: 500; font-size: 1.05rem; padding: 13px 22px; border: 3px solid var(--ink);
         background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; line-height: 1.2; }
  .btn.ghost { background: transparent; color: var(--ink); }
  .btn:disabled { opacity: .55; cursor: default; }

  .comp { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
  .tile { position: absolute; left: 0; bottom: 0; width: 82%; aspect-ratio: 1 / 1; background: var(--yellow); color: #000; padding: 7%; display: flex; flex-direction: column; justify-content: flex-end; }
  .tile .big { font-weight: 700; font-size: clamp(4.6rem, 11vw, 7.2rem); line-height: .9; letter-spacing: -0.03em; margin: 0 0 10px; }
  .tile p { margin: 0 0 6px; max-width: none; font-size: 1.02rem; line-height: 1.35; }
  .tile p.strong { font-weight: 500; }
  .tile a { color: #000; }
  .dot { position: absolute; right: 0; top: 0; width: 34%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--blue); }
  .tri { position: absolute; right: 0; bottom: 0; width: 25%; aspect-ratio: 1 / 1; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

  /* Sections */
  section { padding: 56px 0; border-bottom: 3px solid var(--rule); }
  section.quiet { border-bottom: 0; }
  .intro { font-size: 1.08rem; }

  /* Calculator */
  .calc { background: var(--panel); padding: 28px 24px; }
  .calc .grid { row-gap: 20px; }
  .field { margin: 0 0 18px; }
  .field label, fieldset legend { display: block; font-weight: 500; margin: 0 0 6px; }
  .money { display: flex; align-items: center; border: 2px solid var(--ink); background: var(--field); }
  .money span { padding: 0 10px; font-weight: 500; }
  .money input { border: 0; width: 100%; font: inherit; font-size: 1.15rem; padding: 10px 10px 10px 0; background: transparent; color: var(--ink); }
  .money input:focus { outline: none; }
  .money:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
  fieldset { border: 0; margin: 0 0 18px; padding: 0; }
  .choice { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .choice label { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
  .choice input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
  .result { border-left: 6px solid var(--yellow); padding-left: 20px; }
  .result .factor { font-weight: 700; font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
  .result .per { font-size: 1.6rem; font-weight: 500; margin-top: 6px; }
  .result .month { margin-top: 4px; }
  .bar { display: flex; height: 44px; width: 100%; margin: 26px 0 10px; background: var(--grey); }
  .bar div { height: 100%; min-width: 2px; }
  .bar .s-loon { background: var(--ink); } .bar .s-res { background: var(--blue); } .bar .s-prem { background: var(--grey); }
  .bar .s-ziek { background: var(--red); } .bar .s-marge { background: var(--yellow); }
  table { width: 100%; border-collapse: collapse; font-size: 1rem; }
  th, td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--grey); vertical-align: top; }
  th { font-weight: 500; }
  td.n, th.n { text-align: right; white-space: nowrap; padding-left: 12px; }
  tr.total td { border-bottom: 0; border-top: 3px solid var(--rule); font-weight: 700; font-size: 1.1rem; }
  .sw { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 8px; }
  .sw.loon { background: var(--ink); } .sw.res { background: var(--blue); } .sw.prem { background: var(--grey); } .sw.ziek { background: var(--red); } .sw.marge { background: var(--yellow); }
  .notes { margin-top: 22px; }

  /* Diagram */
  .diagram { width: 100%; max-width: 760px; height: auto; display: block; margin: 8px 0 28px; color: var(--ink); }
  .diagram text { font-family: inherit; font-size: 15px; fill: currentColor; }
  .diagram .lbl { font-size: 17px; font-weight: 500; }
  .diagram line { stroke: currentColor; stroke-width: 3; }
  .relations { display: none; margin: 0 0 28px; padding: 0; list-style: none; }
  .relations li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--grey); }
  .relations i { display: block; width: 22px; height: 22px; margin-top: 2px; }
  .relations .sq { background: var(--yellow); } .relations .ci { background: var(--blue); border-radius: 50%; }
  .relations .tr { background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  .relations b { font-weight: 500; }
  @media (max-width: 640px) { .diagram { display: none; } .relations { display: block; } }

  /* Choice */
  .option { border-top: 10px solid var(--blue); padding-top: 18px; }
  .option.am { border-top-color: var(--red); }
  .option h3 { font-size: 1.45rem; }

  dl { margin: 0; }
  dl div { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--grey); }
  @media (min-width: 640px) { dl div { grid-template-columns: 220px 1fr; } }
  dt { font-weight: 500; } dd { margin: 0; color: var(--muted); max-width: 60ch; }

  ul.plain { padding-left: 1.2em; margin: 0 0 14px; } ul.plain li { margin: 0 0 8px; max-width: 64ch; }

  /* Forms */
  .form input[type=text], .form input[type=email], .form select, .form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); border: 2px solid var(--ink); padding: 11px 12px; margin: 0; border-radius: 0; }
  .form textarea { min-height: 130px; resize: vertical; }
  .form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
                 background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .status { min-height: 1.5em; margin: 14px 0 0; font-weight: 500; }
  .status.ok { color: var(--ok); }
  .aside { background: var(--panel); padding: 22px 22px 10px; border-top: 10px solid var(--yellow); }
  .gemist { background: var(--panel); padding: 28px 24px; }

  footer { padding: 36px 0 56px; }
  footer p { max-width: 80ch; }

/* Calculator select, article pages, read-more list, FAQ */
.calc select { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--field); border: 2px solid var(--ink); padding: 10px 36px 10px 10px; border-radius: 0;
               appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
               background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.article .wrap { max-width: 800px; }
.article h1 { margin: 20px 0 18px; }
.article h2 { margin: 44px 0 12px; }
.article h3 { margin-top: 26px; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.2em; } .article li { margin: 0 0 8px; }
.article table { margin: 12px 0 22px; }
.article .small { max-width: 80ch; }
.crumb { margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.crumb a { color: inherit; }
.cta { border-top: 3px solid var(--rule); margin-top: 52px; padding-top: 26px; }
.cta .actions { margin-top: 18px; }
.more { padding: 56px 0; border-bottom: 3px solid var(--rule); }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
.more li { border-top: 2px solid var(--rule); padding: 14px 0 16px; }
.more li:last-child { border-bottom: 2px solid var(--rule); }
.more a { font-weight: 500; font-size: 1.15rem; }
.more p { margin: 4px 0 0; color: var(--muted); max-width: none; }
@media (min-width: 880px) { .more ul { grid-template-columns: 1fr 1fr; column-gap: 48px; } .more li:nth-last-child(2) { border-bottom: 2px solid var(--rule); } }
.faq dt { font-weight: 500; font-size: 1.15rem; margin: 28px 0 0; }
.faq dd { margin: 8px 0 0; max-width: 68ch; }
.terms dt { font-weight: 500; margin: 22px 0 0; }
.terms dd { margin: 4px 0 0; color: var(--ink); max-width: 68ch; }
.article main { padding-bottom: 24px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 22px; }
.scroll table { margin: 0; min-width: 540px; }
