/* Markup vs margin calculator page (/opslag-marge-berekenen/, /en/markup-margin-calculator/). Builds on site.css tokens. */
.mc-page [hidden] { display: none !important; }
.mc-page .wrap { padding-inline: clamp(16px, 3vw, 48px); }

.mc-intro { padding-top: 40px; padding-bottom: 28px; }
.mc-intro h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; overflow-wrap: anywhere; }
.mc-intro .lead { max-width: 40em; font-size: clamp(17px, 1.6vw, 20px); }

.mc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 28px; align-items: start; padding-bottom: 64px; }
.mc-form { display: grid; gap: 18px; min-width: 0; }
.mc-example { font-size: 14px; color: var(--muted); }

.mc-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 24px; display: grid; gap: 20px; }
.mc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 20px; }
.mc-fields.is-pair { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mc-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; }
.mc-field label { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.mc-input { display: flex; align-items: center; min-height: 48px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s; }
.mc-input:hover { border-color: #B3B8C3; }
.mc-input:focus-within { border-color: var(--navy); outline: 3px solid var(--ring); outline-offset: 1px; }
.mc-input input { flex: 1 1 0; width: 0; min-width: 0; height: 45px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 400 16px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.mc-input input:focus-visible { outline: none; }
.mc-input.has-prefix input { padding-left: 6px; }
.mc-affix { flex: none; color: var(--muted); font-size: 15px; white-space: nowrap; }
.mc-prefix { padding-left: 14px; }
.mc-suffix { padding-right: 14px; }
.mc-input:has(input[aria-invalid="true"]) { border-color: #b4441f; }
.mc-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mc-error { font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--error); }
.mc-error:empty { display: none; }

.mc-seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.mc-seg legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font: 600 21px/1.2 Outfit, Inter, sans-serif; letter-spacing: -0.01em; color: var(--navy); }
.mc-seg legend + * { clear: both; }
.mc-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.mc-choice { position: relative; display: block; }
.mc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mc-choice > span { display: block; height: 100%; padding: 9px 8px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--muted); text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.mc-choice > span:hover { color: var(--navy); }
.mc-choice input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(20,33,61,.12), 0 0 0 1px var(--line); }
.mc-choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.mc-choice strong { display: block; font-weight: 600; }
.mc-choice small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }

.mc-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 4px 4px 0; }
.mc-remember { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.mc-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.mc-keep .mc-hint { flex-basis: 100%; order: 3; padding-left: 30px; }
.mc-reset { margin-left: auto; cursor: pointer; font-family: inherit; }

.mc-result { position: sticky; top: 84px; min-width: 0; background: var(--brand-navy); color: #ECEEF4; border-radius: 22px; padding: 22px 26px 20px; box-shadow: var(--shadow); }
.mc-result-heading { font-size: 19px; color: #fff; }
.mc-head-label { margin-top: 10px; font-size: 14px; color: #C3CADA; }
.mc-big { font: 600 clamp(40px, 4.2vw, 56px)/1.05 Outfit, Inter, sans-serif; letter-spacing: -0.02em; color: var(--orange); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-sub { margin-top: 2px; font-size: 14px; color: #C3CADA; }
.mc-problem { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 15px; }
.mc-breakdown { margin: 20px 0 0; }
.mc-breakdown > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); }
.mc-breakdown dt { font-size: 15px; color: #DFDCD6; }
.mc-breakdown dd { margin: 0; text-align: right; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-formula { padding-top: 9px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; line-height: 1.55; color: #DFDCD6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-result .mc-small { margin-top: 10px; color: #C3CADA; }
.mc-disclaimer { margin-top: 14px; font-size: 14px; font-weight: 600; color: #fff; }
.mc-privacy { margin-top: 4px; font-size: 13px; color: #C3CADA; }
.mc-small { font-size: 13px; line-height: 1.45; color: var(--muted); }

.mc-more { max-width: 820px; display: grid; gap: 56px; padding-bottom: 88px; }
.mc-section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.mc-section > p { color: var(--muted); }
.mc-section > p + p { margin-top: 12px; }
.mc-section-lead { margin-bottom: 18px; }
.mc-table-wrap { margin-top: 24px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.mc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mc-table caption { padding: 16px 20px 6px; text-align: left; font: 600 18px Outfit, Inter, sans-serif; color: var(--navy); }
.mc-table th, .mc-table td { padding: 10px 20px; text-align: left; font-size: 16px; border-top: 1px solid var(--line); }
.mc-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }
.mc-table tbody th { font-weight: 600; color: var(--navy); }
.mc-table-wrap + .mc-small { margin-top: 10px; }
.mc-faq details:last-child { margin-bottom: 0; }
.mc-cta { padding-top: 28px; border-top: 1px solid var(--line); text-align: center; font-size: 17px; color: var(--muted); }
.mc-cta a { color: var(--navy); font-weight: 600; }

@media (max-width: 920px) {
  .mc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 48px; }
  .mc-result { position: static; }
}
@media (max-width: 560px) {
  .mc-intro { padding-top: 28px; }
  .mc-card { padding: 18px 16px 20px; border-radius: 18px; }
  .mc-seg legend { font-size: 19px; }
  .mc-choices { grid-template-columns: minmax(0, 1fr); }
  .mc-choice > span { padding: 9px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; text-align: left; }
  .mc-reset { margin-left: 0; }
  .mc-result { padding: 20px 18px 18px; border-radius: 18px; }
  .mc-more { gap: 44px; }
  .mc-table th, .mc-table td { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-input, .mc-choice > span { transition: none; }
}
.mc-checked { margin-top: 4px; font-weight: 400; }
