/* ==========================================================================
   Iftikhar Pro — main stylesheet
   Brand colours (--brand, --brand-2, --on-brand) follow the IFTIKHAR logo
   (green #7ed957 + black) and can be changed in the Customizer. They are injected from the
   Customizer / logo detection. Everything else derives from them.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--brand: #7ed957;
	--brand-2: #43b02a;
	--on-brand: #0b0d12;
	--ink: #0b0d12;          /* logo black — used for dark brand panels */
	--on-ink: #f4f7f2;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

	--radius-s: 10px;
	--radius: 16px;
	--radius-l: 24px;
	--radius-xl: 32px;

	--container: 1200px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--tabbar-h: 64px;

	--ease: cubic-bezier(.2, .8, .2, 1);

	/* Light theme */
	--bg: #f7f8fb;
	--surface: #ffffff;
	--surface-2: #f0f2f7;
	--surface-3: #e7eaf2;
	--text: #0f172a;
	--text-2: #334155;
	--muted: #5b6477;
	--line: rgba(15, 23, 42, .09);
	--line-strong: rgba(15, 23, 42, .16);
	--shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
	--shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
	--shadow-l: 0 30px 60px -20px rgba(15, 23, 42, .28);
	--glass: rgba(255, 255, 255, .78);
	--brand-ink: color-mix(in oklab, var(--brand) 56%, #000);
	--logo-fill: color-mix(in oklab, var(--brand) 82%, #000);
	--grad-a: color-mix(in oklab, var(--brand) 62%, #000);
	--grad-b: var(--brand-2);
	--brand-soft: color-mix(in oklab, var(--brand) 10%, var(--surface));
	--brand-line: color-mix(in oklab, var(--brand) 28%, transparent);
	--code-bg: #0f172a;
	--code-text: #e2e8f0;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0b0d12;
	--surface: #12151d;
	--surface-2: #181c26;
	--surface-3: #212634;
	--text: #e8eaf0;
	--text-2: #c4cad6;
	--muted: #98a2b3;
	--line: rgba(255, 255, 255, .08);
	--line-strong: rgba(255, 255, 255, .16);
	--shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
	--shadow-l: 0 30px 60px -20px rgba(0, 0, 0, .75);
	--glass: rgba(11, 13, 18, .72);
	--brand-ink: var(--brand);
	--logo-fill: var(--brand);
	--grad-a: var(--brand);
	--grad-b: color-mix(in oklab, var(--brand) 70%, #fff);
	--ink: #151a12;
	--brand-soft: color-mix(in oklab, var(--brand) 16%, var(--surface));
	--brand-line: color-mix(in oklab, var(--brand) 40%, transparent);
	--code-bg: #070910;
	color-scheme: dark;
}

@view-transition { navigation: auto; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	text-rendering: optimizeLegibility;
	transition: background-color .3s var(--ease), color .3s var(--ease);
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 30%, transparent); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--surface); padding: 10px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.ikp-icon { width: 1.25em; height: 1.25em; flex: none; }

.ikp-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ikp-container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.ikp-main { display: block; min-height: 60vh; outline: none; }

/* ---------- Buttons, chips, small UI ---------- */
.ikp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.ikp-btn:active { transform: scale(.97); }
.ikp-btn--primary { background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 82%, var(--brand-2))); color: var(--on-brand); box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--brand) 70%, transparent); }
.ikp-btn--primary:hover { color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--brand) 80%, transparent); }
.ikp-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.ikp-btn--ghost:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }
.ikp-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ikp-btn--block { width: 100%; }

.ikp-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
	transition: background-color .2s, transform .2s var(--ease), border-color .2s;
}
.ikp-iconbtn:hover { background: var(--surface-2); color: var(--text); }
.ikp-iconbtn:active { transform: scale(.92); }

