/*
Theme Name: WinkelSpeelgoed
Theme URI: https://winkelspeelgoed.nl
Author: Redactie
Author URI: https://winkelspeelgoed.nl
Description: Warme crèmekleuren, tomaatrood en teal met blokvormige kaarten en stevige randen: een rustige maar vrolijke gids voor speelgoed per leeftijd, met grote leesbare tekst.
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: winkelspeelgoed
*/

:root{--ws-ink:#2b2118;--ws-stripe:linear-gradient(90deg,#c62d1c 0 25%,#ffc233 25% 50%,#0b6b66 50% 75%,#2563a8 75% 100%);--ws-shadow:4px 4px 0 var(--ws-ink)}
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 #2563a8;outline-offset:3px;border-radius:6px}
.ws-dark :where(a,button,input,summary):focus-visible{outline-color:#ffc233}

/* header */
.ws-header{background:#fff;padding-block:.5rem;border-bottom:5px solid;border-image:var(--ws-stripe) 1}
.ws-header-inner{gap:.25rem 1rem!important;min-height:60px;flex-wrap:nowrap!important}
.ws-brand{gap:.5rem!important;align-items:center;flex:none}
.ws-brand svg{display:block;flex:none}
.ws-brand .wp-block-site-title{margin:0;line-height:1}
.ws-brand a{display:inline-flex;align-items:center;min-height:44px}
.ws-header-tools{gap:.25rem!important;align-items:center}
.ws-header .wp-block-navigation-item__content{padding:.6rem .7rem;min-height:44px;display:flex;align-items:center;text-decoration:none;border-radius:12px}
.ws-header .wp-block-navigation-item__content:hover{background:#ffecc4;color:var(--ws-ink)}
.ws-header .wp-block-search__button{min-width:46px;min-height:46px;color:var(--ws-ink);fill:var(--ws-ink);background:#ffecc4;border:3px solid var(--ws-ink);border-radius:14px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.ws-header .wp-block-search__button:hover{background:#ffc233}
.ws-header .wp-block-navigation__responsive-container-open{color:var(--ws-ink);min-width:46px;min-height:46px;align-items:center;justify-content:center;background:#ffecc4;border:3px solid var(--ws-ink);border-radius:14px}
.ws-header .wp-block-search__inside-wrapper{border:3px solid var(--ws-ink);border-radius:14px;background:#fff}
.ws-header .wp-block-search__input{border:0;background:transparent;color:var(--ws-ink);min-height:40px;padding:0 .9rem}
/* hamburger below 1100px (six links do not fit beside the logo before that) */
@media (max-width:1099px){
 .ws-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 .ws-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex!important}
}
@media (min-width:1100px){.ws-header .wp-block-navigation__responsive-container-open{display:none!important}}
@media (max-width:479px){.ws-header .wp-block-site-title{font-size:1.2rem!important}.ws-brand svg{width:38px;height:38px}}
.wp-block-navigation__responsive-container.is-menu-open{padding:1.25rem}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.25rem;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-weight:800}

/* hero */
.ws-hero{background:#ffecc4;background-image:radial-gradient(circle,#f2cf86 2px,transparent 2.6px);background-size:26px 26px;border-bottom:4px solid var(--ws-ink);padding-block:clamp(2rem,5vw,4.5rem);overflow:hidden}
.ws-hero h1{margin:0}
.ws-hero h1 em{font-style:normal;color:#c62d1c;background:linear-gradient(transparent 62%,#ffc233 62%);padding-inline:.1em}
.ws-eyebrow{display:inline-block;font-size:.9375rem;font-weight:800;letter-spacing:.04em;background:#fff;border:3px solid var(--ws-ink);border-radius:999px;padding:.25rem .9rem;margin:0 0 .5rem}
.ws-hero-lead{font-size:1.25rem;max-width:36rem;margin-top:1rem}
.ws-age-label{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-weight:800;font-size:1.125rem;margin:1.5rem 0 .6rem}
.ws-ages{gap:.6rem!important}
.ws-ages .wp-block-button__link{min-height:52px;display:inline-flex;align-items:center;justify-content:center;color:var(--ws-ink);box-shadow:3px 3px 0 var(--ws-ink);transition:transform .12s ease,box-shadow .12s ease;padding:.55rem 1.1rem}
.ws-ages .wp-block-button:nth-child(1) .wp-block-button__link{background:#ffc233}
.ws-ages .wp-block-button:nth-child(2) .wp-block-button__link{background:#fff}
.ws-ages .wp-block-button:nth-child(3) .wp-block-button__link{background:#bfe3df}
.ws-ages .wp-block-button:nth-child(4) .wp-block-button__link{background:#ffd1c9}
.ws-ages .wp-block-button:nth-child(5) .wp-block-button__link{background:#cfe0f5}
.ws-ages .wp-block-button__link:hover,.ws-ages .wp-block-button__link:focus{color:var(--ws-ink);transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ws-ink);filter:brightness(.97)}
.ws-ages .wp-block-button__link:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ws-ink)}
.ws-hero-note{margin-top:1.1rem;font-size:1.0625rem}
.ws-hero-art{display:flex;justify-content:center}
.ws-hero-art svg{width:min(100%,380px);height:auto}
@media (max-width:781px){.ws-hero-art svg{width:min(62%,220px)}.ws-hero .wp-block-columns{gap:1rem}}
@media (max-width:599px){
 .ws-hero-lead{font-size:1.125rem}
 .ws-ages{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ws-ages .wp-block-button{width:100%;margin:0}
 .ws-ages .wp-block-button:last-child{grid-column:1/-1}
 .ws-ages .wp-block-button__link{width:100%;box-sizing:border-box}
}

/* sections */
.ws-section{padding-block:clamp(2.5rem,5vw,4rem)}
.ws-section-head{margin-bottom:1.5rem}
.ws-section-head h2{margin:0}
.ws-section-intro{margin:.4rem 0 0;color:#5a4d42;max-width:40rem}

/* cards */
.ws-card{position:relative;box-sizing:border-box;background:#fff;border:3px solid var(--ws-ink);border-radius:24px;padding:1.25rem;box-shadow:var(--ws-shadow);transition:transform .15s ease,box-shadow .15s ease}
.ws-card:hover,.ws-card:focus-within{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ws-ink)}
.ws-card:focus-within{outline:3px solid #2563a8;outline-offset:4px}
.ws-card h3{margin:0;font-size:clamp(1.25rem,1.1rem + .5vw,1.5rem);line-height:1.25;overflow-wrap:anywhere;hyphens:auto}
.ws-card h3 a{color:var(--ws-ink);text-decoration:none}
.ws-card h3 a:hover{text-decoration:underline;text-decoration-thickness:3px}
.ws-card h3 a::after{content:"";position:absolute;inset:0;border-radius:21px}
.ws-card h3 a:focus-visible{outline:none}
.ws-card p{margin:.5rem 0 0}

/* tiles */
.ws-tile{display:flex;flex-direction:column;min-height:11rem;padding:1.15rem}
.ws-tile p{font-size:1rem;line-height:1.5}
.ws-tile .ws-go{font-weight:800;margin-top:auto;padding-top:.9rem;font-size:1rem}
.ws-badge{width:3.25rem;height:3.25rem;border-radius:16px;background:#fff;color:var(--ws-ink);border:3px solid var(--ws-ink);display:grid;place-items:center;margin:0 0 .8rem}
.ws-badge svg{display:block}
.ws-tile h3,.ws-tile h3 a,.ws-tile p{color:inherit}
.ws-t1{background:#c62d1c;color:#fff}
.ws-t2{background:#0b6b66;color:#fff}
.ws-t3{background:#ffc233;color:var(--ws-ink)}
.ws-t4{background:#2563a8;color:#fff}
.ws-t5{background:#3f7d20;color:#fff}
.ws-t1 :where(h3,a,p),.ws-t2 :where(h3,a,p),.ws-t4 :where(h3,a,p),.ws-t5 :where(h3,a,p){color:#fff}
.ws-t3 :where(h3,a,p){color:var(--ws-ink)}
.ws-tile h3 a:focus-visible::after{outline:3px solid var(--ws-ink);outline-offset:3px;box-shadow:0 0 0 3px #fff}

/* grids */
.wp-block-group.ws-tiles,.wp-block-group.ws-grid4{display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem;width:100%;max-width:none}
.wp-block-group.ws-tiles>*,.wp-block-group.ws-grid4>*{margin:0!important;max-width:none}
@media (min-width:520px){.wp-block-group.ws-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-tiles>:last-child{grid-column:1/-1}.wp-block-group.ws-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:780px){.wp-block-group.ws-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.ws-tiles>*{grid-column:span 2}.ws-tiles>:nth-child(4){grid-column:2/span 2}.ws-tiles>:nth-child(5){grid-column:4/span 2}}
@media (min-width:1100px){.wp-block-group.ws-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}.ws-tiles>*,.ws-tiles>:nth-child(4),.ws-tiles>:nth-child(5){grid-column:auto}.wp-block-group.ws-grid4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.wp-block-group.ws-tiles{max-width:var(--wp--style--global--wide-size,1200px);margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}

/* post cards */
.wp-block-post-template{gap:1.25rem}
.wp-block-post-template>li{display:flex;margin:0}
.ws-post-card{width:100%;display:flex;flex-direction:column;gap:.5rem}
.ws-post-card>*{margin-block:0!important}
.ws-post-card .wp-block-post-featured-image{margin:-.25rem -.25rem .35rem!important}
.ws-post-card .wp-block-post-featured-image img{border-radius:16px;width:100%;border:3px solid var(--ws-ink);box-sizing:border-box}
.ws-post-card .wp-block-post-excerpt__more-link{display:none}
.ws-post-card .wp-block-post-date{margin-top:auto!important;padding-top:.5rem}
.ws-kicker,.ws-kicker a{font-size:.8125rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#9f2214;text-decoration:none;position:relative;z-index:2}
.ws-kicker a{display:inline-block;padding-block:.6rem;margin-block:-.6rem}
.ws-kicker{margin:0}
.ws-kicker a:hover{text-decoration:underline}

/* page heads */
.ws-pagehead{padding-block:clamp(2rem,5vw,3.5rem) 1.5rem}
.ws-pagehead h1{margin:0}
.ws-pagehead::after{content:"";display:block;width:96px;height:8px;border-radius:8px;background:var(--ws-stripe);margin-top:1.1rem}
.ws-pagehead .wp-block-term-description,.ws-pagehead .wp-block-term-description p{font-size:1.1875rem;max-width:42rem;color:#5a4d42}
.ws-pagehead .wp-block-term-description{margin-top:.75rem}
.ws-meta{gap:.35rem .5rem!important;color:#5a4d42;font-size:1rem;margin-top:.75rem}
.ws-meta p{margin:0}
.ws-article-head .wp-block-post-terms{margin:0}
.ws-article-head h1{margin-top:.5rem}
.ws-feature img{border-radius:24px;width:100%;height:auto;border:3px solid var(--ws-ink);box-sizing:border-box;box-shadow:var(--ws-shadow)}

/* article typography */
.ws-article{padding-bottom:2rem}
.ws-article>*+*{margin-top:1.3rem}
.ws-article h2{margin-top:2.8rem;scroll-margin-top:1rem}
.ws-article h2::before{content:"";display:inline-block;width:.55em;height:.55em;border-radius:.16em;background:#c62d1c;margin-right:.45em;vertical-align:.02em;box-shadow:.15em .15em 0 var(--ws-ink)}
.ws-article h3{margin-top:2rem;color:#0b6b66}
.ws-article ul,.ws-article ol{padding-left:1.5rem}
.ws-article li{margin-top:.45rem}
.ws-article li::marker{color:#c62d1c;font-weight:800}
.ws-article img{border-radius:16px}
.ws-article figcaption{font-size:1rem;color:#5a4d42}
.ws-article details{background:#fff;border:3px solid var(--ws-ink);border-radius:16px;padding:.25rem 1rem}
.ws-article summary{cursor:pointer;font-weight:800;min-height:48px;display:flex;align-items:center}
.ws-article details[open] summary{color:#c62d1c}

/* tables */
.wp-block-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-block:1.75rem;border:3px solid var(--ws-ink);border-radius:16px;background:#fff}
.wp-block-table table{border-collapse:collapse;table-layout:auto;width:100%;min-width:560px;font-size:1rem}
.wp-block-table.alignwide table{min-width:760px}
.wp-block-table th{background:#0b6b66;color:#fff;text-align:left;padding:.75rem .95rem;font-weight:800;border:0}
.wp-block-table td{padding:.7rem .95rem;border:0;border-bottom:1px solid #e6d9c3}
.wp-block-table td,.wp-block-table th{word-break:normal;overflow-wrap:normal;hyphens:manual;vertical-align:top}
.wp-block-table tbody tr:nth-child(even) td{background:#fff3dc}
.wp-block-table tbody tr:last-child td{border-bottom:0}
.wp-block-table figcaption{padding:.5rem .95rem;margin:0}
.alignwide.wp-block-table{max-width:100%}

/* separator */
.wp-block-separator{border:0!important;height:5px;background:var(--ws-stripe);border-radius:5px;opacity:1}

/* pagination */
.wp-block-query-pagination{gap:.5rem;margin-top:2.25rem}
.wp-block-query-pagination a,.wp-block-query-pagination .page-numbers{min-width:46px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 .8rem;border-radius:14px;font-weight:800;text-decoration:none;border:3px solid transparent;color:var(--ws-ink)}
.wp-block-query-pagination .page-numbers.current{background:var(--ws-ink);color:#fff}
.wp-block-query-pagination a:hover{background:#ffecc4;border-color:var(--ws-ink)}

/* trust strip */
.ws-trust{background:#e4f1ef;border-block:4px solid var(--ws-ink)}
.ws-trust .ws-section{padding-block:clamp(2.5rem,5vw,4rem)}
.ws-trust-card{padding:1.15rem}
.ws-trust-card .ws-num{width:2.75rem;height:2.75rem;border-radius:50%;background:#ffc233;border:3px solid var(--ws-ink);display:grid;place-items:center;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-weight:800;font-size:1.25rem;line-height:1;margin:0 0 .75rem}
.ws-trust-card:nth-child(2) .ws-num{background:#ffd1c9}
.ws-trust-card:nth-child(3) .ws-num{background:#bfe3df}
.ws-trust-card:nth-child(4) .ws-num{background:#cfe0f5}
.ws-trust-card:hover,.ws-trust-card:focus-within{transform:none;box-shadow:var(--ws-shadow)}
.ws-trust-card p{font-size:1.0625rem}

/* search on content pages */
.ws-search .wp-block-search__inside-wrapper{border:3px solid var(--ws-ink);border-radius:16px;background:#fff;padding:3px;max-width:34rem}
.ws-search .wp-block-search__input{border:0;min-height:46px;padding:0 1rem;background:transparent;font-size:1.0625rem}
.ws-search .wp-block-search__button{background:#c62d1c;color:#fff;border:0;border-radius:12px;min-height:46px;padding:0 1.25rem;font-weight:800;margin:0}
.ws-search .wp-block-search__button:hover{background:#9f2214}

/* footer */
.ws-dark{background:var(--ws-ink);color:#fff8ec}
.ws-dark :where(p,li){color:#fff8ec}
.ws-dark a{color:#fff8ec}
.ws-dark a:hover{color:#ffc233}
.ws-footer{padding-top:clamp(2.5rem,5vw,4rem);margin-top:0;border-top:8px solid;border-image:var(--ws-stripe) 1}
.ws-footer h2{font-size:1rem;letter-spacing:.06em;text-transform:uppercase;color:#ffc233;margin:0 0 .5rem}
.ws-footer-list{list-style:none;padding:0;margin:0}
.ws-footer-list li{margin:0}
.ws-footer-list a{display:inline-block;padding-block:.65rem;text-decoration:none}
.ws-footer-list a:hover{text-decoration:underline}
.ws-footer-bottom{border-top:1px solid rgba(255,248,236,.25);margin-top:2rem;padding-block:1.25rem;font-size:1rem}
.ws-footer-bottom p{margin:0}

@media (max-width:600px){
 .ws-card{padding:1rem;border-radius:20px}
 .wp-block-table table{min-width:480px}
}
