/* ==========================================================================
   Apparaten → apps → handleiding (includes/apps.php, 2026-10-15) on
   /iptv-handleidingen/, section "Kies je apparaat". Mobile first, prefix hg-.
   Colours: the --hg-* tokens of devices.css (Elementor global colours,
   tokens.css fallback). Cards keep the look of the device cards.
   ========================================================================== */
.hg-nav { scroll-margin-top: 96px; }
.hg-nav [hidden] { display: none !important; }
.hg-nav__view,
.hg-guide-slot { transition: opacity 0.15s ease; }
.hg-nav--loading :is(.hg-nav__view, .hg-guide-slot) { opacity: 0.55; pointer-events: none; }
.hg-guide-slot { scroll-margin-top: 96px; }

/* ---- 1. Device cards: logo + name (grid, card, hover and arrow from devices.css) ---- */
.hg-nav .hg-device--brand { gap: 16px; min-height: 92px; }
.hg-nav .hg-device--brand .hg-device__name { flex: 1 1 auto; min-width: 0; }
.hg-nav .hg-device--brand .hg-dlogo { flex: none; width: 104px; }
.hg-dlogo { display: flex; align-items: center; justify-content: center; gap: 14px; height: 52px; max-width: 100%; overflow: hidden; }
/* Fixed height per logo, width from its own proportions (beats the theme's img { height: auto } rules). */
.hg-nav .hg-dlogo img.hg-dlogo__img { display: block; flex: none; width: auto; max-width: 100%; height: 28px; max-height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
/* Same visual weight for square marks and long word marks. */
.hg-nav .hg-dlogo img.hg-dlogo__img--apple { height: 42px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--windows { height: 36px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--android { height: 32px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--lg { height: 30px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--mag { height: 28px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--samsung { height: 17px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--android-tv { height: 19px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--formuler { height: 15px; }
.hg-nav .hg-dlogo img.hg-dlogo__img--fire-tv { height: 40px; }
.hg-nav .hg-dlogo--n2 img.hg-dlogo__img { max-width: calc(50% - 7px); }

/* ---- Breadcrumb and head ---- */
.hg-nav__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--hg-muted); font-size: 14px; }
.hg-nav__crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hg-nav .hg-nav__crumbs a { color: var(--hg-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hg-nav .hg-nav__crumbs a[aria-current] { color: var(--hg-text); text-decoration: none; }
.hg-nav .hg-nav__crumbs a:hover { color: var(--hg-ink); text-decoration-thickness: 2px; }
.hg-nav__sep { color: var(--hg-muted); }

.hg-nav__head { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.hg-nav__head .hg-dlogo { flex: none; width: 104px; height: 64px; padding: 10px; border: 1px solid var(--hg-border-l); border-radius: 16px; background: var(--hg-white); box-sizing: border-box; }
.hg-nav__head .hg-dlogo__img { max-height: 100%; }
.hg-nav__head .hg-dlogo--icon { border: 0; padding: 0; background: none; width: auto; }
.hg-nav__headtext { min-width: 0; }
.hg-nav .hg-nav__eyebrow { margin: 0 0 4px; color: var(--hg-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }
.hg-nav .hg-nav__title { margin: 0; color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.hg-nav__title:focus { outline: none; }

/* ---- 2. App cards: logo + name ---- */
.hg-apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hg-apps__item { margin: 0; }
.hg-nav a.hg-app {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	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, background-color 0.25s ease;
}
.hg-nav a.hg-app:hover { border-color: var(--hg-ink); color: var(--hg-text); transform: translateY(-3px); }
.hg-nav a.hg-app.is-active {
	border-color: var(--hg-ink);
	background: color-mix(in srgb, var(--hg-icon-bg) 60%, var(--hg-white));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hg-accent) 75%, transparent), 0 18px 36px -20px rgba(7, 21, 15, 0.45);
}
.hg-nav a.hg-app.is-active .hg-device__go { background: var(--hg-accent); color: var(--hg-dark); transform: rotate(90deg); }
.hg-app__logo {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--hg-dark);
	color: var(--hg-accent);
	font-family: "Outfit", "Outfit Fallback", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}
.hg-app__logo--img { border: 1px solid var(--hg-border-l); background: var(--hg-white); }
.hg-nav .hg-app__logo--img img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
.hg-app__logo--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 19px; }
.hg-app__name { flex: 1 1 auto; min-width: 0; font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }

.hg-nav__legacy { margin-top: 28px; }
.hg-nav .hg-nav__label { margin: 0 0 12px; color: var(--hg-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hg-nav .hg-apps--legacy a.hg-app { border-style: dashed; background: transparent; box-shadow: none; }
.hg-nav .hg-apps--legacy a.hg-app.is-active { border-style: solid; background: color-mix(in srgb, var(--hg-icon-bg) 60%, var(--hg-white)); }

.hg-nav__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hg-nav__actions .hg-btn { width: 100%; }
.hg-nav a.hg-nav__more { color: var(--hg-ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hg-nav a.hg-btn { color: var(--hg-dark); text-decoration: none; }
.hg-nav a.hg-btn--ghost { color: var(--hg-text); }
.hg-nav a.hg-btn--ghost:hover { color: var(--hg-ink); }
.hg-nav .hg-empty { margin-top: 8px; }

/* ---- 3. Guide preview under the app cards ---- */
.hg-guide {
	margin-top: 32px;
	padding: 22px 16px 24px;
	border: 1px solid var(--hg-border-l);
	border-top: 5px solid var(--hg-accent);
	border-radius: 20px;
	background: var(--hg-white);
	box-shadow: 0 24px 60px -32px rgba(7, 21, 15, 0.45);
	animation: hg-guide-in 0.3s ease;
}
@keyframes hg-guide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hg-guide__head { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--hg-border-l); }
.hg-guide__headtext { min-width: 0; }
.hg-nav .hg-guide__title { margin: 0; color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.hg-guide__title:focus { outline: none; }
.hg-guide__note { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--hg-accent); border-radius: 10px; background: var(--hg-light); color: var(--hg-text); font-size: 15px; line-height: 1.55; }
.hg-guide__note strong { color: var(--hg-ink); }

/* Content of the guide (same reading style as the article pages). */
.hg-guide__body { max-width: 820px; color: var(--hg-muted); font-size: 16px; line-height: 1.7; }
.hg-nav .hg-guide__intro > * + *,
.hg-nav .hg-step__body > * + * { margin-top: 1em; }
.hg-guide__body p { margin: 0; }
.hg-guide__body strong { color: var(--hg-text); }
.hg-nav .hg-guide__body a { color: var(--hg-ink); text-decoration: underline; text-underline-offset: 2px; }
.hg-guide__body :is(ul, ol) { margin: 0; padding-inline-start: 1.3em; }
.hg-guide__body li + li { margin-top: 6px; }
.hg-guide__body li::marker { color: var(--hg-ink); font-weight: 600; }
.hg-guide__body figure { margin: 1.2em 0; }
.hg-guide__body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--hg-border-l); border-radius: 12px; }
.hg-guide__body figure img { width: auto; max-height: 520px; object-fit: contain; }
.hg-guide__body figcaption { margin-top: 8px; color: #5E6F67; font-size: 14px; line-height: 1.5; }
.hg-guide__body blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--hg-accent); color: var(--hg-text); }
.hg-guide__body code { padding: 2px 6px; border-radius: 6px; background: var(--hg-light); font-size: 0.9em; overflow-wrap: anywhere; }
.hg-guide__body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.hg-guide__body :is(th, td) { padding: 8px 10px; border: 1px solid var(--hg-border-l); text-align: left; vertical-align: top; }
.hg-guide__intro { padding-bottom: 4px; color: var(--hg-text); }

.hg-nav ol.hg-steps { display: grid; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.hg-step { margin: 0; }
.hg-step__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.hg-step__num { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hg-accent); color: var(--hg-dark); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 17px; font-weight: 700; }
.hg-nav .hg-step__title { margin: 5px 0 0; color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; }
.hg-nav .hg-step__sub { margin: 1.3em 0 0.4em; color: var(--hg-text); font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; }
.hg-step__body > .hg-step__sub:first-child { margin-top: 0; }
.hg-step__source { margin: 12px 0 0; color: var(--hg-muted); font-size: 14px; }

.hg-guide__more { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hg-border-l); }
.hg-nav a.hg-btn--lg { min-height: 56px; padding: 14px 34px; font-size: 18px; font-weight: 700; box-shadow: 0 14px 30px -16px rgba(7, 21, 15, 0.55); }
.hg-guide__back { display: flex; flex-direction: column; gap: 10px; }
.hg-guide__back .hg-btn { width: 100%; }

/* ---- Tablet ---- */
@media (min-width: 600px) {
	.hg-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hg-nav__actions .hg-btn,
	.hg-guide__back .hg-btn { width: auto; }
	.hg-guide__back { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
	.hg-nav .hg-device--brand .hg-dlogo { width: 116px; }
	.hg-nav .hg-nav__title { font-size: 28px; }
	.hg-guide { padding: 32px 36px 36px; }
	.hg-nav .hg-guide__title { font-size: 28px; }
	.hg-guide__body { font-size: 17px; }
	.hg-step__body,
	.hg-step__source { padding-left: 48px; }
	.hg-nav .hg-step__title { font-size: 21px; }
	.hg-guide__more { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

/* ---- Desktop ---- */
@media (min-width: 1100px) {
	.hg-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.hg-guide { padding: 40px 48px 44px; }
	.hg-nav .hg-guide__title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.hg-nav a.hg-app,
	.hg-nav__view,
	.hg-guide-slot { transition: none; }
	.hg-nav a.hg-app:hover { transform: none; }
	.hg-guide { animation: none; }
}

/* 2026-10-15 (SEO): every device panel and app part is in the page, hidden until chosen (includes/apps.php).
   New heading tags (H4 app name, H5 guide title, H6 step title in the parts) keep the exact same look:
   the class rules beat the global heading styles of the Elementor kit. */
.hg-nav .hg-nav__view[hidden],
.hg-nav .hg-app__part[hidden] { display: none !important; }
.hg-nav .hg-app__name { margin: 0; color: inherit; font-family: "Outfit", "Outfit Fallback", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; }
.hg-nav .hg-guide__title,
.hg-nav .hg-step__title,
.hg-nav .hg-step__sub { letter-spacing: normal; text-transform: none; }

/* While the complete installation steps load in place of the excerpt (apps-nav.js, 2026-10-16): hide the excerpt's "Lees meer". */
.hg-guide-slot--loading .hg-guide__more .hg-btn--lg { visibility: hidden; }
