/* ==========================================================================
   Share Knowledge theme — design tokens, base, components.
   Light is the default; dark applies via [data-theme="dark"] on <html>
   (set before paint by the inline script in header.php).
   Contrast (WCAG): every text/background pair below is >= 4.5:1.
   Yellow is a FILL colour only (1.56:1 on white) — never use it for text on light.
   ========================================================================== */

:root {
	/* Brand */
	--sk-yellow: #FFC700;
	--sk-blue: #007BFF;
	--sk-navy: #0B1E3A;
	--sk-sky: #38BDF8;
	--sk-teal: #10B981;
	--sk-purple: #8B5CF6;
	--sk-orange: #F97316;

	/* Semantic (light) */
	--bg: #FFFFFF;
	--bg-soft: #F3F6FA;
	--surface: #FFFFFF;
	--surface-2: #F8FAFC;
	--border: #E2E8F0;
	--text: #0F172A;
	--text-muted: #475569;
	--heading: #0B1E3A;
	--link: #0066DD;            /* 5.3:1 on white (brand #007BFF is 3.98:1) */
	--link-hover: #004FAD;
	--accent: var(--sk-blue);  /* icons, large type, decoration */
	--primary: var(--sk-yellow);
	--on-primary: #0B1E3A;
	--primary-hover: #F2B900;
	--secondary: #0B1E3A;
	--on-secondary: #FFFFFF;
	--secondary-hover: #163463;
	--focus: #0066DD;
	--logo-tagline: #0B1E3A;
	--logo-knowledge: #007BFF;
	--hero-overlay: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 42%, rgba(255,255,255,0) 72%);
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
	--shadow: 0 10px 30px rgba(11, 30, 58, .10);
	--shadow-lg: 0 20px 50px rgba(11, 30, 58, .16);

	/* Type */
	--font-latin: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-arabic: 'Tajawal', 'Inter', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
	--font: var(--font-latin);
	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
	--fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	--fs-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
	--lh: 1.65;

	/* Shape & space */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 18px;
	--radius-pill: 999px;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--space-section: clamp(48px, 7vw, 96px);
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

:root[data-theme="dark"],
[data-theme="dark"] {
	--bg: #08162B;
	--bg-soft: #0B1E3A;
	--surface: #102544;
	--surface-2: #0D213D;
	--border: #1E3A5F;
	--text: #E6EDF7;
	--text-muted: #A3B3C9;
	--heading: #FFFFFF;
	--link: #38BDF8;            /* 8.4:1 on --bg */
	--link-hover: #7DD3FC;
	--accent: #4DA3FF;
	--secondary: #FFFFFF;
	--on-secondary: #0B1E3A;
	--secondary-hover: #E2E8F0;
	--focus: #38BDF8;
	--logo-tagline: #CBD5E1;
	--logo-knowledge: #2B8CFF;
	--hero-overlay: linear-gradient(90deg, rgba(8,22,43,.97) 0%, rgba(8,22,43,.85) 42%, rgba(8,22,43,0) 72%);
	--shadow-sm: 0 1px 2px rgba(0,0,0,.4);
	--shadow: 0 10px 30px rgba(0,0,0,.35);
	--shadow-lg: 0 20px 50px rgba(0,0,0,.5);
	color-scheme: dark;
}

/* Arabic pages use Tajawal for Arabic glyphs; Latin glyphs fall through to Inter. */
:root:lang(ar) { --font: var(--font-arabic); --lh: 1.8; }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh);
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--sk-yellow); color: var(--sk-navy); }
.sk-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sk-skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-sm); font-weight: 700; }
.sk-skip:focus { top: 12px; }

.sk-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sk-section { padding-block: var(--space-section); }
.sk-section--soft { background: var(--bg-soft); }
.sk-eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75em; }
:lang(ar) .sk-eyebrow { letter-spacing: 0; font-size: var(--fs-sm); }
.sk-muted { color: var(--text-muted); }
.sk-highlight { color: var(--sk-yellow); }
:root:not([data-theme="dark"]) .sk-highlight { color: var(--heading); background: linear-gradient(transparent 62%, var(--sk-yellow) 62%); }
.sk-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sk-section-head h2 { margin: 0; }
.sk-section-head p { margin: 4px 0 0; color: var(--text-muted); }

/* Icons: inline SVG, stroke = currentColor. Directional icons flip in RTL. */
.sk-icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sk-icon--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .sk-icon--dir { transform: scaleX(-1); }

/* ----------------------------------------------------------------- buttons */
.sk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.4em;
	border: 2px solid transparent; border-radius: var(--radius-sm);
	font: inherit; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sk-btn:hover { transform: translateY(-1px); }
