.ndb-ad-layout{container:ndb-ad-layout / inline-size}
.ndb-frame,.ndb-after-content{margin:auto;display:grid;grid-template-columns:minmax(0,1280px);justify-content:center;gap:24px;padding:24px 16px;box-sizing:border-box;--ndb-ad-top:24px}
.ndb-main{min-width:0}
.ndb-after-content{padding-top:0}
.ndb-after-column{width:100%;max-width:1240px;min-width:0;margin-inline:auto;box-sizing:border-box}
.ndb-after-column>.regional-social,.ndb-after-column>.regional-related-links{box-sizing:border-box;width:100%;max-width:100%;margin-inline:0}
.ndb-ad-layout .ndb-after-column>.ndb-ad-footer-wrap{max-width:none;width:100%;padding-inline:0}
.ndb-banner[hidden],.ndb-banner-controls[hidden]{display:none!important}
.ndb-ad-layout:not([data-ndb-ready]) .ndb-banner,.ndb-ad-layout:not([data-ndb-ready]) .ndb-banner-controls{display:none!important}
.ndb-ad-layout .ndb-ad-slot{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #c5d4df;border-radius:10px;background:#fff;color:#526778}
.ndb-ad-layout .ndb-ad-surface{position:relative;flex:1;min-height:0;background:#f0f5f8;display:grid;place-items:center}
.ndb-ad-layout .ndb-ad-placeholder{font:14px/1.5 Arial,sans-serif;color:#526778;letter-spacing:.04em}
.ndb-ad-layout .ndb-ad-surface:has(.ndb-banner:not([hidden]))>.ndb-ad-placeholder{visibility:hidden}
.ndb-ad-layout:not([data-ndb-ready]) .ndb-ad-placeholder{visibility:visible}
.ndb-ad-layout .ndb-banner{position:absolute;inset:0}
.ndb-ad-layout .ndb-banner a,.ndb-ad-layout .ndb-banner-unlinked,.ndb-ad-layout .ndb-banner picture,.ndb-ad-layout .ndb-banner img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}
.ndb-ad-layout .ndb-banner img{object-fit:contain}
.ndb-banner a:focus-visible{outline-offset:-4px}
.ndb-ad-layout .ndb-ad-slot-left,.ndb-ad-layout .ndb-ad-slot-right{display:none}
.ndb-ad-layout .ndb-ad-slot-mobile{width:100%;height:clamp(180px,22vw,320px);margin:24px 0}
.ndb-ad-layout .ndb-ad-slot-mobile:not([data-ndb-positioned]){display:none}
.ndb-main{grid-row:1}
.ndb-ad-layout .ndb-ad-footer-wrap{box-sizing:border-box;max-width:1312px;padding:24px 16px;margin:0 auto}
.ndb-ad-layout .ndb-ad-slot-footer{width:100%;height:auto}
.ndb-ad-layout .ndb-ad-slot-footer .ndb-ad-surface{flex:none;width:100%;aspect-ratio:var(--ndb-footer-ratio,4 / 1)}
.ndb-banner-controls{text-align:center;grid-column:1/-1;display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.ndb-ad-footer-wrap .ndb-banner-controls{margin-top:12px}
.ndb-banner-controls button{font-size:.9rem}
.ndb-banner a:focus-visible,.ndb-banner-controls button:focus-visible,.ndb-faq summary:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.ndb-events,.ndb-documents,.ndb-timeline{padding-inline-start:1.3em}
.ndb-events>li,.ndb-documents>li,.ndb-timeline>li{margin-bottom:1.5em}
.ndb-meta{font-size:.9em}
.ndb-shared-calendar{margin-block:24px;padding:16px;border:1px solid #ddd;border-radius:8px}
.ndb-shared-calendar>summary{cursor:pointer;font-weight:600}
.ndb-shared-calendar>summary:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.ndb-shared-calendar[open]>summary{margin-bottom:16px}
.ndb-shared-calendar a{overflow-wrap:anywhere}
.ndb-parliament-section{margin-block:32px;padding-block:24px;border-top:1px solid #ddd}
.ndb-parliament-section a,.ndb-parliament-section h3{overflow-wrap:anywhere}
.ndb-parliament-section summary{cursor:pointer}
.ndb-parliament-section a:focus-visible,.ndb-parliament-section summary:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.ndb-parliament-section.ndb-parliament-embedded{margin-block:16px;padding-block:0;border:0}
.ndb-parliament-intro{max-width:72ch}
.ndb-parliament-note{font-size:.9rem;color:#42566a;margin-block:20px 0}
.ndb-parliament-section .ndb-documents{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;list-style:none;padding:0;margin:20px 0}
.ndb-parliament-section .ndb-documents>.ndb-document-card{min-width:0;margin:0;padding:22px;border:1px solid #cbdce8;border-radius:10px;background:#f8fbfd}
.ndb-parliament-section .ndb-document-card h3{font-size:1.15rem;line-height:1.5;margin:10px 0 16px;hyphens:auto}
.ndb-parliament-section .ndb-document-meta{display:flex;gap:8px 16px;justify-content:space-between;flex-wrap:wrap;font-size:.88rem;color:#42566a;margin:0}
.ndb-parliament-section .ndb-document-meta time{white-space:nowrap}
.ndb-document-people{border-block:1px solid #dce6ee;padding-block:12px;margin-block:14px}
.ndb-parliament-section .ndb-document-people p{font-size:.82rem;color:#42566a;margin:0 0 6px}
.ndb-parliament-section .ndb-document-people ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.ndb-document-people li{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.ndb-document-people a{font-weight:700}
.ndb-document-people span,.ndb-document-number,.ndb-document-language{font-size:.88rem;color:#42566a}
.ndb-parliament-section .ndb-document-number,.ndb-parliament-section .ndb-document-language{margin-block:6px}
.ndb-parliament-section .ndb-document-original{margin:14px 0 0;font-size:.95rem;font-weight:600}
.ndb-document-card details{margin-block:12px;font-size:.9rem}
.ndb-document-pagination{display:flex;flex-wrap:wrap;gap:16px}
.ndb-parliament-news{margin-bottom:28px}
@media(min-width:800px){.ndb-parliament-section .ndb-documents{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.ndb-parliament-section .ndb-documents>.ndb-document-card{padding:16px}.ndb-parliament-section .ndb-document-card h3{font-size:1.05rem}}
.ndb-faq details{padding:1em 0;border-bottom:1px solid #ddd}
.ndb-faq summary{cursor:pointer;font-weight:600}
.ndb-source{overflow-wrap:anywhere}
.ndb-services-form label{display:block;margin:12px 0}
.ndb-services-form input:not([type=checkbox]),.ndb-services-form select,.ndb-services-form textarea{width:100%;max-width:800px}
.ndb-step{border:1px solid #ccc;padding:12px;margin:12px 0}
.ndb-cancelled{font-weight:700}
.ndb-service-note{padding:1em;border-inline-start:3px solid #777}
@media(width < 600px){
 .ndb-ad-layout .ndb-ad-slot-mobile{width:min(100%,clamp(240px,70vw,320px));height:auto;aspect-ratio:1;margin-inline:auto}
}
/* 1280 content + 240 per side + 24 gaps + 32 outer margin.
   Slot visibility never depends on image availability or service connectivity. */
@media(min-width:1576px){
 html:has(.ndb-frame),body:has(.ndb-frame){overflow-x:clip!important}
}
@container ndb-ad-layout (min-width:1576px){
 .admin-bar .ndb-frame{--ndb-ad-top:calc(24px + var(--wp-admin--admin-bar--height,32px))}
 .ndb-frame,.ndb-after-content{grid-template-columns:minmax(240px,360px) 1280px}
 .ndb-main,.ndb-after-column{grid-column:2;grid-row:1}
 .ndb-ad-layout .ndb-ad-slot-left,.ndb-ad-layout .ndb-ad-slot-right{position:sticky;top:var(--ndb-ad-top);align-self:start;height:min(900px,calc(100vh - var(--ndb-ad-top) - 24px));height:min(900px,calc(100dvh - var(--ndb-ad-top) - 24px))}
 .ndb-ad-layout .ndb-ad-slot-left{display:flex;grid-column:1;grid-row:1}
 .ndb-ad-layout .ndb-ad-slot-mobile{display:none}
}
@container ndb-ad-layout (min-width:1840px){
 .ndb-frame,.ndb-after-content{grid-template-columns:minmax(240px,360px) 1280px minmax(240px,360px)}
 .ndb-ad-layout .ndb-ad-slot-right{display:flex;grid-column:3;grid-row:1}
}
@media print{
 .ndb-ad-layout .ndb-ad-slot,.ndb-banner-controls{display:none!important}
 .ndb-frame{display:block;padding:0}
}

.ndb-banner-controls button[hidden]{display:none!important}

/* Join the existing compatibility layer so its theme rules cannot override these
   scoped card refinements. Narrow screens wrap labels, never separate actions. */
@layer regional-design-compat {
body .afd-person-card .afd-person-card__links.ndb-person-actions:has(>.ndb-person-documents-link){display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;padding-top:14px!important;margin-top:auto!important}
body .afd-person-card .ndb-person-actions>.afd-core-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:0!important;min-height:44px!important;box-sizing:border-box!important;padding:9px 12px!important;border-radius:6px!important;font-size:.8125rem!important;line-height:1.3!important;white-space:nowrap!important;text-align:center!important}
body .afd-person-card .ndb-person-actions>.ndb-person-documents-link{flex:0 1 auto!important;white-space:normal!important;background:#cc0000!important;color:#fff!important}
body .afd-person-card .ndb-person-actions>.ndb-person-documents-link:hover{background:#990000!important;color:#fff!important}
body .afd-person-card .ndb-person-actions>a:focus-visible{outline:3px solid #173557!important;outline-offset:3px!important}
body .afd-person-card.afd-person-card--balanced:has(.ndb-person-documents-link) .afd-person-card__header{grid-template-columns:clamp(104px,22%,136px) minmax(0,1fr)!important;gap:18px!important;padding:20px!important}
body .afd-person-card.afd-person-card--balanced:has(.ndb-person-documents-link) .afd-person-card__body{padding:16px 20px 20px!important}
body .afd-person-card.afd-person-card--balanced:has(.ndb-person-documents-link) .afd-person-card__meta{font-size:.9rem!important;line-height:1.5!important}
.ndb-parliament-recent .ndb-parliament-intro{margin-bottom:12px!important}
.ndb-parliament-recent .ndb-documents>.ndb-document-card{padding:16px!important}
.ndb-parliament-recent .ndb-document-card h3{font-size:1.05rem!important;margin-block:8px 12px!important;line-height:1.4!important}
[data-ndb-token-purpose] button[hidden]{display:none!important}
@media(max-width:480px){
 body .afd-person-card.afd-person-card--balanced:has(.ndb-person-documents-link) .afd-person-card__header{grid-template-columns:88px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}
 body .afd-person-card.afd-person-card--balanced:has(.ndb-person-documents-link) .afd-person-card__body{padding:14px!important}
 body .afd-person-card .afd-person-card__links.ndb-person-actions:has(>.ndb-person-documents-link){gap:6px!important}
 body .afd-person-card .ndb-person-actions>.afd-core-btn{padding-inline:8px!important}
}
@media(max-width:360px){
 body .afd-person-card .afd-person-card__links.ndb-person-actions:has(>.ndb-person-documents-link){gap:4px!important}
 body .afd-person-card .ndb-person-actions>.afd-core-btn{padding-inline:6px!important}
}
}