.ikp-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px;
	background: var(--brand-soft); color: var(--brand-ink); font: 600 12.5px/1.2 var(--font-sans); letter-spacing: .01em;
	border: 1px solid var(--brand-line); white-space: nowrap; transition: background-color .2s, color .2s;
}
.ikp-chip small { opacity: .65; font-weight: 600; }
.ikp-chip:hover { background: var(--brand); color: var(--on-brand); }
.ikp-chip.is-active, .ikp-chip--solid { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.ikp-chip .ikp-icon { width: 14px; height: 14px; }
.ikp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ikp-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 24px; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ikp-chips--scroll::-webkit-scrollbar { display: none; }
.ikp-chips--scroll .ikp-chip { min-height: 38px; padding: 6px 16px; font-size: 14px; }

.ikp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12.5px/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.ikp-eyebrow .ikp-icon { width: 16px; height: 16px; }
.ikp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font: 600 13px/1 var(--font-sans); color: var(--text-2); margin-bottom: 24px; box-shadow: var(--shadow-s); }
.ikp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent); animation: ikp-pulse 2.4s infinite; }
@keyframes ikp-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--brand) 6%, transparent); } }
.ikp-gradient-text { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ikp-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.ikp-link-arrow .ikp-icon { transition: transform .2s var(--ease); width: 18px; height: 18px; }
.ikp-link-arrow:hover .ikp-icon { transform: translateX(4px); }
.ikp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13.5px; }
.ikp-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ikp-meta .ikp-icon { width: 15px; height: 15px; }
.ikp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }
.ikp-tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.ikp-tags--links li { padding: 0; background: none; }
.ikp-tags--links a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }
.ikp-tags--links a:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Header ---------- */
.ikp-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--glass);
	-webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
	padding-top: env(safe-area-inset-top);
}
.admin-bar .ikp-header { top: 32px; }
.ikp-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.ikp-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.ikp-header__back { display: none; }
.ikp-logo { display: inline-flex; align-items: center; flex: none; color: var(--text); }
.ikp-logo img { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.ikp-logo__dark { display: none; }
[data-theme="dark"] .ikp-logo:has(.ikp-logo__dark) .ikp-logo__light { display: none; }
[data-theme="dark"] .ikp-logo__dark { display: block; }
.ikp-logo__text { font: 800 22px/1 var(--font-display); letter-spacing: .06em; color: var(--logo-fill); }
.ikp-logo__svg { display: block; height: 30px; width: auto; color: var(--logo-fill); transition: color .3s; }
.ikp-nav { margin-inline: auto; }
.ikp-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ikp-nav__list a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
.ikp-nav__list a:hover { background: var(--surface-2); color: var(--text); }
.ikp-nav__list .current-menu-item > a, .ikp-nav__list .current_page_item > a, .ikp-nav__list .current-menu-ancestor > a, .ikp-nav__list .current_page_parent > a { color: var(--brand-ink); background: var(--brand-soft); }
.ikp-nav__list .sub-menu { display: none; }
.ikp-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ikp-nav + .ikp-header__actions { margin-left: 0; }
.ikp-only-mobile { display: none !important; }

.ikp-theme-toggle { position: relative; overflow: hidden; }
.ikp-theme-toggle > span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.ikp-theme-toggle__moon { transform: translateY(100%) rotate(-40deg); opacity: 0; }
[data-theme="dark"] .ikp-theme-toggle__sun { transform: translateY(-100%) rotate(40deg); opacity: 0; }
[data-theme="dark"] .ikp-theme-toggle__moon { transform: none; opacity: 1; }

.ikp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .ikp-progress { top: 32px; }
.ikp-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- Search form ---------- */
.ikp-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; margin-top: 28px; padding: 6px 6px 6px 48px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-s); transition: border-color .2s, box-shadow .2s; }
.ikp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.ikp-search > .ikp-icon { position: absolute; left: 18px; color: var(--muted); }
.ikp-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--text); font: 16px var(--font-sans); outline: none; }
.ikp-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ikp-search--filter { padding-right: 18px; }

/* ---------- Sections ---------- */
.ikp-section { padding-block: clamp(48px, 7vw, 96px); }
.ikp-section--tight { padding-block: clamp(24px, 4vw, 48px); }
.ikp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.ikp-section__title { font-size: clamp(26px, 3.4vw, 40px); margin: 0; font-weight: 700; }

/* ---------- Hero ---------- */
.ikp-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.ikp-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background:
	radial-gradient(40% 50% at 20% 20%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 70%),
	radial-gradient(35% 45% at 85% 30%, color-mix(in oklab, var(--brand-2) 18%, transparent), transparent 70%);
	pointer-events: none; z-index: -1; }
