/*
Theme Name: OutOfHands
Text Domain: outofhands
Description: Eigen redactioneel thema voor OutOfHands: toekomsttechnologie, elektrificatie en duiding.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}

/* Compact autonomous dossier overview */
.topic-cards-autonoom {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding-top: 55px;
}
.topic-cards-autonoom article {
	min-height: 165px;
	padding: 17px 18px;
}
.topic-cards-autonoom .topic-symbol {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	font-size: 11px !important;
}
.topic-cards-autonoom article > b {
	right: 16px;
	font-size: 27px;
}
.topic-cards-autonoom h3 {
	font-size: 18px;
	margin: 10px 0 3px;
}
.topic-cards-autonoom p {
	font-size: 12.5px;
	line-height: 1.45;
	margin: 4px 0 8px;
}
.topic-cards-autonoom a {
	font-size: 13px;
}
.home-featured-story{display:grid;grid-template-columns:minmax(300px,42%) 1fr;overflow:hidden;margin:0 0 26px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.055)}.home-featured-story>img{display:block;width:100%;height:100%;min-height:285px;object-fit:cover}.home-featured-story>div{display:flex;flex-direction:column;justify-content:center;padding:30px 32px}.home-featured-story h3{margin:7px 0 12px;font-size:32px;line-height:1.08;letter-spacing:-.025em}.home-featured-story h3 a{color:var(--ink);text-decoration:none}.home-featured-story p{margin:0 0 13px;color:var(--muted);font-size:15px;line-height:1.6}.home-featured-story small{color:var(--muted)}.home-featured-link{margin-top:16px;width:max-content;font-weight:800;text-decoration:none}.home-content-switch{display:flex;gap:9px}.home-content-switch a{padding:10px 17px;border:1px solid var(--line);border-radius:11px;text-decoration:none;font-weight:800;color:var(--ink);background:#fff}.home-content-switch a.active{background:#ede8ff;border-color:#9d82ff;color:#6737e8}.home-editorial-grid{display:grid;grid-template-columns:1.85fr 1fr;gap:24px}.home-block-head{margin-bottom:14px}.home-block-head h3{font-size:25px;margin:4px 0}.home-news-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-article-list{display:grid;grid-template-columns:1fr;gap:14px}.home-editorial-grid .news-card{height:100%}@media(max-width:760px){.home-featured-story{grid-template-columns:1fr;margin-bottom:20px}.home-featured-story>img{height:210px;min-height:0}.home-featured-story>div{padding:20px}.home-featured-story h3{font-size:24px}.latest .section-head{align-items:flex-start;gap:18px}.home-content-switch{width:100%}.home-content-switch a{flex:1;text-align:center}.home-editorial-grid{grid-template-columns:1fr}.home-news-list{grid-template-columns:1fr 1fr;gap:9px}.home-news-list .news-card>div{padding:14px}.home-news-list .news-card h3{font-size:16px}.home-news-list .news-card p{font-size:12px}.home-articles-block{margin-top:14px}}@media(max-width:480px){.home-news-list{grid-template-columns:1fr}}
.news-choice{padding-top:34px;padding-bottom:10px}.news-choice-intro{margin-bottom:18px}.news-choice-intro h2{margin:4px 0 5px;font-size:30px}.news-choice-intro p{margin:0;color:#6b7280}.content-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px}.content-switch.three-way{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.content-switch.three-way a{padding:11px 12px;border-radius:11px;min-width:0}.content-switch.three-way a strong{font-size:16px}.content-switch.three-way a span{font-size:11px;white-space:nowrap}@media(max-width:620px){.content-switch.three-way{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.content-switch.three-way a{padding:9px 6px;align-items:center;text-align:center}.content-switch.three-way a strong{font-size:14px}.content-switch.three-way a span{display:none}}.content-switch a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:17px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-decoration:none}.content-switch a strong{font-size:18px}.content-switch a span{font-size:13px;color:#6b7280;margin-top:2px}.content-switch a.active{background:#ede8ff;border-color:#9d82ff;color:#6737e8}.content-switch a.active span{color:#684ac7}.news-featured-articles{padding-top:34px}.news-featured-list{display:grid;grid-template-columns:1fr;gap:12px}.news-featured-list .news-card{display:grid;grid-template-columns:minmax(180px,30%) 1fr;overflow:hidden}.news-featured-list .news-card img{width:100%;height:100%;min-height:190px;object-fit:cover}.news-featured-list .news-card>div{padding:22px}.news-feed-head{padding-top:46px}.news-feed-head h2{font-size:32px;margin:5px 0 0}@media(max-width:620px){.news-featured-articles{padding-top:28px}.news-featured-list .news-card{grid-template-columns:1fr}.news-featured-list .news-card img{height:190px;min-height:0}.news-feed-head{padding-top:36px}}
.news-choice .content-switch.three-way{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;max-width:620px}.news-choice .content-switch.three-way a{flex:0 1 190px!important;width:auto!important;padding:9px 14px!important;min-height:54px!important}.news-choice .content-switch.three-way a strong{font-size:15px!important}.news-choice .content-switch.three-way a span{font-size:11px!important}@media(max-width:620px){.news-choice .content-switch.three-way{display:flex!important;flex-wrap:nowrap!important;width:100%;gap:5px!important;padding-top:0!important}.news-choice .content-switch.three-way a{flex:1 1 0!important;padding:8px 4px!important;min-height:42px!important;align-items:center!important;text-align:center!important}.news-choice .content-switch.three-way a strong{font-size:13px!important}.news-choice .content-switch.three-way a span{display:none!important}}
.listing-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding-top:34px;padding-bottom:65px}.listing-pagination a{font-weight:800;text-decoration:none}.listing-pagination span{color:#6b7280;font-size:14px}@media(max-width:620px){.content-switch{padding-top:22px}.content-switch a{flex:1;min-width:0}.listing-pagination{gap:12px;justify-content:space-between}.listing-pagination span{font-size:12px}}
@media (max-width: 900px) {
	.topic-cards-autonoom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.topic-cards-autonoom { grid-template-columns: 1fr; gap: 10px; padding-top: 38px; }
	.topic-cards-autonoom article { min-height: 0; padding: 15px 17px; }
}

/* Nieuws: redactionele hiërarchie + onderwerpfilters */
.news-topic-filter{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.news-topic-filter a{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#596274;text-decoration:none;font-size:12px;font-weight:800}
.news-topic-filter a:hover,.news-topic-filter a.active{border-color:#9d82ff;background:#f1edff;color:#6737e8}
.news-editorial{padding-top:34px}
.news-editorial-head{margin-bottom:16px}
.news-editorial-head h2{margin:5px 0 0;font-size:34px}
.news-editorial-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);gap:18px;align-items:stretch}
.news-feature-main{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.055)}
.news-feature-main>img{display:block;width:100%;height:330px;object-fit:cover}
.news-feature-main>div{padding:26px 28px 28px}
.news-feature-main h2{margin:8px 0 12px;font-size:34px;line-height:1.08;letter-spacing:-.025em}
.news-feature-main h2 a,.news-side-item h3 a{color:var(--ink);text-decoration:none}
.news-feature-main p{margin:0 0 14px;color:var(--muted);font-size:15px;line-height:1.6}
.news-feature-main small,.news-side-item small{color:var(--muted)}
.news-editorial-side{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px}
.news-side-item{display:flex;flex-direction:column;justify-content:center;padding:18px 19px;border:1px solid var(--line);border-radius:15px;background:#fff}
.news-side-item h3{margin:7px 0 10px;font-size:19px;line-height:1.22}
.news-side-item .tag,.news-feature-main .tag{width:max-content}
.news-feed-head{padding-top:48px}
.news-feed-head h2{margin:5px 0 0;font-size:32px}
.news-feed-head+.listing-grid{padding-top:18px}
.news-listing-grid .news-card.is-article{border-top:3px solid var(--violet)}
.news-listing-grid .news-card.is-news{border-top:3px solid transparent}
@media(max-width:900px){
	.news-editorial-grid{grid-template-columns:1fr}
	.news-editorial-side{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none}
	.news-feature-main>img{height:280px}
}
@media(max-width:620px){
	.news-topic-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
	.news-topic-filter a{flex:0 0 auto;padding:7px 10px;font-size:11px}
	.news-editorial{padding-top:26px}
	.news-editorial-head h2{font-size:28px}
	.news-editorial-side{grid-template-columns:1fr}
	.news-feature-main>img{height:210px}
	.news-feature-main>div{padding:20px}
	.news-feature-main h2{font-size:25px}
	.news-side-item{padding:15px 16px}
	.news-side-item h3{font-size:17px}
	.news-feed-head{padding-top:36px}
	.news-feed-head h2{font-size:27px}
}

/* Homepage preview: sterker redactioneel hoofditem */
.home-featured-story{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);margin:22px 0 28px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.06)}
.home-featured-story>img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover}
.home-featured-story>div{display:flex;flex-direction:column;justify-content:center;padding:34px}
.home-featured-story h3{margin:7px 0 13px;font-size:32px;line-height:1.08;letter-spacing:-.025em}
.home-featured-story h3 a{color:var(--ink);text-decoration:none}
.home-featured-story p{margin:0 0 14px;color:var(--muted);font-size:15px;line-height:1.65}
.home-featured-story small{color:var(--muted)}
.home-featured-link{margin-top:18px;width:max-content;font-weight:800;text-decoration:none;color:var(--violet)}
@media(max-width:820px){
	.home-featured-story{grid-template-columns:1fr}
	.home-featured-story>img{height:280px;min-height:0}
	.home-featured-story>div{padding:26px}
}
@media(max-width:620px){
	.home-featured-story>img{height:210px}
	.home-featured-story>div{padding:20px}
	.home-featured-story h3{font-size:25px}
}
