/* IT Insights nieuws-stijl — tokens gespiegeld aan GeneratePress Global Colors.
   Stel de huisstijl in via Customizer → Kleuren → Global Colors; hier alleen fallbacks. */

:root {
	--paper: var(--base-3, #ffffff);
	--ink: var(--contrast, #1a1a1a);
	--accent: var(--accent, #0a5fd7); /* eigen accent — geen NOS-rood */
	--accent-2: var(--accent-2, #f2b705);
	--surface: var(--base-2, #f4f6f8);
	--radius: 10px;
	--radius-card: .25rem;      /* NOS ShadowedBox */
	--reader-width: 42rem;      /* NOS leeskolom */
	--media-width: 51.125rem;   /* NOS brede media-container */
	--hairline: #dddddd;
	--card-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* ===== Artikel (NOS-stramien) ===== */
.gpc-article__reader { max-width: var(--reader-width); margin: 0 auto; padding: 0 1rem; }
.gpc-article__wide { max-width: var(--media-width); margin-left: auto; margin-right: auto; }

/* Topblok: meta → H1, deelknop absoluut rechtsboven. */
.gpc-article__top { position: relative; margin: 1rem auto 1.25rem; padding-right: 3.5rem; }
@media (min-width: 48rem) { .gpc-article__top { margin-top: 2rem; } }

.gpc-article__source { color: var(--ink); opacity: .65; font-size: .875rem; margin: 0 0 .5rem; }
.gpc-article__title {
	font-size: 1.375rem; line-height: 1.25; font-weight: 700; margin: 0;
}
@media (min-width: 48rem) { .gpc-article__title { font-size: 1.75rem; } }

.gpc-share-toggle {
	position: absolute; top: -.625rem; right: .125rem;
	background: var(--paper); border: 1px solid var(--hairline); border-radius: 50%;
	width: 2.25rem; height: 2.25rem; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.gpc-share-toggle:hover { border-color: var(--accent); color: var(--accent); }

.gpc-article__media { position: relative; margin: 0 auto 1.5rem; }
.gpc-article__img, .gpc-article__inline-media img { width: 100%; height: auto; display: block; }
.gpc-credit-badge {
	position: absolute; right: .5rem; bottom: .5rem;
	background: rgba(0,0,0,.65); color: #fff; font-size: .7rem;
	padding: .15rem .5rem; border-radius: 4px;
}

.gpc-author { margin: 0 0 1rem; }
.gpc-author__card { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.gpc-author__avatar { border-radius: 50%; }
.gpc-author__name { font-weight: 600; }

.gpc-article__lead { font-size: 1.25rem; font-weight: 700; line-height: 1.5; margin: 0 0 1.5rem; }

.gpc-inshort {
	background: var(--surface); border-left: 4px solid var(--accent);
	border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.gpc-inshort__head { font-size: 1rem; margin: 0 0 .5rem; }

/* NOS-tekstmaat: 1.125rem / 1.65, ruime alinea-afstand, accent-links met underline-offset. */
.gpc-article__body p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 1.5rem; }
@media (min-width: 48rem) { .gpc-article__body p { font-size: 1.125rem; margin-bottom: 2rem; } }
.gpc-article__body a,
.gpc-article__origin a {
	color: var(--accent); text-decoration: underline;
	text-decoration-thickness: 1px; text-underline-offset: .25rem;
}
.gpc-article__body h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; }
@media (min-width: 48rem) { .gpc-article__body h2 { font-size: 1.375rem; } }
.gpc-article__inline-media { position: relative; margin: 1.5rem 0 2rem; }
.gpc-article__inline-media figcaption { font-size: .85rem; opacity: .7; margin-top: .35rem; }
.gpc-article__embed-intro { font-style: italic; }
/* SoundCloud-embed compact houden: standaard visual player is veel te hoog. */
.gpc-article__listen { margin: 0 0 2rem; }
.gpc-article__listen iframe { width: 100%; height: 166px !important; max-height: 166px; }

/* Advertentieblok (AdPlugg). */
.gpc-ad { margin: 2rem 0; text-align: center; }
.gpc-ad__label {
	display: block; margin-bottom: .375rem;
	font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
	color: var(--ink); opacity: .55;
}
.gpc-ad img, .gpc-ad iframe { max-width: 100%; }
.gpc-article__video { margin: 1.5rem 0 2rem; }
.gpc-article__video iframe, .gpc-article__video video { width: 100%; aspect-ratio: 16/9; }

/* "Lees ook" als NOS ShadowedBox: titel links, thumbnail (7rem, 4:3) rechts. */
.gpc-related {
	background: var(--paper); border-radius: var(--radius-card);
	box-shadow: var(--card-shadow); padding: 1rem 1rem .5rem; margin: 2rem 0;
}
.gpc-related__head { font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; }
.gpc-related ul { list-style: none; margin: 0; padding: 0; }
.gpc-related li + li { border-top: 1px solid var(--hairline); }
.gpc-related a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .75rem 0; text-decoration: none; color: var(--ink);
}
.gpc-related__title { font-weight: 700; line-height: 1.35; }
.gpc-related a:hover .gpc-related__title { color: var(--accent); }
.gpc-related__thumb { width: 7rem; aspect-ratio: 4/3; height: auto; object-fit: cover; border-radius: var(--radius-card); flex: none; }

/* Rubriekkaart (NOS MetaFooter): icoon links, naam, pijl rechts. */
.gpc-rubriek-card {
	display: flex; align-items: center; gap: .75rem;
	background: var(--paper); border-radius: var(--radius-card);
	box-shadow: var(--card-shadow); padding: .875rem 1rem; margin: 2rem 0;
	text-decoration: none; color: var(--ink); font-weight: 700;
}
.gpc-rubriek-card__arrow { margin-left: auto; transition: transform .15s ease; }
.gpc-rubriek-card:hover .gpc-rubriek-card__arrow { transform: translateX(.25rem); color: var(--accent); }

/* Deel-rij: 2.25rem cirkels met hairline-rand, accent op hover (NOS share list). */
.gpc-share { display: flex; align-items: center; gap: .625rem; margin: 2rem 0; flex-wrap: wrap; }
.gpc-share__label { font-weight: 700; }
.gpc-share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--paper); color: var(--ink); border: 1px solid var(--hairline);
	text-decoration: none; font-weight: 700; cursor: pointer; font-size: .85rem;
}
.gpc-share__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.gpc-article__origin { font-size: .9rem; margin-bottom: 2rem; }

/* ===== Homepage ===== */
.gpc-pills { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; }
.gpc-pills::-webkit-scrollbar { display: none; }
.gpc-pill {
	flex: none; background: var(--surface); color: var(--ink);
	border-radius: 999px; padding: .4rem 1rem; text-decoration: none; font-size: .9rem;
}
.gpc-pill:hover, .gpc-pill--active { background: var(--accent); color: #fff; }

.gpc-home__top { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 800px) { .gpc-home__top { grid-template-columns: 1fr; } }

.gpc-hero { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.gpc-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpc-hero__overlay {
	position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.25rem;
	background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.gpc-hero__title { color: #fff; margin: 0; font-size: clamp(1.25rem, 3vw, 1.9rem); }

.gpc-rail__head { font-size: 1rem; margin: 0 0 .5rem; }
.gpc-rail ul { list-style: none; margin: 0; padding: 0; border-left: 2px dotted var(--accent); }
.gpc-rail li { padding: .4rem 0 .4rem .9rem; }
.gpc-rail a { text-decoration: none; color: var(--ink); display: block; }
.gpc-rail time { font-size: .78rem; color: var(--accent); font-weight: 700; margin-right: .4rem; }
.gpc-rail__cat { display: block; font-size: .75rem; opacity: .6; }

.gpc-section { margin: 2rem 0; }
.gpc-section--tinted { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.gpc-section__bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.gpc-section__head { margin: 0; font-size: 1.25rem; }
.gpc-section__more { color: var(--accent); text-decoration: none; font-weight: 600; }

.gpc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gpc-card { display: block; text-decoration: none; color: var(--ink); }
.gpc-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.gpc-card__title { font-size: 1rem; margin: .5rem 0 .25rem; }
.gpc-card__excerpt { font-size: .85rem; opacity: .75; margin: 0; }

.gpc-carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.gpc-video-card { position: relative; flex: 0 0 260px; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.gpc-video-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.gpc-video-card__play {
	position: absolute; top: 33%; left: 50%; transform: translate(-50%, -50%);
	background: rgba(0,0,0,.6); color: #fff; border-radius: 50%;
	width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
}
.gpc-video-card__title { font-size: .95rem; margin: .4rem 0 0; }

.gpc-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .gpc-grid-2x2 { grid-template-columns: 1fr; } }
.gpc-card--wide { display: grid; grid-template-columns: 120px 1fr; gap: .75rem; align-items: center; }
.gpc-card--wide .gpc-card__img { aspect-ratio: 1; }

/* ===== Archief / categorie ===== */
.gpc-archive { padding-top: .5rem; }
.gpc-archive__head { margin: 1rem 0 1.5rem; max-width: 46rem; }
.gpc-archive__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .5rem; }
.gpc-archive__desc { color: var(--ink); opacity: .7; font-size: 1rem; line-height: 1.5; }
.gpc-archive__desc p { margin: 0; }

.gpc-archive__grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem 1.25rem; margin-bottom: 2rem;
}

/* Lead: eerste artikel over de volle breedte, beeld + tekst naast elkaar. */
.gpc-lead {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center;
	text-decoration: none; color: var(--ink);
	background: var(--paper); border-radius: var(--radius-card);
	box-shadow: var(--card-shadow); overflow: hidden;
}
@media (max-width: 700px) { .gpc-lead { grid-template-columns: 1fr; gap: 0; } }
.gpc-lead__img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; }
.gpc-lead__body { padding: 1.25rem 1.5rem; }
.gpc-lead__title { font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.25; margin: .25rem 0 .5rem; }
.gpc-lead:hover .gpc-lead__title, .gpc-card:hover .gpc-card__title { color: var(--accent); text-decoration: underline; text-underline-offset: .25rem; }
.gpc-lead__excerpt { font-size: 1rem; line-height: 1.55; opacity: .8; margin: 0; }

.gpc-card__meta { display: flex; gap: .5rem; align-items: baseline; font-size: .78rem; opacity: .65; margin: .5rem 0 .15rem; }
.gpc-card__cat { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* Paginering: cirkel/pill-knoppen met hairline, accent voor huidige pagina. */
.gpc-pagination { margin: 2rem 0; }
.gpc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.gpc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.25rem; height: 2.25rem; padding: 0 .75rem;
	border: 1px solid var(--hairline); border-radius: 999px;
	background: var(--paper); color: var(--ink);
	text-decoration: none; font-weight: 600; font-size: .9rem;
}
.gpc-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.gpc-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.gpc-pagination .page-numbers.dots { border: 0; background: none; }

/* ===== Product reviews ===== */
.gpc-reviews__list { display: grid; gap: 1.5rem; margin-bottom: 2rem; }

.gpc-review {
	display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 1.5rem;
	background: var(--paper); border-radius: var(--radius-card);
	box-shadow: var(--card-shadow); overflow: hidden;
}
@media (max-width: 700px) { .gpc-review { grid-template-columns: 1fr; gap: 0; } }

.gpc-review__media { position: relative; display: block; }
.gpc-review__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }

.gpc-review__score {
	position: absolute; left: .75rem; bottom: .75rem;
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; border-radius: 50%;
	background: var(--accent); color: #fff;
	font-weight: 700; font-size: 1.25rem;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gpc-review__score--inline { position: static; flex: none; }
.gpc-review__score-sr { font-weight: 700; opacity: 1; }

.gpc-review__body { padding: 1rem 1.5rem 1.25rem; }
@media (max-width: 700px) { .gpc-review__body { padding: 1rem 1.25rem 1.25rem; } }
.gpc-review__title { font-size: 1.25rem; line-height: 1.3; margin: .15rem 0 .5rem; }
.gpc-review__title a { color: var(--ink); text-decoration: none; }
.gpc-review__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25rem; }

.gpc-review__verdict { font-size: 1rem; line-height: 1.55; margin: 0 0 .75rem; }
.gpc-review__verdict-label { font-weight: 700; }

.gpc-review__points { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin: 0 0 .75rem; }
@media (max-width: 540px) { .gpc-review__points { grid-template-columns: 1fr; } }
.gpc-review__plus, .gpc-review__min { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 1.45; }
.gpc-review__plus li, .gpc-review__min li { padding-left: 1.4rem; position: relative; margin-bottom: .3rem; }
.gpc-review__plus li::before {
	content: '+'; position: absolute; left: 0; top: 0;
	font-weight: 700; color: var(--accent-2, #566E3D);
}
.gpc-review__min li::before {
	content: '\2212'; position: absolute; left: 0; top: 0;
	font-weight: 700; color: #a33;
}

.gpc-review__more { margin: 0; font-size: .9rem; }
.gpc-review__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.gpc-review__more a:hover { text-decoration: underline; text-underline-offset: .25rem; }

/* Reviewbox op de artikelpagina zelf. */
.gpc-reviewbox {
	background: var(--paper); border-radius: var(--radius-card);
	box-shadow: var(--card-shadow); border-left: 4px solid var(--accent);
	padding: 1rem 1.25rem; margin: 0 0 2rem;
}
.gpc-reviewbox__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.gpc-reviewbox__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .15rem; }
.gpc-reviewbox__verdict { margin: 0; line-height: 1.5; }

/* ===== Responsive hardening =====
   Voorkomt horizontale scroll en zorgt dat alle componenten netjes
   meeschalen op kleine schermen. */

.gpc-article, .gpc-archive, .gpc-home { max-width: 100%; overflow-x: clip; }

/* Grid-/flex-kinderen mogen krimpen (anders duwen lange titels/embeds de layout breed). */
.gpc-archive__grid > *, .gpc-review > *, .gpc-lead > *,
.gpc-home__top > *, .gpc-cards > *, .gpc-grid-2x2 > * { min-width: 0; }

/* Media schaalt altijd mee. */
.gpc-article img, .gpc-archive img, .gpc-home img,
.gpc-article iframe, .gpc-article video, .gpc-article embed, .gpc-article object {
	max-width: 100%; height: auto;
}
.gpc-article__listen iframe, .gpc-article__video iframe, .gpc-article__video video { height: auto; min-height: 0; }
.gpc-article__listen iframe { height: 166px !important; }
.gpc-article__video iframe, .gpc-article__video video { aspect-ratio: 16/9; height: auto; }

/* Lange woorden/URL's breken i.p.v. uitlopen. */
.gpc-article__title, .gpc-article__body, .gpc-card__title, .gpc-lead__title,
.gpc-review__title, .gpc-related__title { overflow-wrap: anywhere; }

/* Tabellen in artikelen scrollen binnen hun eigen kader. */
.gpc-article__body table { display: block; width: 100%; overflow-x: auto; }

@media (max-width: 768px) {
	.gpc-article__reader, .gpc-article__wide { padding-left: 1rem; padding-right: 1rem; }
	.gpc-article__top { padding-right: 3rem; margin-top: .75rem; }
	.gpc-archive { padding-left: .25rem; padding-right: .25rem; }
	.gpc-archive__grid { grid-template-columns: 1fr; gap: 1.25rem; }
	.gpc-lead__img { max-height: 240px; }
	.gpc-lead__body, .gpc-review__body { padding: 1rem 1rem 1.25rem; }
	.gpc-review__img { min-height: 0; max-height: 240px; }
	.gpc-reviewbox__head { flex-wrap: wrap; gap: .75rem; }
	.gpc-share { gap: .5rem; }
	.gpc-pagination .page-numbers { min-width: 2rem; height: 2rem; padding: 0 .5rem; font-size: .85rem; }
	.gpc-pills { padding-left: .25rem; padding-right: .25rem; }
}

@media (max-width: 480px) {
	.gpc-article__title { font-size: 1.25rem; }
	.gpc-article__lead { font-size: 1.1rem; }
	.gpc-article__body p { font-size: 1rem; margin-bottom: 1.25rem; }
	.gpc-related__thumb { width: 5.5rem; }
	.gpc-review__score { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; }
}

/* ===== Toegankelijkheid ===== */
@media (prefers-reduced-motion: reduce) {
	.gpc-carousel { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