.ikp-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%); z-index: -1; pointer-events: none; }
.ikp-hero__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ikp-hero__title { font-size: clamp(38px, 6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 20px; }
.ikp-hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 600px; }
.ikp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ikp-hero__card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow-l); transform: rotate(1.5deg); transition: transform .5s var(--ease); }
.ikp-hero__card:hover { transform: rotate(0); }
.ikp-hero__photo { border-radius: calc(var(--radius-xl) - 8px); overflow: hidden; aspect-ratio: 7 / 8; background: var(--surface-2); }
.ikp-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ikp-hero__id { position: absolute; left: 30px; right: 30px; bottom: 112px; padding: 14px 18px; border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.ikp-hero__name { font: 700 18px/1.2 var(--font-display); margin: 0; }
.ikp-hero__role { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ikp-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 14px 4px 4px; margin: 0; }
.ikp-hero__stats li { text-align: center; }
.ikp-hero__stats strong { display: block; font: 800 22px/1.1 var(--font-display); }
.ikp-hero__stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- Covers ---------- */
.ikp-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.ikp-cover__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ikp-cover--gen {
	--c1: color-mix(in oklab, var(--brand) 100%, transparent);
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(16px, 4%, 28px);
	color: var(--on-ink); isolation: isolate;
	background:
		radial-gradient(90% 80% at 75% 0%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 62%),
		radial-gradient(60% 60% at 0% 100%, color-mix(in oklab, var(--brand-2) 30%, transparent), transparent 70%),
		var(--ink);
}
.ikp-cover--gen::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.ikp-cover--gen::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -22%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 28px rgba(255, 255, 255, .05), 0 0 0 56px rgba(255, 255, 255, .04); z-index: -1; }
.ikp-cover__glyph { position: absolute; top: clamp(14px, 4%, 24px); left: clamp(16px, 4%, 28px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ikp-cover__glyph .ikp-icon { width: 22px; height: 22px; }
.ikp-cover__label { font: 700 11.5px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ikp-cover__title { font: 700 clamp(17px, 2.2vw, 24px)/1.18 var(--font-display); letter-spacing: -.02em; text-wrap: balance; max-width: 92%; text-shadow: 0 1px 12px rgba(0, 0, 0, .15); }

/* ---------- Cards & grids ---------- */
.ikp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ikp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 10px; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.ikp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.ikp-card:hover .ikp-cover__img { transform: scale(1.04); }
.ikp-card__media { display: block; }
.ikp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 12px; flex: 1; }
.ikp-card__title { font-size: 19px; line-height: 1.3; margin: 0; font-weight: 700; text-wrap: balance; }
.ikp-card__title a { color: var(--text); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.ikp-card__title a:hover { background-size: 100% 1.5px; color: var(--text); }
.ikp-card__title a::after { content: ""; position: absolute; inset: 0; }
.ikp-card { position: relative; }
.ikp-card .ikp-chip { position: relative; z-index: 1; }
.ikp-card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.ikp-card__date { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Feature */
.ikp-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow); }
.ikp-feature__media .ikp-cover { border-radius: calc(var(--radius-xl) - 8px); aspect-ratio: 16 / 10; }
.ikp-feature__body { padding: 12px clamp(8px, 2vw, 24px) 12px 0; }
.ikp-feature__title { font-size: clamp(24px, 3vw, 36px); margin: 14px 0 12px; line-height: 1.15; }
.ikp-feature__title a { color: var(--text); }
.ikp-feature__body > p { color: var(--text-2); }

/* Topics */
.ikp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ikp-topic { position: relative; display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.ikp-topic::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); filter: blur(30px); opacity: .25; transition: opacity .3s; }
.ikp-topic:hover { transform: translateY(-3px); border-color: var(--brand-line); color: var(--text); }
.ikp-topic:hover::before { opacity: .5; }
.ikp-topic strong { font: 700 17px/1.3 var(--font-display); }
.ikp-topic span { font-size: 13.5px; color: var(--muted); }
.ikp-topic .ikp-icon { position: absolute; right: 18px; top: 22px; color: var(--brand-ink); transition: transform .3s var(--ease); }
.ikp-topic:hover .ikp-icon { transform: translateX(4px); }

/* Library teaser */
.ikp-library-teaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 5vw, 56px); border-radius: var(--radius-xl); background: linear-gradient(140deg, var(--brand-soft), var(--surface)); border: 1px solid var(--brand-line); }
.ikp-library-teaser__copy p { color: var(--text-2); margin: 16px 0 24px; }
.ikp-term-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ikp-term-list a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
.ikp-term-list a:hover { transform: translateY(-2px); border-color: var(--brand-line); color: var(--text); }
.ikp-term-list__letter { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 800 16px/1 var(--font-display); }
.ikp-term-list strong { display: block; font-size: 15px; line-height: 1.3; }
.ikp-term-list small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }

