/*
Theme Name: MijnKaartje
Theme URI: https://mijnkaartje.nl
Author: Redactie
Author URI: https://mijnkaartje.nl
Description: Donker navy met gele accenten voor verzamelkaarten: kaartvormige tegels met foil-rand, leesbare gidsen en een telefoon-eerst opzet.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mijnkaartje
*/

:root{--kk-foil:linear-gradient(135deg,#ffd23f 0%,#ff8fc4 28%,#7fb0ff 55%,#7be3c4 78%,#ffd23f 100%);}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
img,svg{max-width:100%;height:auto}
:where(a,button,input,summary,[tabindex]):focus-visible{outline:3px solid #1b45c9;outline-offset:3px;border-radius:4px}
.kk-dark :where(a,button,input,summary):focus-visible{outline-color:#ffd23f}

/* dark areas */
.kk-dark{background:linear-gradient(160deg,#0b1437 0%,#18255c 100%);color:#fff}
.kk-dark :where(h1,h2,h3,h4,p,li){color:#fff}
.kk-dark a{color:#fff}
.kk-dark a:hover{color:#ffd23f}
.kk-dark .wp-block-button__link,.kk-dark .wp-block-button__link:hover{color:#0b1437}
.kk-dark .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border:2px solid #fff}
.kk-dark .is-style-outline .wp-block-button__link:hover{background:#fff;color:#0b1437}

/* header */
.kk-header{padding-block:.5rem;border-bottom:3px solid #ffd23f}
.kk-header-inner{gap:.25rem 1rem!important;min-height:56px}
.kk-brand{gap:.5rem!important;align-items:center}
.kk-brand svg{display:block;flex:none}
.kk-brand .wp-block-site-title{margin:0;line-height:1}
.kk-brand a{display:inline-flex;align-items:center;min-height:44px}
.kk-header .wp-block-navigation-item__content{padding:.6rem .7rem;min-height:44px;display:flex;align-items:center;text-decoration:none}
.kk-header .wp-block-navigation-item__content:hover{color:#ffd23f}
.kk-header .wp-block-search__button{min-width:44px;min-height:44px;color:#fff;background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center}
.kk-header .wp-block-search__button{fill:#fff}
.kk-header .wp-block-navigation__responsive-container-open{color:#fff;min-width:44px;min-height:44px;align-items:center;justify-content:center}
@media (min-width:600px){.kk-header .wp-block-navigation__responsive-container-open{display:none!important}}
@media (max-width:599px){.kk-header .wp-block-navigation__responsive-container-open{display:inline-flex}.kk-header .wp-block-site-title{font-size:1.2rem!important}.kk-header-inner{flex-wrap:nowrap!important}}
.kk-header .wp-block-search__inside-wrapper{background:#fff;border-radius:999px;padding:2px}
.kk-header .wp-block-search__input{border:0;background:transparent;color:#0b1437;min-height:40px;padding:0 .9rem}
.kk-header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__button{background:transparent}
.kk-header .wp-block-search__button.has-icon{padding:0}
.kk-header .wp-block-search__inside-wrapper .wp-block-search__button{color:#0b1437;fill:#0b1437}

/* hero */
.kk-hero{padding-block:clamp(2.5rem,6vw,5rem);overflow:hidden;position:relative}
.kk-hero h1{color:#fff;margin:0}
.kk-hero h1 em{font-style:normal;color:#ffd23f}
.kk-eyebrow{font-size:.9375rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffd23f!important;margin:0}
.kk-hero-lead{font-size:1.25rem;max-width:34rem;color:#e6eaff!important}
.kk-hero-art{display:flex;justify-content:center}
.kk-hero-art svg{width:min(100%,360px);height:auto}
@media (max-width:781px){.kk-hero-art svg{width:min(70%,240px)}}

/* section titles */
.kk-section{padding-block:clamp(2.5rem,5vw,4rem)}
.kk-section-head{margin-bottom:1.25rem}
.kk-section-head h2{margin:0}

/* foil cards */
.kk-card{position:relative;box-sizing:border-box;border:2px solid transparent;border-radius:18px;padding:1.25rem;
 background:linear-gradient(#fff,#fff) padding-box,var(--kk-foil) border-box;
 box-shadow:0 1px 2px rgba(11,20,55,.08),0 10px 24px -14px rgba(11,20,55,.35);transition:transform .18s ease,box-shadow .18s ease}
.kk-card:hover,.kk-card:focus-within{transform:translateY(-3px);box-shadow:0 2px 4px rgba(11,20,55,.1),0 16px 30px -14px rgba(11,20,55,.45)}
.kk-card:focus-within{outline:3px solid #1b45c9;outline-offset:3px}
.kk-card h3{margin:0;font-size:clamp(1.25rem,1.1rem + .5vw,1.5rem);line-height:1.25;overflow-wrap:anywhere;hyphens:auto}
.kk-card h3 a{color:#0b1437;text-decoration:none}
.kk-card h3 a::after{content:"";position:absolute;inset:0;border-radius:18px}
.kk-card h3 a:focus-visible{outline:none}
.kk-card p{margin:.5rem 0 0}
.kk-tile{display:flex;flex-direction:column;justify-content:space-between;min-height:9rem}
.kk-tile .kk-go{font-weight:800;color:#1b45c9;margin-top:1rem}
.kk-tile .kk-badge{width:2.75rem;height:2.75rem;border-radius:12px;display:grid;place-items:center;margin:0 0 .75rem;font-size:1.4rem;font-weight:800;color:#0b1437}
.kk-t1 .kk-badge{background:#ffd23f}.kk-t2 .kk-badge{background:#9cc0ff}.kk-t3 .kk-badge{background:#ff9fb6}.kk-t4 .kk-badge{background:#8fe6cb}.kk-t5 .kk-badge{background:#d3b8ff}
.kk-dark-card{background:linear-gradient(#18255c,#18255c) padding-box,var(--kk-foil) border-box;color:#fff}
.kk-dark-card h3,.kk-dark-card h3 a,.kk-dark-card p{color:#fff}

/* post cards */
.wp-block-post-template>li{display:flex}
.kk-post-card{width:100%;display:flex;flex-direction:column;gap:.5rem}
.kk-post-card .wp-block-post-featured-image{margin:-.25rem -.25rem .25rem}
.kk-post-card .wp-block-post-featured-image img{border-radius:12px;width:100%}
.kk-post-card .wp-block-post-excerpt{margin:0}
.kk-post-card .wp-block-post-excerpt__more-link{display:none}
.kk-post-card .wp-block-post-date{margin-top:auto;padding-top:.5rem}
.kk-kicker,.kk-kicker a{font-size:.8125rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#1b45c9;text-decoration:none;position:relative;z-index:2}
.kk-kicker a{display:inline-block;padding-block:.6rem;margin-block:-.6rem}
.kk-kicker{margin:0}

/* page heads */
.kk-pagehead{padding-block:clamp(2rem,5vw,3.5rem) 1.5rem}
.kk-pagehead h1{margin:0}
.kk-pagehead .wp-block-term-description,.kk-pagehead .wp-block-term-description p{font-size:1.1875rem;max-width:42rem;color:#454b70}
.kk-meta{gap:.35rem .5rem!important;color:#454b70;font-size:.9375rem;margin-top:.75rem}
.kk-meta p{margin:0}
.kk-article-head .wp-block-post-terms a{display:inline-block;padding-block:.6rem;margin-block:-.6rem;font-weight:800;font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;text-decoration:none}
.kk-article-head h1{margin-top:.5rem}
.kk-feature img{border-radius:18px;width:100%;height:auto}

/* article typography */
.kk-article{padding-bottom:2rem}
.kk-article>*+*{margin-top:1.25rem}
.kk-article h2{margin-top:2.6rem;scroll-margin-top:1rem}
.kk-article h3{margin-top:2rem}
.kk-article ul,.kk-article ol{padding-left:1.4rem}
.kk-article li{margin-top:.4rem}
.kk-article li::marker{color:#1b45c9;font-weight:800}
.kk-article h3{border-left:5px solid #ffd23f;padding-left:.75rem}
.kk-article img{border-radius:12px}
.kk-article figcaption{font-size:.9375rem;color:#454b70}
.kk-article details{background:#fff;border:1px solid #d5daee;border-radius:12px;padding:.25rem 1rem}
.kk-article summary{cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center}

/* tables: scroll on small screens, zebra, header */
.wp-block-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-block:1.75rem;border:1px solid #d5daee;border-radius:12px;background:#fff}
.wp-block-table table{border-collapse:collapse;width:100%;min-width:30rem;font-size:1rem}
.wp-block-table th{background:#0b1437;color:#fff;text-align:left;padding:.7rem .9rem;font-weight:800}
.wp-block-table td{padding:.65rem .9rem;border:0;border-bottom:1px solid #e3e7f5}
.wp-block-table tbody tr:nth-child(even) td{background:#f1f4fd}
.wp-block-table tbody tr:last-child td{border-bottom:0}
.wp-block-table figcaption{padding:.5rem .9rem;margin:0}
.alignwide.wp-block-table{max-width:100%}

/* separator = foil line */
.wp-block-separator{border:0!important;height:3px;background:var(--kk-foil);border-radius:3px;opacity:1}

/* pagination */
.wp-block-query-pagination{gap:.5rem;margin-top:2rem}
.wp-block-query-pagination a,.wp-block-query-pagination .page-numbers{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 .75rem;border-radius:999px;font-weight:800;text-decoration:none}
.wp-block-query-pagination .page-numbers.current{background:#0b1437;color:#fff}
.wp-block-query-pagination a:hover{background:#e3e7f5}

/* tips + trust */
.kk-tip-num{font-family:ui-rounded,system-ui,sans-serif;font-weight:800;font-size:2.5rem;line-height:1;color:#ffd23f!important;margin:0}
.kk-trust .kk-card h3{margin-top:.25rem}

/* search on content pages */
.kk-search .wp-block-search__inside-wrapper{border:2px solid #0b1437;border-radius:999px;background:#fff;padding:3px}
.kk-search .wp-block-search__input{border:0;min-height:44px;padding:0 1rem;background:transparent}
.kk-search .wp-block-search__button{background:#0b1437;color:#fff;border:0;border-radius:999px;min-height:44px;padding:0 1.25rem;font-weight:800}

/* footer */
.kk-footer{padding-top:clamp(2.5rem,5vw,4rem);margin-top:0;border-top:3px solid #ffd23f}
.kk-footer h2{font-size:1rem;letter-spacing:.08em;text-transform:uppercase;color:#ffd23f;margin:0 0 .5rem}
.kk-footer-list{list-style:none;padding:0;margin:0}
.kk-footer-list li{margin:0}
.kk-footer-list a{display:inline-block;padding-block:.65rem;text-decoration:none}
.kk-footer-list a:hover{text-decoration:underline}
.kk-footer-bottom{border-top:1px solid rgba(255,255,255,.2);margin-top:2rem;padding-block:1.25rem;font-size:.9375rem}
.kk-footer-bottom p{color:#cfd6f5!important;margin:0}

@media (max-width:600px){
 .kk-card{padding:1rem}
 .wp-block-table table{min-width:26rem}
}

/* category tiles: 1 col phone, 2 col, 3+2 centered, 5 across */
.wp-block-group.kk-tiles,.wp-block-group.kk-grid3{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;width:100%;max-width:none}
.wp-block-group.kk-tiles>*,.wp-block-group.kk-grid3>*{margin:0!important;max-width:none}
@media (min-width:640px){.wp-block-group.kk-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.wp-block-group.kk-grid3>:last-child:nth-child(odd){grid-column:1/-1}}
@media (min-width:900px){.wp-block-group.kk-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.wp-block-group.kk-grid3>:last-child:nth-child(odd){grid-column:auto}}
@media (min-width:520px){.wp-block-group.kk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.kk-tiles>:last-child{grid-column:1/-1}}
@media (min-width:780px){.wp-block-group.kk-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.kk-tiles>*{grid-column:span 2}.kk-tiles>:nth-child(4){grid-column:2/span 2}.kk-tiles>:nth-child(5){grid-column:4/span 2}}
@media (min-width:1100px){.wp-block-group.kk-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}.kk-tiles>*,.kk-tiles>:nth-child(4),.kk-tiles>:nth-child(5){grid-column:auto}}
.kk-tile .kk-badge{width:2.75rem;height:2.75rem;border-radius:12px;display:grid;place-items:center;margin:0 0 .75rem}
@media (max-width:599px){
 .kk-hero .wp-block-buttons{flex-direction:column;align-items:stretch}
 .kk-hero .wp-block-button{width:100%}
 .kk-hero .wp-block-button__link{display:block;text-align:center;min-height:48px}
 .kk-hero-lead{font-size:1.125rem}
}

/* Wide grids inside full-width sections: keep them on the 1200px wide track. */
.wp-block-group.kk-grid3.alignwide,
.wp-block-group.kk-tiles {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
	box-sizing: border-box;
}

/* Article tables: natural column widths, no mid-word breaks, scroll sideways on small screens. */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { table-layout: auto; width: 100%; min-width: 560px; }
.wp-block-table.alignwide table { min-width: 760px; }
.wp-block-table td, .wp-block-table th { word-break: normal; overflow-wrap: normal; hyphens: manual; vertical-align: top; }
