/* The shared King Addons site, including the shell around live Elementor demos. */
:root {
  --ka-text: 1.125rem;
  --ka-lead: 1.25rem;
  --ka-control: 1rem;
  --ka-caption: 1rem;
  --ka-label: .875rem;
}

body.kp-site { font-size: var(--ka-text); }

body .kp-header nav,
body .kp-header .kp-account-link,
body .kp-header .kp-button,
body .kp-mobile-nav a { font-size: var(--ka-control); }

body .kp-footer-grid > div > a:not(.kp-brand),
body .kp-footer-grid > div:first-child > p,
body .kp-footer-grid .kp-footer-note > p { font-size: var(--ka-caption); line-height: 1.55; }
body .kp-footer-grid > div:first-child > span,
body .kp-footer-grid strong { font-size: var(--ka-label); line-height: 1.5; }
body .kp-footer-grid .kp-footer-note > a,
body .kp-footer-grid .launch-footer-links { font-size: var(--ka-caption) !important; }
body .kp-footer-grid > div { min-width: 0; overflow-wrap: anywhere; }

body:is(.kp-site, .kp-hybrid-page) .kp-eyebrow { font-size: var(--ka-label) !important; }

body:is(.kp-site, .kp-hybrid-page) :is(
  .kp-breadcrumb, .kp-proof, .kp-demo-note, .kp-related-card > span,
  .kp-info-card > span, .seo-breadcrumb, .seo-template .seo-plan,
  .seo-category-links a span, .seo-archive-link, .launch-template-facts span
) { font-size: var(--ka-label); }

body:is(.kp-site, .kp-hybrid-page) :is(
  .kp-lead, .kp-simple-hero p:last-child, .launch-hero p:not(.kp-eyebrow),
  .seo-hero .seo-lead, .ex-hero .ex-lead, .ex-hub-hero .ex-lead
) { font-size: var(--ka-lead); line-height: 1.6; }

body:is(.kp-site, .kp-hybrid-page) :is(
  .kp-section-heading > p, .kp-info-card p, .kp-info-card ol, .kp-how p,
  .kp-how li p, .kp-editor-workflow li p, .kp-offer p:last-child,
  .launch-section p, .launch-article p, .launch-article li, .seo-article p,
  .seo-article li, .seo-doc-links p, .seo-heading > p, .seo-resource span,
  .seo-scenarios p, .kp-next .kp-next__intro, .kp-next .kp-next-card > p
) { font-size: var(--ka-text); line-height: 1.6; }

body:is(.kp-site, .kp-hybrid-page) :is(
  .kp-button, .kp-text-link, .kp-related-card > b, .kp-offer > div:last-child > span,
  .seo-toc a, .seo-pagination a, .seo-pagination span, .launch-table, .launch-table td,
  .launch-template-pair figcaption, .seo-shot figcaption, .seo-template p
) { font-size: var(--ka-control); }
body.kp-site .launch-table td::before { font-size: var(--ka-label); }
body.kp-site .launch-note { font-size: var(--ka-caption) !important; }
body:is(.kp-site, .kp-hybrid-page) .kp-next :is(.kp-next__eyebrow, .kp-next-card__kicker) {
  font-size: var(--ka-label);
}

/* Home */
body .hm-main .hm-kicker,
.hm-main :is(.hm-plan, .hm-step, .hm-feature-access strong, .hm-path-number) { font-size: var(--ka-label); }
body .hm-main :is(
  .hm-section-head > p, .hm-path p, .hm-widget p, .hm-feature-copy > p:not(.hm-kicker),
  .hm-extension-more p, .hm-workflow p, .hm-access-grid li, .hm-final p:not(.hm-kicker)
) { font-size: var(--ka-text); line-height: 1.6; }
body .hm-main :is(
  .hm-hero .hm-hero-note, .hm-trust span, .hm-feature-access p, .hm-feature-art figcaption,
  .hm-access-note, .hm-final-price small, .hm-final-price > div > span, .hm-inline-link,
  .hm-button
) { font-size: var(--ka-control); }
body .hm-main .hm-hero .hm-lead { font-size: var(--ka-lead); line-height: 1.6; }
body .hm-main .hm-final .hm-final-guarantee { font-size: var(--ka-caption) !important; }