/* About strip */
.ikp-about-strip { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.ikp-about-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.ikp-about-strip p { color: var(--text-2); margin-top: 14px; }

/* ---------- Page heads & breadcrumbs ---------- */
.ikp-pagehead { padding-block: clamp(32px, 6vw, 72px) clamp(8px, 2vw, 16px); position: relative; }
.ikp-pagehead::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; background: radial-gradient(50% 80% at 10% 0%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 70%); z-index: -1; pointer-events: none; }
.ikp-pagehead__title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.ikp-pagehead__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 680px; }
.ikp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--muted); }
.ikp-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.ikp-crumbs li + li::before { content: "/"; opacity: .45; }
.ikp-crumbs a { color: var(--muted); }
.ikp-crumbs a:hover { color: var(--brand-ink); }
.ikp-crumbs [aria-current] span { color: var(--text-2); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* ---------- Article ---------- */
.ikp-article__head { padding-block: clamp(28px, 5vw, 64px) 24px; }
.ikp-article__title { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.032em; line-height: 1.08; margin: 18px 0 16px; text-wrap: balance; }
.ikp-article__lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--text-2); line-height: 1.6; }
.ikp-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ikp-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.ikp-byline__name { display: block; font-weight: 700; font-size: 15px; }
.ikp-byline__date { display: block; font-size: 13.5px; color: var(--muted); }
.ikp-article__cover { margin-bottom: clamp(24px, 4vw, 48px); }
.ikp-article__cover .ikp-cover { aspect-ratio: 21 / 9; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.ikp-article__cover .ikp-cover__title { font-size: clamp(22px, 3.6vw, 42px); max-width: 70%; }
.ikp-article__cover .ikp-cover__glyph { width: 56px; height: 56px; }

.ikp-article__layout { display: grid; grid-template-columns: 56px minmax(0, var(--narrow)) 280px; gap: clamp(24px, 3vw, 48px); justify-content: center; align-items: start; }
.ikp-article__layout--norail { grid-template-columns: minmax(0, var(--narrow)) 280px; }
.ikp-article__rail, .ikp-article__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.ikp-sticky { display: grid; gap: 20px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; scrollbar-width: thin; padding-bottom: 8px; }
.ikp-article--library .ikp-article__head { padding-bottom: 32px; }

.ikp-share { display: flex; align-items: center; gap: 8px; }
.ikp-share a, .ikp-share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.ikp-share a:hover, .ikp-share button:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.ikp-share .ikp-icon { width: 18px; height: 18px; }
.ikp-share--rail { flex-direction: column; }
.ikp-share--inline { flex-wrap: wrap; margin: 40px 0; padding: 20px; border-radius: var(--radius-l); background: var(--surface-2); }
.ikp-share--inline > span { font-weight: 600; margin-right: auto; }

/* TOC */
.ikp-toc { font-size: 14px; }
.ikp-toc__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12.5px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ikp-toc__title .ikp-icon { width: 16px; height: 16px; }
.ikp-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.ikp-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; transition: color .2s, border-color .2s; }
.ikp-toc li.lvl-3 a { padding-left: 28px; font-size: 13.5px; }
.ikp-toc li a:hover { color: var(--text); }
.ikp-toc li a.is-active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.ikp-toc-mobile { display: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ikp-toc-mobile summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.ikp-toc-mobile summary::-webkit-details-marker { display: none; }
.ikp-toc-mobile summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.ikp-toc-mobile[open] summary::after { content: "–"; }
.ikp-toc-mobile .ikp-toc { padding: 0 18px 16px; }
.ikp-toc-mobile .ikp-toc__title { display: none; }

.ikp-mini-cta { padding: 18px; border-radius: var(--radius-l); background: linear-gradient(140deg, var(--brand-soft), var(--surface)); border: 1px solid var(--brand-line); font-size: 14px; }
.ikp-mini-cta p { margin: 0 0 8px; }
.ikp-mini-cta p + p { color: var(--muted); margin-bottom: 14px; }
.ikp-related-terms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ikp-related-terms a { display: block; padding: 8px 12px; border-radius: var(--radius-s); color: var(--text-2); font-size: 14.5px; }
.ikp-related-terms a:hover { background: var(--surface-2); color: var(--text); }
.ikp-widget { font-size: 14px; }
.ikp-widget__title { font-size: 15px; }

/* ---------- Prose ---------- */
.ikp-prose { font-size: 18px; line-height: 1.8; color: var(--text-2); overflow-wrap: break-word; }
.ikp-prose > * + * { margin-top: 1.25em; }
.ikp-prose p { margin-bottom: 0; }
.ikp-prose h2 { font-size: clamp(25px, 2.8vw, 32px); font-weight: 700; margin: 2.2em 0 .6em; color: var(--text); position: relative; scroll-margin-top: calc(var(--header-h) + 20px); }
.ikp-prose h3 { font-size: clamp(20px, 2.1vw, 23px); font-weight: 700; margin: 1.8em 0 .5em; color: var(--text); scroll-margin-top: calc(var(--header-h) + 20px); }
.ikp-prose h4 { font-size: 18px; margin: 1.6em 0 .4em; }
.ikp-prose h2 + *, .ikp-prose h3 + * { margin-top: 0; }
.ikp-anchor { margin-left: .35em; opacity: 0; color: var(--muted); font-weight: 400; transition: opacity .2s; }
.ikp-prose h2:hover .ikp-anchor, .ikp-prose h3:hover .ikp-anchor { opacity: 1; }
.ikp-prose a:not(.ikp-btn) { color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ikp-prose a:not(.ikp-btn):hover { text-decoration-color: var(--brand); }
.ikp-prose strong { color: var(--text); font-weight: 650; }
.ikp-prose ul, .ikp-prose ol { padding-left: 1.3em; }
.ikp-prose li { margin: .45em 0; padding-left: .2em; }
.ikp-prose li::marker { color: var(--brand); font-weight: 700; }
.ikp-prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brand); font-size: 1.1em; font-style: italic; color: var(--text); }
.ikp-prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 3em 0; }
.ikp-prose img, .ikp-prose figure img { border-radius: var(--radius); }
.ikp-prose figure { margin-inline: 0; }
.ikp-prose figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.ikp-prose code { font-family: var(--font-mono); font-size: .86em; padding: .15em .45em; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.ikp-prose pre { font-family: var(--font-mono); font-size: 14.5px; line-height: 1.65; padding: 20px 22px; border-radius: var(--radius); background: var(--code-bg); color: var(--code-text); overflow-x: auto; }
.ikp-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.ikp-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.55; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.ikp-prose th, .ikp-prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.ikp-prose th { background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 14px; }
.ikp-prose tr:last-child td { border-bottom: 0; }
.ikp-prose .wp-block-table { overflow-x: auto; }

/* Content components used in articles */
.ikp-tldr { padding: 22px 24px; border-radius: var(--radius-l); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.ikp-tldr > p:first-child { font: 700 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.ikp-tldr ul { margin: 0; }
.ikp-callout { position: relative; padding: 18px 22px 18px 56px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); font-size: 16.5px; }
.ikp-callout::before { content: "i"; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 700 14px/1 var(--font-display); }
.ikp-callout--warn::before { content: "!"; background: #d97706; color: #fff; }
.ikp-callout--tip::before { content: "★"; font-size: 12px; }
.ikp-callout strong:first-child { display: block; margin-bottom: 2px; }
.ikp-checklist { list-style: none; padding: 0 !important; }
.ikp-checklist li { position: relative; padding: 12px 16px 12px 48px !important; margin: 8px 0 !important; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.ikp-checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ikp-steps { list-style: none; padding: 0 !important; counter-reset: step; }
.ikp-steps > li { counter-increment: step; position: relative; padding: 4px 0 4px 56px !important; margin: 18px 0 !important; }
.ikp-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 700 16px/1 var(--font-display); }
.ikp-faq { padding: 8px 0; }
.ikp-faq h3 { font-size: 19px; margin: 1.4em 0 .3em; }
.ikp-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ikp-key > div { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ikp-key strong { display: block; font: 700 22px/1.2 var(--font-display); color: var(--brand-ink); }
.ikp-key span { font-size: 14.5px; color: var(--muted); }

.ikp-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 2.4em 0 !important; padding: 24px; border-radius: var(--radius-l); background: radial-gradient(70% 120% at 100% 0%, color-mix(in oklab, var(--brand) 35%, transparent), transparent 60%), var(--ink); color: var(--on-ink); box-shadow: var(--shadow); border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent); }
.ikp-cta-card .ikp-eyebrow { color: var(--brand); }
.ikp-cta-card__title { font: 700 20px/1.3 var(--font-display); margin: 0; color: inherit; }
.ikp-cta-card .ikp-btn--primary { text-decoration: none !important; }

/* Author, post nav, related, comments */
.ikp-author { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); margin: 40px 0; }
.ikp-author img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; flex: none; }
.ikp-author .ikp-eyebrow { margin-bottom: 4px; }
.ikp-author__name { font: 700 20px/1.2 var(--font-display); margin: 0; }
.ikp-author__role { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.ikp-author p:last-of-type { font-size: 15px; color: var(--text-2); }
.ikp-author__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; }
.ikp-author__links a:not(:first-child) { color: var(--muted); }
.ikp-author__links .ikp-icon { width: 18px; height: 18px; }
.ikp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0; }
.ikp-postnav a { display: block; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.ikp-postnav a:hover { border-color: var(--brand-line); transform: translateY(-2px); color: var(--text); }
.ikp-postnav small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 4px; }
.ikp-postnav span { font-weight: 600; line-height: 1.35; }
.ikp-postnav__next { text-align: right; grid-column: 2; }
.ikp-related { background: var(--surface-2); margin-top: 48px; }
.ikp-comments { margin: 48px 0; }
.ikp-comments__title { font-size: 24px; }
.ikp-comments__list { list-style: none; padding: 0; }
.ikp-comments__list .comment-body { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; font-size: 15.5px; }
.ikp-comments__list .children { list-style: none; padding-left: 24px; }
.ikp-comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea, .ikp-form input, .ikp-form select, .ikp-form textarea {
	width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 16px var(--font-sans); transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus, .comment-form textarea:focus, .ikp-form input:focus, .ikp-form select:focus, .ikp-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* Pagination */
.ikp-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.ikp-pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; }
.ikp-pagination .page-numbers.current { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.ikp-pagination a.page-numbers:hover { border-color: var(--brand-line); }
.ikp-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.ikp-empty .ikp-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--brand); }

