/* Guide "Is een BV iets voor jou?" (blog/is-een-bv-iets-voor-jou.html): on top of ../styles.css and blog.css.
   Same drawings as the PDF in ../downloads/. In the figures orange is money that reaches you,
   light blue money that stays in the BV, grey what goes off. Labels live in HTML so they stay readable on a phone. */

/* ---------- Drawing parts (as on managementvennootschap.html) ---------- */
.gs-floor { stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; }
.gs-pipe { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linejoin: round; }
.gs-navy { fill: var(--ink); }
.gs-pay { fill: var(--accent); }
.gs-glass { fill: #e3e7ef; }
.gs-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .6; }
.gs-barrel { fill: #e9edf4; }
.gs-water { fill: var(--blue); }
.gs-band { fill: none; stroke: #dce2ec; stroke-width: 9; }
.gs-wall { fill: none; stroke: #e9edf4; stroke-width: 18; }
.gs-rim { fill: #dce2ec; }
.gs-rim-in { fill: #c7d0df; }
.gs-stream { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.gs-rain { fill: #8fb6f7; }
.gs-label { font-family: var(--sans); font-weight: 700; font-size: 16px; fill: var(--ink); }
.gs-num { font-family: var(--display); font-size: 24px; fill: var(--ink); letter-spacing: -.4px; }
.fig__frame svg { width: 100%; height: auto; overflow: visible; }
.fig__frame--white { background: #fff; box-shadow: var(--ring-2); }
.cover .fig__frame svg { max-width: 360px; margin: 0 auto; }

/* Labels under a drawing, placed at the x of the thing they name (--x in % of the drawing width) */
.scene { position: relative; }
.scene__labels { position: relative; height: 44px; margin-top: 10px; }
.scene__labels span { position: absolute; left: var(--x); translate: -50% 0; text-align: center; white-space: nowrap; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.scene__labels small { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }

/* ---------- Tallies: where the 100.000 goes, as on the masterclass board ---------- */
.ledger-wrap { border-radius: var(--r-lg); background: #fff; box-shadow: var(--ring-2); overflow: hidden; }
.prose table.ledger { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 22px; }
.prose .ledger__title { margin: 0 0 10px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted-2); }
.prose .ledger__title + .ledger-wrap { margin-top: 0; }
.prose .ledger th, .prose .ledger td { display: table-cell; padding: 11px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.prose .ledger thead { display: table-header-group; }
.prose .ledger thead th, .prose .ledger thead td { border-top: 0; padding-top: 14px; padding-bottom: 8px; background: var(--surface); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); text-align: right; }
.prose .ledger tbody th { width: auto; text-align: left; font-weight: 600; color: var(--ink-2); }
.ledger th small { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.prose .ledger tbody td { width: auto; text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose .ledger tbody tr:first-child th, .prose .ledger tbody tr:first-child td { border-top: 0; }
.ledger thead + tbody tr:first-child th, .ledger thead + tbody tr:first-child td { border-top: 1px solid var(--line) !important; }
.prose .ledger .is-start th, .prose .ledger .is-start td { font-weight: 800; color: var(--ink); }
.prose .ledger .is-sum th, .prose .ledger .is-sum td { border-top: 1.5px solid var(--ink); font-weight: 800; color: var(--ink); background: var(--surface-2); }
.prose .ledger .is-net th, .prose .ledger .is-net td { border-top: 1.5px solid var(--ink); font-weight: 800; color: var(--ink); background: #fff3ef; }
.prose .ledger .is-net td:last-child { color: var(--accent); font-size: 18px; }
.prose .ledger td.is-you { color: var(--accent); }
.prose .ledger td.is-bv { color: #2f5fb3; }
.ledger--two tbody td { min-width: 86px; }
.prose .ledger--risk .is-net td:last-child { font-size: inherit; }
@media (max-width: 479px) {
  .prose table.ledger { font-size: 15px; }
  .prose .ledger th, .prose .ledger td { padding: 10px 12px; }
  /* Two amount columns: fixed widths so both fit beside the label */
  .prose table.ledger--two { table-layout: fixed; font-size: 14px; line-height: 20px; }
  .prose .ledger--two th, .prose .ledger--two td { padding: 9px 8px; }
  .prose .ledger--two th:first-child, .prose .ledger--two thead td:first-child { width: 44%; padding-left: 12px; }
  .prose .ledger--two tbody td:last-child, .prose .ledger--two thead th:last-child { padding-right: 12px; }
  .ledger--two tbody td { min-width: 0; }
  .prose .ledger--two .is-net td:last-child { font-size: 16px; }
}

/* ---------- You and your BV, side by side ---------- */
.ids { display: grid; gap: 16px; }
.idcard { padding: 22px 22px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); }
.idcard__head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.idcard__name { font-family: var(--display); font-size: 20px; line-height: 26px; color: var(--ink); }
.idcard dl { margin: 12px 0 0; display: grid; gap: 4px; }
.idcard dt { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.idcard dt + dd { margin: 0 0 8px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) {
  .ids { grid-template-columns: 1fr 1fr; gap: 24px; }
  .idcard:first-child { rotate: -1.2deg; }
  .idcard:last-child { rotate: 1.5deg; }
}
.bubble { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.bubble svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Drawing beside a remark ---------- */
.beside { display: grid; gap: 24px; align-items: center; }
.beside svg { max-width: 200px; margin: 0 auto; }
@media (min-width: 640px) { .beside { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; } }
.note { padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--ring-2); }
.prose .note p + p { margin-top: 10px; }

/* ---------- Three glasses ---------- */
.glasses__labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; text-align: center; }
.glasses__labels span { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.glasses__labels b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 30px; letter-spacing: -.5px; color: var(--ink); }
.glasses__labels .is-you b { color: var(--accent); }
@media (min-width: 640px) { .glasses__labels b { font-size: 32px; line-height: 38px; } }

/* ---------- Two drawings compared (barrel and glass) ---------- */
.pots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pots__item { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; padding: 18px 12px 16px; border-radius: var(--r-lg); background: #fff; }
.pots__item svg { width: 100%; max-width: 190px; height: 170px; }
.pots__item strong { margin-top: 12px; font-size: 16px; line-height: 22px; color: var(--ink); }
.pots__item span { margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted-2); }
.pots__bill { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; background: #fff; box-shadow: var(--ring-2); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.pots__bill svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.chips i { font-style: normal; padding: 4px 12px; border-radius: 99px; background: var(--blue-soft); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .pots { gap: 20px; } .pots__item { padding: 24px 20px 20px; } .pots__item svg { height: 220px; } }

/* ---------- Risks ---------- */
.risks { display: grid; border-top: 1px solid var(--line-2); }
.risk { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.prose .risk h3 { margin: 6px 0 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.prose .risk p { margin-top: 6px; }

/* ---------- Five situations ---------- */
.prose h3.sit { display: flex; align-items: center; gap: 14px; margin-top: 48px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.sit__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 400; display: grid; place-items: center; }
.prose h3.sit + * { margin-top: 12px; }
.limits { display: grid; gap: 12px; }
.limit { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); }
.limit b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 36px; letter-spacing: -.8px; color: var(--ink); }
.limit span { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--muted-2); }
@media (min-width: 640px) { .limits { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ---------- Newspaper headlines ---------- */
.news { display: grid; gap: 18px; margin-top: 32px; }
.clip { max-width: 320px; padding: 16px 18px 18px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 10px 18px -10px rgba(16, 24, 40, .25); rotate: -1.5deg; }
.news:nth-of-type(2n) .clip { rotate: 1.2deg; }
.clip__mast { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink); }
.clip__head { margin-top: 10px; font-family: var(--display); font-size: 20px; line-height: 26px; letter-spacing: -.3px; color: var(--ink); overflow-wrap: break-word; hyphens: manual; }
.clip__lines { margin-top: 12px; display: grid; gap: 7px; }
.clip__lines i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.prose .news h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.prose .news h3 + p { margin-top: 6px; }
.prose .news p + p { margin-top: 14px; }
@media (min-width: 640px) { .news { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; } }

/* ---------- Checklists ---------- */
.prose ul.ticks { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.ticks .box { width: 26px; height: 26px; margin-top: 2px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); }
.ticks strong { display: block; font-size: 18px; line-height: 26px; }
.ticks span.sub { display: block; margin-top: 2px; font-size: 16px; line-height: 25px; color: var(--muted-2); }

/* ---------- Steps ---------- */
.prose ol.steps { position: relative; display: grid; gap: 16px; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--line-2); }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.steps .bubble { position: relative; box-shadow: 0 0 0 5px #fff; }
.steps strong { display: block; padding-top: 2px; font-size: 17px; line-height: 24px; }
.steps span.sub { display: block; margin-top: 2px; font-size: 16px; line-height: 25px; color: var(--muted-2); }

/* ---------- Price ---------- */
.offer { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-xl); background: var(--ink); color: #d4d8ea; }
.offer strong { display: block; font-size: 18px; line-height: 26px; color: #fff; }
.offer p { margin: 6px 0 0 !important; font-size: 16px; line-height: 25px; }
.offer__amount { font-family: var(--display); font-size: 36px; line-height: 40px; color: #fff; letter-spacing: -.8px; }
.offer__amount small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: #aab1cf; }
@media (min-width: 640px) { .offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 32px 36px; } .offer__amount { text-align: right; } }

/* ---------- PDF download ---------- */
.dl { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); text-decoration: none !important; color: var(--ink) !important; }
.dl__icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: end center; padding-bottom: 8px; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .5px; }
.dl strong { display: block; font-size: 16px; line-height: 22px; }
.dl span.sub { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.dl > svg { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--accent); rotate: 90deg; }
.dl:hover { box-shadow: 0 0 0 1px var(--control), 0 12px 16px -4px rgba(16, 24, 40, .08); }
.post-head .dl { margin-top: 24px; }

/* The homepage route drawing, reused: it plays once when in view (site.js) */
.route-fig { margin: 32px 0 !important; }
.route-fig .detour__art--tall { max-width: 320px; }

/* Lists with their own markers: no article bullets */
.prose > ul.ticks li { padding-left: 0; }
.prose > ul.ticks li::before { display: none; }
.prose h3 { margin-top: 40px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 + * { margin-top: 12px; }
.prose .dl { margin-top: 32px; }

/* Phone fits */
.glasses__labels b { font-size: 19px; line-height: 26px; letter-spacing: -.3px; }
@media (min-width: 640px) { .glasses__labels b { font-size: 32px; line-height: 38px; letter-spacing: -.5px; } }
@media (max-width: 639px) {
  .scene__labels span { font-size: 13px; line-height: 18px; }
  .scene__labels small { font-size: 12px; line-height: 16px; }
}
.offer .offer__amount { margin: 0 !important; font-size: 36px; line-height: 40px; }
.cover .fig__frame svg { max-width: 300px; }
/* The opening image matches the PDF cover: the open door on navy */
.cover--door { margin-bottom: 32px; }
.cover--door .fig__frame { background: var(--ink); padding-bottom: 0; overflow: hidden; }
.cover--door .fig__frame { padding-left: 0; padding-right: 0; }
.cover--door .fig__frame svg { max-width: 460px; overflow: hidden; }
.prose .ledger th, .prose .ledger td { vertical-align: baseline; }
.prose .ledger tbody th { hyphens: manual; overflow-wrap: break-word; }
.prose .ledger--risk tbody td { white-space: normal; }
/* The overview at the end of chapter 1: three routes side by side, label column narrower on a phone */
.prose .ledger .is-diff th, .prose .ledger .is-diff td { font-size: 14px; line-height: 20px; color: var(--muted-2); }
.prose .ledger .is-diff td.is-you { color: var(--accent); }
@media (max-width: 600px) {
  .prose table.ledger--three { table-layout: fixed; font-size: 13px; line-height: 18px; }
  .prose .ledger--three th, .prose .ledger--three td { padding: 9px 6px; }
  .prose .ledger--three th:first-child, .prose .ledger--three thead td:first-child { width: 31%; padding-left: 12px; }
  .prose .ledger--three tbody td:last-child, .prose .ledger--three thead th:last-child { padding-right: 12px; }
  .prose .ledger--three thead th { font-size: 12px; line-height: 16px; }
  .prose .ledger--three th small { font-size: 11px; line-height: 15px; }
  .prose .ledger--three .is-net td:last-child { font-size: 15px; }
}
@media (max-width: 479px) {
  .prose .ledger--risk th:first-child, .prose .ledger--risk thead td:first-child { width: 38%; }
  .prose .ledger--risk thead th { font-size: 13px; }
}
