/* Gedeelde site-stijlen voor alle pagina's */

html { -webkit-font-smoothing: antialiased; }
body { font-feature-settings: "ss01","cv11"; }

/* Defensieve backstop: voorkom dat de hele pagina horizontaal scrollbaar
   wordt door een rogue brede child. Per-element overflow:auto blijft
   werken (interne scroll), het document-niveau blijft strak. */
html, body { overflow-x: clip; }

/* ─── Merge button loading state ───
   By default: show "PDF's samenvoegen", hide spinner.
   When the form has .is-submitting (set by onsubmit) OR .htmx-request
   (set by HTMX during in-flight requests): swap the spans. */
.merge-btn-loading { display: none !important; }
.merge-btn-default { display: inline-flex; }

.is-submitting .merge-btn-default,
.htmx-request .merge-btn-default { display: none !important; }
.is-submitting .merge-btn-loading,
.htmx-request .merge-btn-loading { display: inline-flex !important; }
.is-submitting .merge-btn,
.htmx-request .merge-btn { cursor: wait; opacity: 0.92; }

/* Generic htmx-indicator pattern (used by upload spinners) */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }

/* Browser-local merger */
[data-local-dropzone].is-over {
  background-color: #F0F6F7;
  transform: translateY(-1px);
}
.local-merge-btn[data-busy="true"] { cursor: wait; }
.local-merge-btn[data-busy="true"] .local-merge-btn-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .breathe, .local-merge-btn[data-busy="true"] .local-merge-btn-icon { animation: none; }
}

/* Subtiele "ademen" pulse op interactieve elementen */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 79, 90, 0.08), 0 2px 8px rgba(15,30,35,0.05); }
  50%      { box-shadow: 0 0 0 10px rgba(14, 79, 90, 0.00), 0 2px 8px rgba(15,30,35,0.05); }
}
.breathe { animation: breathe 3.2s ease-in-out infinite; }