/* ---------- SEO Library ---------- */
.ikp-az { position: sticky; top: var(--header-h); z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.admin-bar .ikp-az { top: calc(var(--header-h) + 32px); }
.ikp-az .ikp-container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.ikp-az .ikp-container::-webkit-scrollbar { display: none; }
.ikp-az a, .ikp-az span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 700 14px/1 var(--font-display); }
.ikp-az a { color: var(--text); }
.ikp-az a:hover, .ikp-az a.is-active { background: var(--brand); color: var(--on-brand); }
.ikp-az span { color: var(--muted); opacity: .4; }
.ikp-letter { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 72px); }
.ikp-letter__head { font-size: 44px; font-weight: 800; margin: 0; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; position: sticky; top: calc(var(--header-h) + 72px); align-self: start; }
.ikp-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ikp-term { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.ikp-term:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow); color: var(--text); }
.ikp-term__topic { font: 700 11.5px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.ikp-term__title { font: 700 18px/1.3 var(--font-display); }
.ikp-term__def { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.ikp-library-intro { max-width: var(--narrow); margin: 64px auto 0; font-size: 17px; }
.ikp-definition { margin-top: 20px; padding: 22px 24px; border-radius: var(--radius-l); background: var(--brand-soft); border: 1px solid var(--brand-line); border-left: 5px solid var(--brand); }
.ikp-definition .ikp-eyebrow { margin-bottom: 8px; }
.ikp-definition p:last-child { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--text); }

/* ---------- About ---------- */
.ikp-about-hero { padding-block: clamp(32px, 6vw, 80px) 24px; position: relative; }
.ikp-about-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 85% 30%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 70%); z-index: -1; }
.ikp-about-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ikp-about-hero__photo { position: relative; margin: 0; }
.ikp-about-hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.ikp-about-hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; display: grid; padding: 12px 18px; border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.ikp-about-hero__photo figcaption span { font-size: 13px; color: var(--muted); }
.ikp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ikp-stats li { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.ikp-stats span { font: 700 12px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ikp-stats strong { font: 800 26px/1.2 var(--font-display); color: var(--brand-ink); }
.ikp-stats small { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.ikp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ikp-services article { position: relative; padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ikp-services article > .ikp-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.ikp-services h3 { font-size: 20px; }
.ikp-services p { color: var(--muted); font-size: 15.5px; margin: 0; }
.ikp-services__n { position: absolute; right: 22px; top: 18px; font: 800 44px/1 var(--font-display); color: var(--line-strong); }
.ikp-connect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ikp-connect a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
.ikp-connect a:hover { transform: translateY(-3px); border-color: var(--brand-line); color: var(--text); }
.ikp-connect .ikp-icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.ikp-connect span { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.ikp-contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.ikp-contact__side { display: grid; gap: 12px; }
.ikp-contact__card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
a.ikp-contact__card:hover { border-color: var(--brand-line); color: var(--text); }
.ikp-contact__card .ikp-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.ikp-contact__card span { display: grid; font-size: 14.5px; color: var(--muted); }
.ikp-contact__card strong { color: var(--text); font-size: 16px; }
.ikp-contact__form { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ikp-form { display: grid; gap: 16px; }
.ikp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ikp-form label > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ikp-form textarea { min-height: 140px; resize: vertical; }
.ikp-form .ikp-btn { justify-self: start; }
.ikp-hp { position: absolute; left: -9999px; }
.ikp-alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--radius-s); font-weight: 500; }
.ikp-alert--ok { background: color-mix(in oklab, #16a34a 14%, var(--surface)); color: color-mix(in oklab, #16a34a 70%, var(--text)); }
.ikp-alert--err { background: color-mix(in oklab, #dc2626 12%, var(--surface)); color: color-mix(in oklab, #dc2626 70%, var(--text)); }

/* ---------- 404 ---------- */
.ikp-404 { text-align: center; }
.ikp-404 .ikp-search, .ikp-404 .ikp-hero__actions { margin-inline: auto; justify-content: center; }
.ikp-404__code { font: 800 clamp(96px, 18vw, 180px)/1 var(--font-display); letter-spacing: -.06em; margin: 0; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.ikp-footer { margin-top: 32px; padding-top: clamp(40px, 6vw, 72px); background: var(--surface); border-top: 1px solid var(--line); }
.ikp-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: radial-gradient(60% 140% at 100% 0%, color-mix(in oklab, var(--brand) 40%, transparent), transparent 60%), var(--ink); color: var(--on-ink); margin-bottom: clamp(40px, 6vw, 64px); border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent); box-shadow: var(--shadow-l); position: relative; overflow: hidden; }
.ikp-footer__cta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .04); pointer-events: none; }
.ikp-footer__cta .ikp-eyebrow { color: var(--brand); }
.ikp-footer__cta-title { color: inherit; font-size: clamp(24px, 3vw, 34px); margin: 0; max-width: 560px; }
.ikp-footer__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.ikp-footer__cta .ikp-btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .28); }
.ikp-footer__cta .ikp-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--on-ink); }
.ikp-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.ikp-footer__brand p { color: var(--muted); font-size: 15px; margin: 16px 0; max-width: 380px; }
.ikp-footer__title { font: 700 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.ikp-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.ikp-footer__links a { color: var(--text-2); }
.ikp-footer__links a:hover { color: var(--brand-ink); }
.ikp-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ikp-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); transition: background-color .2s, color .2s; }
.ikp-social a:hover { background: var(--brand); color: var(--on-brand); }
.ikp-social .ikp-icon { width: 18px; height: 18px; }
.ikp-footer__bar { border-top: 1px solid var(--line); padding: 18px 0; font-size: 14px; color: var(--muted); }
.ikp-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ikp-footer__bar p { margin: 0; }
.ikp-footer__menu { display: flex; gap: 16px; list-style: none; margin: 0 auto; padding: 0; }
.ikp-footer__menu a { color: var(--muted); }
.ikp-credit { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ikp-credit a { display: inline-flex; }
.ikp-credit img { height: 26px; width: auto; }
/* The Thynk Digital mark is white text + orange "Y": darken the white parts on light backgrounds. */
:root:not([data-theme="dark"]) .ikp-credit img { filter: invert(1) hue-rotate(180deg) saturate(1.6); }

/* ---------- Tab bar, sheet, toast, to-top ---------- */
.ikp-tabbar { display: none; }
.ikp-sheet { position: fixed; inset: 0; z-index: 100; }
.ikp-sheet[hidden] { display: none; }
.ikp-sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 15, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ikp-fade .25s var(--ease); }
.ikp-sheet__panel { position: absolute; left: 50%; top: 12vh; width: min(680px, calc(100% - 32px)); transform: translateX(-50%); background: var(--surface); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-l); animation: ikp-pop .3s var(--ease); }
.ikp-sheet__panel .ikp-search { margin: 0; max-width: none; }
.ikp-sheet__suggest { margin-top: 20px; }
.ikp-sheet__close { position: absolute; right: 14px; top: -56px; }
.ikp-sheet__grab { display: none; }
@keyframes ikp-fade { from { opacity: 0; } }
@keyframes ikp-pop { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } }
@keyframes ikp-up { from { transform: translateY(100%); } }
.ikp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-l); animation: ikp-pop .25s var(--ease); }
.ikp-totop { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.ikp-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption-text { text-align: center; font-size: 14px; color: var(--muted); }
.sticky .ikp-card { border-color: var(--brand-line); }
.bypostauthor > .comment-body { border-color: var(--brand-line); }
.gallery-caption { font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.ikp-article__layout { grid-template-columns: 48px minmax(0, 1fr) 240px; }
	.ikp-article__layout--norail { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 1024px) {
	.ikp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ikp-hero__grid, .ikp-library-teaser, .ikp-about-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.ikp-hero__card { max-width: 440px; transform: none; }
	.ikp-article__layout, .ikp-article__layout--norail { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--narrow) + var(--gutter) * 2); }
	.ikp-article__rail, .ikp-article__aside { display: none; }
	.ikp-toc-mobile { display: block; }
	.ikp-footer__grid { grid-template-columns: 1fr 1fr; }
	.ikp-stats { grid-template-columns: 1fr 1fr; }
	.ikp-connect { grid-template-columns: 1fr 1fr; }
	.ikp-contact { grid-template-columns: 1fr; }
	.ikp-about-hero__photo { max-width: 420px; }
}