.sk-btn:active { transform: none; }
.sk-btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(255, 199, 0, .28); }
.sk-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.sk-btn--secondary { background: var(--secondary); color: var(--on-secondary); }
.sk-btn--secondary:hover { background: var(--secondary-hover); color: var(--on-secondary); }
.sk-btn--outline { background: transparent; color: var(--heading); border-color: var(--border); }
.sk-btn--outline:hover { border-color: var(--heading); color: var(--heading); }
.sk-btn--ghost { background: transparent; color: var(--link); padding-inline: .4em; min-height: 40px; }
.sk-btn--ghost:hover { color: var(--link-hover); }
.sk-btn--whatsapp { background: #0E7A3E; color: #fff; } /* WhatsApp green darkened: #25D366 + white is 1.98:1, this is 5.4:1 (WCAG AA) */
.sk-btn--whatsapp:hover { background: #0B6E38; color: #fff; }
.sk-btn--sm { min-height: 40px; padding: .5em 1em; font-size: var(--fs-xs); }
.sk-btn--lg { min-height: 56px; padding: .85em 1.8em; font-size: var(--fs-base); }
.sk-btn--block { width: 100%; }
.sk-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: var(--radius-pill); border: 1px solid var(--border);
	background: var(--surface); color: var(--heading); cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.sk-icon-btn:hover { border-color: var(--heading); }
.sk-icon-btn--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.sk-icon-btn--primary:hover { background: var(--primary-hover); }

/* Theme toggle: show the icon of the mode you'd switch TO. */
.sk-theme-toggle .sk-icon-sun { display: none; }
:root[data-theme="dark"] .sk-theme-toggle .sk-icon-sun { display: block; }
:root[data-theme="dark"] .sk-theme-toggle .sk-icon-moon { display: none; }

/* ----------------------------------------------------------------- badges & chips */
.sk-badge { display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; background: var(--bg-soft); color: var(--heading); border: 1px solid var(--border); }
.sk-badge--yellow { background: var(--sk-yellow); color: var(--sk-navy); border-color: transparent; }
.sk-badge--blue { background: rgba(0, 123, 255, .1); color: var(--link); border-color: rgba(0, 123, 255, .25); }
.sk-badge--live { background: rgba(16, 185, 129, .12); color: #047857; border-color: rgba(16, 185, 129, .3); }
:root[data-theme="dark"] .sk-badge--live { color: #34D399; }
.sk-badge--online { background: rgba(139, 92, 246, .12); color: #6D28D9; border-color: rgba(139, 92, 246, .3); }
:root[data-theme="dark"] .sk-badge--online { color: #C4B5FD; }

/* ----------------------------------------------------------------- forms */
.sk-field { display: block; margin-bottom: 16px; }
.sk-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.sk-input, .sk-select, .sk-textarea {
	width: 100%; min-height: 48px; padding: .7em .9em;
	font: inherit; font-size: var(--fs-sm); color: var(--text);
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sk-input::placeholder { color: var(--text-muted); opacity: .8; }
.sk-input:focus, .sk-select:focus, .sk-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(0, 102, 221, .2); }
.sk-help { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.sk-input-group { display: flex; gap: 8px; }
.sk-input-group .sk-input { flex: 1; }

/* ----------------------------------------------------------------- cards */
.sk-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.sk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sk-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.sk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sk-card:hover .sk-card__media img { transform: scale(1.04); }
.sk-card__media > .sk-icon { width: 72px; height: 72px; stroke-width: 1.5; }
.sk-card__media .sk-card__badges { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; } /* free at the start corner, certificate at the end corner: the covers keep their logo in the middle */
.sk-badge--cert { background: #0B1E3A; color: #FFC700; border-color: rgba(255, 199, 0, .55); }
.sk-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.sk-card__title { font-size: var(--fs-lg); margin: 0; line-height: 1.35; }
.sk-card__title a { color: var(--heading); text-decoration: none; }
.sk-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.sk-card__excerpt { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 8px; font-size: var(--fs-xs); color: var(--text-muted); }
.sk-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.sk-card__footer { padding: 0 18px 18px; position: relative; z-index: 1; }

/* Video card: play button over the thumbnail. */
.sk-play { position: absolute; inset: 0; display: grid; place-items: center; }
.sk-play span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(11, 30, 58, .7); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.sk-card:hover .sk-play span { transform: scale(1.08); background: var(--primary); color: var(--on-primary); border-color: transparent; }
.sk-duration { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: var(--fs-xs); font-weight: 700; direction: ltr; }

/* Category tile */
.sk-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 18px 12px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--heading); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.sk-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--heading); }
.sk-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); color: var(--accent); }
.sk-tile__icon .sk-icon { width: 28px; height: 28px; }
.sk-tile small { font-weight: 500; color: var(--text-muted); font-size: var(--fs-xs); }

/* Stat */
.sk-stat { display: flex; align-items: center; gap: 12px; }
.sk-stat__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 123, 255, .1); color: var(--accent); flex: none; }
.sk-stat__value { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--heading); line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .sk-stat__value { text-align: right; }
.sk-stat__label { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

/* Grid helpers */
.sk-grid { display: grid; gap: 24px; }
.sk-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.sk-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sk-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sk-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 14px; }

/* ----------------------------------------------------------------- header */
.sk-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.sk-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.sk-header__logo { display: inline-flex; flex: none; text-decoration: none; }
.sk-header__logo svg { height: 44px; width: auto; }
.sk-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.sk-nav a { position: relative; white-space: nowrap; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--heading); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.sk-nav a:hover { background: var(--bg-soft); color: var(--heading); }
.sk-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--primary); }
.sk-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.sk-lang { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--heading); font-weight: 700; font-size: var(--fs-xs); text-decoration: none; }
.sk-lang:hover { border-color: var(--heading); color: var(--heading); }
.sk-menu-btn { display: none; }
@media (max-width: 1280px) { .sk-header__actions .sk-hide-lg { display: none; } }
@media (max-width: 1024px) {
	.sk-nav, .sk-header__actions .sk-hide-mobile { display: none; }
	.sk-menu-btn { display: inline-grid; }
}