/* Dashed border voor drop-zones */
.dashed-ring {
  background-image:
    repeating-linear-gradient(0deg,  #B6D2D6 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, #B6D2D6 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg,  #B6D2D6 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, #B6D2D6 0 8px, transparent 8px 16px);
  background-size: 2px 100%, 100% 2px, 2px 100%, 100% 2px;
  background-position: 0 0, 0 0, 100% 0, 0 100%;
  background-repeat: no-repeat;
}

/* PDF-thumb placeholder */
.pdf-thumb {
  background: linear-gradient(180deg, #FFF 0%, #F8F6EF 100%);
  position: relative; overflow: hidden;
}
.pdf-thumb::before {
  content: ""; position: absolute; inset: 12% 18% 12% 18%;
  background:
    linear-gradient(transparent 0, transparent 6px, #E7E3DA 6px, #E7E3DA 7px),
    linear-gradient(transparent 0, transparent 14px, #E7E3DA 14px, #E7E3DA 15px),
    linear-gradient(transparent 0, transparent 22px, #E7E3DA 22px, #E7E3DA 23px),
    linear-gradient(transparent 0, transparent 30px, #E7E3DA 30px, #E7E3DA 31px),
    linear-gradient(transparent 0, transparent 38px, #E7E3DA 38px, #E7E3DA 39px);
  background-size: 100% 8px;
  background-repeat: repeat-y;
}
.pdf-thumb::after {
  content: "PDF"; position: absolute; left: 0; bottom: 6px; right: 0;
  text-align: center; font-family: "Geist Mono", monospace;
  font-size: 9px; letter-spacing: 1px; color: #B0392D; font-weight: 600;
}

/* Details/summary FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chev { transform: rotate(180deg); }
.faq-chev { transition: transform .2s ease; }

/* Tabular nums */
.tnum { font-variant-numeric: tabular-nums; }

/* Form inputs — schoon, Hollandse rust */
.input {
  width: 100%;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #D6D1C4;
  color: #171717;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.input::placeholder { color: #9A9A9A; }
.input:hover { border-color: #B6D2D6; }
.input:focus {
  outline: none;
  border-color: #0E4F5A;
  box-shadow: 0 0 0 3px rgba(14,79,90,0.12);
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3F3F3F;
  margin-bottom: 6px;
}

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px;
  background: #0E4F5A; color: #fff;
  transition: background-color .15s ease, transform .05s ease;
}
.btn-primary:hover { background: #0A3D46; }
.btn-primary:active { transform: translateY(1px); }

.btn-amber {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 11px 18px; border-radius: 10px;
  background: #E8A33D; color: #171717;
  transition: background-color .15s ease, transform .05s ease;
}
.btn-amber:hover { background: #C9871F; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px;
  background: transparent; color: #3F3F3F;
  border: 1px solid #D6D1C4;
  transition: background-color .15s ease;
}
.btn-ghost:hover { background: #F4F2EC; }

/* ───────── Prose body (juridische pagina's + blog posts) ───────── */
.prose-nl { color: #3F3F3F; }
.prose-nl h2 {
  position: relative;
  font-size: 24px; font-weight: 600; color: #171717;
  margin-top: 44px; margin-bottom: 14px;
  letter-spacing: -0.015em; line-height: 1.25;
}
.prose-nl h2::before {
  content: "";
  position: absolute; left: -14px; top: 6px;
  width: 4px; height: calc(100% - 12px);
  background: linear-gradient(180deg, #0E4F5A, #2DA3B2);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .3s ease;
}
@media (min-width: 768px) {
  .prose-nl h2 { font-size: 26px; }
  .prose-nl h2::before { opacity: 1; }
}
.prose-nl h3 {
  font-size: 17px; font-weight: 600; color: #171717;
  margin-top: 28px; margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.prose-nl p { line-height: 1.7; margin-bottom: 16px; font-size: 15.5px; }
.prose-nl > p:first-of-type::first-letter,
.prose-nl .has-dropcap::first-letter {
  font-family: "Geist", ui-sans-serif, sans-serif;
  float: left;
  font-size: 48px;
  line-height: 0.9;
  font-weight: 600;
  color: #0E4F5A;
  margin: 4px 8px 0 0;
  letter-spacing: -0.02em;
}
.prose-nl ul {
  list-style: none; padding-left: 0; margin-bottom: 16px;
}
.prose-nl ul li {
  position: relative; padding-left: 22px;
  margin-bottom: 8px; font-size: 15.5px; line-height: 1.65;
}
.prose-nl ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #0E4F5A;
}
.prose-nl ol {
  counter-reset: prose-counter;
  list-style: none; padding-left: 0; margin-bottom: 16px;
}
.prose-nl ol > li {
  counter-increment: prose-counter;
  position: relative; padding-left: 38px;
  margin-bottom: 10px; font-size: 15.5px; line-height: 1.65;
  min-height: 26px;
}
.prose-nl ol > li::before {
  content: counter(prose-counter);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: #E8F1F2; color: #0E4F5A;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
}
.prose-nl a {
  color: #0E4F5A;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(14,79,90,.35);
  transition: text-decoration-color .15s ease;
}
.prose-nl a:hover { text-decoration-color: #0E4F5A; }
.prose-nl strong { color: #171717; font-weight: 600; }
.prose-nl em { font-style: italic; color: #5C5848; }
.prose-nl code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px; padding: 1px 6px;
  background: #F4F2EC; color: #5C4520;
  border-radius: 4px; border: 1px solid #E5E0D2;
}

/* TL;DR — gestructureerd samenvattingsblok bovenin elke post.
   AI-zoekmachines (AI Overviews / AI Mode) parsen dit als key takeaways. */
.blog-tldr {
  margin: 28px 0 36px;
  padding: 20px 22px 18px;
  background: linear-gradient(135deg, #F2F8F9 0%, #E8F1F2 100%);
  border: 1px solid #C8D8DB;
  border-left: 4px solid #0E4F5A;
  border-radius: 14px;
}
.blog-tldr__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: #0E4F5A;
  margin-bottom: 10px;
}
.blog-tldr__label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #0E4F5A; display: inline-block;
}
.blog-tldr ul {
  list-style: none; padding: 0; margin: 0;
}
.blog-tldr li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.55; color: #1F3A3F;
  margin-bottom: 7px;
}
.blog-tldr li:last-child { margin-bottom: 0; }
.blog-tldr li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: #0E4F5A; font-weight: 600;
  font-family: "Geist Mono", ui-monospace, monospace;
}
.blog-tldr li strong { color: #0B3F47; }

/* Callout / pull-quote */
.blog-callout {
  margin: 24px 0;
  padding: 16px 20px;
  background: #FFFDF6;
  border-left: 3px solid #E8A33D;
  border-radius: 0 10px 10px 0;
  font-size: 15.5px; line-height: 1.65;
  color: #5C4520;
}
.blog-callout strong { color: #1A1A1A; }

/* Responsive tabellen voor blog posts */
.blog-table {
  position: relative;
  margin: 26px 0;
  border: 1px solid #E5E0D2;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFEFA;
}
.blog-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.blog-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.blog-table thead {
  background: linear-gradient(180deg, #FBF9F3 0%, #F4F2EC 100%);
  border-bottom: 1px solid #E5E0D2;
}
.blog-table thead th {
  text-align: left;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: #807A66;
  padding: 12px 14px;
  white-space: nowrap;
}
.blog-table tbody tr {
  border-bottom: 1px solid #EFEBDD;
  transition: background-color .15s ease;
}
.blog-table tbody tr:last-child { border-bottom: none; }
.blog-table tbody tr:hover { background: #FBFAF3; }
.blog-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  color: #3F3F3F; line-height: 1.55;
}
.blog-table tbody td strong { color: #171717; font-weight: 600; }
.blog-table tbody td.is-ours,
.blog-table tbody td.is-highlight,
.blog-table tbody tr.is-ours td {
  color: #0E4F5A;
}
.blog-table tbody tr.is-ours { background: #F2F8F9; }
.blog-table tbody tr.is-ours:hover { background: #E8F1F2; }
.blog-table tbody tr.is-ours td:first-child { font-weight: 600; }
.blog-table__hint {
  display: none;
  font-size: 11.5px; color: #807A66;
  font-family: "Geist Mono", ui-monospace, monospace;
  padding: 6px 14px;
  border-top: 1px dashed #E5E0D2;
  background: #FBFAF3;
}
@media (max-width: 640px) {
  .blog-table__hint { display: flex; align-items: center; gap: 6px; }
  .blog-table__hint::before { content: "←→"; opacity: .55; }
}

/* Verbeterde FAQ-accordion */
.prose-nl details {
  margin: 0;
  border-bottom: 1px solid #E5E0D2;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.prose-nl details:first-of-type {
  border-top: 1px solid #E5E0D2;
  margin-top: 18px;
}
.prose-nl details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 4px;
  position: relative;
  font-weight: 500; font-size: 15.5px;
  color: #171717;
  transition: color .15s ease;
}
.prose-nl details > summary::-webkit-details-marker { display: none; }
.prose-nl details > summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; font-weight: 400;
  color: #807A66; line-height: 1;
  transition: transform .2s ease, color .15s ease;
}
.prose-nl details[open] > summary::after { transform: translateY(-50%) rotate(45deg); color: #0E4F5A; }
.prose-nl details > summary:hover { color: #0E4F5A; }
.prose-nl details > p {
  padding: 0 4px 20px;
  font-size: 14.5px; line-height: 1.65;
  color: #5C5848;
  margin: 0;
}
.prose-nl details > p > a { color: #0E4F5A; }

/* ───────── Blog listing thumbnails ───────── */
.blog-card {
  position: relative;
  display: block;
  border: 1px solid #E5E0D2;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFEFA;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -28px rgba(14,79,90,.35);
  border-color: #C8D8DB;
}
.blog-card__thumb {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none;
}
.blog-card__thumb-icon {
  width: 56px; height: 56px;
  color: #FFFFFF;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.18));
  z-index: 1;
}
.blog-card__keyword {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .14em;
  color: #FFFFFF;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 5px 10px;
}
.blog-card__body { padding: 20px 22px 22px; }
.blog-card__meta {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; color: #807A66;
}
.blog-card__title {
  margin-top: 6px;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  color: #171717; line-height: 1.25;
}
.blog-card:hover .blog-card__title { color: #0E4F5A; }
.blog-card__summary {
  margin-top: 8px;
  font-size: 14px; line-height: 1.55; color: #5C5848;
}
.blog-card__cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: #0E4F5A;
}
.blog-card:hover .blog-card__cta { color: #0B3F47; }

/* Thumbnail gradients per post category */
.blog-thumb--brand    { background: linear-gradient(135deg, #0E4F5A 0%, #1B7884 60%, #2DA3B2 100%); }
.blog-thumb--shield   { background: linear-gradient(135deg, #1F3A3F 0%, #2A5A62 60%, #3E8089 100%); }
.blog-thumb--flag     { background: linear-gradient(135deg, #AE1B27 0%, #FFFFFF 50%, #1E4FAA 100%); }
.blog-thumb--ledger   { background: linear-gradient(135deg, #4B2E0E 0%, #8A5A12 55%, #E8A33D 100%); }

/* ───────── Inline Lifetime CTA ─────────
   Reusable warm-bronze card sluit aan op /lifetime/ page-stijl.
   Gebruikt in _blog_base.html, _howto_base.html, _landing_base.html
   zodat alle content-pagina's automatisch lifetime promoten. */
.lt-cta-inline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  padding: 22px 24px 22px 64px;
  background: linear-gradient(135deg, #FFFDF6 0%, #FFF6E2 55%, #FBE6BE 100%);
  border: 1px solid #F0DBA0;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  overflow: hidden;
}
.lt-cta-inline::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232,163,61,.35), transparent 60%);
  pointer-events: none;
}
.lt-cta-inline__star {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: #FFD56A;
}
.lt-cta-inline__body { position: relative; }
.lt-cta-inline__label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8A5A12;
  font-weight: 600;
  margin: 0;
}
.lt-cta-inline__title {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: -.015em;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
}
.lt-cta-inline__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5C4520;
}
.lt-cta-inline__text strong { color: #1A1A1A; font-weight: 600; }
.lt-cta-inline__btn {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #1A1A1A;
  color: #FFF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  transition: background-color .15s ease, transform .08s ease;
}
.lt-cta-inline__btn:hover {
  background: #0E4F5A;
  transform: translateY(-1px);
}
.lt-cta-inline__btn > span:last-child { transition: transform .15s ease; }
.lt-cta-inline__btn:hover > span:last-child { transform: translateX(3px); }

@media (min-width: 640px) {
  .lt-cta-inline {
    flex-direction: row;
    align-items: center;
    padding: 22px 28px 22px 78px;
    gap: 24px;
  }
  .lt-cta-inline__star { top: 50%; transform: translateY(-50%); left: 26px; width: 36px; height: 36px; }
  .lt-cta-inline__body { flex: 1; }
  .lt-cta-inline__btn { flex-shrink: 0; padding: 10px 18px; }
}
@font-face { font-family: "Geist"; src: url("../fonts/geist-300.89639bd2f38e.ttf") format("truetype"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-400.19d889c7d3cc.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-500.22b1e1fe5b0d.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-600.07e116bd45ad.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-700.f6466fe7a2b4.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-400.d5f1922e4847.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.966e9cbfed5a.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
