/* refresh.css - bluect.nl visual and motion refresh. Loaded only when the bluect_refresh flag (or the preview cookie) is on, after style.css; <html> carries .rf-on.
   Brand unchanged (colours, fonts, copy). Content is visible without JS; motion only
   under no-preference. Reveals use the brandlogicv2 motion system (fade plus 24px rise);
   axe runs after the animations settle (audit round 4).
   ONE SPACING SCALE: 4 8 12 16 24 32 48 72 112 (px). Every gap below is on it.
   ONE GRID: container 1280 (content 1216 at >=1280), gutter 24 (<600) / 32.
   TWO SECTION-HEAD SPINES: grid sections pin the head to the container edge;
   reading sections share the theme's 760px centred measure (QA gate P-QA1). */
:root{
  --rf-ease:cubic-bezier(.22,1,.36,1);--rf-state:cubic-bezier(.4,0,.2,1);
  --rf-hair:var(--line,#dfe5f2);--rf-hair-dark:var(--white-a14,rgba(255,255,255,.14));--rf-tint:#edf3ff;
  --rf-gutter:24px;--rf-sec:48px;--rf-head:32px;--rf-card-pad:16px;
  --rf-edge:max(var(--rf-gutter),calc((100% - var(--container,1280px))/2 + var(--rf-gutter)));
}
@media (min-width:600px){:root{--rf-gutter:32px;--rf-sec:72px;--rf-head:48px;--rf-card-pad:24px}}
@media (min-width:1024px){:root{--rf-sec:112px}}

/* 1. Grid and type hierarchy */
.container{padding-inline:var(--rf-gutter)}
h1,h2,h3{word-spacing:.04em}
h1{letter-spacing:-.034em;line-height:1.06}
h2{font-size:clamp(2rem,1.25rem + 2.6vw,3.25rem);letter-spacing:-.03em;line-height:1.1}
h3{letter-spacing:-.02em;line-height:1.22}
@media (max-width:599px){h1,h2{letter-spacing:-.02em}}
.btn{letter-spacing:0;word-spacing:.04em}
.consent-btn,.bbar .btn,#pay-btn,#order-btn{word-spacing:normal} /* fenced controls keep the theme's text metrics */

/* no one-word last lines in running copy, labels and headings */
main p,.site-footer p,.stat .l,.sector-qa__q{text-wrap:pretty}
.stat .l{text-wrap:balance}

/* 2. Section rhythm: one padding per breakpoint, every section */
main>.section,main>#vragen,main>#toevoegingen,main>#checkout{padding-block:var(--rf-sec)}
/* theme gives /prijzen/ and the landing pages 56 px sections and 24 px heads by id; same scale as everywhere else */
/* theme collapse of two same-ground sections stays for the founder card ... */
main>.section.section--snug{padding-bottom:var(--rf-sec)}
/* ... but a same-ground section with its own header gets full padding and a divider */
.section:not(.section--tint):not(.section--dark):not(.cta-band):not(.section--concepts):not([data-ps-panel])
  + .section:not(.section--tint):not(.section--dark):not(.cta-band):not(.section--concepts):not([data-ps-panel]):has(>.container>.section-head){padding-top:var(--rf-sec);position:relative}
/* refresh.js tags exactly these sections .rf-divider for the draw-in; the line itself needs no JS */
.section:not(.section--tint):not(.section--dark):not(.cta-band):not(.section--concepts):not([data-ps-panel])
  + .section:not(.section--tint):not(.section--dark):not(.cta-band):not(.section--concepts):not([data-ps-panel]):has(>.container>.section-head)::before{content:"";position:absolute;top:0;inset-inline:var(--rf-edge);height:1px;background:var(--rf-hair);pointer-events:none}

/* 3. Section headers: eyebrow 16 heading 16 intro, 48 to content */
main .section .section-head,#vragen .section-head,#toevoegingen .section-head,#checkout .section-head{margin-bottom:var(--rf-head);text-align:left}
.section-head .eyebrow{display:flex;width:fit-content;margin:0 0 16px}
.section-head h2{margin:0}
.section-head h2+*,.section-head h2+.prose--longform[style]{margin-top:16px!important}
.section-head .prose--longform p:last-child{margin-bottom:0}
/* grid sections: head on the container edge, intro on the same edge */
#voor-wie .section-head{margin-inline:0;max-width:var(--measure)}
#voor-wie .section-head .prose--longform{margin-inline:0!important}
/* reading sections: head, flag and body share the 760 centred spine */
#hosting-onderhoud .section-head,#vragen .section-head,#vragen .faq{max-width:var(--measure);margin-inline:auto!important}
#hosting-onderhoud .container{display:flex;flex-direction:column}
#hosting-onderhoud .section-head{width:100%}
#hosting-onderhoud .free-flag{width:fit-content;max-width:100%;margin:0 0 24px max(0px,calc((100% - var(--measure))/2))}
#vragen .section-head .eyebrow{margin-inline:0}

/* centred heads (/start/, landing) keep their centring: eyebrow, h2 and intro share one axis */
main .section .section-head.center,#checkout .section-head.center{text-align:center}
.section-head.center .eyebrow{margin-inline:auto}
.section-head.center .prose--longform{margin-inline:auto}

/* 4. Header: desktop menu gap on the scale (theme: clamp, 25.6 at 1024) */
@media (min-width:1000px){.nav-menu{gap:24px}}
@media (min-width:1280px){.nav-menu{gap:32px}}
/* Header: hairline on scroll; condensed logo stays confident (44 desktop, 40 small desktop, 34 phone = its top size) */
.site-header{border-bottom-color:transparent;transition:border-color .32s var(--rf-state),background-color .32s var(--rf-state)}
.site-header.is-scrolled{border-bottom-color:var(--rf-hair)}
.site-header .brand{justify-content:center}
.site-header .brand img,.site-header .brand svg.brand-mark{display:block}
/* Header logo is assets/img/logo-bluect-cropped.svg: the viewBox is cropped to the artwork, so the artwork is
   centred in the img box with no offset. The box keeps the theme's own size (and so the header height and the
   artwork size of the approved mockup and live): aspect-ratio is the uncropped canvas 355.42 x 180.61, and
   object-fit:contain draws the cropped artwork at the same size, centred, inside that box. */
.site-header .brand img{aspect-ratio:355.42/180.61;object-fit:contain}
.site-header.is-scrolled .brand img,.site-header.is-scrolled .brand svg.brand-mark{height:34px}
@media (min-width:1000px){.site-header.is-scrolled .brand img,.site-header.is-scrolled .brand svg.brand-mark{height:40px}}
@media (min-width:1280px){.site-header.is-scrolled .brand img,.site-header.is-scrolled .brand svg.brand-mark{height:44px}}
/* Sizes flip instantly (theme.js measures them for --header-h, no layout shift);
   the condense is shown with a transform on the logo only. */
.site-header .brand img{transform-origin:left center}
@media (min-width:1000px){
  .site-header.is-scrolled .brand img{animation:rf-logo-down .32s var(--rf-state)}
  .site-header.rf-grow .brand img{animation:rf-logo-up .32s var(--rf-state)}
}
@keyframes rf-logo-down{from{transform:scale(1.05)}}
@keyframes rf-logo-up{from{transform:scale(.95)}}

/* 5. Hero: panel padding and stack on the scale */
.hero--home .hero-panel{padding:24px}
@media (min-width:600px){.hero--home .hero-panel{padding:48px}}
@media (min-width:1280px){.hero--home .hero-panel{padding:72px}}
.hero--home .hero-actions{gap:12px}
@media (min-width:1000px){
  .hero--home .hero-grid{column-gap:72px}
  .hero--home .hero-copy h1{margin-bottom:24px}
  .hero--home .hero-guarantee{margin:24px 0 0}
  .hero--home .hero-actions{margin-top:32px}
}
/* theme stacks the five hero items with one flex gap below 1000; keep it on the scale */
@media (max-width:999px){
  .hero--home .hero-grid{gap:24px}
  .hero--home .hero-media{margin:0}
  .hero--home .hero-copy .hero-actions{margin-top:8px}
  /* one left edge for the whole stack (the generic-page centring rule reached the home hero) */
  .hero--home .hero-grid{align-items:flex-start}
  .hero--home .hero-copy>*{margin-inline:0!important;text-align:left}
  .hero--home .hero-actions{justify-content:flex-start}
}
/* when the two hero buttons wrap, they wrap as one full-width pair */
@media (min-width:1000px) and (max-width:1199px){.hero--home .hero-actions .btn{flex:1 1 100%}}
.hero--home .hero-actions .btn{min-height:52px}

/* inner-page hero grids, founder portrait and sticky-host grids were 52 / 44 / 40: on the scale */
.hero-grid{gap:48px}
.person{gap:48px}
.pc-sticky-host{column-gap:48px}

/* 6. Stats and trust strip: hairlines span the content box */
.stats-grid{row-gap:24px}
@media (min-width:900px){
  .stats-grid{column-gap:0}
  .stats-grid .stat{padding-inline:24px}
  .stats-grid .stat+.stat{border-left:1px solid var(--rf-hair)}
}
.stats-band .stats-foot{max-width:none;padding:16px max(0px,calc((100% - var(--measure))/2)) 24px}
@media (max-width:599px){
  .trust-strip ul{flex-direction:column;gap:12px;padding-block:24px}
}

/* 7. Cards: one card. White, 1px line, radius 8, padding 24 (16 on phones), 16 gaps,
   equal heights per row, and the eyebrow dash as top accent. */
.sector-band .sector-list,.sector-qas,.sector-shots,.pb-cards,.qc-list,.proof-concepts__grid{gap:16px}
.sector-band .sector-list{margin-top:0}
.sector-shots{margin-top:32px}
.sector-qas{margin-top:32px}
.sector-qa{position:relative;padding:var(--rf-card-pad);display:flex;flex-direction:column}
.sector-qa__q{margin:0 0 8px;font-size:1rem;line-height:1.45}
@media (min-width:900px){
  .sector-qas{grid-template-columns:repeat(6,minmax(0,1fr))}
  .sector-qas>.sector-qa{grid-column:span 2}
  .sector-qas>.sector-qa:nth-child(4),.sector-qas>.sector-qa:nth-child(5){grid-column:span 3}
}
@media (min-width:600px) and (max-width:899px){
  .sector-band .sector-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sector-qas{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sector-qas>.sector-qa:last-child:nth-child(odd){grid-column:1/-1}
}
.sector-band .sector-note{margin:24px 0 0}
.sector-band .sector-note--concepts{margin-top:8px}
#voor-wie .container>.sector-list{margin-top:0}
.faq details,#vragen .faq details{padding:16px 24px;margin-bottom:16px}
.faq details:last-child{margin-bottom:0}
.founder-note{padding:24px;gap:24px;border-radius:var(--radius)}
.founder-note .fn-quote{font-size:var(--step-2);line-height:1.3;margin:0 0 8px;letter-spacing:-.02em}
.founder-note .fn-link{margin-top:8px}
.founder-note .fn-office{margin-top:8px}
/* the dash accent: same 24x2 mark as the eyebrow, on the card's top edge */
.sector-qa::before,.pb-card::before{content:"";position:absolute;top:-1px;left:var(--rf-card-pad);width:24px;height:2px;background:var(--primary);border-radius:1px;pointer-events:none}

/* 8. Prices: the band on the 760 spine, cards with a clear label / figure / unit */
.price-band{padding:24px;margin-top:0}
.pb-card{position:relative;padding:var(--rf-card-pad)}
.price-band .pb-card .pb-name{font-family:var(--font-display);font-weight:600;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.price-band .pb-card .pb-price{font-size:clamp(1.5rem,1.2rem + 1vw,2rem);letter-spacing:-.03em;line-height:1.1;margin-top:8px}
.price-band .pb-card .pb-pages{margin-top:4px}
.price-band .pb-note{margin-top:16px}
.price-band .pb-shop{margin-top:8px}
.price-band .pb-cta{margin-top:16px}
#prijzen .soft-cta{margin:24px auto 0}
#prijzen .care-line{margin:8px auto 0}
@media (max-width:599px){.pb-card{padding:12px 16px}.sector-qa::before,.pb-card::before{left:16px}}
/* 8b. Under 390 px (fix 2026-12-04, WCAG 1.4.10): one card row no longer fits, so the price takes its own column
   and the page count sits under the name; the band is 16 px. 390 px and up are unchanged. */
@media (max-width:389.98px){
  .price-band{padding:16px}
  .pb-cards{grid-template-columns:minmax(0,1fr)}
  .pb-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:baseline}
  .price-band .pb-card .pb-name{grid-area:1/1;overflow-wrap:anywhere}
  .price-band .pb-card .pb-pages{grid-area:2/1;margin:0}
  .price-band .pb-card .pb-price{grid-area:1/2/3/3;align-self:center;margin:0}
}

/* 9. Closing CTA: one finished block. Desktop: statement + actions left, the signed
   guarantee right. Below 1024: centred stack, 32 heading to buttons, 48 to the card. */
.cta-band .container{text-align:center}
.cta-band .container:has(>.garantieverklaring){display:grid;justify-items:center}
/* service-page variant (head, lead, buttons, trust line; no signed guarantee card): centred stack on the scale */
main .cta-band .section-head{margin:0 auto 16px;max-width:none;text-align:center}
.cta-band .section-head h2{margin-inline:auto}
.cta-band .lead{margin:0 auto}
.cta-band .hero-actions{margin:32px 0 0;gap:12px;justify-content:center}
.cta-band .hero-actions+.trust-block{margin-top:24px}
.cta-band h2{margin-block:0}
.cta-band .cta-actions{margin:32px 0 0;gap:12px;align-items:stretch}
.cta-band .cta-actions .btn{min-height:52px;padding:14px 28px;font-size:1.0625rem}
.cta-band .garantieverklaring{margin:48px 0 0;width:100%}
/* no guarantee card (legal pages, /diensten/, microsoft-365): one centred axis for h2, paragraph and buttons; 16 from h2 to paragraph at every width */
.cta-band .container:not(:has(>.garantieverklaring))>h2+p{margin-top:16px}
@media (max-width:599px){
  .cta-band .cta-actions{flex-direction:column;width:100%}
  .cta-band .cta-actions .btn{width:100%}
}
@media (min-width:1024px){
  /* rows 1 and 5 are spacers (1fr): the left stack stays together and centred against the card */
  .cta-band .container:has(>.garantieverklaring){grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:1fr auto auto auto 1fr;column-gap:72px;align-items:center;justify-items:start;text-align:left}
  .cta-band .container:has(>.garantieverklaring)>h2{grid-column:1;grid-row:2;margin:0;max-width:none}
  .cta-band .container:has(>.garantieverklaring)>.cta-actions{grid-column:1;grid-row:3;justify-content:flex-start}
  .cta-band .garantieverklaring{grid-column:2;grid-row:1/-1;margin:0;max-width:none}
  .cta-band .container:has(>.garantieverklaring)>p{grid-column:1;grid-row:4;margin:24px 0 0}
}
.garantieverklaring .gv-kop{margin-bottom:16px}
.garantieverklaring .gv-onderschrift{margin-top:24px;padding-top:16px}
.garantieverklaring .gv-rol,.garantieverklaring .gv-bedrijf{margin-top:4px;line-height:1.4}

/* 10. Footer: label headings, first rows on one line, 48 grid gap */
.site-footer .footer-h4{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;line-height:16px;margin:0 0 8px}
.site-footer address.nap{line-height:28px}
@media (min-width:900px){.site-footer address.nap{padding-top:6px}}
.footer-brand-col .footer-brand{display:block;width:fit-content;margin:0}
.footer-brand-col .nap{margin:24px 0 0}
.footer-brand-col p[style]{margin-top:24px!important}
.footer-bottom{margin-top:48px;padding-top:24px}
/* footer grid: see block 19g */

/* 11. Hairlines that draw in from the left: 900 ms, var(--rf-ease), as brandlogicv2 .hl.
   html.rf-m is set by refresh.js only (motion allowed and IntersectionObserver present),
   so without it the lines are simply drawn. Card dashes start two stagger steps after
   their card, like brandlogicv2's .rv .hl. */
.rf-m .rf-divider::before,.rf-m .sector-qa::before,.rf-m .pb-card::before{transform:scaleX(0);transform-origin:left center}
.rf-m .rf-divider.rf-in::before,.rf-m .sector-qa.rf-in::before,.rf-m .pb-card.rf-in::before{transform:scaleX(1);transition:transform .9s var(--rf-ease);transition-delay:calc((var(--rf-i,0) + 2)*80ms)}
.rf-m .rf-divider.rf-in::before{transition-delay:0ms}
.rf-m .rf-now.rf-in::before{transition:none}

/* 12. Reveals, ported 1:1 from brandlogicv2: opacity 0 to 1 plus a 24px rise, 600 ms,
   var(--rf-ease), 80 ms stagger per group (refresh.js caps the index at 5 = 400 ms),
   triggered when the element crosses 92 percent of the viewport height. refresh.js marks
   the targets .rf-rv (headings, paragraphs and each card, never a whole section) and adds
   rf-in once; rf-done drops the reveal transition afterwards so the card hover
   transitions return. theme.js skips its own reveal and stat observers while html.rf-on
   is set, so .reveal-on/.is-in/.stat-in never exist and need no neutralising here; :not(#rf)
   lifts these rules above the theme selectors (e.g. .stats-band .stat transition) without
   !important. Only transform and opacity animate; no will-change. */
.rf-m .rf-rv:not(.rf-in):not(#rf){opacity:0;transform:translateY(24px);transition:none}
.rf-m .rf-rv.rf-in:not(.rf-done):not(#rf){transition:opacity .6s var(--rf-ease),transform .6s var(--rf-ease);transition-delay:calc(var(--rf-i,0)*80ms)}
.rf-m .rf-rv.rf-in.rf-now:not(#rf){transition:none}
/* Home hero: the lead copy is running text and never animates (owner feedback 2026-12-03);
   the h1, the sentence and the buttons are visible on first paint. */
@keyframes rf-rise{from{opacity:0;transform:translateY(24px)}}
@media print{
  .rf-m .rf-rv:not(#rf){opacity:1!important;transform:none!important;transition:none!important}
  .rf-m .rf-divider::before,.rf-m .sector-qa::before,.rf-m .pb-card::before{transform:none!important;transition:none!important}
}

/* 13. Cards and sector links: crisp hover = identical focus-visible, 200 ms */
.card,.step,.pb-card,.case-card,.sector-qa,.faq details,.sector-band .sector-list li>a{transition:border-color .2s var(--rf-state),background-color .2s var(--rf-state),box-shadow .2s var(--rf-state),transform .2s var(--rf-state)}
.card--link:hover,.card--link:has(:focus-visible),.pb-card:hover,.pb-card:has(a:focus-visible),
.sector-band .sector-list__item--linked>a:hover,.sector-band .sector-list__item--linked>a:focus-visible,
.faq details:hover,.faq details:has(summary:focus-visible){
  border-color:var(--primary);background-color:var(--rf-tint);transform:none;box-shadow:none}
.faq details[open]:hover{background-color:var(--surface,#fff)}
.faq summary:focus-visible{outline:2px solid var(--primary);outline-offset:4px;border-radius:4px}
.section--dark .card--link:hover,.section--dark .card--link:has(:focus-visible){background-color:#151b26}
.sector-band .sector-list__cta svg{transition:transform .2s var(--rf-state)}
.sector-band .sector-list__item--linked>a:hover .sector-list__cta svg,
.sector-band .sector-list__item--linked>a:focus-visible .sector-list__cta svg,
.card--link:hover .stretched svg,.card--link:has(:focus-visible) .stretched svg{transform:translateX(4px)}

/* 14. Buttons */
.btn{transition:background-color .2s var(--rf-state),color .2s var(--rf-state),border-color .2s var(--rf-state),box-shadow .2s var(--rf-state),transform .2s var(--rf-state)}
.btn--primary:hover{box-shadow:0 8px 18px -10px rgba(51,94,234,.7)}
.btn:active{transform:translateY(0);box-shadow:none}
.btn:focus-visible,.call-btn:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.section--dark .btn:focus-visible,.cta-band .btn:focus-visible,.site-footer .btn:focus-visible{outline-color:#fff}

/* 15. Cross-document view transition (progressive enhancement) */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:200ms}

/* 16. Reduced motion: everything off */
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .site-header,.site-header *,.card,.step,.pb-card,.case-card,.sector-qa,.faq details,.btn,.sector-band .sector-list li>a,.sector-band .sector-list__cta svg{transition:none!important;animation:none!important}
  .rf-m .rf-rv:not(#rf){opacity:1!important;transform:none!important;transition:none!important}
  .rf-m .rf-divider::before,.rf-m .sector-qa::before,.rf-m .pb-card::before{transform:none!important;transition:none!important}
}

/* 17. Payment ladder: the theme put the axis 7.6 px below the dot centres (desktop) and
   stopped each vertical segment 15 px short of the next dot. Dots stay as they are; the
   axis is derived from the same numbers as the dots (track padding 3.25rem, dot margin
   -1.55rem, dot 14 px, axis 2 px). */
@media (min-width:900px){
  .betaalladder--full .bl-track::before,.betaalladder--full .bl-track::after{top:calc(1.7rem + 6px)}
  /* decision dot is 22 px: same centre as the 14 px dots */
  .betaalladder--full .bl-step--beslis::before{margin-top:calc(-1.55rem - 4px);margin-bottom:.7rem}
}
@media (max-width:899px){
  .betaalladder--full .bl-step::before{z-index:1}
  /* each segment runs from its own dot centre to the next dot centre */
  .betaalladder--full .bl-step::after{top:calc(.5rem + 7px);bottom:-15px;left:calc(-2.35rem + 6px)}
  .betaalladder--full .bl-step:has(+ .bl-step--beslis)::after{bottom:calc(-.35rem - 10px)}
  .betaalladder--full .bl-step--beslis::before{left:calc(-2.35rem - 3px)}
  .betaalladder--full .bl-step--beslis::after{top:calc(.35rem + 10px);bottom:-15px}
}

/* 18. /werkwijze/: the explanatory prose sat flush under the payment ladder (0 px). 48 to the ladder, like head to content. */
.betaalladder+.prose--longform{margin-top:var(--rf-head)}

/* 19. Long-form pages and SEO link blocks (design review 2026-12-03) */

/* 19a. Running text never moves. Cached old JS or a future selector cannot hide prose again. */
.rf-m :is(.prose,.prose--longform,.section-head,.fn-body,.faq,.price-band) .rf-rv:not(#rf),
.rf-m :is(.prose,.prose--longform,.section-head,.fn-body,.faq,.price-band)>.rf-rv:not(#rf),
.rf-m .section>.container>p.rf-rv:not(#rf),
.rf-m :is(h1,h2,h3,p,ul,ol,table,details,blockquote).rf-rv:not(.card):not(#rf){opacity:1;transform:none;transition:none}

/* 19b. Long-form article: room between the hero panel and the first line, and a calm rhythm */
main>.section.section--longform{padding-top:var(--rf-head)}
.prose--longform h2{font-size:var(--step-3);margin:48px 0 16px}
.prose--longform h3{font-size:var(--step-1);margin:32px 0 8px}
.prose--longform>:first-child{margin-top:0}
.prose--longform .legal-meta{font-size:.875rem;color:var(--muted);margin:0 0 24px}
.page-template-template-longform .faq{max-width:var(--measure)}

/* 19c. Tables in long-form text: same look as the add-on table on /prijzen/, no mid-word breaks */
.prose--longform table{table-layout:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);border-collapse:separate;border-spacing:0;overflow:hidden}
.prose--longform th,.prose--longform td{overflow-wrap:break-word;word-break:normal;vertical-align:top;padding:12px 16px;border-bottom:1px solid var(--line)}
.prose--longform th{background:var(--tint)}
.prose--longform tr:last-child td{border-bottom:0}
.prose--longform .table-scroll{margin:24px 0}
/* 19c-2 (fix 2026-12-04): headers wrap between words so a table fits its column at 768 px and up. Where a table
   still cannot fit (phones), the .table-scroll wrapper scrolls instead of the table; refresh.js then makes that
   wrapper focusable with a name. The table keeps its border around its full width. */
.prose .table-scroll>.legal-table th{white-space:normal}
.prose .table-scroll>.legal-table{width:fit-content;min-width:100%;overflow:clip}
@media (min-width:600px) and (max-width:899px){.prose .table-scroll>.legal-table :is(th,td){min-width:0;padding-inline:12px}}
.table-scroll[tabindex]:focus-visible{outline:3px solid var(--primary);outline-offset:2px}

/* 19d. Link blocks ("Meer over websites", "Werkgebied", "Lees ook") */
main>.section.seo-links{padding-block:var(--rf-head)}
main>.section.seo-links+.section.seo-links{padding-top:0}
.seo-links ul{gap:8px}
.seo-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;line-height:1.4}
.page-template-template-longform .seo-links .container,
.page-template-template-kennisbank .seo-links .container{max-width:calc(var(--measure) + 2*var(--rf-gutter))}

/* 19e. Kennisbank overview cards */
.kb-list{list-style:none;padding:0;margin:32px 0 0}
.kb-list h2{font-size:var(--step-2);margin:0 0 8px}
.kb-list .card p{margin:0 0 8px}
.kb-list .card p:last-child{margin-bottom:0}
.kb-list .legal-meta{font-size:.875rem;color:var(--muted)}
@media (max-width:600px){.kb-list{grid-template-columns:1fr}}

/* 19f. Menus: Diensten stays highlighted on its sub-pages (desktop), drawer polish */
@media (min-width:1000px){
  .nav-menu>li:is(.current-menu-ancestor,.current-page-ancestor,.current-menu-parent)>a{color:var(--primary)}
}
@media (max-width:999px){
  .nav-menu li:is(.current-menu-ancestor,.current-page-ancestor)>a{color:var(--primary-on-dark,var(--primary))}
  .nav-menu .sub-menu li:last-child{border-bottom:0}
}
.drawer-close{font-size:1.5rem;line-height:1}

/* 19g. Footer in five columns: brand and contact, Menu, Diensten, Werkgebied, Juridisch */
.footer-grid{grid-template-columns:1.3fr repeat(4,minmax(0,1fr))}
.footer-grid--4{grid-template-columns:1.3fr repeat(3,minmax(0,1fr))}
@media (min-width:900px) and (max-width:1199px){
  .footer-grid,.footer-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .footer-grid--4{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-brand-col{grid-column:1/-1}
}
@media (min-width:600px) and (max-width:899px){.footer-grid,.footer-grid--4{grid-template-columns:1fr 1fr;gap:48px}.footer-brand-col{grid-column:1/-1}}
@media (max-width:599px){.footer-grid,.footer-grid--4{grid-template-columns:1fr 1fr;gap:32px 24px}.footer-brand-col{grid-column:1/-1}}
.footer-brand-col address.nap{margin-top:24px}
.footer-grid ul a{overflow-wrap:break-word}

/* 20. Fixes 2026-12-04 (WCAG 2.4.11): the fixed mobile checkout bar (.bbar, theme, fenced) must not hide the
   focused element. Keyboard focus scrolls content clear of the bar on pages that have it. */
@media (max-width:899px){html.rf-on:has(.bbar){scroll-padding-bottom:calc(var(--bbar-h,64px) + env(safe-area-inset-bottom,0px) + 16px)}}