/* ---------- App-style mobile UI ---------- */
@media (max-width: 900px) {
	:root { --header-h: 60px; }
	body { font-size: 16.5px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); overscroll-behavior-y: none; }
	.admin-bar .ikp-header { top: 0; }
	.ikp-nav, .ikp-only-desktop { display: none !important; }
	.ikp-only-mobile { display: inline-grid !important; }
	.ikp-header__inner { gap: 10px; }
	.ikp-header .ikp-iconbtn { width: 40px; height: 40px; border-color: transparent; background: var(--surface-2); }
	.ikp-logo img { height: 32px; max-width: 150px; }
	.is-reading .ikp-header__back { display: inline-grid; }
	.is-reading .ikp-header .ikp-logo { position: absolute; left: 50%; transform: translateX(-50%); }
	.is-reading .ikp-header .ikp-logo img { height: 28px; }
	.ikp-header__actions { gap: 6px; margin-left: auto !important; }
	.is-reading .ikp-header [data-open-search] { display: none; }

	/* Bottom tab bar */
	.ikp-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		display: grid; grid-template-columns: repeat(5, 1fr);
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
		padding: 6px 6px env(safe-area-inset-bottom);
		background: var(--glass);
		-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
		border-top: 1px solid var(--line);
		transition: transform .3s var(--ease);
	}
	.ikp-tabbar.is-hidden { transform: translateY(100%); }
	.ikp-tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; color: var(--muted); font: 600 11px/1 var(--font-sans); letter-spacing: .01em; transition: color .2s; }
	.ikp-tabbar__item .ikp-icon { width: 24px; height: 24px; transition: transform .25s var(--ease); }
	.ikp-tabbar__item:active .ikp-icon { transform: scale(.86); }
	.ikp-tabbar__item.is-active { color: var(--brand-ink); }
	.ikp-tabbar__item.is-active::before { content: ""; position: absolute; top: 2px; width: 56px; height: 32px; border-radius: 999px; background: var(--brand-soft); z-index: -1; }
	.ikp-tabbar__item.is-active .ikp-icon { stroke-width: 2.2; }

	/* Bottom sheet search */
	.ikp-sheet__panel { top: auto; bottom: 0; left: 0; width: 100%; transform: none; border-radius: 28px 28px 0 0; padding: 12px 18px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; animation: ikp-up .35s var(--ease); }
	.ikp-sheet__grab { display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 16px; }
	.ikp-sheet__close { top: 12px; right: 12px; width: 36px; height: 36px; }
	.ikp-sheet__panel .ikp-search { margin-top: 28px; }

	.ikp-totop { display: none; }
	.ikp-toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }

	/* Large titles & tighter sections */
	.ikp-section { padding-block: 40px; }
	.ikp-section--tight { padding-block: 20px; }
	.ikp-section__head { margin-bottom: 18px; }
	.ikp-section__title { font-size: 26px; }
	.ikp-pagehead { padding-top: 20px; }
	.ikp-pagehead__title { font-size: 34px; }

	/* Horizontal card rails (app feel) */
	.ikp-grid--rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
	.ikp-grid--rail::-webkit-scrollbar { display: none; }
	.ikp-grid--rail > .ikp-card { flex: 0 0 82%; scroll-snap-align: start; }
	.ikp-card:hover { transform: none; }
	.ikp-card:active { transform: scale(.985); }

	.ikp-hero { padding-top: 24px; }
	.ikp-hero__title { font-size: 38px; }
	.ikp-hero__actions .ikp-btn { flex: 1; }
	.ikp-hero__card { margin-inline: auto; }
	.ikp-feature { grid-template-columns: minmax(0, 1fr); padding: 10px; }
	.ikp-feature__body { padding: 8px 10px 14px; }
	.ikp-topics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
	.ikp-topics::-webkit-scrollbar { display: none; }
	.ikp-topic { flex: 0 0 62%; scroll-snap-align: start; }
	.ikp-term-list { grid-template-columns: 1fr; }
	.ikp-about-strip { grid-template-columns: minmax(0, 1fr); }
	.ikp-about-strip img { max-width: 220px; }

	.ikp-article__head { padding-top: 20px; }
	.ikp-article__title { font-size: 32px; }
	.ikp-article__cover { padding-inline: 0; }
	.ikp-article__cover .ikp-cover { border-radius: 0; aspect-ratio: 16 / 10; }
	.ikp-prose { font-size: 17px; line-height: 1.75; }
	.ikp-author { flex-direction: column; }
	.ikp-postnav { grid-template-columns: 1fr; }
	.ikp-postnav__next { grid-column: auto; }
	.ikp-letter { grid-template-columns: 1fr; gap: 12px; }
	.ikp-letter__head { position: static; font-size: 34px; }
	.ikp-terms { grid-template-columns: 1fr; }
	.ikp-az { top: var(--header-h); }
	.admin-bar .ikp-az { top: var(--header-h); }
	.ikp-services, .ikp-connect { grid-template-columns: 1fr; }
	.ikp-form__row { grid-template-columns: 1fr; }
	.ikp-form .ikp-btn { justify-self: stretch; }
	.ikp-footer { margin-top: 0; }
	.ikp-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.ikp-footer__bar-inner { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
	.ikp-cta-card { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
	.ikp-grid { grid-template-columns: 1fr; }
	.ikp-stats { grid-template-columns: 1fr 1fr; }
	.ikp-stats li { padding: 16px; }
	.ikp-stats strong { font-size: 20px; }
	.ikp-hero__stats strong { font-size: 18px; }
	.ikp-search { padding-left: 44px; }
	.ikp-search > .ikp-icon { left: 16px; }
	.ikp-search .ikp-btn { padding: 0 14px; }
}

/* Installed app (standalone) — hide browser-only bits, extra polish */
@media (display-mode: standalone) {
	.ikp-header { padding-top: max(env(safe-area-inset-top), 4px); }
	body { -webkit-user-select: none; user-select: none; }
	.ikp-prose, input, textarea { -webkit-user-select: text; user-select: text; }
}

@media print {
	.ikp-header, .ikp-footer, .ikp-tabbar, .ikp-article__rail, .ikp-article__aside, .ikp-share, .ikp-related, .ikp-comments, .ikp-cta-card, .ikp-progress, .ikp-totop { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
}
