/*
Theme Name: Mijn Waalre Redactiethema
Theme URI: https://mijnwaalre.nl/
Author: Mijn Waalre
Description: Onafhankelijk boxed WordPress-redactiethema voor Waalre en Aalst. Werkt met Mijn Waalre Platform & Newsroom en Halo.
Version: 1.2.9
Requires PHP: 7.4
Text Domain: mijn-waalre-theme
*/
:root{--mw-blue:#1a3a5c;--mw-gold:#e8a838;--mw-muted:#67758a;--mw-border:#e3e8ed;--mw-width:1200px}*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#1b2733;font:16px/1.65 Montserrat,Arial,sans-serif}a{color:var(--mw-blue)}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.mw-container{width:min(calc(100% - 36px),var(--mw-width));margin-left:auto;margin-right:auto}.mw-header{background:#fff;border-bottom:3px solid var(--mw-gold)}.mw-header-main{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0}.mw-brand img{display:block;max-width:195px;max-height:57px;width:auto;height:auto}.mw-brand-text{font-weight:800;font-size:24px;text-decoration:none;color:var(--mw-blue)}.mw-nav{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.mw-nav a{padding:10px 12px;color:var(--mw-blue);font-weight:700;text-decoration:none;border-radius:4px;font-size:14px}.mw-nav a:hover,.mw-nav .current-menu-item>a{background:#eef2f7}.mw-nav .mw-nav-cta{background:var(--mw-gold)}.mw-header-bottom{background:var(--mw-blue);color:#fff}.mw-header-bottom .mw-container{padding:7px 0;display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px}.mw-header-bottom a{color:white}.mw-search{display:flex;gap:5px}.mw-search input{width:140px;min-width:0;padding:6px 9px;border:1px solid #bfc9d4;border-radius:4px}.mw-search button{background:var(--mw-gold);border:0;border-radius:4px;padding:6px 12px;cursor:pointer;font-weight:bold;color:var(--mw-blue)}.mw-site-main{min-height:55vh;padding:26px 0 45px}.mw-panel{background:#fff;border:1px solid var(--mw-border);border-radius:6px;padding:26px}.mw-content> :first-child{margin-top:0}.mw-content h1{line-height:1.2;color:var(--mw-blue)}.mw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.mw-news-card{border:1px solid var(--mw-border);background:#fff;overflow:hidden;border-radius:6px}.mw-news-card img{display:block;width:100%;aspect-ratio:800/467;object-fit:contain;background:#e9edf1}.mw-news-card-content{padding:15px}.mw-news-card h2{font-size:18px;line-height:1.3;margin:0 0 8px}.mw-news-card a{text-decoration:none}.mw-news-card p{font-size:14px;margin:0}.mw-card-kern{color:var(--mw-muted);font-size:12px;margin-bottom:5px;display:block}.mw-section-title{margin:0 0 16px;font-size:25px;line-height:1.25;color:var(--mw-blue)}.mw-section{margin-bottom:30px}.mw-home-lead{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}.mw-home-side{display:grid;grid-template-rows:repeat(3,1fr);gap:12px}.mw-home-side .mw-news-card{display:flex;min-height:130px}.mw-home-side .mw-news-card img{width:38%;object-fit:contain;aspect-ratio:800/467}.mw-home-side .mw-news-card-content{flex:1}.mw-home-side .mw-news-card h2{font-size:16px}.mw-article{max-width:800px;margin:0 auto}.mw-article h1{font-size:clamp(28px,4vw,42px);line-height:1.2;color:var(--mw-blue);margin:0 0 18px}.mw-summary{font-size:19px;font-weight:600;line-height:1.55;color:#344253}.mw-feature{margin:24px 0}.mw-feature img{display:block;width:100%;max-width:800px;aspect-ratio:800/467;object-fit:contain;background:#edf0f3}.mw-feature figcaption{font-size:12px;color:var(--mw-muted);margin-top:6px}.mw-meta{font-size:13px;color:var(--mw-muted);margin:12px 0}.mw-body{font-size:17px;overflow-wrap:anywhere}.mw-body p{margin:0 0 1.3em}.mw-body h2{color:var(--mw-blue)}.mw-accountability{margin:24px 0;padding:15px;border-top:1px solid var(--mw-border);font-size:13px;color:var(--mw-muted)}.mw-pagination{margin:30px 0}.mw-pagination .page-numbers{display:inline-block;margin-right:8px;padding:6px 11px;background:white;border:1px solid var(--mw-border)}.mw-footer{background:var(--mw-blue);color:#fff;padding:28px 0;margin-top:25px}.mw-footer a{color:white}.mw-footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.mw-footer-nav{display:flex;gap:14px;flex-wrap:wrap}.mw-halo-wrap{margin-top:15px}.mw-home-intro{margin:0 0 20px}.mw-mobile-toggle{display:none}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);overflow:hidden;width:1px;height:1px}@media(max-width:850px){.mw-home-lead{grid-template-columns:1fr}.mw-home-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.mw-header-main{flex-wrap:wrap}.mw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mw-nav{width:100%}}@media(max-width:580px){.mw-container{width:min(calc(100% - 24px),var(--mw-width))}.mw-panel{padding:16px}.mw-grid{grid-template-columns:1fr}.mw-home-side{grid-template-columns:1fr}.mw-home-side .mw-news-card{min-height:110px}.mw-brand img{max-width:165px}.mw-nav a{padding:8px}.mw-header-bottom .mw-container{justify-content:center}.mw-article h1{font-size:28px}}

.mw-article{max-width:var(--mw-article-width,800px)}.mw-header-bottom .mw-container{min-height:42px}.mwt-social{display:flex;gap:12px}.mw-site-main .mw-container{min-width:0}@media(max-width:850px){.mw-header-bottom .mw-container{gap:10px}}

/* Redactionele kaarten en dorpspagina's v1.2 */
.mw-section {margin-bottom:38px}
.mw-grid {align-items:stretch;gap:22px}
.mw-news-card {display:flex;flex-direction:column;min-width:0;border:1px solid #dfe5ec;border-radius:9px;box-shadow:0 2px 8px rgba(17,42,69,.04);transition:box-shadow .2s ease,transform .2s ease}
.mw-news-card:hover {box-shadow:0 9px 23px rgba(17,42,69,.11);transform:translateY(-2px)}
.mw-news-card>a:first-child {display:block;overflow:hidden;aspect-ratio:800/467;background:#edf1f5}
.mw-news-card>a:first-child img {width:100%;height:100%;display:block;object-fit:contain;aspect-ratio:auto}
.mw-news-card-content {display:flex;flex-direction:column;gap:7px;flex:1;padding:17px 18px 20px}
.mw-news-card h2 {font-size:clamp(17px,1.65vw,21px);line-height:1.36;margin:0;font-weight:750;overflow-wrap:anywhere}
.mw-news-card h2 a {color:var(--mw-blue)}
.mw-news-card h2 a:hover {text-decoration:underline;text-decoration-color:var(--mw-gold);text-underline-offset:3px}
.mw-news-card p {color:#4d5d6b;line-height:1.65;margin:2px 0 0;font-size:14px}
.mw-card-kern {color:#506880;font-size:12px;font-weight:650;letter-spacing:.01em}
.mw-home-lead {align-items:stretch}
.mw-home-lead>div:first-child>.mw-news-card {height:100%}
.mw-home-lead>div:first-child>.mw-news-card .mw-news-card-content {justify-content:flex-end}
.mw-home-lead>div:first-child>.mw-news-card h2 {font-size:clamp(21px,2.2vw,29px)}
.mw-home-side {grid-template-rows:repeat(3,minmax(0,1fr))}
.mw-home-side .mw-news-card {display:grid;grid-template-columns:38% minmax(0,1fr);min-height:0}
.mw-home-side .mw-news-card>a:first-child {height:100%;aspect-ratio:auto}
.mw-home-side .mw-news-card-content {padding:12px 14px;justify-content:center}
.mw-home-side .mw-news-card h2 {font-size:clamp(14px,1.25vw,18px)}
.mw-section-title {font-size:clamp(23px,2.5vw,30px);padding-bottom:12px;border-bottom:2px solid #e8edf2;position:relative}
.mw-section-title:after {content:'';position:absolute;width:64px;height:2px;background:var(--mw-gold);bottom:-2px;left:0}
.mw-pagination ul.page-numbers {display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
.mw-pagination .page-numbers li {list-style:none}
.mw-pagination .page-numbers a,.mw-pagination .page-numbers span {margin:0;border-radius:4px}
.mw-pagination .page-numbers .current {background:var(--mw-blue);color:#fff}
@media(max-width:850px){.mw-home-side {grid-template-columns:1fr;grid-template-rows:repeat(3,auto)}.mw-grid {gap:15px}}
@media(max-width:580px){.mw-grid {grid-template-columns:1fr}.mw-news-card-content {padding:15px}.mw-home-side .mw-news-card {min-height:115px}.mw-home-side .mw-news-card>a:first-child {height:auto}.mw-home-lead>div:first-child>.mw-news-card h2 {font-size:22px}}
@media(prefers-reduced-motion:reduce){.mw-news-card{transition:none}.mw-news-card:hover{transform:none}}

/* Boxed lay-out voor alle publieke pagina's: titels binnen het vlak */
.mw-site-main > .mw-container {max-width:var(--mw-width,1200px);min-width:0}
.mw-boxed-section {background:#fff;border:1px solid var(--mw-border);border-radius:9px;padding:clamp(16px,2.5vw,30px);max-width:100%;min-width:0}
.mw-boxed-section.mw-panel {padding:clamp(16px,2.5vw,30px)}
.mw-boxed-section .mw-grid,.mw-boxed-section .mw-home-lead {min-width:0}
.mw-boxed-section .mw-news-card {min-width:0}
.mw-boxed-section .mw-section-title {margin-top:0}
.mw-article {width:100%;min-width:0}
.mw-content,.mw-body {max-width:100%;overflow-wrap:anywhere}
.mw-content iframe,.mw-body iframe {max-width:100%}
@media(max-width:580px){.mw-boxed-section{padding:16px}.mw-section-title{font-size:23px}}

/* Boxed juridische en informatiepagina's, ook bij geïmporteerde Elementor-inhoud */
.mw-legal-page {width:100%;max-width:100%;min-width:0;margin:0 auto;padding:clamp(20px,3vw,38px)}
.mw-legal-page>.mw-section-title {margin:0 0 24px}
.mw-legal-page .mw-page-body {width:100%;max-width:900px;margin:0 auto;min-width:0;overflow-wrap:anywhere}
.mw-legal-page .mw-page-body > * {max-width:100%}
.mw-legal-page .mw-page-body img,.mw-legal-page .mw-page-body table,.mw-legal-page .mw-page-body iframe {max-width:100%}
.mw-legal-page .mw-page-body table {display:block;overflow-x:auto}
.mw-legal-page .mw-page-body .elementor,.mw-legal-page .mw-page-body .e-con,.mw-legal-page .mw-page-body .elementor-section {max-width:100%;min-width:0}
@media(max-width:580px){.mw-legal-page{padding:16px}.mw-legal-page .mw-page-body{font-size:15px}}

/* Deelknoppen: in boxed artikel en gewone pagina's */
.mw-share{margin-top:30px;padding-top:20px;border-top:1px solid var(--mw-border)}
.mw-share-heading{font-size:17px!important;line-height:1.4;margin:0 0 14px;color:var(--mw-blue)}
.mw-share-links{display:flex;flex-wrap:wrap;gap:9px}
.mw-share-button{display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:#1a3a5c!important;border:1px solid #cbd5e1;border-radius:6px;padding:10px 14px;font:600 13px Montserrat,Arial,sans-serif;text-decoration:none!important;cursor:pointer;min-height:44px}
.mw-share-button:hover,.mw-share-button:focus-visible{background:#1a3a5c;color:#fff!important;border-color:#1a3a5c}
.mw-share-notice{display:block;margin-top:10px;font-size:13px;color:#34516b}

/* Header homeknop en duidelijkere Waalre-navigatie */
.mw-nav .mw-home-link{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}.mw-nav .mw-home-link svg{display:block}.mw-nav a[aria-current="page"]{background:#eef2f7;text-decoration:underline;text-underline-offset:4px}.mw-nav a:focus-visible{outline:3px solid var(--mw-gold);outline-offset:2px}


/* v1.2.6 — redactioneel beeldgrid: hoofdkop + drie kaarten en professionele deelknoppen */
.mw-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px 22px;flex-wrap:wrap;margin-bottom:22px}
.mw-section-heading .mw-section-title{margin:0;flex:1 1 220px}
.mw-section-more{font-size:13px;font-weight:750;white-space:nowrap;text-decoration:none;color:var(--mw-blue)}
.mw-section-more:hover{text-decoration:underline;text-underline-offset:4px}
.mw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mw-news-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #e1e7ef;border-radius:12px;box-shadow:0 2px 8px rgba(18,40,60,.045);transition:transform .2s ease,box-shadow .2s ease}
.mw-news-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(18,40,60,.1)}
.mw-news-card .mw-card-image{display:block;position:relative;flex:none;aspect-ratio:800/467;overflow:hidden;background:#e8edf3}
.mw-news-card .mw-card-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 38%;background:transparent;transition:transform .35s ease}
.mw-news-card:hover .mw-card-image img{transform:scale(1.025)}
.mw-card-placeholder{height:100%;width:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#dfe8f0,#edf1f5)}
.mw-card-placeholder span{font-size:clamp(14px,2vw,20px);font-weight:800;color:#617990;letter-spacing:.03em}
.mw-news-card-content{padding:17px 19px 20px;display:flex;flex:1;flex-direction:column;gap:6px;min-width:0}
.mw-card-date{display:block;font-size:12px;font-weight:700;letter-spacing:.01em;line-height:1.45;color:#66798b}
.mw-news-card-content h2{font-size:clamp(17px,1.5vw,20px);line-height:1.36;letter-spacing:-.015em;font-weight:750;margin:0;overflow-wrap:break-word}
.mw-news-card-content h2 a{color:var(--mw-blue);text-decoration:none}
.mw-news-card-content h2 a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--mw-gold)}
.mw-news-card-content p{font-size:14px;line-height:1.58;color:#516172;margin:5px 0 0}
.mw-home-lead{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:15px;align-items:stretch}
.mw-home-lead>.mw-news-card--lead{height:100%;min-height:485px;border:0;background:var(--mw-blue)}
.mw-home-lead .mw-news-card--lead .mw-card-image{position:absolute;inset:0;aspect-ratio:auto;height:100%;width:100%}
.mw-home-lead .mw-news-card--lead .mw-card-image img{width:100%;height:100%;object-fit:cover;object-position:center 35%}
.mw-home-lead .mw-news-card--lead .mw-news-card-content{position:relative;z-index:1;justify-content:flex-end;flex:none;margin-top:auto;padding:72px 25px 25px;min-height:215px;background:linear-gradient(0deg,rgba(12,29,49,.97) 0%,rgba(12,29,49,.79) 56%,rgba(12,29,49,0) 100%)}
.mw-home-lead .mw-news-card--lead .mw-card-date{color:#f0ca81}
.mw-home-lead .mw-news-card--lead h2{font-size:clamp(23px,2.5vw,33px);line-height:1.18}
.mw-home-lead .mw-news-card--lead h2 a{color:#fff}
.mw-home-side{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.mw-home-side .mw-news-card--compact{display:grid;grid-template-columns:minmax(0,38%) minmax(0,62%);min-height:0;height:100%;max-height:none;align-items:stretch}
.mw-home-side .mw-news-card--compact .mw-card-image{aspect-ratio:auto;height:100%;min-height:130px}
.mw-home-side .mw-news-card--compact .mw-card-image img{height:100%;width:100%;object-fit:cover;object-position:center 35%}
.mw-home-side .mw-news-card--compact .mw-news-card-content{justify-content:center;gap:7px;padding:12px 14px}
.mw-home-side .mw-news-card--compact h2{font-size:clamp(15px,1.25vw,18px);line-height:1.32}
.mw-home-side .mw-card-placeholder span{font-size:12px;text-align:center}
.mw-home-news .mw-section-more{align-self:center}
/* Deelknoppen in artikelbreedte; geen scripts van derden */
.mw-share{margin:34px 0 0;padding:22px 0 4px;border-top:1px solid #dce3ea}
.mw-share-intro{margin:0 0 14px}
.mw-share-heading{font-size:18px!important;line-height:1.35;font-weight:750;margin:0 0 2px;color:var(--mw-blue)}
.mw-share-intro p{font-size:13px;line-height:1.45;color:#617184;margin:0}
.mw-share-links{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.mw-share .mw-share-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;min-height:43px;border-radius:8px;border:1px solid #d6e0ea;background:#fff;color:#203c5a!important;text-decoration:none!important;cursor:pointer;font:650 13px/1.3 Montserrat,Arial,sans-serif;box-shadow:0 1px 2px rgba(0,0,0,.02);transition:background .15s ease,border-color .15s ease}
.mw-share .mw-share-button:hover{background:#eef3f8;border-color:#9aaec0;color:#102e4d!important}
.mw-share .mw-share-button:focus-visible{outline:3px solid var(--mw-gold);outline-offset:2px}
.mw-share .mw-share-copy{background:var(--mw-blue);border-color:var(--mw-blue);color:#fff!important}
.mw-share .mw-share-copy:hover{background:#294c6d;border-color:#294c6d;color:#fff!important}
.mw-share-icon{display:block;flex:none;width:19px;height:19px}
.mw-share-notice:not(:empty){display:block;font-size:13px;font-weight:650;color:#235f46;margin-top:11px}
@media(max-width:900px){
 .mw-home-lead{grid-template-columns:1fr}
 .mw-home-lead>.mw-news-card--lead{min-height:390px}
 .mw-home-side{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto}
 .mw-home-side .mw-news-card--compact{display:flex;flex-direction:column}
 .mw-home-side .mw-news-card--compact .mw-card-image{height:auto;min-height:0;aspect-ratio:800/467}
 .mw-home-side .mw-news-card--compact .mw-news-card-content{justify-content:start}
 .mw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .mw-home-lead>.mw-news-card--lead{min-height:295px}
 .mw-home-lead .mw-news-card--lead .mw-news-card-content{padding:65px 18px 18px;min-height:0}
 .mw-home-lead .mw-news-card--lead h2{font-size:clamp(22px,5.2vw,28px)}
 .mw-home-side{grid-template-columns:1fr;gap:10px}
 .mw-home-side .mw-news-card--compact{display:grid;grid-template-columns:minmax(0,38%) minmax(0,62%);min-height:118px}
 .mw-home-side .mw-news-card--compact .mw-card-image{height:100%;min-height:118px;aspect-ratio:auto}
 .mw-home-side .mw-news-card--compact .mw-news-card-content{justify-content:center;padding:10px 12px}
 .mw-grid{grid-template-columns:1fr;gap:14px}
 .mw-share-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mw-share .mw-share-button{padding:10px 8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.mw-news-card,.mw-news-card .mw-card-image img,.mw-share .mw-share-button{transition:none}.mw-news-card:hover,.mw-news-card:hover .mw-card-image img{transform:none}}

/* v1.2.7: Halloweenrubriek binnen vaste boxed breedte */
.mwh-page{width:100%;max-width:100%;min-width:0}.mwh-page .mwh-guide{max-width:100%}