/* ----------------------------------------------------------------- footer */
.sk-footer { background: var(--sk-navy); color: #CBD5E1; padding-block: 56px 28px; margin-top: var(--space-section); }
:root[data-theme="dark"] .sk-footer { background: #050F1F; }
.sk-footer a { color: #E2E8F0; text-decoration: none; }
.sk-footer a:hover { color: var(--sk-yellow); }
.sk-footer h3, .sk-footer__title { color: #fff; font-size: var(--fs-sm); margin-bottom: 14px; line-height: 1.4; }
.sk-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 32px; }
@media (max-width: 900px) { .sk-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sk-footer__grid { grid-template-columns: 1fr; } }
.sk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.sk-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); }
.sk-footer .sk-logo { --logo-tagline: #CBD5E1; --logo-knowledge: #2B8CFF; }
.sk-social { display: flex; gap: 10px; flex-wrap: wrap; }
.sk-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.sk-social a:hover { background: var(--sk-yellow); color: var(--sk-navy); }

/* ----------------------------------------------------------------- hero */
/* Background images (not <img>) so each visitor downloads only the light OR the dark photo.
   The matching file is preloaded by the inline head script (see sk_hero_preload()). */
.sk-hero { position: relative; overflow: hidden; background: var(--bg); color: var(--text); isolation: isolate; }
.sk-hero__media {
	position: absolute; inset: 0; z-index: -2;
	background: #dfeaf7 70% center / cover no-repeat;
	background-image: image-set(url("../img/hero-engineer-light-900.webp") type("image/webp"), url("../img/hero-engineer-light-900.jpg") type("image/jpeg"));
}
[data-theme="dark"] .sk-hero__media {
	background-color: #0B1E3A;
	background-image: image-set(url("../img/hero-engineer-900.webp") type("image/webp"), url("../img/hero-engineer-900.jpg") type("image/jpeg"));
}
@media (min-width: 901px) {
	.sk-hero__media { background-image: image-set(url("../img/hero-engineer-light-1600.webp") type("image/webp"), url("../img/hero-engineer-light-1600.jpg") type("image/jpeg")); }
	[data-theme="dark"] .sk-hero__media { background-image: image-set(url("../img/hero-engineer-1600.webp") type("image/webp"), url("../img/hero-engineer-1600.jpg") type("image/jpeg")); }
}
[dir="rtl"] .sk-hero__media { transform: scaleX(-1); }
.sk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
[dir="rtl"] .sk-hero::before { transform: scaleX(-1); }
.sk-hero__inner { padding-block: clamp(56px, 9vw, 120px); max-width: 640px; }
.sk-hero h1 { margin-bottom: .35em; }
.sk-hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 52ch; }
.sk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.sk-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 32px; }
@media (max-width: 760px) {
	.sk-hero::before { background: color-mix(in srgb, var(--bg) 84%, transparent); }
	.sk-hero__media { background-position: 78% center; }
}

/* Handwritten accent (live text, not baked into the image) */
.sk-script { font-family: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', cursive; font-style: italic; color: var(--heading); line-height: 1.25; }
.sk-swoosh { display: block; width: 120px; height: 14px; color: var(--sk-yellow); }

/* ----------------------------------------------------------------- prose (article body) */
.sk-prose { font-size: var(--fs-base); line-height: var(--lh); max-width: 72ch; }
.sk-prose > * + * { margin-top: 1em; }
.sk-prose h2 { margin-top: 1.8em; font-size: var(--fs-xl); }
.sk-prose h3 { margin-top: 1.5em; font-size: var(--fs-lg); }
.sk-prose img { border-radius: var(--radius); height: auto; }
.sk-prose ul, .sk-prose ol { padding-inline-start: 1.4em; }
.sk-prose li + li { margin-top: .35em; }
.sk-prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-inline-start: 4px solid var(--primary); background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--heading); }
.sk-prose code { padding: .15em .4em; border-radius: 6px; background: var(--bg-soft); font-size: .9em; }

