/* ==========================================================================
   IPTV guides per device (inc/devices.php, 2026-10-13), prefix hg-:
   device cards (/handleidingen/), device pages (/handleidingen/<device>/) with
   the preview, and the full article. Site palette through the Elementor global
   colours (fallback: tokens.css); type sizes follow the site rule
   (H1 40 · H2 35 · H3 30 px, mobile 32 · 28 · 24).
   ========================================================================== */
.hg-page,
.hg-single,
.hg-devices,
.hg-guides,
.hg-nav,
.hg-backbar-wrap {
	--hg-dark: var(--e-global-color-sxdark, #0A1D16);
	--hg-dark2: var(--e-global-color-sxdark2, #0E2A20);
	--hg-surface: var(--e-global-color-sxsurface, #133227);
	--hg-border-d: var(--e-global-color-sxborderd, #24473A);
	--hg-text-d: var(--e-global-color-sxtextd, #F3F7F4);
	--hg-muted-d: var(--e-global-color-sxmutedd, #A7B9B0);
	--hg-light: var(--e-global-color-sxlight, #EFF4F1);
	--hg-white: var(--e-global-color-sxwhite, #FFFFFF);
	--hg-border-l: var(--e-global-color-sxborderl, #DAE4DE);
	--hg-ink: var(--e-global-color-sxink, #1E6B3A);
	--hg-icon-bg: var(--e-global-color-sxiconbg, #E1EDE4);
	--hg-text: var(--e-global-color-primary, #0D1B15);
	--hg-muted: var(--e-global-color-secondary, #4A5B53);
	--hg-accent: var(--e-global-color-accent, #BDF967);
	--hg-accent-h: var(--e-global-color-sxaccenth, #AAE84F);
}
.hg-page,
.hg-single { background: var(--hg-light); font-family: var(--f-body, "Inter", sans-serif); }
/* Full width: Hello limits .site-main to 1140 px on pages not built with Elementor. */
body main.site-main:is(.hg-page, .hg-single) { width: 100%; max-width: none; margin: 0; padding: 0; }
.hg-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
.hg-wrap--narrow { max-width: 884px; }

/* ---- Shared bits ---- */
.hg-icon {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--e-global-color-accent, #BDF967);
	color: var(--e-global-color-sxdark, #0A1D16);
}
.hg-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hg-icon--logo { overflow: hidden; background: var(--e-global-color-sxwhite, #FFFFFF); }
.hg-icon--logo img { width: 70%; height: 70%; object-fit: contain; }
.hg-icon--lg { width: 68px; height: 68px; }
.hg-icon--lg svg { width: 34px; height: 34px; }
.hg-icon--placeholder { width: 72px; height: 72px; }
.hg-icon--placeholder svg { width: 36px; height: 36px; }
.hg-eyebrow { margin: 0 0 10px; color: var(--hg-accent); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.hg-title {
	margin: 0;
	color: var(--hg-text-d);
	font-family: var(--e-global-typography-sxh1-font-family, "Outfit"), sans-serif;
	font-size: var(--e-global-typography-sxh1-font-size, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.hg-meta { margin: 16px 0 0; color: var(--hg-muted-d); font-size: 14px; }
.hg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--hg-accent);
	color: var(--hg-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.hg-btn:hover { background: var(--hg-accent-h); color: var(--hg-dark); }
.hg-btn--ghost { border-color: var(--hg-border-l); background: transparent; color: var(--hg-text); }
.hg-btn--ghost:hover { border-color: var(--hg-ink); background: transparent; color: var(--hg-ink); }
.hg-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--hg-border-l);
	border-radius: 999px;
	background: var(--hg-white);
	color: var(--hg-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}
.hg-chip:hover { border-color: var(--hg-ink); color: var(--hg-ink); }
:is(.hg-page, .hg-single, .hg-devices, .hg-guides, .hg-nav, .hg-backbar-wrap) :is(a, button):focus-visible { outline: 2px solid var(--hg-ink); outline-offset: 3px; }
:is(.hg-hero, .hg-preview, .hg-backbar-wrap--top) :is(a, button):focus-visible { outline-color: var(--hg-accent); }

/* ---- Device cards (Elementor widget "Apparaten (TV Provider)") ---- */
.hg-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hg-devices__item { margin: 0; }
.hg-device {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 22px 22px 22px 20px;
	border: 1px solid var(--hg-border-l);
	border-radius: 18px;
	background: var(--hg-white);
	box-shadow: 0 14px 34px -22px rgba(7, 21, 15, 0.35);
	color: var(--hg-text);
	text-decoration: none;
	box-sizing: border-box;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hg-device:hover { border-color: var(--hg-ink); box-shadow: 0 18px 36px -18px rgba(7, 21, 15, 0.45); color: var(--hg-text); transform: translateY(-4px); }
.hg-device__text { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.hg-device__name { font-family: var(--e-global-typography-sxcard-font-family, "Outfit"), sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
.hg-device__count { color: var(--hg-muted); font-size: 14px; line-height: 1.4; }
.hg-device__go {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--hg-icon-bg);
	color: var(--hg-ink);
	transition: transform 0.2s ease;
}
.hg-device__go svg { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.hg-device:hover .hg-device__go { transform: translateX(3px); }

/* ---- Device page: title band ---- */
.hg-hero {
	padding: 56px 0 48px;
	background: var(--hg-dark) radial-gradient(55% 80% at 85% 0%, color-mix(in srgb, var(--hg-accent) 8%, transparent), transparent 70%);
	color: var(--hg-text-d);
}
.hg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; color: var(--hg-muted-d); font-size: 14px; }
.hg-crumbs a { color: var(--hg-text-d); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hg-accent) 60%, transparent); text-underline-offset: 3px; }
.hg-crumbs a:hover { color: var(--hg-accent); }
.hg-hero__head { display: flex; align-items: center; gap: 20px; }
.hg-lead { max-width: 62ch; margin-top: 20px; color: var(--hg-text-d); font-size: 18px; line-height: 1.6; }
.hg-lead p { margin: 0; }

/* ---- Device page: guide cards ---- */
.hg-list { padding: 56px 0; }
.hg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin: 0; padding: 0; list-style: none; }
.hg-cards__item { margin: 0; }
/* Each guide: round picture with a thin green border, text centred below (no card box). */
.hg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	color: var(--hg-text);
	text-align: center;
	text-decoration: none;
}
.hg-card:hover { color: var(--hg-text); }
.hg-card__media {
	display: grid;
	place-items: center;
	width: min(100%, 300px);
	aspect-ratio: 1;
	overflow: hidden;
	border: 3px solid var(--hg-ink);
	border-radius: 50%;
	background: var(--hg-dark);
	box-shadow: 0 0 0 14px color-mix(in srgb, var(--hg-ink) 6%, transparent);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hg-card:hover .hg-card__media { box-shadow: 0 0 0 14px color-mix(in srgb, var(--hg-ink) 12%, transparent); transform: translateY(-4px); }
/* Whole picture inside the circle, over a blurred copy of itself (--hg-card-img, set in taxonomy-samen_apparaat.php). */
.hg-card__media { position: relative; isolation: isolate; }
.hg-card__media::before { content: ""; position: absolute; inset: -12%; z-index: -1; background: var(--hg-card-img, none) center / cover no-repeat; filter: blur(18px) brightness(0.85); }
.hg-card__media img { width: 100%; height: 100%; object-fit: contain; }
.hg-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; gap: 8px; padding: 30px 8px 0; }
.hg-card__type { color: var(--hg-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hg-card__title { font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.hg-card__text { color: var(--hg-muted); font-size: 15px; line-height: 1.55; }
.hg-card__more { margin-top: auto; padding-top: 6px; color: var(--hg-ink); font-size: 15px; font-weight: 600; }

/* Device without guides yet. */
.hg-empty {
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 720px;
	margin-inline: auto;
	padding: 40px 32px;
	border: 1px solid var(--hg-border-l);
	border-radius: 18px;
	background: var(--hg-white);
	color: var(--hg-muted);
	text-align: center;
	box-sizing: border-box;
}
.hg-empty p { max-width: 54ch; margin: 0; font-size: 16px; line-height: 1.6; }
.hg-empty .hg-empty__title { color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; }
.hg-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* Other devices. */
.hg-others { margin-top: 40px; }
.hg-others__label { margin: 0 0 12px; color: var(--hg-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hg-others ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ---- Preview ---- */
.hg-preview {
	width: min(640px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 0;
	overflow: auto;
	border: 1px solid var(--hg-border-d);
	border-radius: 20px;
	background: var(--hg-dark);
	color: var(--hg-text-d);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.hg-preview::backdrop { background: rgba(7, 21, 15, 0.72); }
.hg-preview[open] { animation: hg-in 0.2s ease; }
@keyframes hg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hg-preview__box { position: relative; }
.hg-preview .hg-preview__box button.hg-preview__close { /* Beats the Elementor kit button style. */
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--hg-border-d);
	border-radius: 50%;
	background: color-mix(in srgb, var(--hg-dark) 80%, transparent);
	color: var(--hg-text-d);
	cursor: pointer;
}
.hg-preview .hg-preview__box button.hg-preview__close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hg-preview .hg-preview__box button.hg-preview__close:hover { border-color: var(--hg-accent); background: var(--hg-dark); color: var(--hg-accent); }
.hg-preview__media { aspect-ratio: 16 / 9; background: var(--hg-surface); }
.hg-preview__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hg-preview__body { display: grid; gap: 12px; padding: 28px 32px 32px; }
.hg-preview__type { margin: 0; padding-right: 48px; color: var(--hg-accent); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hg-preview__title { margin: 0; color: var(--hg-text-d); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2; }
.hg-preview__intro { margin: 0; color: var(--hg-muted-d); font-size: 16px; line-height: 1.6; }
.hg-preview__more { justify-self: start; margin-top: 8px; }

/* ---- Full article ---- */
.hg-hero--single { padding: 48px 0 44px; }
/* Title band with its own picture (field "Fond du bandeau titre", inc/hero-background.php) under a dark green veil. */
.hg-hero--bg { position: relative; isolation: isolate; background: var(--hg-dark) var(--hg-hero-bg) center / cover no-repeat; }
.hg-hero--bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--hg-dark) 94%, transparent) 0%, color-mix(in srgb, var(--hg-dark) 84%, transparent) 55%, color-mix(in srgb, var(--hg-dark) 66%, transparent) 100%);
}
.hg-article { padding: 40px 0 56px; background: var(--hg-white); }
.hg-article__image { margin: 0 0 32px; overflow: hidden; border-radius: 18px; }
.hg-article__image img { display: block; width: 100%; height: auto; }
.hg-article__content { color: var(--hg-muted); font-size: 17px; line-height: 1.7; }
.hg-article__content > * + * { margin-top: 1em; }
.hg-article__content :is(h2, h3, h4) { margin: 1.6em 0 0.5em; color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.hg-article__content h2 { font-size: var(--e-global-typography-sxh2-font-size, 35px); }
.hg-article__content h3 { font-size: var(--e-global-typography-sxh3-font-size, 30px); }
.hg-article__content h4 { font-size: 20px; }
.hg-article__content a { color: var(--hg-ink); text-decoration: underline; text-underline-offset: 2px; }
.hg-article__content :is(ul, ol) { padding-inline-start: 1.3em; }
.hg-article__content li + li { margin-top: 6px; }
.hg-article__content li::marker { color: var(--hg-ink); }
.hg-article__content strong { color: var(--hg-text); }
.hg-article__content img { max-width: 100%; height: auto; border-radius: 14px; }
/* Portrait screenshots (phones) stay readable without filling the screen. */
.hg-article__content figure img { width: auto; max-height: 620px; object-fit: contain; }
.hg-article__content figure { margin-inline: 0; }
.hg-article__content figcaption { margin-top: 8px; color: #5E6F67; font-size: 14px; }
.hg-article__content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hg-accent); color: var(--hg-text); }
.hg-article__content code { padding: 2px 6px; border-radius: 6px; background: var(--hg-light); font-size: 0.9em; }
/* TL;DR box after the intro (block group .hg-tldr in the content). */
.hg-article__content .hg-tldr { margin: 1.6em 0; padding: 20px 24px 18px; border: 1px solid var(--hg-border-l); border-left: 5px solid var(--hg-accent); border-radius: 14px; background: var(--hg-light); }
.hg-article__content .hg-tldr > * + * { margin-top: 0.5em; }
.hg-article__content .hg-tldr__title { margin: 0; color: var(--hg-ink); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hg-article__content .hg-tldr__title strong { color: inherit; }
.hg-article__content .hg-tldr ul { margin: 0; }
.hg-article__content .hg-tldr li { color: var(--hg-text); }
/* TL;DR = clickable summary: each item jumps to its H2 (anchors added to the headings). */
.hg-article__content .hg-tldr a { color: var(--hg-text); text-decoration: none; background-image: linear-gradient(var(--hg-accent), var(--hg-accent)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.2s ease, color 0.2s ease; }
.hg-article__content .hg-tldr a:hover,
.hg-article__content .hg-tldr a:focus-visible { color: var(--hg-ink); background-size: 100% 2px; }
.hg-article__content h2[id] { scroll-margin-top: 110px; }
html:has(.hg-single) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.hg-single) { scroll-behavior: auto; } }

/* Way back to the device list. */
.hg-backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 24px; font-size: 15px; }
.hg-backbar__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.hg-backbar__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.hg-backbar__more { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hg-backbar__all { text-decoration: underline; text-underline-offset: 3px; }
.hg-hero .hg-backbar { color: var(--hg-muted-d); }
.hg-hero .hg-backbar :is(.hg-backbar__back, .hg-backbar__all) { color: var(--hg-accent); }
:is(.hg-hero, .hg-backbar-wrap--top) .hg-chip { border-color: var(--hg-border-d); background: transparent; color: var(--hg-text-d); }
:is(.hg-hero, .hg-backbar-wrap--top) .hg-chip:hover { border-color: var(--hg-accent); color: var(--hg-accent); }
.hg-article .hg-backbar-wrap { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hg-border-l); }
.hg-article .hg-backbar { margin: 0; color: var(--hg-muted); }
.hg-article .hg-backbar :is(.hg-backbar__back, .hg-backbar__all) { color: var(--hg-ink); }
/* Above a guide built with Elementor. */
.hg-backbar-wrap--top { padding: 14px 32px; background: var(--hg-dark); }
.hg-backbar-wrap--top .hg-backbar { max-width: 1176px; margin: 0 auto; color: var(--hg-muted-d); }
.hg-backbar-wrap--top .hg-backbar :is(.hg-backbar__back, .hg-backbar__all) { color: var(--hg-accent); }

/* ---- Tablet / mobile ---- */
@media (max-width: 1024px) {
	.hg-wrap { padding-inline: 24px; }
	.hg-devices,
	.hg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.hg-cards { gap: 40px 24px; }
	.hg-hero { padding: 48px 0 40px; }
	.hg-list { padding: 48px 0; }
}
@media (max-width: 767px) {
	.hg-wrap { padding-inline: 16px; }
	.hg-devices,
	.hg-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.hg-cards { gap: 40px; }
	.hg-card__media { width: min(100%, 260px); }
	.hg-device { padding: 18px 16px; }
	.hg-hero { padding: 40px 0 32px; }
	.hg-hero__head { align-items: flex-start; gap: 14px; }
	.hg-icon--lg { width: 56px; height: 56px; }
	.hg-icon--lg svg { width: 28px; height: 28px; }
	.hg-list { padding: 40px 0; }
	.hg-empty { padding: 32px 20px; }
	.hg-empty__actions .hg-btn { width: 100%; }
	.hg-preview__body { padding: 22px 20px 24px; }
	.hg-preview__title { font-size: 24px; }
	.hg-preview__more { justify-self: stretch; }
	.hg-article { padding: 28px 0 40px; }
	.hg-article__content { font-size: 16px; }
	.hg-backbar-wrap--top { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.hg-device,
	.hg-card__media,
	.hg-device__go,
	.hg-btn { transition: none; }
	.hg-device:hover,
	.hg-card:hover .hg-card__media { transform: none; }
	.hg-preview[open] { animation: none; }
}
