/*
Theme Name: Plattio KB
Theme URI: https://plattio.no/
Author: Plattio AS
Author URI: https://plattio.no/
Description: Official companion theme for the Plattio KB documentation and knowledge-base plugin.
Version: 1.4.8
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: plattio-kb-theme
Tags: documentation, knowledge-base, custom-logo, rtl-language-support
License: Proprietary
*/
:root{--pkt-primary:#0178ff;--pkt-on-primary:#fff;--pkt-text:#353744;--pkt-heading:#242733;--pkt-muted:#646b77;--pkt-border:#e2e6ed;--pkt-border-strong:#cfd6e1;--pkt-surface:#fff;--pkt-card:#f6f8fb;--pkt-elevated:#fff;--pkt-soft:#eef3f9;--pkt-code-bg:#0b172a;--pkt-code-text:#f6f8fb;--pkt-success:#16803c;--pkt-danger:#b42318;--pkt-warning:#9a6700;--pkt-shadow:rgba(15,23,42,.14);--pkt-width:1210px;--pkt-radius:16px;color-scheme:light}html[data-pkt-theme=dark]{--pkt-primary:#0178ff;--pkt-on-primary:#fff;--pkt-text:#e8edf5;--pkt-heading:#fff;--pkt-muted:#aab4c3;--pkt-border:#2e3949;--pkt-border-strong:#435064;--pkt-surface:#0f141c;--pkt-card:#171e29;--pkt-elevated:#1c2532;--pkt-soft:#202a38;--pkt-code-bg:#080d14;--pkt-code-text:#f5f7fa;--pkt-success:#4ade80;--pkt-danger:#ff8585;--pkt-warning:#f6c453;--pkt-shadow:rgba(0,0,0,.46);color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--pkt-text);background:var(--pkt-surface);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{color:inherit;text-decoration:none}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.pkt-skip-link{position:fixed;z-index:99999;inset-block-start:10px;inset-inline-start:10px;padding:9px 13px;color:#fff;background:#101828;border-radius:6px;transform:translateY(-160%)}.pkt-skip-link:focus{transform:none}
.pkt-site-header{position:sticky;top:0;z-index:1000;width:100%;background:color-mix(in srgb,var(--pkt-surface) 96%,transparent);border-bottom:1px solid var(--pkt-border);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}body.admin-bar .pkt-site-header{top:32px}.pkt-site-header__inner{max-width:1440px;margin:0 auto;padding:10px 24px}.pkt-header-main{display:flex;align-items:center;gap:16px;min-width:0;min-height:48px}.pkt-brand-wrap{display:flex;align-items:center;flex:0 1 auto;min-width:0}.pkt-brand,.custom-logo-link{display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--pkt-heading)}.custom-logo{width:auto;max-width:180px;max-height:32px}.pkt-brand__mark{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:var(--pkt-primary);color:#fff;font-size:18px;font-weight:800}.pkt-brand__text{min-width:0}.pkt-brand__text strong{display:block;max-width:190px;overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.pkt-header-search{flex:0 1 220px;min-width:150px}.pkt-header-search .pkb-search{display:block!important;max-width:none;margin:0}.pkt-header-search .pkb-search>span.dashicons-search{left:13px;font-size:17px}.pkt-header-search .pkb-search input[type=search]{height:38px;padding:0 42px 0 38px;border:1px solid var(--pkt-border);border-radius:10px;background:var(--pkt-card);box-shadow:none;font-size:13px}.pkt-header-search .pkb-search__clear{right:6px;width:28px;height:28px}.pkt-header-search .pkb-search-results{min-width:330px;border-radius:12px;box-shadow:0 16px 40px rgba(16,24,40,.12)}.pkt-product-switcher{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;margin:0}.pkt-product-switcher label{font-size:12px;font-weight:500;color:var(--pkt-muted);white-space:nowrap}.pkt-product-select-wrap{position:relative;display:block;min-width:180px;max-width:250px}.pkt-product-select-wrap select{width:100%;height:38px;padding:0 32px 0 11px;border:1px solid var(--pkt-border);border-radius:10px;background:var(--pkt-card);font-size:13px;font-weight:600;color:var(--pkt-heading);appearance:none;cursor:pointer;text-overflow:ellipsis}.pkt-product-select-wrap svg{position:absolute;top:50%;right:9px;width:15px;height:15px;color:var(--pkt-muted);transform:translateY(-50%);pointer-events:none}.pkt-nav{display:flex;align-items:center;gap:16px;flex:0 0 auto;min-width:0;margin-left:auto}.pkt-nav>ul{display:flex;align-items:center;gap:22px;margin:0;padding:0;list-style:none}.pkt-nav a{font-size:13px;font-weight:500;color:var(--pkt-heading);white-space:nowrap}.pkt-nav .current-menu-item>a,.pkt-nav a:hover{color:var(--pkt-primary)}.pkt-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:30px;padding:0;color:var(--pkt-muted);background:var(--pkt-card);border:1px solid var(--pkt-border-strong);border-radius:999px;cursor:pointer}.pkt-theme-toggle svg{width:15px;height:15px}.pkt-theme-toggle__sun{display:block}.pkt-theme-toggle__moon{display:none}html[data-pkt-theme=dark] .pkt-theme-toggle__sun{display:none}html[data-pkt-theme=dark] .pkt-theme-toggle__moon{display:block}.pkt-header-actions{display:none}.pkt-menu-toggle{display:none}
.pkt-main{min-height:calc(100vh - 120px)}.pkt-docs-page{padding:0}.pkt-docs-page>.pkb-app{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}.pkt-site-footer{background:var(--pkt-surface);border-top:1px solid var(--pkt-border)}.pkt-site-footer__inner{display:flex;align-items:center;justify-content:center;min-height:96px;padding:20px 24px;color:var(--pkt-muted);font-size:14px}
.pkt-theme .pkb-app,.pkt-theme .pkb-article-shell{--pkb-primary:var(--pkt-primary);--pkb-accent:var(--pkt-heading);--pkb-surface:var(--pkt-surface);--pkb-text:var(--pkt-text);--pkb-muted:var(--pkt-muted);--pkb-border:var(--pkt-border);--pkb-radius:var(--pkt-radius);--pkb-width:var(--pkt-width)}.pkt-theme .pkb-app{border:0;background:var(--pkt-surface)}.pkt-theme .pkb-view{min-height:auto}.pkt-theme .pkb-hero{padding:28px 24px 24px!important;margin:0!important;background:transparent;border:0}.pkt-theme .pkb-hero__inner{max-width:var(--pkt-width);margin:0 auto}.pkt-theme .pkb-hero__copy{max-width:760px}.pkt-theme .pkb-hero__headline{display:flex;flex-direction:column;gap:6px;margin:0;line-height:.95;letter-spacing:-.05em}.pkt-theme .pkb-hero__product{font-size:clamp(3rem,7vw,4rem);font-weight:800;color:var(--pkt-primary)}.pkt-theme .pkb-hero__title{font-size:clamp(2.6rem,6vw,4.7rem);font-weight:800;color:var(--pkt-heading)}.pkt-theme .pkb-hero__copy>p{max-width:650px;margin:22px 0 0;color:var(--pkt-muted);font-size:clamp(1.15rem,1.8vw,1.3rem)}.pkt-theme .pkb-hero__actions{display:flex;gap:14px;margin-top:32px}.pkt-theme .pkb-hero__button{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 24px;border-radius:999px;font-size:14px;font-weight:700}.pkt-theme .pkb-hero__button--primary{background:var(--pkt-primary);color:#fff}.pkt-theme .pkb-hero__button--secondary{background:var(--pkt-soft);color:var(--pkt-heading)}.pkt-theme .pkb-main{max-width:var(--pkt-width);margin:0 auto;padding:15px 0 76px!important}.pkt-theme .pkb-section--categories{margin:0}.pkt-theme .pkb-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.pkt-theme .pkb-category-card{display:flex;flex-direction:column;gap:20px;min-height:284px;padding:28px 30px;border:1px solid transparent;border-radius:20px;background:var(--pkt-card);box-shadow:none;transition:transform .16s ease,border-color .16s ease}.pkt-theme .pkb-category-card:hover{transform:translateY(-2px);border-color:var(--pkt-border-strong);background:var(--pkt-card);box-shadow:none}.pkt-theme .pkb-category-card__icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:10px;background:var(--pkt-soft);color:var(--pkt-primary)}.pkt-theme .pkb-category-card__icon .dashicons{font-size:22px}.pkt-theme .pkb-category-card__body{display:flex;flex-direction:column;align-items:flex-start;min-width:0;height:100%}.pkt-theme .pkb-category-card h4{margin:0;color:var(--pkt-heading);font-size:1.05rem;font-weight:700}.pkt-theme .pkb-category-card p{margin:10px 0 0;color:var(--pkt-muted);font-size:1rem;line-height:1.65}.pkt-theme .pkb-category-card__more{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:24px;color:var(--pkt-primary)!important;font-size:15px;font-weight:600}.pkt-theme .pkb-category-card__more .dashicons{font-size:15px}.pkt-theme .pkb-switch-status{top:14px;right:14px;border-radius:999px}
.pkt-theme .pkb-article-shell{background:var(--pkt-surface)}.pkt-theme .pkb-article-topbar{position:static;background:transparent;border:0;display:none}.pkt-theme .pkb-article-topbar__inner{max-width:var(--pkt-width);padding:0 24px;margin:0 auto;display:flex;align-items:center;gap:8px}.pkt-theme .pkb-back-link{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;border:1px solid var(--pkt-border);border-radius:8px;background:var(--pkt-card);font-size:13px;font-weight:600;color:var(--pkt-heading)}.pkt-theme .pkb-shortcut-pill{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:34px;padding:0 10px;border:1px solid var(--pkt-border);border-radius:8px;background:var(--pkt-card);font-size:12px;font-weight:700;color:var(--pkt-muted)}.pkt-theme .pkb-article-layout{max-width:var(--pkt-width);grid-template-columns:220px minmax(0,1fr) 180px;gap:32px;padding:12px 24px 74px!important}.pkt-theme .pkb-article-sidebar,.pkt-theme .pkb-article-aside{position:sticky;top:24px;align-self:start;max-height:none;overflow:visible;padding:0;border:0;background:transparent}.pkt-theme .pkb-sidebar-nav{display:block!important;margin-top:4px}.pkt-theme .pkb-sidebar-nav>ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.pkt-theme .pkb-sidebar-nav>ul>li>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 0;border:0;background:transparent;border-radius:0;font-size:13px;font-weight:700;color:var(--pkt-heading);cursor:pointer}.pkt-theme .pkb-sidebar-nav>ul>li>button .dashicons{font-size:14px;color:var(--pkt-muted)}.pkt-theme .pkb-sidebar-nav li ul{margin:0;padding:4px 0 0 0;list-style:none}.pkt-theme .pkb-sidebar-nav li li a{display:block;padding:7px 0 7px 14px;border-left:2px solid transparent;font-size:13px;color:var(--pkt-muted)}.pkt-theme .pkb-sidebar-nav li li a:hover,.pkt-theme .pkb-sidebar-nav li li a.is-current{border-left-color:var(--pkt-primary);color:var(--pkt-primary);background:transparent}.pkt-theme .pkb-article{min-width:0}.pkt-theme .pkb-article-header{padding-bottom:20px;border-bottom:1px solid var(--pkt-border)}.pkt-theme .pkb-article h1{margin:0;color:var(--pkt-heading);font-size:clamp(2.35rem,4vw,3.2rem);line-height:1.12;letter-spacing:-.04em}.pkt-theme .pkb-article-lead{max-width:760px;margin:14px 0 0;color:var(--pkt-text);font-size:1rem;line-height:1.75}.pkt-theme .pkb-article-mobile-toc{display:none}.pkt-theme .pkb-article-content{padding:22px 0 0;color:var(--pkt-text);font-size:15px;line-height:1.75}.pkt-theme .pkb-article-content h2,.pkt-theme .pkb-article-content h3,.pkt-theme .pkb-article-content h4{color:var(--pkt-heading)}.pkt-theme .pkb-article-content h2{margin:2.25em 0 .65em;font-size:1.65rem}.pkt-theme .pkb-article-content h3{margin:1.85em 0 .6em;font-size:1.25rem}.pkt-theme .pkb-article-content p,.pkt-theme .pkb-article-content ul,.pkt-theme .pkb-article-content ol{margin:0 0 1.25em}.pkt-theme .pkb-article-content a{color:var(--pkt-primary);text-decoration:underline;text-underline-offset:3px}.pkt-theme .pkb-article-content img{display:block;max-width:100%;height:auto;border-radius:0}.pkt-theme .pkb-article-content iframe,.pkt-theme .pkb-article-content video{max-width:100%;border-radius:12px}.pkt-theme .pkb-toc{display:block!important;padding:0;border:0;background:transparent}.pkt-theme .pkb-toc>strong{display:block;margin-bottom:10px;color:var(--pkt-heading);font-size:14px;font-weight:700}.pkt-theme .pkb-toc ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.pkt-theme .pkb-toc li a{display:block;color:var(--pkt-muted);font-size:13px;line-height:1.45}.pkt-theme .pkb-toc li a:hover{color:var(--pkt-heading)}.pkt-theme .pkb-toc li.is-level-3{padding-left:12px}.pkt-theme .pkb-toc li.is-level-4{padding-left:24px}.pkt-theme .pkb-feedback,.pkt-theme .pkb-attachments{margin-top:32px;padding:20px 22px;border:1px solid var(--pkt-border);border-radius:12px;background:var(--pkt-card);box-shadow:none}.pkt-theme .pkb-feedback strong,.pkt-theme .pkb-attachments h2{color:var(--pkt-heading)}.pkt-theme .pkb-feedback p{font-size:14px}.pkt-theme .pkb-feedback__actions button{min-height:38px;padding:8px 14px;border-radius:10px;background:var(--pkt-surface)}.pkt-theme .pkb-feedback__comment textarea{background:var(--pkt-surface)}.pkt-theme .pkb-support,.pkt-theme .pkb-breadcrumbs,.pkt-theme .pkb-article-meta,.pkt-theme .pkb-sidebar-product{display:none}.pkt-theme .pkb-main .pkb-search,.pkt-theme .pkb-hero .pkb-search{display:none}
@media(max-width:1200px){.pkt-product-switcher label{display:none}.pkt-product-select-wrap{min-width:160px}.pkt-header-search{flex-basis:190px}.pkt-brand__text strong{max-width:155px}}
@media(max-width:1050px){.pkt-header-search{flex:1 1 auto}.pkt-product-switcher{margin-left:auto}.pkt-theme .pkb-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pkt-theme .pkb-article-layout{grid-template-columns:220px minmax(0,1fr)}.pkt-theme .pkb-article-aside{display:none}}
@media(max-width:782px){body.admin-bar .pkt-site-header{top:46px}.pkt-site-header__inner{padding:9px 14px}.pkt-header-main{gap:10px;flex-wrap:wrap}.pkt-brand-wrap{flex:1 1 auto}.pkt-brand__text strong{max-width:155px}.pkt-header-search{order:3;flex:1 1 calc(100% - 54px);min-width:0}.pkt-product-switcher{order:4;flex:1 1 100%}.pkt-product-select-wrap{max-width:none;width:100%}.pkt-header-actions{display:flex;margin-left:auto}.pkt-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;border:1px solid var(--pkt-border);border-radius:10px;background:var(--pkt-card);color:var(--pkt-heading)}.pkt-menu-toggle span:not(.screen-reader-text){display:block;width:16px;height:2px;margin:2px auto;background:currentColor}.pkt-nav{position:absolute;top:calc(100% + 1px);left:14px;right:14px;z-index:40;display:none;align-items:stretch;flex-direction:column;margin:0;padding:10px;background:var(--pkt-surface);border:1px solid var(--pkt-border);border-radius:12px;box-shadow:0 12px 34px rgba(16,24,40,.14)}.pkt-nav.is-open{display:flex}.pkt-nav>ul{align-items:stretch;flex-direction:column;gap:4px}.pkt-nav a{display:flex;align-items:center;min-height:40px;padding:0 10px}.pkt-theme-toggle{align-self:flex-start;margin:4px 0}.pkt-theme .pkb-hero{padding:20px 16px 20px!important}.pkt-theme .pkb-hero__product{font-size:3.1rem}.pkt-theme .pkb-hero__title{font-size:3rem}.pkt-theme .pkb-main{padding:8px 16px 54px!important}.pkt-theme .pkb-category-grid{grid-template-columns:1fr;gap:18px}.pkt-theme .pkb-article-topbar__inner{padding:0 16px}.pkt-theme .pkb-article-layout{display:block;padding:8px 16px 54px!important}.pkt-theme .pkb-article-sidebar{position:static;margin-bottom:18px}.pkt-theme .pkb-sidebar-nav{display:none!important}.pkt-theme .pkb-article-mobile-toc{display:block;margin:24px 0}.pkt-theme .pkb-article-aside{display:none}}
@media(max-width:480px){.pkt-brand__text strong{max-width:120px;overflow:hidden;text-overflow:ellipsis}.pkt-theme .pkb-hero__actions{flex-wrap:wrap}.pkt-theme .pkb-hero__button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Sticky layout metrics and explicit header branding controls. */
:root{--pkt-admin-bar-height:0px;--pkt-header-height:64px;--pkt-sticky-offset:64px;--pkt-logo-height:34px}
.pkt-site-header{position:sticky!important;top:var(--pkt-admin-bar-height)!important;z-index:9000!important;overflow:visible!important}
.pkt-site-header__inner,.pkt-header-main,.pkt-header-search,.pkt-header-search .pkb-search{overflow:visible!important}
.custom-logo-link{display:inline-flex;align-items:center;max-width:240px}
.custom-logo{display:block;width:auto!important;height:auto!important;max-width:240px!important;max-height:var(--pkt-logo-height)!important;object-fit:contain}
.pkt-theme .pkb-article-sidebar,.pkt-theme .pkb-article-aside{top:calc(var(--pkt-sticky-offset) + 16px)!important;max-height:calc(100vh - var(--pkt-sticky-offset) - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:12px}
.pkt-theme .pkb-article-content h2,.pkt-theme .pkb-article-content h3,.pkt-theme .pkb-article-content h4{scroll-margin-top:calc(var(--pkt-sticky-offset) + 20px)!important}
.pkb-search-results.pkb-search-results--portal{z-index:99980!important;background:var(--pkt-surface)!important;color:var(--pkt-text)!important;border-color:var(--pkt-border)!important;box-shadow:0 24px 70px rgba(15,23,42,.28)!important}
.pkb-search-results.pkb-search-results--portal .pkb-search-result{color:var(--pkt-text)!important}
.pkb-search-results.pkb-search-results--portal .pkb-search-result:hover,.pkb-search-results.pkb-search-results--portal .pkb-search-result.is-active,.pkb-search-results.pkb-search-results--portal .pkb-search-result:focus{background:color-mix(in srgb,var(--pkt-primary) 8%,var(--pkt-surface))!important}
@media(max-width:782px){.pkt-theme .pkb-article-sidebar,.pkt-theme .pkb-article-aside{top:auto!important;max-height:none!important;overflow:visible!important}.custom-logo{max-width:190px!important}}

/* Keep WordPress toolbar menus above the documentation header and live-search portal. */
body.admin-bar #wpadminbar{z-index:100000!important}
body.admin-bar #wpadminbar .ab-sub-wrapper,body.admin-bar #wpadminbar .menupop>.ab-sub-wrapper{z-index:100001!important}

/* Complete light/dark color system and requested knowledge-base spacing. */
.pkt-theme .pkb-main {
	max-width: var(--pkt-width);
	margin: 0 auto;
	padding: 15px 0px 76px !important;
}

html[data-pkt-theme="dark"],
html[data-pkt-theme="dark"] body,
html[data-pkt-theme="dark"] .pkt-main,
html[data-pkt-theme="dark"] .pkt-docs-page,
html[data-pkt-theme="dark"] .pkt-theme .pkb-app,
html[data-pkt-theme="dark"] .pkt-theme .pkb-article-shell,
html[data-pkt-theme="dark"] .pkt-theme .pkb-archive-shell {
	background-color: var(--pkt-surface) !important;
	color: var(--pkt-text);
}

.pkt-theme ::selection {
	background: color-mix(in srgb, var(--pkt-primary) 32%, transparent);
	color: var(--pkt-heading);
}

.pkt-theme :where(input, select, textarea, button) {
	color: var(--pkt-text);
	border-color: var(--pkt-border);
	accent-color: var(--pkt-primary);
}

.pkt-theme :where(input, select, textarea) {
	background-color: var(--pkt-elevated);
}

.pkt-theme :where(input, textarea)::placeholder {
	color: var(--pkt-muted);
	opacity: 1;
}

.pkt-theme :where(input, select, textarea, button, a):focus-visible {
	outline: 2px solid var(--pkt-primary);
	outline-offset: 2px;
}

html[data-pkt-theme="dark"] .pkt-theme :where(input, select, textarea, button),
html[data-pkt-theme="dark"] .pkt-product-select-wrap select {
	color-scheme: dark;
}

html[data-pkt-theme="dark"] .pkt-product-select-wrap select,
html[data-pkt-theme="dark"] .pkt-product-select-wrap select option,
html[data-pkt-theme="dark"] .pkt-theme select,
html[data-pkt-theme="dark"] .pkt-theme select option {
	background: var(--pkt-elevated);
	color: var(--pkt-text);
}

.pkt-theme input:-webkit-autofill,
.pkt-theme input:-webkit-autofill:hover,
.pkt-theme input:-webkit-autofill:focus,
.pkt-theme textarea:-webkit-autofill,
.pkt-theme select:-webkit-autofill {
	-webkit-text-fill-color: var(--pkt-text);
	box-shadow: 0 0 0 1000px var(--pkt-elevated) inset;
	transition: background-color 9999s ease-out;
}

.pkt-site-header,
.pkt-site-footer,
.pkt-nav,
.pkt-theme .pkb-app,
.pkt-theme .pkb-article-shell,
.pkt-theme .pkb-archive-shell,
.pkt-theme .pkb-search-results,
.pkt-theme .pkb-search-results--portal,
.pkt-theme .pkb-toc,
.pkt-theme .pkb-feedback,
.pkt-theme .pkb-attachments,
.pkt-theme .pkb-support,
.pkt-theme .pkb-empty,
.pkt-theme .pkb-notice {
	color: var(--pkt-text);
	border-color: var(--pkt-border);
}

.pkt-theme .pkb-search input[type="search"],
.pkt-header-search .pkb-search input[type="search"],
.pkt-product-select-wrap select,
.pkt-theme .pkb-feedback__comment textarea {
	background: var(--pkt-card) !important;
	color: var(--pkt-text) !important;
	border-color: var(--pkt-border) !important;
}

.pkt-theme .pkb-search input[type="search"]:hover,
.pkt-header-search .pkb-search input[type="search"]:hover,
.pkt-product-select-wrap select:hover,
.pkt-theme .pkb-feedback__comment textarea:hover {
	border-color: var(--pkt-border-strong) !important;
}

.pkt-theme .pkb-search input[type="search"]:focus,
.pkt-header-search .pkb-search input[type="search"]:focus,
.pkt-product-select-wrap select:focus,
.pkt-theme .pkb-feedback__comment textarea:focus {
	border-color: var(--pkt-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pkt-primary) 18%, transparent) !important;
	outline: none;
}

.pkt-theme .pkb-search > .dashicons-search,
.pkt-theme .pkb-search__clear,
.pkt-product-select-wrap svg,
.pkt-theme .pkb-search-spinner {
	color: var(--pkt-muted) !important;
}

.pkt-theme .pkb-search__clear:hover,
.pkt-theme .pkb-search__clear:focus-visible {
	background: color-mix(in srgb, var(--pkt-text) 8%, transparent) !important;
	color: var(--pkt-heading) !important;
}

.pkb-search-results.pkb-search-results--portal,
.pkt-theme .pkb-search-results {
	background: var(--pkt-elevated) !important;
	color: var(--pkt-text) !important;
	border-color: var(--pkt-border) !important;
	box-shadow: 0 24px 70px var(--pkt-shadow) !important;
}

.pkt-theme .pkb-search-result,
.pkb-search-results.pkb-search-results--portal .pkb-search-result {
	background: transparent !important;
	color: var(--pkt-text) !important;
	border-color: var(--pkt-border) !important;
}

.pkt-theme .pkb-search-result:hover,
.pkt-theme .pkb-search-result:focus,
.pkt-theme .pkb-search-result.is-active,
.pkb-search-results.pkb-search-results--portal .pkb-search-result:hover,
.pkb-search-results.pkb-search-results--portal .pkb-search-result:focus,
.pkb-search-results.pkb-search-results--portal .pkb-search-result.is-active {
	background: color-mix(in srgb, var(--pkt-primary) 11%, var(--pkt-elevated)) !important;
}

.pkt-theme .pkb-search-result strong,
.pkt-theme .pkb-search-result__body strong,
.pkt-theme .pkb-search-empty strong {
	color: var(--pkt-heading) !important;
}

.pkt-theme .pkb-search-result small,
.pkt-theme .pkb-search-result__body small,
.pkt-theme .pkb-search-empty,
.pkt-theme .pkb-category-card__title small {
	color: var(--pkt-muted) !important;
}

.pkt-theme .pkb-search-result__icon,
.pkt-theme .pkb-article-card__icon,
.pkt-theme .pkb-category-card__icon,
.pkt-theme .pkb-sidebar-product__icon {
	background: color-mix(in srgb, var(--pkt-primary) 11%, var(--pkt-card)) !important;
	color: var(--pkt-primary) !important;
}

.pkt-theme .pkb-category-card,
.pkt-theme .pkb-article-card,
.pkt-theme .pkb-article-row,
.pkt-theme .pkb-feedback,
.pkt-theme .pkb-attachments,
.pkt-theme .pkb-empty,
.pkt-theme .pkb-notice {
	background: var(--pkt-card) !important;
	color: var(--pkt-text) !important;
	border-color: var(--pkt-border) !important;
}

.pkt-theme .pkb-category-card:hover,
.pkt-theme .pkb-article-card:hover,
.pkt-theme .pkb-article-row:hover {
	background: color-mix(in srgb, var(--pkt-primary) 5%, var(--pkt-card)) !important;
	border-color: var(--pkt-border-strong) !important;
}

.pkt-theme .pkb-hero__button--primary,
.pkt-theme .pkb-button,
.pkt-theme .pkb-switch-submit {
	background: var(--pkt-primary) !important;
	border-color: var(--pkt-primary) !important;
	color: var(--pkt-on-primary) !important;
}

.pkt-theme .pkb-hero__button--primary:hover,
.pkt-theme .pkb-button:hover,
.pkt-theme .pkb-switch-submit:hover {
	filter: brightness(.93);
}

.pkt-theme .pkb-hero__button--secondary,
.pkt-theme .pkb-back-link,
.pkt-theme .pkb-shortcut-pill,
.pkt-theme .pkb-feedback__actions button,
.pkt-theme .pkb-product-tab,
.pkt-menu-toggle,
.pkt-theme-toggle {
	background: var(--pkt-soft) !important;
	border-color: var(--pkt-border) !important;
	color: var(--pkt-heading) !important;
}

.pkt-theme .pkb-feedback__actions button:hover,
.pkt-theme .pkb-product-tab:hover,
.pkt-theme .pkb-product-tab.is-active,
.pkt-menu-toggle:hover,
.pkt-theme-toggle:hover {
	background: color-mix(in srgb, var(--pkt-primary) 10%, var(--pkt-soft)) !important;
	border-color: var(--pkt-primary) !important;
	color: var(--pkt-primary) !important;
}

.pkt-theme .pkb-feedback__actions button.is-selected {
	background: color-mix(in srgb, var(--pkt-primary) 13%, var(--pkt-card)) !important;
	border-color: var(--pkt-primary) !important;
	color: var(--pkt-primary) !important;
}

.pkt-theme .pkb-article-content,
.pkt-theme .pkb-article-content p,
.pkt-theme .pkb-article-content li,
.pkt-theme .pkb-article-lead {
	color: var(--pkt-text);
}

.pkt-theme .pkb-article-content :where(h1, h2, h3, h4, h5, h6),
.pkt-theme .pkb-article h1,
.pkt-theme .pkb-category-card h4,
.pkt-theme .pkb-section h3 {
	color: var(--pkt-heading);
}

.pkt-theme .pkb-article-content :where(hr) {
	border: 0;
	border-top: 1px solid var(--pkt-border);
}

.pkt-theme .pkb-article-content :where(pre, .wp-block-code, .wp-block-preformatted) {
	background: var(--pkt-code-bg) !important;
	color: var(--pkt-code-text) !important;
	border: 1px solid color-mix(in srgb, var(--pkt-border) 70%, transparent);
}

.pkt-theme .pkb-article-content :where(code):not(pre code) {
	background: color-mix(in srgb, var(--pkt-primary) 10%, var(--pkt-card)) !important;
	color: var(--pkt-heading);
}

.pkt-theme .pkb-article-content :where(blockquote, .wp-block-quote, .wp-block-pullquote) {
	background: color-mix(in srgb, var(--pkt-primary) 7%, var(--pkt-card));
	color: var(--pkt-text);
	border-color: var(--pkt-primary);
}

.pkt-theme .pkb-article-content :where(table, .wp-block-table table) {
	width: 100%;
	border-collapse: collapse;
	background: var(--pkt-elevated);
	color: var(--pkt-text);
}

.pkt-theme .pkb-article-content :where(th, td) {
	padding: .75em .9em;
	border: 1px solid var(--pkt-border);
	color: inherit;
}

.pkt-theme .pkb-article-content :where(th) {
	background: var(--pkt-soft);
	color: var(--pkt-heading);
}

.pkt-theme .pkb-article-content :where(tbody tr:nth-child(even)) {
	background: color-mix(in srgb, var(--pkt-card) 74%, var(--pkt-elevated));
}

.pkt-theme .pkb-article-content :where(figcaption, .wp-element-caption) {
	color: var(--pkt-muted);
}

.pkt-theme .pkb-article-content :where(.wp-block-button__link, .wp-element-button, .wp-block-file__button) {
	background: var(--pkt-primary);
	color: var(--pkt-on-primary) !important;
}

.pkt-theme .pkb-article-content :where(.wp-block-details) {
	border: 1px solid var(--pkt-border);
	background: var(--pkt-card);
	color: var(--pkt-text);
	border-radius: 10px;
	padding: 14px 16px;
}

.pkt-theme .pkb-toast {
	background: color-mix(in srgb, var(--pkb-toast-color, var(--pkt-success)) 8%, var(--pkt-elevated)) !important;
	color: var(--pkt-text) !important;
	border-color: color-mix(in srgb, var(--pkb-toast-color, var(--pkt-success)) 34%, var(--pkt-border)) !important;
	box-shadow: 0 18px 50px var(--pkt-shadow) !important;
}

.pkt-theme .pkb-toast__close {
	color: var(--pkt-muted);
}

.pkt-theme .pkb-toast__close:hover,
.pkt-theme .pkb-toast__close:focus-visible {
	background: color-mix(in srgb, var(--pkt-text) 8%, transparent);
	color: var(--pkt-heading);
}

html[data-pkt-theme="dark"] .pkt-nav {
	box-shadow: 0 18px 46px var(--pkt-shadow);
}

html[data-pkt-theme="dark"] img {
	color-scheme: dark;
}

html[data-pkt-theme="dark"] .pkt-theme .pkb-article-content img,
html[data-pkt-theme="dark"] .pkt-theme .pkb-article-content video,
html[data-pkt-theme="dark"] .pkt-theme .pkb-article-content iframe {
	background: var(--pkt-card);
}

html[data-pkt-theme="dark"] .pkt-theme :where(.pkb-notice, .pkb-empty) {
	box-shadow: none;
}

@media (forced-colors: active) {
	.pkt-theme :where(input, select, textarea, button, a):focus-visible {
		outline: 2px solid CanvasText;
	}
}



/* Product switching must remain clickable and usable even when scripts are delayed. */
.pkt-product-switcher{position:relative;z-index:30;isolation:isolate;pointer-events:auto!important}
.pkt-product-select-wrap{position:relative;z-index:2;pointer-events:auto!important}
.pkt-product-select-wrap select{position:relative;z-index:3;pointer-events:auto!important;touch-action:manipulation}
.pkt-product-submit{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid var(--pkt-border-strong);border-radius:10px;background:var(--pkt-card);color:var(--pkt-heading);font-size:12px;font-weight:700;cursor:pointer}
.pkt-product-submit:hover,.pkt-product-submit:focus-visible{border-color:var(--pkt-primary);color:var(--pkt-primary);outline:none}
.pkt-product-switcher[data-pkb-ready="1"] .pkt-product-submit{display:none}
@media(max-width:782px){.pkt-product-submit{flex:0 0 auto}.pkt-product-switcher:not([data-pkb-ready="1"]) .pkt-product-select-wrap{width:auto;flex:1 1 auto}}

/* Content layout for the non-documentation templates (index, single, page, 404). */
.pkt-content{max-width:var(--pkt-width);margin:0 auto;padding:48px 24px 76px}
.pkt-content--wide{max-width:1440px}
.pkt-page-header{margin:0 0 28px}
.pkt-page-header h1{margin:0;color:var(--pkt-heading);font-size:clamp(2rem,4vw,2.9rem);line-height:1.15;letter-spacing:-.03em}
.pkt-entry{color:var(--pkt-text);font-size:16px;line-height:1.75}
.pkt-entry>*:first-child{margin-top:0}
.pkt-entry h2{margin:2em 0 .6em;color:var(--pkt-heading);font-size:1.6rem}
.pkt-entry h3{margin:1.8em 0 .55em;color:var(--pkt-heading);font-size:1.25rem}
.pkt-entry p,.pkt-entry ul,.pkt-entry ol,.pkt-entry table{margin:0 0 1.25em}
.pkt-entry a{color:var(--pkt-primary);text-decoration:underline;text-underline-offset:3px}
.pkt-entry img{max-width:100%;height:auto;border-radius:12px}
.pkt-entry blockquote{margin:0 0 1.25em;padding:12px 18px;border-left:3px solid var(--pkt-primary);background:var(--pkt-card);color:var(--pkt-muted)}
.pkt-entry pre,.pkt-entry code{background:var(--pkt-code-bg);color:var(--pkt-code-text);border-radius:8px}
.pkt-entry code{padding:2px 6px;font-size:.9em}
.pkt-entry pre{padding:16px 18px;overflow:auto}
.pkt-entry pre code{padding:0;background:transparent}
.pkt-empty{display:flex;flex-direction:column;align-items:center;gap:14px;min-height:46vh;justify-content:center;text-align:center}
.pkt-empty h1{margin:0;color:var(--pkt-heading);font-size:clamp(3rem,8vw,5rem);font-weight:800;letter-spacing:-.05em}
.pkt-empty p{margin:0;color:var(--pkt-muted);font-size:1.05rem}
.pkt-empty .pkt-nav__docs{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:999px;background:var(--pkt-primary);color:var(--pkt-on-primary);font-size:14px;font-weight:700}
.pkt-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.pkt-post-card{display:flex;flex-direction:column;gap:10px;padding:26px 28px;border:1px solid transparent;border-radius:16px;background:var(--pkt-card);transition:transform .16s ease,border-color .16s ease}
.pkt-post-card:hover{transform:translateY(-2px);border-color:var(--pkt-border-strong)}
.pkt-post-card h2{margin:0;color:var(--pkt-heading);font-size:1.15rem;font-weight:700;line-height:1.35}
.pkt-post-card h2 a:hover{color:var(--pkt-primary)}
.pkt-post-card p{margin:0;color:var(--pkt-muted);font-size:.95rem;line-height:1.6}
.pkt-content .pagination,.pkt-content .nav-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.pkt-content .nav-links .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--pkt-border);border-radius:10px;background:var(--pkt-card);color:var(--pkt-heading);font-size:14px;font-weight:600}
.pkt-content .nav-links .page-numbers.current{background:var(--pkt-primary);border-color:var(--pkt-primary);color:var(--pkt-on-primary)}
@media(max-width:782px){.pkt-content{padding:28px 16px 56px}.pkt-post-grid{grid-template-columns:1fr;gap:18px}}
