/*
Theme Name: Spanjeportaal
Version: 1.13.3
Description: Nederlandstalig Spanje-platform. Werkt met bestaande WordPress berichten.
Author: Spanjeportaal
Requires PHP: 7.4
*/
:root{--red:#b72b25;--gold:#eab64d;--ink:#252d32;--muted:#65717a;--bg:#f7f7f5}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.65 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto}.wrap{max-width:1200px;margin:auto;padding:0 24px}.site-header{background:white;border-bottom:1px solid #e6e6e6}.head{display:flex;align-items:center;justify-content:space-between;padding-top:20px;padding-bottom:20px;gap:20px}.brand{font-size:27px;font-weight:850;letter-spacing:-1px}.brand b{color:var(--red)}.custom-logo{max-height:62px;width:auto}.nav{border-top:1px solid #eee}.nav ul{display:flex;flex-wrap:wrap;gap:22px;list-style:none;padding:12px 0;margin:0;font-size:14px;font-weight:650}.hero{background:linear-gradient(115deg,#76251e,#bf4330 72%,#d89b48);color:white;padding:55px 0}.hero h1{font-size:clamp(30px,5vw,52px);line-height:1.12;margin:0 0 12px}.hero p{margin:0 0 24px;font-size:19px}.search-form{display:flex;gap:8px;max-width:680px}.search-field,input,textarea,select{font:inherit;border:1px solid #d5d9dc;border-radius:7px;padding:10px;max-width:100%}.search-field{flex:1;min-width:0}button,.btn,input[type=submit],.search-submit{background:var(--red);color:white;border:0;border-radius:7px;padding:10px 17px;font:inherit;font-weight:650;cursor:pointer;display:inline-block}.hero .search-submit{background:#242d32}.btn:hover{color:white;background:#86221d}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:26px 0}.tile,.post-card,.panel,.sp-item{background:white;border:1px solid #e6e6e6;border-radius:12px;padding:20px}.tile{display:flex;gap:12px;align-items:center;font-weight:700}.tile span{font-size:25px}.section{margin:36px 0}.section h2{font-size:26px;margin:0 0 17px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.post-card{padding:0;overflow:hidden}.post-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.post-card .inner{padding:17px}.post-card h2,.post-card h3{font-size:19px;line-height:1.35;margin:5px 0}.meta{font-size:13px;color:var(--muted)}.lead{grid-column:span 2}.content{background:white;padding:clamp(18px,4vw,48px);border-radius:12px;margin:30px 0}.content h1{line-height:1.2;font-size:clamp(28px,4vw,42px)}.content a:not(.btn){color:var(--red)}.content img{height:auto}.regions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.footer{margin-top:50px;background:#232c30;color:#eee;padding:35px 0}.footer a{color:white}.footer ul{list-style:none;padding:0;display:flex;gap:16px;flex-wrap:wrap}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}.sp-form label{display:block;font-weight:600;margin:12px 0 4px}.sp-form input:not([type=checkbox]),.sp-form textarea,.sp-form select{width:100%}.sp-form{max-width:700px}.sp-item{margin:12px 0}.sp-item h3{margin:0}.sp-notice{padding:12px;background:#fff3d4;border-radius:8px;margin:12px 0}.pagination{margin:24px 0}.wp-block-image img{max-width:100%}@media(max-width:750px){.quick,.regions{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr 1fr}.lead{grid-column:auto}.head{flex-wrap:wrap}.wrap{padding:0 16px}.head{padding-top:15px;padding-bottom:15px}.nav ul{gap:12px}.tile{padding:12px;font-size:14px}}@media(max-width:480px){.cards{grid-template-columns:1fr}.hero{padding:32px 0}.brand{font-size:23px}} 
/* Portal visual layout */
:root{--red:#b8382b;--ink:#222b32;--muted:#68717a;--bg:#fff}body{background:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wrap{max-width:1180px}.site-header{border-bottom:1px solid #ebe8e3}.head{padding-top:22px;padding-bottom:22px}.nav ul{gap:28px;padding:13px 0}.portal-home{padding-top:28px}.portal-hero{overflow:hidden;border-radius:16px;background:#f7f0e5;text-align:center}.hero-photo{display:block;width:100%;height:clamp(150px,23vw,300px);object-fit:cover}.photo-placeholder{background:linear-gradient(165deg,#b7d9de 0%,#dce9dc 45%,#e0cba6 46%,#d5af80 70%,#78b3b5 71%,#a1d1d1 100%)}.hero-copy{padding:27px 25px 32px}.eyebrow{font-size:11px;letter-spacing:2px;color:#986047;font-weight:750}.hero-copy h1{font-size:clamp(29px,4.2vw,48px);letter-spacing:-1.6px;line-height:1.15;margin:7px 0 8px}.hero-copy p{color:#62666b;margin:0 0 21px;font-size:17px}.portal-search{display:flex;align-items:center;gap:12px;max-width:720px;margin:auto;background:white;border:1px solid #e6ddd1;padding:7px 8px 7px 16px;border-radius:10px;box-shadow:0 3px 12px #50351b08}.portal-search svg{width:21px;height:21px;color:#74797d;flex-shrink:0}.portal-search input{border:0;background:transparent;min-width:0;flex:1;padding:8px 0;outline-offset:3px}.portal-search button{padding:9px 22px}.portal-quick{gap:12px;margin:20px 0 40px}.portal-quick .tile{min-height:100px;justify-content:center;flex-direction:column;gap:8px;padding:13px;border:1px solid #e6e5e2;border-radius:11px;transition:background .15s,border .15s}.portal-quick .tile span{font-size:14px}.portal-quick svg{width:30px;height:30px;color:#a84133}.portal-quick .tile:hover{background:#fbf4ee;border-color:#d6a297}.portal-home .section{margin:38px 0 48px}.portal-home .section-head{margin-bottom:17px}.portal-home .section-head h2{margin:0;letter-spacing:-.6px;font-size:25px}.section-head>a{font-size:14px;color:var(--red);font-weight:650}.post-card{border-color:#e9e7e4;box-shadow:0 2px 6px #00000004}.post-card .inner{padding:17px 18px 20px}.post-card h3{font-size:18px;line-height:1.4;margin:8px 0}.post-card img{aspect-ratio:16/10}.community-list{border:1px solid #e9e7e4;border-radius:12px;overflow:hidden}.community-line{display:flex;align-items:center;gap:13px;padding:16px 19px;border-bottom:1px solid #eee}.community-line:last-child{border:0}.community-line>div{flex:1;min-width:0}.community-avatar{border-radius:50%}.community-line small{display:block;color:var(--muted);font-size:13px}.reply-count{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.reply-count svg{width:19px;height:19px}.community-empty{padding:22px}.community-empty p{margin:5px 0 14px}.portal-regions{gap:17px}.region-card{border:1px solid #e9e7e4;border-radius:12px;overflow:hidden;display:block}.region-card img,.region-placeholder{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.region-placeholder{display:grid;place-items:center;background:linear-gradient(150deg,#f3e5d1,#c8dedb);color:#537d80}.region-placeholder.tone-1{background:linear-gradient(140deg,#d9e8e7,#b1d0dd)}.region-placeholder.tone-2{background:linear-gradient(140deg,#f5e1c4,#ded9ba);color:#9e7950}.region-placeholder svg{width:44px;height:44px}.region-label{display:flex;align-items:center;justify-content:space-between;padding:13px 17px}.region-label span{color:var(--red)}.portal-join{background:#faf5ec;border:1px solid #efe5d6;padding:32px 20px;border-radius:14px;text-align:center}.portal-join h2{margin:0}.portal-join p{color:var(--muted);margin:7px 0 20px}.portal-join .btn{min-width:210px}.footer{background:#f8f6f2;color:#333;border-top:1px solid #e9e5dd}.footer a{color:#333}a:focus-visible,button:focus-visible{outline:2px solid #a84231;outline-offset:3px}@media(max-width:750px){.portal-home{padding-top:16px}.portal-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.portal-quick .tile{min-height:82px;padding:7px 2px}.portal-quick .tile span{font-size:11px}.portal-quick svg{width:25px;height:25px}.portal-home .section-head h2{font-size:21px}.portal-home .section-head>a{font-size:12px}.hero-copy{padding:20px 12px 23px}.portal-search button{padding:8px 10px}.portal-search input{font-size:13px}.region-label{padding:10px;font-size:13px}.portal-regions{gap:10px}.nav ul{gap:15px}.portal-home .section{margin:30px 0 36px}}@media(max-width:350px){.portal-quick{grid-template-columns:repeat(2,1fr)}}

/* WordPress nested navigation: only top level participates in the flex row. */
.sp-navigation .sp-primary-menu{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;list-style:none;margin:0;padding:12px 0;overflow:visible}
.sp-navigation .sp-primary-menu li{position:relative;list-style:none;margin:0;padding:0;float:none;width:auto}
.sp-navigation .sp-primary-menu li>a{display:block;padding:7px 4px;line-height:1.4;white-space:normal}
.sp-navigation .sp-primary-menu ul.sub-menu,.footer ul ul{display:none!important}
.sp-navigation .sp-primary-menu li:hover>ul.sub-menu,.sp-navigation .sp-primary-menu li:focus-within>ul.sub-menu,.sp-navigation .sp-primary-menu li.sp-open>ul.sub-menu{display:block!important}
.sp-navigation .sp-primary-menu ul.sub-menu{position:absolute;top:100%;left:0;z-index:1000;width:260px;max-width:85vw;background:#fff;border:1px solid #e8e4de;border-radius:8px;box-shadow:0 6px 24px #0002;padding:6px;margin:0;gap:0}
.sp-navigation .sp-primary-menu ul.sub-menu li>a{padding:9px 12px;font-size:14px}
.sp-navigation .sp-primary-menu ul.sub-menu ul.sub-menu{top:0;left:100%}
.sp-navigation .menu-item-has-children{padding-right:24px!important}
.sp-navigation .sp-menu-toggle{position:absolute;right:0;top:4px;padding:2px 6px;background:transparent;color:#333;border:0;font-size:16px;line-height:1.4}
.sp-navigation .sp-menu-toggle:hover{background:#f5eee7}
@media(max-width:900px){.sp-navigation .sp-primary-menu ul.sub-menu,.sp-navigation .sp-primary-menu ul.sub-menu ul.sub-menu{position:static;width:auto;max-width:100%;box-shadow:none;margin:4px 0}.sp-navigation .sp-primary-menu{align-items:flex-start}.sp-navigation .sp-primary-menu li:hover:not(.sp-open)>ul.sub-menu,.sp-navigation .sp-primary-menu li:focus-within:not(.sp-open)>ul.sub-menu{display:none!important}}

.sp-site-header{background:#fff;border-bottom:1px solid #ebe8e3}.sp-brandbar{display:flex!important;visibility:visible!important;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}.sp-brandbar .brand,.sp-brandbar .custom-logo-link{display:inline-block!important;visibility:visible!important}.sp-account{display:flex;align-items:center;gap:16px;font-weight:650;font-size:14px}.sp-site-header .nav{border-top:1px solid #eee}.portal-hero .hero-photo{height:clamp(125px,15vw,190px)}.hero-copy{padding:18px 20px 22px}.hero-copy h1{font-size:clamp(25px,3.2vw,40px)}.hero-copy p{margin-bottom:14px}.portal-quick{margin:16px 0 28px}.portal-quick .tile{min-height:80px}.portal-home .section{margin:28px 0 36px}.sp-no-photo .region-placeholder{aspect-ratio:auto;height:64px}.sp-no-photo .region-placeholder svg{width:26px;height:26px}.sp-footer-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:24px}.sp-footer-grid ul{display:block;margin:10px 0}.sp-footer-grid li{margin:5px 0}.sp-footer-bottom{border-top:1px solid #e1ddd5;padding-top:16px;margin-top:20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.sp-footer-bottom span{margin-left:auto}@media(max-width:650px){.sp-footer-grid{grid-template-columns:1fr 1fr}.sp-brandbar{flex-wrap:wrap}.sp-account{gap:10px}.portal-quick .tile{min-height:68px}}

.sp14-header .sp14-identity{display:flex!important;position:relative!important;height:auto!important;min-height:64px;opacity:1!important;visibility:visible!important;overflow:visible!important}.sp14-header .sp14-identity .brand{color:#222b32!important;display:inline-block!important}.sp14-header .sp14-identity .brand b{color:#b8382b!important}.sp14-header .sp-account{display:flex!important;visibility:visible!important;opacity:1!important}.portal-hero .hero-photo{height:clamp(110px,13vw,165px)}.portal-regions{grid-template-columns:repeat(3,minmax(0,1fr))}.region-card img{aspect-ratio:16/8;object-fit:cover}.portal-regions .region-card:last-child:nth-child(3n+1){grid-column:auto}@media(max-width:650px){.portal-regions{grid-template-columns:repeat(2,minmax(0,1fr))}.sp14-header .sp14-identity{min-height:56px}}

.portal-regions .region-card img,.portal-regions .region-placeholder{height:auto;aspect-ratio:16/9;object-fit:cover}.sp-photo-credit{font-size:11px;color:#68717a;margin:5px 0 0;padding:0 12px}.sp-photo-credit a{text-decoration:underline}.sp-photo-credits{font-size:12px;margin:20px 0;color:#68717a}

.sp-photo-wrap,.sp-region-wrap{position:relative;min-width:0}.sp-region-wrap>.region-card{height:100%;display:block}.sp-image-credit{position:absolute;top:8px;right:8px;z-index:3;font-size:12px;line-height:1.4;text-align:left}.sp-image-credit summary{list-style:none;cursor:pointer;background:rgba(255,255,255,.9);color:#333;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;margin-left:auto}.sp-image-credit summary::-webkit-details-marker{display:none}.sp-image-credit div{background:white;color:#333;border:1px solid #ddd;border-radius:6px;padding:10px;width:min(250px,65vw);box-shadow:0 3px 12px #0002}.sp-image-credit a{color:#333;text-decoration:underline}.sp-photo-wrap .hero-photo{display:block;width:100%;object-position:center 55%;height:clamp(150px,19vw,245px)}

/* Preserve the complete supplied panoramic banner. */
.portal-hero .sp-photo-wrap .hero-photo{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center}

.sp-region-credits{margin:28px 0 0;padding-top:16px;border-top:1px solid #e9e7e4;font-size:13px;color:#68717a}.sp-region-credits summary{cursor:pointer}.sp-region-credits li{margin:5px 0}.sp-region-credits a{text-decoration:underline}

/* Search and archive pagination */
main.wrap.sp-archive-main{margin:36px auto 48px}.sp-archive-main .pagination{margin:32px 0 0}.sp-archive-main .nav-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}.sp-archive-main .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px 13px;border:1px solid #e6e2dc;border-radius:8px;background:#fff;color:var(--ink);font-weight:600;line-height:1.2}.sp-archive-main .page-numbers.current{background:var(--red);border-color:var(--red);color:#fff}.sp-archive-main a.page-numbers:hover{background:#fbf4ee;border-color:var(--red);color:var(--red)}.sp-archive-main .page-numbers.dots{border:0;background:transparent;min-width:22px;padding:4px}.sp-archive-main .page-numbers.prev,.sp-archive-main .page-numbers.next{padding-inline:16px}.sp-home-news-actions{text-align:center;margin:25px 0 0}.sp-home-news-more{min-width:210px;color:#fff}.sp-home-news-more[hidden]{display:none}.sp-home-news-more[aria-busy=true]{opacity:.65;cursor:wait}.sp-home-news-status{font-size:14px;color:var(--red);margin:8px 0 0}.sp-home-news-status:empty{display:none}.sp-archive-main a.page-numbers:focus-visible,.sp-home-news-more:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@media(max-width:480px){.sp-archive-main .nav-links{gap:5px}.sp-archive-main .page-numbers{min-width:34px;min-height:38px;padding:6px 9px}.sp-archive-main .page-numbers.prev,.sp-archive-main .page-numbers.next{padding-inline:9px}}

/* Compact mobile navigation; desktop layout unchanged. */
.sp-mobile-controls{display:none}
@media(max-width:900px){
.sp-site-header .wrap{padding-inline:16px}
.sp14-header .sp14-identity{flex-wrap:wrap;gap:8px;min-height:0;padding-block:10px}
.sp14-header .custom-logo-link{max-width:calc(100% - 104px);flex:0 1 auto}
.sp14-header .custom-logo{display:block;width:auto;max-width:100%;max-height:48px}
.sp14-header .brand{font-size:21px}
.sp-mobile-ready .sp-mobile-controls{display:flex;gap:5px;margin-left:auto;align-items:center}
.sp-mobile-toggle{display:grid;place-items:center;width:44px;height:44px;padding:8px;background:#fff;color:var(--ink);border:1px solid #e6e2dc;border-radius:8px}
.sp-mobile-toggle svg{width:24px;height:24px}.sp-mobile-toggle[aria-expanded=true]{background:#f5eee2;color:var(--red)}
.sp-mobile-ready .sp14-header .sp-account{display:none!important;order:3;flex:0 0 100%;padding:10px 0 2px;justify-content:flex-end}
.sp-mobile-ready .sp14-header .sp-account.sp-mobile-open{display:flex!important}
.sp-mobile-ready .sp-navigation:not(.sp-mobile-open){display:none!important}
.sp-mobile-ready .sp-navigation .sp-primary-menu{display:block;padding:6px 0;max-height:65vh;overflow-y:auto}
.sp-mobile-ready .sp-navigation .sp-primary-menu li>a{padding:10px 8px;min-height:44px}
.sp-mobile-ready .sp-navigation .sp-primary-menu>li{border-bottom:1px solid #eee}
.sp-mobile-ready .sp-navigation .sp-primary-menu>li:last-child{border-bottom:0}
.sp-mobile-ready .sp-navigation .sp-menu-toggle{min-width:40px;min-height:36px;top:3px}
.sp-mobile-ready .sp-navigation .sp-primary-menu ul.sub-menu{margin-left:10px}
.portal-home.wrap{padding-inline:14px;padding-top:12px}
.portal-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 22px}
.portal-quick .tile{min-height:66px;padding:9px;gap:5px}.portal-quick .tile span{font-size:13px}
.hero-copy{padding:14px 12px 16px}.hero-copy h1{font-size:clamp(23px,5vw,32px);line-height:1.2}.hero-copy p{font-size:14px;margin:8px 0 12px}
.portal-search{max-width:100%;gap:6px}.portal-search input{min-width:0;width:100%;font-size:14px}.portal-search button{flex-shrink:0;padding:8px 11px;font-size:14px}
.portal-home .section-head{flex-wrap:wrap;gap:5px}.portal-home .section-head h2{font-size:20px}
.portal-regions{grid-template-columns:repeat(2,minmax(0,1fr))}.region-label{overflow-wrap:anywhere;gap:5px}
}
@media(max-width:600px){.portal-home .cards{grid-template-columns:minmax(0,1fr)}.portal-home .post-card{min-width:0}}

@media(max-width:750px){.sp-site-header .sp-brandbar{padding-block:7px;gap:8px}.sp-mobile-news-page.content{margin:10px 0 24px;padding:8px 0 16px}.sp-mobile-news-page.content>h1{font-size:27px;margin:0 0 14px;line-height:1.2}main.wrap:has(.sp-mobile-news-page){padding-inline:14px}}

.sp581-news-ad{grid-column:1/-1;min-width:0}.sp581-content-layout:has(.sp581-side-ad){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:24px;align-items:start}.sp581-side-ad{min-width:0}@media(max-width:850px){.sp581-content-layout:has(.sp581-side-ad){grid-template-columns:minmax(0,1fr)}}