/* Pricing and Lifetime */
body.kp-site .pt-tour :is(.pt-eyebrow, .pt-pro > span, .pt-return .pt-eyebrow) {
  font-size: var(--ka-label); line-height: 1.45;
}
body.kp-site .pt-tour .pt-promise {
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.35;
}
body.kp-site .pt-tour :is(
  .pt-intro-grid > p, .pt-description, .pt-benefits li, .pt-pro > p,
  .pt-return p:not(.pt-eyebrow)
) { font-size: var(--ka-text); line-height: 1.65; }
body.kp-site .pt-tour :is(.pt-chapters a, .pt-plan-link, .pt-buy) {
  font-size: var(--ka-control); line-height: 1.4;
}
body.kp-site .pt-tour :is(.pt-note, .pt-figure figcaption) {
  color: #56674a; font-size: var(--ka-caption); line-height: 1.6;
}
body.kp-site .pt-story--woocommerce :is(.pt-note, .pt-figure figcaption) { color: #b7c8aa; }
body.kp-site .pt-benefits li::before { top: .55em; }

body.kp-site :is(
  .hero-description, .section-intro, .journey-intro > p:not(.eyebrow),
  .journey-description, .journey-benefits li, .lifetime-banner .banner-inner > div > p:not(.eyebrow),
  .final-offer p:not(.eyebrow), .kp-purchase__guarantee p, .faq-list details > p
) { font-size: var(--ka-text); line-height: 1.6; }
body.kp-site :is(
  .journey-plan-link, .journey-nav-links a, .journey-next > a, .journey-figure figcaption,
  .journey-outcome, .hero-assurances, .kp-payment p, .kp-pricing-stats dt, .final-guarantee,
  .faq-layout > div:first-child > p:last-child, .hero-actions .quiet-link,
  .preview-dialog-footer > span, .preview-dialog-footer .button, .sticky-offer small,
  .hero-offer > div > span, .library-note > span, .library-note .button, .preview-label,
  .tool-tags span, .kp-billing__links a, .kp-pricing-templates__actions a, .final-offer small
) { font-size: var(--ka-caption); }
body.kp-site :is(
  .journey-chapter, .journey-chapter > span, .journey-nav-label, .journey-position,
  .journey-intro .eyebrow, .section-heading .eyebrow, .faq-layout .eyebrow, .final-offer .eyebrow,
  .lifetime-banner .eyebrow, .hero .eyebrow, .more-tools .eyebrow
) { font-size: var(--ka-label); }
body.kp-site :is(.faq-list summary, .kp-faq summary, .ex-faq summary) { font-size: var(--ka-text); }
body.kp-site :is(.hero-actions, .lifetime-banner, .final-offer, .sticky-offer) .button {
  font-size: var(--ka-control);
}
#plans .plan :is(.plan-description, li, .button) { font-size: 1.0625rem; }
#plans .plan-price small, #plans .purchase-trust { font-size: var(--ka-control); }
#plans .plan-badge { font-size: var(--ka-label); height: auto; min-height: 28px; }

/* Widget and template catalogs */
body.kp-site[data-kind] :is(.catalog-hero .eyebrow, .catalog-heading .eyebrow, .breadcrumb) {
  font-size: var(--ka-label);
}
body.kp-site[data-kind] :is(.catalog-hero p, .catalog-heading > p, .bottom-offer p:last-child) {
  font-size: var(--ka-text); line-height: 1.6;
}
body.kp-site[data-kind] :is(.button, .hero-secondary, .search input, .filter-panel .radio,
  .filter-panel select, .filter-panel .demo-check, .category-shortcuts button, .filter-title,
  .results-toolbar, .results-toolbar select, .card-action, .pagination button, .sidebar-promo a,
  .device-switch button, .preview-footer, .art-hover
) { font-size: var(--ka-control); }
body.kp-site[data-kind] :is(
  .hero-proof, .catalog-metrics span, .catalog-metrics > a, .filter-title button,
  .filter-panel > label, .filter-panel legend, .radio > span, .category-shortcuts > span,
  .category-shortcuts small, .sidebar-promo > span, .results-toolbar label, .plan-badge,
  .card-category, .pagination .page-info, .preview-header .eyebrow, .preview-loading small
) { font-size: var(--ka-label); }
body.kp-site[data-kind] :is(
  .widget-card .card-copy p, .steps-section li p, .sidebar-promo p,
  .steps-section > .wrap > div > p:last-child
) {
  font-size: var(--ka-caption); line-height: 1.55;
}
body.kp-site[data-kind] .widget-card .card-copy p { display: block; overflow: visible; }
body.kp-site[data-kind] :is(.card-copy h3, .preview-header h2) { font-size: 1.25rem; }
body.kp-site[data-kind] .results-toolbar { flex-wrap: wrap; }
body.kp-site[data-kind] .results-toolbar select { max-width: 12rem; }

/* Extension landing pages and documentation */
body.ex-site :is(.ex-button, .ex-text-link, .ex-back-link, .ex-section-heading > a,
  .ex-search input, .ex-filters button, .ex-result-count, .ex-hero-example figcaption
) { font-size: var(--ka-control); }
body.ex-site :is(.ex-eyebrow, .ex-card-group) { font-size: var(--ka-label); }
body.ex-site :is(
  .ex-benefits p, .ex-story-grid > div > p, .ex-start li, .ex-requirements p, .ex-faq > div > p,
  .ex-faq details p, .ex-closing p, .ex-section-heading p, .ex-catalog-card p
) { font-size: var(--ka-text); line-height: 1.6; }

body.kp-site .kp-doc-body { font-size: var(--ka-text); line-height: 1.65; }
body.kp-site :is(
  .kp-doc-sidebar, .kp-doc-toc a, .kp-doc-card p, .kp-doc-card > b,
  .kp-doc-categories button, .kp-doc-search input, .kp-doc-body .cta-box p,
  .kp-doc-body .btn, .kp-doc-body .block-row p, .kp-doc-body table, .kp-search-more
) { font-size: var(--ka-control); }
body.kp-site :is(
  .kp-doc-sidebar > span, .kp-doc-toc > span, .kp-doc-card > span, .kp-doc-count,
  .kp-doc-body .breadcrumbs, .kp-doc-body .kicker, .kp-doc-body .pill,
  .kp-doc-body pre, .kp-doc-body code
) { font-size: var(--ka-label); }
body.kp-site .kp-doc-body :is(h3, .block-row h3) { font-size: 1.375rem; }
body.kp-site .kp-doc-body :is(.lead, summary) { font-size: var(--ka-lead); }
body.kp-site .kp-doc-body { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  body .kp-header nav { gap: 14px; }
}

@media (max-width: 760px) {
  :root { --ka-text: 1.0625rem; --ka-lead: 1.1875rem; }
  body.kp-site :is(.pt-plan-link, .journey-nav-links a, .sticky-offer .button) {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  body .kp-header .kp-brand img { width: 120px; }
  body .kp-header .kp-button { gap: 6px; padding-inline: 9px; }
  body .kp-header .kp-header-inner { gap: 8px; }
}