/* ----------------------------------------------------------------- style guide only */
.sg-swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.sg-swatch__chip { height: 84px; }
.sg-swatch__body { padding: 10px 12px; font-size: var(--fs-xs); }
.sg-swatch__body strong { display: block; color: var(--heading); font-size: var(--fs-sm); }
.sg-swatch__body code { direction: ltr; unicode-bidi: isolate; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-panel { padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }
.sg-logo-box { display: grid; place-items: center; min-height: 150px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.sg-logo-box--light { background: #fff; --logo-tagline: #0B1E3A; --logo-knowledge: #007BFF; }
.sg-logo-box--dark { background: #08162B; --logo-tagline: #CBD5E1; --logo-knowledge: #2B8CFF; }
.sg-logo-box svg { max-height: 90px; width: auto; }
.sg-type-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sg-type-row small { color: var(--text-muted); font-size: var(--fs-xs); direction: ltr; }
.sg-contrast { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: 11px; background: rgba(16,185,129,.15); color: #047857; }
.sg-contrast--warn { background: rgba(249,115,22,.15); color: #B45309; }
:root[data-theme="dark"] .sg-contrast { color: #34D399; }
:root[data-theme="dark"] .sg-contrast--warn { color: #FDBA74; }

/* Mobile menu drawer */
@media (max-width: 1024px) {
	.sk-header.is-open .sk-nav { display: flex; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
	.sk-header.is-open .sk-nav a { padding: 12px; font-size: var(--fs-base); }
	.sk-header.is-open .sk-nav a[aria-current="page"]::after { inset-inline: auto 12px; inset-block: 12px; width: 3px; height: auto; }
}

/* ----------------------------------------------------------------- page header & breadcrumbs */
.sk-page-head { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.sk-page-head h1 { font-size: var(--fs-2xl); margin-bottom: .25em; }
.sk-page-head p { margin: 0; color: var(--text-muted); max-width: 70ch; }
.sk-breadcrumbs { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 14px; }
.sk-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.sk-breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.sk-breadcrumbs .breadcrumb_last { color: var(--heading); font-weight: 600; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.sk-chip:hover, .sk-chip[aria-current="page"] { border-color: var(--heading); background: var(--heading); color: var(--bg); }

/* ----------------------------------------------------------------- list items (horizontal cards) */
.sk-list { display: grid; gap: 14px; }
.sk-list-item { position: relative; display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.sk-list-item:hover { background: var(--surface); border-color: var(--border); }
.sk-list-item__media { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.sk-list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.sk-list-item h3 { font-size: var(--fs-base); margin: 4px 0; line-height: 1.4; }
.sk-list-item h3 a { color: var(--heading); text-decoration: none; }
.sk-list-item h3 a::after { content: ""; position: absolute; inset: 0; }
.sk-list-item p { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .sk-list-item { grid-template-columns: 112px 1fr; gap: 12px; } }

/* ----------------------------------------------------------------- home layout */
.sk-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .sk-split { grid-template-columns: 1fr; } }
.sk-track { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sk-track__head { display: flex; align-items: center; gap: 14px; }
.sk-track__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sk-yellow); color: var(--sk-navy); flex: none; }
.sk-track__icon .sk-icon { width: 26px; height: 26px; }
.sk-track h3 { margin: 0; font-size: var(--fs-lg); }
.sk-track small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.sk-track ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.sk-track li { display: flex; gap: 8px; align-items: flex-start; }
.sk-track li .sk-icon { color: var(--accent); margin-top: .25em; width: 1em; height: 1em; }
.sk-track .sk-btn { margin-top: auto; }
.sk-cta-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--radius); background: linear-gradient(140deg, #0B1E3A 0%, #12366d 100%); color: #CBD5E1; }
.sk-cta-card h3 { color: #fff; margin: 0; }
.sk-cta-card .sk-icon-xl { width: 48px; height: 48px; color: var(--sk-yellow); }
.sk-band { position: relative; overflow: hidden; background: #0B1E3A; color: #CBD5E1; }
:root[data-theme="dark"] .sk-band { background: #050F1F; }
.sk-band h2 { color: #fff; }
.sk-band__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .sk-band__grid { grid-template-columns: 1fr; } }
.sk-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-pillar { text-align: center; }
.sk-pillar .sk-icon { width: 34px; height: 34px; color: var(--sk-yellow); margin-bottom: 6px; }
.sk-pillar strong { display: block; color: #fff; }
.sk-pillar small { font-size: var(--fs-xs); }

/* ----------------------------------------------------------------- YouTube lite embed (no YouTube JS until clicked) */
.sk-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; cursor: pointer; }
.sk-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%); }
.sk-yt__play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.sk-yt__play span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.sk-yt:hover .sk-yt__play span { transform: scale(1.08); }
.sk-yt__title { position: absolute; z-index: 1; inset-inline: 20px; bottom: 18px; color: #fff; font-weight: 800; font-size: var(--fs-lg); text-align: start; line-height: 1.35; }
.sk-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sk-yt.is-playing::after, .sk-yt.is-playing .sk-yt__play, .sk-yt.is-playing .sk-yt__title { display: none; }

/* ----------------------------------------------------------------- article (single) */
.sk-article { padding-block: clamp(28px, 5vw, 48px) 0; }
.sk-article__head { max-width: 860px; margin-inline: auto; }
.sk-article__head h1 { font-size: var(--fs-2xl); margin: 12px 0; }
.sk-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-muted); font-size: var(--fs-sm); }
.sk-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sk-article__figure { max-width: 1000px; margin: 28px auto; }
.sk-article__figure img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sk-article__body { max-width: 760px; margin-inline: auto; }
.sk-article__body .sk-prose { max-width: none; }
.sk-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0; padding: 18px 0; border-block: 1px solid var(--border); }
.sk-share strong { color: var(--heading); font-size: var(--fs-sm); margin-inline-end: 4px; }
.sk-share a, .sk-share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; }
.sk-share a:hover, .sk-share button:hover { background: var(--heading); color: var(--bg); }
.sk-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.sk-postnav a { display: block; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--heading); font-weight: 700; font-size: var(--fs-sm); background: var(--surface); }
.sk-postnav a:hover { border-color: var(--heading); }
.sk-postnav small { display: block; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.sk-postnav .next { text-align: end; }

/* ----------------------------------------------------------------- pagination & search */
.sk-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.sk-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--heading); text-decoration: none; font-weight: 700; background: var(--surface); }
.sk-pagination .page-numbers.current { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.sk-pagination a.page-numbers:hover { border-color: var(--heading); }
.sk-search { display: flex; gap: 8px; max-width: 560px; }
.sk-search .sk-input { flex: 1; }
.sk-empty { text-align: center; padding: 48px 16px; }
.sk-empty > .sk-icon { width: 56px; height: 56px; color: var(--accent); }

[dir="rtl"] .sk-flip, .sk-flip { transform: scaleX(-1); }
[dir="rtl"] .sk-icon--dir.sk-flip { transform: none; }
.sk-logo--footer { display: block; width: 220px; height: auto; }
/* The certificates CTA spans the full row under the course tracks. */
.sk-grid > .sk-cta-card { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sk-grid > .sk-cta-card p { flex: 1 1 320px; }
.sk-grid > .sk-cta-card h3 { flex: 0 1 auto; }
.sk-more-chips summary { list-style: none; cursor: pointer; }
.sk-more-chips summary::-webkit-details-marker { display: none; }

/* Certificate verification (sk-core shortcode) */
.sk-verify-form { display: flex; gap: 8px; max-width: 520px; margin: 18px 0 24px; }
.sk-verify-form .sk-input { flex: 1; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .04em; }
.sk-verify { max-width: 620px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.sk-verify--ok { border-top: 5px solid var(--sk-teal); }
.sk-verify--bad { border-top: 5px solid #DC2626; }
.sk-verify dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 16px 0 20px; }
.sk-verify dt { color: var(--text-muted); font-size: var(--fs-sm); }
.sk-verify dd { margin: 0; color: var(--heading); font-weight: 700; }

/* Call-out box (course access, "part of a course") — also used on non-LMS pages */
.sk-access { margin: 28px 0; padding: 24px; border: 1px solid var(--border); border-top: 5px solid var(--primary); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.sk-access h2, .sk-access h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-lg); }
.sk-access__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sk-lesson-source { font-size: var(--fs-sm); }

/* Classic wordmark logo (PNG) */
img.sk-logo--classic { display: block; height: 46px; width: auto; }
.sk-footer img.sk-logo--classic, img.sk-logo--footer { height: auto; width: 200px; }
.sg-logo-box img.sk-logo--classic { height: 80px; }

/* Mobile account access */
.sk-show-mobile { display: none; }
.sk-nav__account { display: none; }
@media (max-width: 1024px) {
	.sk-show-mobile { display: inline-grid; }
	.sk-header.is-open .sk-nav__account { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
	.sk-header__logo img.sk-logo--classic { height: 38px; }
}

/* Categories: one row; the rest behind "show all" */
.sk-tiles-row:not(.is-expanded) { grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden; }
.sk-tiles-row:not(.is-expanded) > :nth-child(n) { margin-bottom: 0; }
.sk-more-btn { display: flex; justify-content: center; margin-top: 18px; }

/* Featured video + small videos under it (balances the article list beside it) */
.sk-mini-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.sk-mini-video { display: flex; flex-direction: column; gap: 6px; color: var(--heading); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; }
.sk-mini-video:hover { color: var(--link); }
.sk-mini-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.sk-mini-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sk-mini-video__thumb .sk-play span { width: 38px; height: 38px; }
.sk-mini-video__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-list-item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .sk-mini-videos { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.sk-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sk-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
.sk-checks .sk-icon { color: var(--sk-teal); }

/* Lead forms (sk-course-leads) follow the theme, including dark mode */
.skcl-card { font-family: inherit !important; }
.sk-split .skcl-card { margin: 0 !important; max-width: none !important; }
[data-theme="dark"] .skcl-card { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="dark"] .skcl-card .skcl-title, [data-theme="dark"] .skcl-card .skcl-form label, [data-theme="dark"] .skcl-card .skcl-done-title { color: var(--heading) !important; }
[data-theme="dark"] .skcl-card .skcl-intro, [data-theme="dark"] .skcl-card .skcl-consent, [data-theme="dark"] .skcl-card small { color: var(--text-muted) !important; }
[data-theme="dark"] .skcl-card .skcl-form input, [data-theme="dark"] .skcl-card .skcl-form select { background: var(--bg) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="dark"] .skcl-card .skcl-btn { background: var(--primary) !important; color: var(--on-primary) !important; }
[data-theme="dark"] .skcl-close { background: var(--bg-soft) !important; color: var(--heading) !important; }

/* ----------------------------------------------------------------- article page (v2) */
.sk-post__head { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.sk-post__head-inner { max-width: 920px; }
.sk-post__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sk-post__cats a { text-decoration: none; }
.sk-post__title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.3; margin: 0 0 14px; }
.sk-post__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; margin: 0 0 20px; }
.sk-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--text-muted); font-size: var(--fs-sm); }
.sk-post__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sk-post__author img { width: 40px; height: 40px; border-radius: 50%; }
.sk-post__author > span { display: flex; flex-direction: column; line-height: 1.25; }
.sk-post__author strong { color: var(--heading); }
.sk-post__author small { font-size: var(--fs-xs); }
.sk-post__figure { max-width: 1100px; margin: 8px auto 0; }
.sk-post__figure img { width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sk-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; max-width: 1100px; padding-block: 40px 24px; }
.sk-post__main { min-width: 0; max-width: 740px; }
.sk-post__aside { min-width: 0; }
.sk-post__sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 1024px) { .sk-post__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .sk-post__aside { order: -1; } .sk-post__sticky { position: static; } .sk-aside-share, .sk-aside-card--yt { display: none; } }

/* reading typography */
.sk-post__body { font-size: 1.125rem; line-height: 1.85; }
:lang(ar) .sk-post__body { font-size: 1.15rem; line-height: 2; }
.sk-post__body h2 { position: relative; margin-top: 2em; padding-inline-start: 16px; font-size: var(--fs-xl); scroll-margin-top: 96px; }
.sk-post__body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 5px; border-radius: 3px; background: var(--primary); }
.sk-post__body h3 { margin-top: 1.6em; font-size: var(--fs-lg); scroll-margin-top: 96px; }
.sk-post__body a { font-weight: 600; }
.sk-post__body img { margin-inline: auto; border-radius: var(--radius); }
.sk-post__body figure { margin: 1.6em 0; }
.sk-post__body figcaption, .sk-post__body .wp-caption-text { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.sk-post__body ul li::marker { color: var(--accent); }
.sk-post__body ol li::marker { color: var(--accent); font-weight: 800; }
.sk-post__body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 1.4em 0; display: block; overflow-x: auto; }
.sk-post__body th, .sk-post__body td { padding: 10px 12px; border: 1px solid var(--border); text-align: start; }
.sk-post__body th { background: var(--bg-soft); color: var(--heading); }
.sk-post__body iframe { max-width: 100%; border-radius: var(--radius); }

/* aside */
.sk-toc { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sk-toc strong { display: block; margin-bottom: 10px; color: var(--heading); font-size: var(--fs-sm); }
.sk-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.sk-toc a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); line-height: 1.5; border-inline-start: 2px solid transparent; }
.sk-toc a:hover, .sk-toc a.is-active { color: var(--heading); background: var(--bg-soft); border-inline-start-color: var(--primary); }
.sk-toc .lvl-3 a { padding-inline-start: 22px; font-size: var(--fs-xs); }
.sk-aside-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--heading); text-decoration: none; }
.sk-aside-card:hover { border-color: var(--heading); color: var(--heading); }
.sk-aside-card .sk-icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.sk-aside-card--yt .sk-icon { color: #FF0000; }
.sk-aside-card small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.sk-aside-card strong { display: block; font-size: var(--fs-sm); line-height: 1.4; }
.sk-aside-share { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-aside-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--heading); background: var(--surface); }
.sk-aside-share a:hover { background: var(--heading); color: var(--bg); }

/* linked course card at the end of an article */
.sk-course-cta { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin: 40px 0 0; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); border-top: 5px solid var(--primary); background: var(--surface); box-shadow: var(--shadow-sm); }
.sk-course-cta__media { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.sk-course-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.sk-course-cta h2 { font-size: var(--fs-lg); margin: 8px 0 4px; }
.sk-course-cta p { margin: 0 0 12px; font-size: var(--fs-sm); }
@media (max-width: 640px) { .sk-course-cta { grid-template-columns: 1fr; } }
img.sk-logo--classic { height: 52px; }
/* Dark mode: a hairline light outline so the dark-blue "KNOWLEDGE" stays readable on navy */
[data-theme="dark"] img.sk-logo--classic, .sk-footer img.sk-logo--classic { filter: drop-shadow(0 0 .6px rgba(255,255,255,.95)) drop-shadow(0 0 .6px rgba(255,255,255,.95)); }

/* Long links in articles → compact buttons (sk_prettify_links); safety wrap for anything left */
.sk-prose { overflow-wrap: anywhere; }
.sk-link-btn { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--heading) !important; font-size: var(--fs-sm); font-weight: 700; text-decoration: none !important; line-height: 1.3; }
.sk-link-btn:hover { border-color: var(--heading); background: var(--bg-soft); }
.sk-link-btn .sk-icon { width: 18px; height: 18px; color: var(--accent); }
.sk-link-btn .sk-link-btn__ext { width: 14px; height: 14px; color: var(--text-muted); }

/* Footer + band: official channels */
.sk-footer { margin-top: 0; }
.sk-social-list { display: grid; gap: 10px; }
.sk-social-list a { display: inline-flex; align-items: center; gap: 10px; }
.sk-social-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; flex: none; }
.sk-social-ico .sk-icon { width: 17px; height: 17px; }
.sk-band__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sk-band__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--c); color: #fff !important; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; transition: transform .2s var(--ease), filter .2s var(--ease); }
.sk-band__link:hover { transform: translateY(-1px); filter: brightness(1.08); }
:root[data-theme="dark"] .skcl-opt { color: #A3B3C9 !important; } /* plugin grey #6b7280 is 3.2:1 on dark cards */

/* Subscribe card: aligned fields, less height. Inside the home section the section heading already says it. */
.skcl-card .skcl-row { align-items: end; }
.skcl-card--subscribe, .skcl-card--download { padding: 22px !important; }
.skcl-card--subscribe .skcl-hint, .skcl-card--download .skcl-hint { display: none !important; }
.skcl-card--subscribe .skcl-form label, .skcl-card--download .skcl-form label { margin-bottom: 12px !important; }
.skcl-card--subscribe .skcl-opt, .skcl-card--download .skcl-opt { font-size: .8em !important; }
.sk-split .skcl-card--subscribe .skcl-title, .sk-split .skcl-card--subscribe .skcl-intro { display: none !important; }
.sk-split .skcl-card--subscribe { border-top-width: 4px !important; }
@media (min-width: 961px) { #subscribe .sk-split { grid-template-columns: 1fr 1fr; } }
/* Small phones: logo + 4 icon buttons must fit in 390px */
@media (max-width: 480px) {
	.sk-header__inner { gap: 10px; }
	.sk-header__logo svg { height: 34px; }
	.sk-header__actions { gap: 6px; }
	.sk-header__actions .sk-icon-btn { width: 40px; height: 40px; }
}
/* Live track with a cover image (16:9, full-bleed at the top of the card). */
.sk-track--media { padding-top: 0; overflow: hidden; }
.sk-track__media { margin: 0 -22px; aspect-ratio: 16 / 9; background: #0B1E3A; }
.sk-track__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- contact page */
.sk-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: 16px; }
.sk-notice { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-sm); }
.sk-notice--ok { background: rgba(16, 185, 129, .12); color: #047857; border: 1px solid rgba(16, 185, 129, .3); }
.sk-notice--err { background: rgba(239, 68, 68, .1); color: #B91C1C; border: 1px solid rgba(239, 68, 68, .3); }
:root[data-theme="dark"] .sk-notice--ok { color: #34D399; }
:root[data-theme="dark"] .sk-notice--err { color: #FCA5A5; }
/* honeypot: clipped, not moved off-screen (left:-9999px is scrollable on RTL pages) */
.sk-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sk-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.sk-contact__card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sk-contact__card h2 { font-size: var(--fs-lg); margin-bottom: .6em; }
.sk-contact__ways { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.sk-contact__ways a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--heading); font-weight: 700; text-decoration: none; }
.sk-contact__ways a:hover { border-color: var(--focus); }
.sk-contact__ways small { display: block; font-weight: 400; color: var(--text-muted); }
.sk-contact__ways .sk-icon { width: 22px; height: 22px; flex: none; }
@media (max-width: 860px) { .sk-contact { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- ads (sk-core inc/ads.php) */
.sk-ad { margin: 32px auto; text-align: center; min-height: 280px; } /* reserved space: no layout shift when the ad loads */
.sk-ad__label { display: block; margin-bottom: 6px; font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: .04em; }
.sk-grid > .sk-ad { grid-column: 1 / -1; margin: 8px 0; }
.sk-prose .sk-ad ins { margin: 0 auto; }

/* ----------------------------------------------------------------- live courses (sk_live_course) */
.sk-live-track { margin-top: 32px; }
.sk-live-track__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sk-live-track__head h3 { margin: 0; font-size: var(--fs-xl, 1.4rem); }
.sk-live-track__head small { display: block; color: var(--text-muted); font-size: var(--fs-sm); }
.sk-card--live .sk-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.sk-card--live .sk-card__actions .sk-btn { flex: 1; justify-content: center; }
.sk-card--live .sk-card__actions .sk-btn--whatsapp { flex: 0 0 auto; }
.sk-live { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sk-live__aside { position: sticky; top: 96px; }
.sk-live__aside .sk-btn { margin-top: 10px; }
.sk-facts { margin: 0 0 8px; display: grid; gap: 10px; }
.sk-facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.sk-facts dt { color: var(--text-muted); }
.sk-facts dd { margin: 0; font-weight: 700; color: var(--heading); text-align: end; }
.sk-track li a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.sk-track li a:hover { color: var(--link); }
@media (max-width: 900px) { .sk-live { grid-template-columns: 1fr; } .sk-live__aside { position: static; } }
.sk-live-track__img { width: 168px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
@media (max-width: 600px) { .sk-live-track__head { flex-direction: column; align-items: flex-start; } .sk-live-track__img { width: 100%; } }
.sk-badge--cert-light { background: rgba(11, 30, 58, .78); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* Tables inside articles: compact rows, whole words, scroll sideways only if truly needed. */
.sk-prose table { font-size: .92em; }
.sk-prose th, .sk-prose td { line-height: 1.55; padding: .55em .75em; overflow-wrap: normal; word-break: normal; hyphens: none; vertical-align: top; }
@media (max-width: 600px) {
	.sk-prose table { display: block; overflow-x: auto; font-size: .82em; }
	.sk-prose th, .sk-prose td { padding: .5em .6em; }
}
.sk-prose a[href^="mailto:"], .sk-prose a[href^="tel:"] { white-space: nowrap; overflow-wrap: normal; }

/* Videos page: search + playlist rail */
.sk-vsearch { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.sk-vsearch__form { display: flex; gap: 8px; flex: 1 1 420px; max-width: 620px; }
.sk-vsearch__form .sk-input { flex: 1; min-width: 0; }
.sk-vsearch__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); }
.sk-vsearch__summary p { margin: 0; font-weight: 700; color: var(--heading); }
.sk-rail { margin-bottom: 40px; }
.sk-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sk-rail__head h2 { margin: 0; font-size: var(--fs-xl); }
.sk-rail__head small { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.sk-rail__nav { display: flex; gap: 8px; }
.sk-rail__track { list-style: none; margin: 0; padding: 10px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 23%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; }
.sk-pl { scroll-snap-align: start; min-width: 0; }
.sk-pl__link { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.sk-pl__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--bg-soft); box-shadow: 0 -6px 0 -2px var(--border), 0 -11px 0 -5px var(--border-strong, var(--border)); }
.sk-pl__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .4s var(--ease); }
.sk-pl__link:hover img, .sk-pl__link:focus-visible img { transform: scale(1.03); }
.sk-pl__count { position: absolute; inset-inline-end: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(8, 22, 43, .85); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.sk-pl__count svg { width: 16px; height: 16px; }
.sk-pl__name { font-weight: 800; color: var(--heading); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-pl__link:hover .sk-pl__name { color: var(--link); }
.sk-pl__yt { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.sk-pl__yt svg { width: 16px; height: 16px; color: #FF0000; }
.sk-vlatest { margin-bottom: 18px; }
@media (max-width: 720px) {
	.sk-rail__track { grid-auto-columns: 72%; gap: 14px; }
	.sk-rail__nav { display: none; }
	.sk-vsearch__form .sk-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.sk-icon-btn:disabled { opacity: .35; cursor: default; }

/*
 * Overscroll: no rubber-band bounce past the top/bottom of the page (it showed a white strip under the navy footer).
 * Browsers that still bounce see the footer colour at the bottom instead of white. Inner scrollers (rails, tables)
 * don't hand their scroll on to the page.
 */
html { overscroll-behavior-y: none; background-color: var(--sk-navy); }
:root[data-theme="dark"] { background-color: #050F1F; }
body { overscroll-behavior-y: none; }
.sk-rail__track, .sk-prose table, .sk-prose .wp-block-table, .sk-nav { overscroll-behavior: contain; }
