/* =====================================================================================================
   WP Writer Brand Kit for Kadence
   Restyles Kadence's own markup. Every part is switched by a body class from Customize → Brand Kit,
   and "Kadence (unchanged)" leaves that part exactly as Kadence draws it.
   Selectors start with body.wpwc so they win over Kadence's styles printed later in the page.
   Colours mix with the panel colour (not plain white), so a dark palette keeps working.
   ===================================================================================================== */

/* ------------------------------------------------------------------ tokens */
body.wpwc {
  --wpwc-accent: var(--global-palette1, #0e9f9a);
  --wpwc-accent-2: var(--global-palette2, var(--wpwc-accent));
  --wpwc-ink: var(--global-palette3, #1f2329);
  --wpwc-text: var(--global-palette4, #3d434c);
  --wpwc-muted: var(--global-palette5, #6b7280);
  --wpwc-panel: var(--global-palette9, #ffffff);
  --wpwc-line: color-mix(in srgb, var(--wpwc-ink) 10%, var(--wpwc-panel));
  --wpwc-line-strong: color-mix(in srgb, var(--wpwc-ink) 18%, var(--wpwc-panel));
  --wpwc-soft: color-mix(in srgb, var(--wpwc-accent) 8%, var(--wpwc-panel));
  --wpwc-soft-2: color-mix(in srgb, var(--wpwc-accent) 15%, var(--wpwc-panel));
  --wpwc-accent-ink: color-mix(in srgb, var(--wpwc-accent) 52%, var(--wpwc-ink));   /* accent as readable text */
  --wpwc-solid: color-mix(in srgb, var(--wpwc-accent) 74%, #000);   /* behind white text; the theme prints the exact AA shade */
  --wpwc-on-solid: #fff;
  --wpwc-dark: var(--global-palette3, #1f2329);   /* dark surfaces with white text (footer, announcement) */
  --wpwc-radius: 16px;
  --wpwc-radius-sm: 10px;
  --wpwc-radius-btn: 10px;
  --wpwc-shadow: 0 4px 10px rgba(16, 24, 40, .05);
  --wpwc-shadow-hover: 0 12px 28px rgba(16, 24, 40, .09);
  --wpwc-shadow-pop: 0 14px 36px rgba(16, 24, 40, .13), 0 2px 6px rgba(16, 24, 40, .06);
  --wpwc-border-color: transparent;
}
@supports not (color: color-mix(in srgb, red, red)) {   /* older browsers: plain fallbacks */
  body.wpwc { --wpwc-line: #e5e7eb; --wpwc-line-strong: #d1d5db; --wpwc-soft: var(--global-palette8, #f6f8fb); --wpwc-soft-2: var(--global-palette7, #eef2f6);
    --wpwc-accent-ink: var(--global-palette3, #1f2329); --wpwc-solid: var(--global-palette3, #1f2329); }
}
body.wpwc.wpwc-borders { --wpwc-border-color: var(--wpwc-line); }
body.wpwc.wpwc-corners-sharp { --wpwc-radius: 8px; --wpwc-radius-sm: 6px; --wpwc-radius-btn: 6px; }
body.wpwc.wpwc-corners-round { --wpwc-radius: 22px; --wpwc-radius-sm: 14px; --wpwc-radius-btn: 14px; }
body.wpwc.wpwc-btn-pill { --wpwc-radius-btn: 999px; }
body.wpwc.wpwc-shadow-none { --wpwc-shadow: none; --wpwc-shadow-hover: 0 0 0 1px var(--wpwc-line-strong); }
body.wpwc.wpwc-shadow-lifted { --wpwc-shadow: 0 10px 30px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .04);
  --wpwc-shadow-hover: 0 18px 40px rgba(16, 24, 40, .12), 0 3px 8px rgba(16, 24, 40, .05); }

/* page background (boxed and unboxed pages) */
body.wpwc.wpwc-bg-white, body.wpwc.wpwc-bg-white .site { background: #fff; }
body.wpwc.wpwc-bg-tint { background: color-mix(in srgb, var(--wpwc-accent) 4%, var(--wpwc-panel)); }
body.wpwc.wpwc-bg-warm { background: color-mix(in srgb, var(--global-palette7, #f4ebe1) 55%, var(--wpwc-panel)); }
body.wpwc:is(.wpwc-bg-tint, .wpwc-bg-warm) .site { background: transparent; }

/* WP Writer articles take the same corners and shadows (the Minimal layout stays flat by design) */
body.wpwc.wpwc-articles .wpw-article { --wpw-radius: var(--wpwc-radius); --wpw-shadow: var(--wpwc-shadow); }
body.wpwc.wpwc-articles .wpw-article.wpw-t-minimal { --wpw-shadow: none; }

/* ------------------------------------------------------------------ basics: selection, focus, buttons, forms */
body.wpwc ::selection { background: var(--wpwc-soft-2); color: var(--wpwc-ink); }
body.wpwc :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wpwc-accent-ink); outline-offset: 2px; }
body.wpwc:is(.wpwc-f-ink, .wpwc-f-card) #colophon :focus-visible,
body.wpwc :is(.wpwc-announce--brand, .wpwc-announce--ink) :focus-visible,
body.wpwc.wpwc-h-brand #masthead .site-main-header-wrap :focus-visible { outline-color: #fff; }
body.wpwc.wpwc-h-brand #masthead .site-main-header-wrap :is(ul ul, .sub-menu, .mega-menu) :focus-visible { outline-color: var(--wpwc-accent-ink); }   /* white dropdown panels */
body.wpwc.wpwc-f-kadence #colophon :focus-visible { outline-color: currentColor; }   /* Kadence's own footer may be light or dark: the link colour always shows */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.wpwc :is(.entry-content, .wpw-article) :is(h2, h3, h4)[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 90px); }

body.wpwc:not(.wpwc-btn-kadence) :is(.button, .wp-block-button__link, .wp-element-button, input[type="submit"], input[type="button"], .search-submit, .kb-button):not(.wpw-btn) {
  border-radius: var(--wpwc-radius-btn);
}
body.wpwc :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"],
  input[type="search"], textarea, select):not(.wpw-article *) {
  border-radius: var(--wpwc-radius-sm);
  border: 1px solid var(--wpwc-line-strong);
  background-color: var(--wpwc-panel);
  transition: border-color .15s, box-shadow .15s;
}
body.wpwc :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"],
  input[type="search"], textarea, select):not(.wpw-article *):focus {
  border-color: var(--wpwc-accent-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpwc-accent) 40%, transparent);
  outline: none;
}
/* block search (sidebar, pages): one rounded field with the button inside */
body.wpwc .wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border: 1px solid var(--wpwc-line-strong); border-radius: var(--wpwc-radius-btn); padding: 4px; background: var(--wpwc-panel);
}
body.wpwc .wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--wpwc-accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpwc-accent) 40%, transparent);
}
body.wpwc .wp-block-search__button-inside .wp-block-search__input { border: 0 !important; box-shadow: none !important; padding: 8px 10px; background: transparent; }
body.wpwc .wp-block-search__button-inside .wp-block-search__button {
  margin: 0; border: 0; border-radius: calc(var(--wpwc-radius-btn) - 3px); background: var(--wpwc-solid); color: var(--wpwc-on-solid); padding: 8px 16px; font-weight: 600;
}
body.wpwc .wp-block-search__button-inside .wp-block-search__button:hover { background: var(--wpwc-accent-ink); color: #fff; }

/* no ALL-CAPS labels */
body.wpwc.wpwc-tc :is(.category-style-pill a, .entry-taxonomies a, .widget-title, .entry-related-title, .post-navigation-sub small,
  .kadence-breadcrumbs, .entry-meta, .comment-reply-title, .kt-blocks-categories a, .kb-post-categories a, .site-info) {
  text-transform: none !important; letter-spacing: normal !important;
}

/* pagination (archives, search, comments, multi-page posts) */
body.wpwc :is(.pagination, .comments-pagination) .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body.wpwc :is(.pagination, .comments-pagination) .page-numbers,
body.wpwc .page-links > :is(a, span):not(.page-links-title) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; margin: 0;
  border: 1px solid var(--wpwc-line); border-radius: var(--wpwc-radius-btn); background: var(--wpwc-panel); color: var(--wpwc-ink); text-decoration: none; font-weight: 600;
}
body.wpwc :is(.pagination, .comments-pagination) a.page-numbers:hover, body.wpwc .page-links a:hover { background: var(--wpwc-soft); border-color: color-mix(in srgb, var(--wpwc-accent) 35%, var(--wpwc-panel)); color: var(--wpwc-accent-ink); }
body.wpwc :is(.pagination, .comments-pagination) .page-numbers.current, body.wpwc .page-links > span.current { background: var(--wpwc-solid); border-color: var(--wpwc-solid); color: var(--wpwc-on-solid); }
body.wpwc :is(.pagination, .comments-pagination) .page-numbers.dots { border-color: transparent; background: transparent; }

/* ------------------------------------------------------------------ header (main row; Kadence's top and bottom rows keep their own colours) */
body.wpwc:not(.wpwc-h-kadence) #masthead .site-main-header-wrap .site-header-row-container-inner { border-bottom-color: var(--wpwc-line) !important; }
body.wpwc.wpwc-h-clean #masthead .site-main-header-wrap .site-header-row-container-inner { background: var(--wpwc-panel); }

body.wpwc.wpwc-h-tinted #masthead .site-main-header-wrap .site-header-row-container-inner {
  background: var(--wpwc-soft); border-bottom: 1px solid color-mix(in srgb, var(--wpwc-accent) 16%, var(--wpwc-panel)) !important;
}

body.wpwc.wpwc-h-brand #masthead .site-main-header-wrap .site-header-row-container-inner { background: var(--wpwc-solid); border-bottom-color: transparent !important; }
/* white text on the brand colour; over a transparent header (desktop, not stuck) Kadence's transparent-header colours apply */
body.wpwc.wpwc-h-brand:not(.transparent-header) #masthead .site-main-header-wrap :is(.site-title, .site-title a, .site-description, .menu-toggle-open, .search-toggle-open, .header-html, .header-html a,
  .header-social-wrap a, .drawer-toggle, .header-account-button, .header-cart-button, .secondary-navigation .menu > li > a) { color: #fff; }
body.wpwc.wpwc-h-brand:not(.transparent-header) #masthead .site-main-header-wrap .header-html a { text-decoration: underline; text-underline-offset: 3px; }
body.wpwc.wpwc-h-brand:not(.transparent-header) #masthead .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a { color: #fff; }
body.wpwc.wpwc-h-brand:not(.transparent-header) #masthead .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: #fff; opacity: .9; }
body.wpwc.wpwc-h-brand:not(.transparent-header) #masthead .site-main-header-wrap .header-button { background: #fff; color: var(--wpwc-accent-ink); border-color: #fff; }
body.wpwc.wpwc-h-brand.transparent-header #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) :is(.site-title, .site-title a, .site-description, .menu-toggle-open, .search-toggle-open, .header-html, .header-html a,
  .header-social-wrap a, .drawer-toggle, .header-account-button, .header-cart-button, .secondary-navigation .menu > li > a) { color: #fff; }
body.wpwc.wpwc-h-brand.transparent-header #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .header-html a { text-decoration: underline; text-underline-offset: 3px; }
body.wpwc.wpwc-h-brand.transparent-header #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .main-navigation .primary-menu-container > ul > li.menu-item > a { color: #fff; }
body.wpwc.wpwc-h-brand.transparent-header #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: #fff; opacity: .9; }
body.wpwc.wpwc-h-brand.transparent-header #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .header-button { background: #fff; color: var(--wpwc-accent-ink); border-color: #fff; }
@media (max-width: 1024px) {
  body.wpwc.wpwc-h-brand.transparent-header #masthead .site-main-header-wrap :is(.site-title, .site-title a, .site-description, .menu-toggle-open, .search-toggle-open, .header-html, .header-html a,
    .header-social-wrap a, .drawer-toggle, .header-account-button, .header-cart-button, .secondary-navigation .menu > li > a) { color: #fff; }
  body.wpwc.wpwc-h-brand.transparent-header #masthead .site-main-header-wrap .header-html a { text-decoration: underline; text-underline-offset: 3px; }
  body.wpwc.wpwc-h-brand.transparent-header #masthead .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a { color: #fff; }
  body.wpwc.wpwc-h-brand.transparent-header #masthead .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: #fff; opacity: .9; }
  body.wpwc.wpwc-h-brand.transparent-header #masthead .site-main-header-wrap .header-button { background: #fff; color: var(--wpwc-accent-ink); border-color: #fff; }
}

/* sticky header (Kadence's stuck background beats the skins otherwise) */
body.wpwc.wpwc-h-clean #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner { background: var(--wpwc-panel); }
body.wpwc.wpwc-h-tinted #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner { background: var(--wpwc-soft); }
body.wpwc.wpwc-h-brand #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner { background: var(--wpwc-solid); }
body.wpwc.wpwc-hshadow #masthead .item-is-fixed:not(.item-at-start) > .site-header-row-container-inner,
body.wpwc.wpwc-hshadow #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) { box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }

/* floating: the main row becomes a rounded bar with a shadow */
body.wpwc.wpwc-h-floating #masthead { background: transparent; }
body.wpwc.wpwc-h-floating #masthead .site-main-header-wrap { padding: 12px 16px; }   /* top and bottom rows keep their full width */
body.wpwc.wpwc-h-floating #masthead .site-main-header-wrap .site-header-row-container-inner {
  background: var(--wpwc-panel); max-width: calc(var(--global-content-width, 1290px) + 8px); margin: 0 auto;
  border: 1px solid var(--wpwc-line) !important; border-radius: calc(var(--wpwc-radius) + 6px); box-shadow: var(--wpwc-shadow);
}
body.wpwc.wpwc-h-floating #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) { padding-top: 10px; background: transparent !important; }
@media (max-width: 1024px) { body.wpwc.wpwc-h-floating #masthead .site-main-header-wrap { padding: 10px; } }

/* transparent header pages: Kadence's own see-through header wins (the skins only apply once it is stuck) */
@media (min-width: 1025px) {
  body.wpwc:not(.wpwc-h-floating).transparent-header #masthead .site-main-header-wrap .site-header-row-container-inner { background: transparent; border-bottom-color: transparent !important; }
}
@media (max-width: 1024px) {
  body.wpwc:not(.wpwc-h-floating).mobile-transparent-header #masthead .site-main-header-wrap .site-header-row-container-inner { background: transparent; border-bottom-color: transparent !important; }
}

/* ------------------------------------------------------------------ menu links */
body.wpwc:not(.wpwc-n-kadence) .main-navigation .primary-menu-container > ul > li.menu-item > a { letter-spacing: .01em; transition: color .15s, background-color .15s; }
/* pill */
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li.menu-item > a { padding: .5em 1em; margin: 0 2px; border-radius: 999px; }
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li.menu-item > a::after { display: none; }
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li.menu-item .dropdown-nav-special-toggle { right: 1em; }
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li.menu-item:focus-within > a { background: var(--wpwc-soft); color: var(--wpwc-accent-ink); }
body.wpwc.wpwc-n-pill .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor, .current_page_ancestor) > a,
body.wpwc.wpwc-n-pill:is(.single-post, .blog, .archive) .main-navigation .primary-menu-container > ul > li.current_page_parent > a {
  background: var(--wpwc-soft-2); color: var(--wpwc-accent-ink); font-weight: 600;
}
body.wpwc.wpwc-n-pill.wpwc-h-brand .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body.wpwc.wpwc-n-pill.wpwc-h-brand .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item:focus-within > a { background: rgba(255, 255, 255, .16); color: #fff; opacity: 1; }
body.wpwc.wpwc-n-pill.wpwc-h-brand .site-main-header-wrap .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor, .current_page_ancestor) > a,
body.wpwc.wpwc-n-pill.wpwc-h-brand:is(.single-post, .blog, .archive) .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.current_page_parent > a { background: #fff; color: var(--wpwc-accent-ink); }
body.wpwc.wpwc-n-pill.wpwc-h-tinted .main-navigation .primary-menu-container > ul > li.menu-item > a:hover { background: var(--wpwc-panel); }
/* underline */
body.wpwc.wpwc-n-underline .main-navigation .primary-menu-container > ul > li.menu-item > a::after { display: none; }
body.wpwc.wpwc-n-underline .main-navigation .primary-menu-container > ul > li.menu-item > a {
  background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 0 2px; background-origin: content-box; background-clip: content-box;
  transition: background-size .18s, color .15s;
}
body.wpwc.wpwc-n-underline .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body.wpwc.wpwc-n-underline .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor) > a { background-size: 100% 2px; }
body.wpwc.wpwc-n-underline .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor) > a { color: var(--wpwc-accent-ink); font-weight: 600; }
/* plain */
body.wpwc.wpwc-n-plain .main-navigation .primary-menu-container > ul > li.menu-item > a::after { display: none; }
body.wpwc.wpwc-n-plain .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body.wpwc.wpwc-n-plain .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor) > a { color: var(--wpwc-accent-ink); }
/* readable on the Brand header */
body.wpwc.wpwc-h-brand:is(.wpwc-n-plain, .wpwc-n-underline) .site-main-header-wrap .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor) > a { color: #fff; }
body.wpwc.wpwc-h-brand.wpwc-n-plain .site-main-header-wrap .main-navigation .primary-menu-container > ul > li:is(.current-menu-item, .current-menu-ancestor) > a,
body.wpwc.wpwc-h-brand.wpwc-n-plain .site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ------------------------------------------------------------------ dropdowns (Kadence Pro mega menus keep their own columns) */
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul.sub-menu,
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul.submenu {
  background: var(--wpwc-panel); border: 1px solid var(--wpwc-line); border-radius: var(--wpwc-radius); box-shadow: var(--wpwc-shadow-pop); padding: 8px;
}
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul li.menu-item { border-bottom: 0 !important; }
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul li.menu-item > a {
  width: 240px; padding: .6em .85em; border-radius: var(--wpwc-radius-sm); color: var(--wpwc-ink); font-size: 15px; letter-spacing: normal; transition: background-color .12s, color .12s;
}
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul li.menu-item > a:hover,
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul li.menu-item:focus-within > a { background: var(--wpwc-soft); color: var(--wpwc-accent-ink); border-radius: var(--wpwc-radius-sm); }
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul li:is(.current-menu-item, .current_page_item) > a {
  background: var(--wpwc-soft-2); color: var(--wpwc-accent-ink); font-weight: 600; border-radius: var(--wpwc-radius-sm);
}
body.wpwc.wpwc-d-card .header-navigation .header-menu-container ul ul ul.sub-menu { margin-inline-start: 8px; }

body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul.sub-menu,
body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul.submenu {
  background: var(--wpwc-panel); border: 1px solid var(--wpwc-line-strong); border-radius: var(--wpwc-radius-sm); box-shadow: 0 6px 16px rgba(16, 24, 40, .06); padding: 6px 0;
}
body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul li.menu-item { border-bottom: 0 !important; }
body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul li.menu-item > a { width: 230px; color: var(--wpwc-ink); font-size: 15px; letter-spacing: normal; }
body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul li.menu-item > a:hover,
body.wpwc.wpwc-d-minimal .header-navigation .header-menu-container ul ul li:is(.current-menu-item, .current_page_item) > a { background: transparent; color: var(--wpwc-accent-ink); }

body.wpwc:is(.wpwc-d-card, .wpwc-d-minimal) .header-navigation .header-menu-container ul.menu > li.kadence-menu-mega-enabled > ul ul.sub-menu {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin-inline-start: 0;
}
body.wpwc:is(.wpwc-d-card, .wpwc-d-minimal) .header-navigation .header-menu-container ul.menu > li.kadence-menu-mega-enabled > ul li.menu-item > a { width: 100%; }

/* ------------------------------------------------------------------ mobile menu (drawer) */
body.wpwc.wpwc-m-panel #mobile-drawer .drawer-inner,
body.wpwc.wpwc-m-panel #mobile-drawer.popup-drawer-layout-fullwidth .drawer-inner,
body.wpwc.wpwc-m-panel #mobile-drawer.popup-drawer-layout-fullwidth.popup-drawer-animation-slice .pop-portion-bg,
body.wpwc.wpwc-m-panel #mobile-drawer.popup-drawer-layout-fullwidth.popup-drawer-animation-slice.pop-animated.show-drawer .drawer-inner { background: var(--wpwc-panel); color: var(--wpwc-ink); }
body.wpwc.wpwc-m-panel #mobile-drawer .drawer-header .drawer-toggle { color: var(--wpwc-ink); }
body.wpwc.wpwc-m-panel #mobile-drawer .drawer-content { padding: 4px 16px 24px; }
body.wpwc.wpwc-m-panel .mobile-navigation ul li > a,
body.wpwc.wpwc-m-panel .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap { color: var(--wpwc-ink); font-weight: 500; }
body.wpwc.wpwc-m-panel .mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap,
body.wpwc.wpwc-m-panel .mobile-navigation ul li:not(.menu-item-has-children) a { border-bottom: 1px solid var(--wpwc-line); }
body.wpwc.wpwc-m-panel .mobile-navigation:not(.drawer-navigation-parent-toggle-true) ul li.menu-item-has-children .drawer-nav-drop-wrap button { border-inline-start: 1px solid var(--wpwc-line); color: var(--wpwc-ink); }
body.wpwc.wpwc-m-panel .mobile-navigation ul li > a,
body.wpwc.wpwc-m-panel .mobile-navigation ul li .drawer-nav-drop-wrap > a { padding: .85em .75em; }
body.wpwc.wpwc-m-panel .mobile-navigation ul li:is(.current-menu-item, .current_page_parent, .current-menu-ancestor) > a,
body.wpwc.wpwc-m-panel .mobile-navigation ul li:is(.current-menu-item, .current-menu-ancestor).menu-item-has-children > .drawer-nav-drop-wrap {
  color: var(--wpwc-accent-ink); background: var(--wpwc-soft); font-weight: 600; border-radius: var(--wpwc-radius-sm); border-bottom-color: transparent;
}
body.wpwc.wpwc-m-panel .mobile-navigation ul ul { padding-inline-start: 10px; }

/* ------------------------------------------------------------------ search pop-up */
body.wpwc.wpwc-s-card #search-drawer .drawer-inner { background: color-mix(in srgb, var(--wpwc-ink) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.wpwc.wpwc-s-card #search-drawer .drawer-header .drawer-toggle { color: #fff; }
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form {
  background: var(--wpwc-panel); border-radius: calc(var(--wpwc-radius) + 4px); box-shadow: var(--wpwc-shadow-pop); padding-block: 6px; padding-inline: 18px 8px; max-width: 680px; width: 100%; margin: 0 auto;
}
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form:focus-within { box-shadow: var(--wpwc-shadow-pop), 0 0 0 3px color-mix(in srgb, var(--wpwc-accent) 55%, transparent); }
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form input.search-field {
  color: var(--wpwc-ink); border: 0 !important; box-shadow: none !important; background: transparent; font-size: 20px; padding-block: 14px; padding-inline: 0 52px;
}
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form .kadence-search-icon-wrap,
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form input.search-field:focus ~ .kadence-search-icon-wrap { color: var(--wpwc-accent-ink); }
body.wpwc.wpwc-s-card #search-drawer .drawer-inner .drawer-content form input.search-field::placeholder { color: var(--wpwc-muted); }

/* ------------------------------------------------------------------ title areas (pages, blog, archives, search) */
body.wpwc:not(.wpwc-hero-kadence) .kadence-breadcrumbs { font-size: 13.5px; color: var(--wpwc-muted); }
body.wpwc:not(.wpwc-hero-kadence) .kadence-breadcrumbs a { color: var(--wpwc-accent-ink); text-decoration: none; padding: 4px 0; }
body.wpwc:not(.wpwc-hero-kadence) .kadence-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.wpwc:not(.wpwc-hero-kadence) .entry-hero .kadence-breadcrumbs .kadence-breadcrumb-container {
  display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--wpwc-panel); border: 1px solid var(--wpwc-line); border-radius: 999px; padding: 2px 14px;
}
body.wpwc:not(.wpwc-hero-kadence) .kadence-breadcrumbs .bc-delimiter { opacity: .55; }

body.wpwc.wpwc-hero-soft .entry-hero .entry-hero-container-inner {
  background: var(--wpwc-soft) !important; background-image: none !important; border-bottom: 1px solid color-mix(in srgb, var(--wpwc-accent) 14%, var(--wpwc-panel));
}
body.wpwc.wpwc-hero-soft.wpwc-h-tinted .entry-hero .entry-hero-container-inner { background: color-mix(in srgb, var(--wpwc-accent) 4%, var(--wpwc-panel)) !important; }
body.wpwc:is(.wpwc-hero-soft, .wpwc-hero-card) .entry-hero .hero-section-overlay { display: none; }
body.wpwc:not(.wpwc-hero-kadence) .entry-hero .entry-header { padding-top: 44px; padding-bottom: 40px; min-height: 0; }
body.wpwc:not(.wpwc-hero-kadence) .entry-hero :is(.page-title, .archive-title, .entry-title) { color: var(--wpwc-ink); letter-spacing: -.01em; }
body.wpwc:not(.wpwc-hero-kadence) .entry-hero .archive-description { color: var(--wpwc-text); max-width: 720px; margin-inline: auto; }

body.wpwc.wpwc-hero-card .entry-hero { padding: 24px var(--global-content-edge-padding, 1.5rem) 0; }
body.wpwc.wpwc-hero-card .entry-hero .entry-hero-container-inner {
  max-width: var(--global-calc-content-width, 1242px); margin: 0 auto; border-radius: calc(var(--wpwc-radius) + 6px); overflow: clip;
  background: var(--wpwc-soft) !important; background-image: none !important; border: 1px solid color-mix(in srgb, var(--wpwc-accent) 14%, var(--wpwc-panel));
}

/* search results: search again; no results: latest posts */
body.wpwc .wpwc-search-again { max-width: 620px; margin: 0 auto 28px; }
body.wpwc .wpwc-search-again .search-form input.search-field { padding-block: 14px; padding-inline-start: 16px; font-size: 17px; }

/* ------------------------------------------------------------------ content boxes (boxed posts, comments, post navigation) */
body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container .entry.content-bg:not(.loop-entry) {
  border-radius: calc(var(--wpwc-radius) + 4px); border: 1px solid var(--wpwc-border-color); overflow: clip;
}
body.wpwc.wpwc-c-cards.content-style-boxed .content-container .entry.content-bg:not(.loop-entry) { box-shadow: var(--wpwc-shadow); }
body.wpwc.wpwc-c-flat.content-style-boxed .content-container .entry.content-bg:not(.loop-entry) { box-shadow: none; border-color: var(--wpwc-line); }
body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed :is(.post-navigation-wrap, .comments-area).entry { margin-top: 24px; }
body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat) .single-entry .entry-header .entry-title { letter-spacing: -.015em; }
body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat) .single-entry .post-thumbnail.article-post-thumbnail img { border-radius: var(--wpwc-radius); }
body.wpwc:not(.wpwc-c-kadence) .entry-meta { color: var(--wpwc-muted); }
body.wpwc:not(.wpwc-c-kadence) .entry-meta a { color: var(--wpwc-accent-ink); }
body.wpwc:not(.wpwc-c-kadence) .entry-tags .tag-link, body.wpwc:not(.wpwc-c-kadence) .tags-links a { color: var(--wpwc-text); }

/* post navigation: two clear cards */
body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-links { gap: 16px; }
body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-previous::after { display: none; }
body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-links > div > a {
  display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--wpwc-line); border-radius: var(--wpwc-radius); color: var(--wpwc-ink); font-weight: 600;
  line-height: 1.4; text-decoration: none; transition: border-color .15s, background-color .15s;
}
body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-links > div > a:hover { border-color: color-mix(in srgb, var(--wpwc-accent) 40%, var(--wpwc-panel)); background: var(--wpwc-soft); }
body.wpwc:not(.wpwc-c-kadence) .post-navigation .post-navigation-sub { color: var(--wpwc-accent-ink); font-weight: 600; margin-bottom: 4px; }

/* comments: list, form */
body.wpwc:not(.wpwc-c-kadence) :is(.comments-title, .comment-respond .comment-reply-title) { letter-spacing: -.01em; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-body { border: 1px solid var(--wpwc-line); border-radius: var(--wpwc-radius); padding: 18px 18px 6px; margin-bottom: 18px; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-meta { margin-inline-start: 62px; }
body.wpwc:not(.wpwc-c-kadence) .comments-area .comment .avatar { inset-inline-start: -62px; width: 46px; height: 46px; border-radius: 999px; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-author { font-size: 1.1em; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-metadata a { color: var(--wpwc-muted); font-size: .92em; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .bypostauthor > .comment-body { background: var(--wpwc-soft); border-color: color-mix(in srgb, var(--wpwc-accent) 25%, var(--wpwc-panel)); }
body.wpwc:not(.wpwc-c-kadence) .comment-list .reply { margin: 0 0 12px; position: static; }
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-reply-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--wpwc-line-strong); border-radius: 999px;
  color: var(--wpwc-accent-ink); font-weight: 600; font-size: .9em; text-decoration: none;
}
body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-reply-link:hover { background: var(--wpwc-soft); }
body.wpwc:not(.wpwc-c-kadence) .comment-respond .comment-notes { margin: 0 0 18px; font-size: .92em; color: var(--wpwc-muted); }
body.wpwc:not(.wpwc-c-kadence) .comment-form p.comment-form-float-label { margin-top: 0; margin-bottom: 6px; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-input-wrap { margin-top: 0; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-input-wrap p { margin: 0 0 6px; }
body.wpwc:not(.wpwc-c-kadence) .comment-form textarea { min-height: 150px; height: 150px; resize: vertical; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 18px; font-size: .92em; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-form-cookies-consent input { margin: .25em 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--wpwc-solid); }
body.wpwc:not(.wpwc-c-kadence) .comment-form .form-submit { margin: 0; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .submit { background: var(--global-palette-btn-bg, var(--wpwc-solid)); color: var(--global-palette-btn, var(--wpwc-on-solid)); padding: 12px 22px; font-weight: 600; border: 0; }
body.wpwc:not(.wpwc-c-kadence) .comment-form .submit:hover { background: var(--global-palette-btn-bg-hover, var(--wpwc-accent-ink)); color: var(--global-palette-btn-hover, #fff); }
@media (min-width: 767px) {
  body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-input-wrap { grid-gap: 14px; }
  body.wpwc:not(.wpwc-c-kadence) .comment-form .comment-input-wrap p { margin: 0; }
}

/* author box and related posts (when switched on in Kadence) */
body.wpwc:not(.wpwc-c-kadence) :is(.entry-author-style-center, .entry-author-style-normal) { border-radius: var(--wpwc-radius); }
body.wpwc:not(.wpwc-c-kadence) .entry-author .entry-author-avatar img { border-radius: 999px; }
body.wpwc:not(.wpwc-c-kadence) .entry-related { background: transparent; }
body.wpwc:not(.wpwc-c-kadence) .entry-related .entry-related-title { letter-spacing: -.01em; }
body.wpwc:not(.wpwc-c-kadence) .entry-related .splide__track { padding-block: 6px 14px; }

/* ------------------------------------------------------------------ plain pages (About, Contact, policies) */
body.wpwc.wpwc-pages-readable.wpwc-plain-page.content-style-unboxed .site { background: transparent; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .content-container .entry.content-bg {
  background: var(--wpwc-panel); border: 1px solid var(--wpwc-border-color); border-radius: calc(var(--wpwc-radius) + 4px); box-shadow: var(--wpwc-shadow);
}
body.wpwc.wpwc-pages-readable.wpwc-plain-page .content-container .entry.content-bg > .entry-content-wrap { padding: clamp(22px, 4vw, 48px); }
body.wpwc.wpwc-pages-readable.wpwc-plain-page:not(.has-sidebar) .content-container .site-main { max-width: 820px; margin-inline: auto; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content { font-size: 1.04em; line-height: 1.75; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content > :first-child { margin-top: 0; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content :is(h2, h3) { color: var(--wpwc-ink); letter-spacing: -.01em; margin-top: 1.8em; margin-bottom: .55em; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content h2:not(.has-text-align-center):not(.has-text-align-right) { padding-inline-start: 14px; border-inline-start: 4px solid var(--wpwc-accent); line-height: 1.25; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content :is(ul, ol):not([class]) { padding-inline-start: 1.3em; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content :is(ul, ol):not([class]) li { margin: .35em 0; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content ul:not([class]) li::marker { color: var(--wpwc-accent); }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content a:not(.wp-block-button__link):not(.kb-button) { color: var(--wpwc-accent-ink); text-decoration-color: color-mix(in srgb, var(--wpwc-accent) 45%, transparent); text-underline-offset: 3px; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content a:not(.wp-block-button__link):not(.kb-button):hover { text-decoration-color: currentColor; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content blockquote:not([class*="wp-block-pullquote"]) {
  margin: 1.4em 0; padding: 14px 18px; border-inline-start: 4px solid var(--wpwc-accent); background: var(--wpwc-soft); border-radius: 0 var(--wpwc-radius-sm) var(--wpwc-radius-sm) 0;
}
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content table { width: 100%; border-collapse: collapse; font-size: .95em; display: block; overflow-x: auto; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content :is(th, td) { border: 1px solid var(--wpwc-line); padding: 10px 12px; text-align: start; }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content th { background: var(--wpwc-soft); color: var(--wpwc-ink); }
body.wpwc.wpwc-pages-readable.wpwc-plain-page .entry-content :not(pre) > code { background: var(--wpwc-soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }

/* ------------------------------------------------------------------ sidebar widgets */
body.wpwc.wpwc-sb-cards .primary-sidebar .widget:not(:has(> .wp-block-heading:only-child)) {
  background: var(--wpwc-panel); border: 1px solid var(--wpwc-border-color); border-radius: calc(var(--wpwc-radius) + 2px); box-shadow: var(--wpwc-shadow); padding: 20px;
}
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget { margin-bottom: 22px; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget:has(> .wp-block-heading:only-child) { margin-bottom: 10px; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar :is(.widget-title, .widget > .wp-block-heading, .widget .wp-block-group__inner-container > .wp-block-heading:first-child) {
  display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; color: var(--wpwc-ink); margin: 0 0 12px; letter-spacing: normal; text-transform: none;
}
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar :is(.widget-title, .widget > .wp-block-heading, .widget .wp-block-group__inner-container > .wp-block-heading:first-child)::before {
  content: ""; width: 4px; height: 1.05em; border-radius: 4px; background: var(--wpwc-accent); flex: none;
}
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget ul:not([class*="kb-"]):not([class*="splide"]):not(.wp-block-social-links) { list-style: none; margin: 0; padding: 0; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget ul:not([class*="kb-"]):not([class*="splide"]):not(.wp-block-social-links) > li { padding: 9px 0; border-bottom: 1px solid var(--wpwc-line); margin: 0; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget ul:not([class*="kb-"]):not([class*="splide"]):not(.wp-block-social-links) > li:last-child { border-bottom: 0; padding-bottom: 0; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget ul:not([class*="kb-"]):not([class*="splide"]) > li > a { color: var(--wpwc-ink); text-decoration: none; font-weight: 500; }
body.wpwc:is(.wpwc-sb-cards, .wpwc-sb-flat) .primary-sidebar .widget ul:not([class*="kb-"]):not([class*="splide"]) > li > a:hover { color: var(--wpwc-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
body.wpwc.wpwc-sb-flat .primary-sidebar .widget { padding-bottom: 22px; border-bottom: 1px solid var(--wpwc-line); }
body.wpwc.wpwc-sb-flat .primary-sidebar .widget:has(> .wp-block-heading:only-child) { border-bottom: 0; padding-bottom: 0; }
/* Kadence Blocks post grids and carousels in the sidebar: no card inside the widget card */
body.wpwc:not(.wpwc-sb-kadence) #secondary .kt-blocks-post-grid-item { box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; transform: none !important; }
body.wpwc:not(.wpwc-sb-kadence) #secondary .kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner { padding: 12px 2px 0; }
body.wpwc:not(.wpwc-sb-kadence) #secondary .kadence-post-image img { border-radius: var(--wpwc-radius-sm); }
body.wpwc:not(.wpwc-sb-kadence) #secondary .kt-blocks-post-grid-item .entry-title { font-size: 1.05rem; line-height: 1.35; }
body.wpwc:not(.wpwc-sb-kadence) #secondary .kt-blocks-post-grid-item .entry-title a { color: var(--wpwc-ink); }
body.wpwc:not(.wpwc-sb-kadence) #secondary .kt-blocks-post-grid-item .entry-title a:hover { color: var(--wpwc-accent-ink); }
body.wpwc:not(.wpwc-sb-kadence) #secondary .splide__arrow {
  width: 36px; height: 36px; border-radius: 999px; background: var(--wpwc-panel); color: var(--wpwc-ink); border: 1px solid var(--wpwc-line); box-shadow: 0 2px 8px rgba(16, 24, 40, .1); opacity: 1;
}
body.wpwc:not(.wpwc-sb-kadence) #secondary .splide__arrow svg { fill: currentColor; width: 14px; height: 14px; }
body.wpwc:not(.wpwc-sb-kadence) #secondary .splide__arrow:hover { background: var(--wpwc-soft); color: var(--wpwc-accent-ink); }
body.wpwc:not(.wpwc-sb-kadence) #secondary .splide__pagination__page.is-active { background: var(--wpwc-accent); }

/* ------------------------------------------------------------------ post cards (blog, categories, search, Kadence post blocks) */
body.wpwc.wpwc-a-cards :is(.loop-entry.content-bg, .kt-blocks-post-grid-item) {
  background: var(--wpwc-panel); border: 1px solid var(--wpwc-border-color) !important; border-radius: calc(var(--wpwc-radius) + 2px) !important;
  box-shadow: var(--wpwc-shadow); overflow: clip; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.wpwc.wpwc-a-cards.wpwc-borders :is(.loop-entry.content-bg, .kt-blocks-post-grid-item) { border-color: var(--wpwc-line) !important; }
@media (hover: hover) {
  body.wpwc.wpwc-a-cards :is(.loop-entry.content-bg, .kt-blocks-post-grid-item):hover { box-shadow: var(--wpwc-shadow-hover); border-color: color-mix(in srgb, var(--wpwc-accent) 30%, var(--wpwc-panel)) !important; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.wpwc.wpwc-a-cards :is(.loop-entry.content-bg, .kt-blocks-post-grid-item):hover { transform: translateY(-3px); }
  body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry .post-thumbnail img, .kt-blocks-post-grid-item .kadence-post-image img) { transition: transform .45s ease; }
  body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry:hover .post-thumbnail img, .kt-blocks-post-grid-item:hover .kadence-post-image img) { transform: scale(1.035); }
}
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry .post-thumbnail-inner, .kt-blocks-post-grid-item .kadence-post-image-intrisic) { overflow: hidden; }
/* card images in the shape of WP Writer covers (1200x630) - "Card image shape" option */
body.wpwc.wpwc-shape-cover:is(.wpwc-a-cards, .wpwc-a-minimal) .loop-entry .post-thumbnail[class*="kadence-thumbnail-ratio-"]:not(.kadence-thumbnail-ratio-inherit) { padding-bottom: 52.5%; }
body.wpwc.wpwc-shape-cover:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kadence-post-image-intrisic.kt-image-ratio-nocrop { padding-bottom: 52.5% !important; }
body.wpwc.wpwc-shape-cover:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-image-ratio-nocrop .kadence-post-image-inner-intrisic { position: absolute; inset: 0; }
body.wpwc.wpwc-shape-cover:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-image-ratio-nocrop img { width: 100%; height: 100%; object-fit: cover; }
body.wpwc.wpwc-a-cards .loop-entry .entry-content-wrap { padding: 20px 22px 22px; }
body.wpwc.wpwc-a-cards .kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner { padding: 18px 22px 20px; }
body.wpwc.wpwc-a-cards .kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner-wrap { height: 100%; }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .loop-entry .entry-footer:not(:has(*)) { display: none; }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry, .kt-blocks-post-grid-item) .entry-title { letter-spacing: -.01em; line-height: 1.3; }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry, .kt-blocks-post-grid-item) .entry-title a { color: var(--wpwc-ink); text-decoration: none; transition: color .15s; }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry, .kt-blocks-post-grid-item) .entry-title a:hover { color: var(--wpwc-accent-ink); }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .loop-entry .entry-summary { color: var(--wpwc-text); }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) :is(.loop-entry, .kt-blocks-post-grid-item) :is(.entry-meta, .kt-blocks-post-footer) { color: var(--wpwc-muted); }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item :is(.kt-blocks-tags, .kt-blocks-post-footer) a { color: var(--wpwc-text); }
/* category labels: soft pills */
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .entry-taxonomies .category-style-pill a,
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-blocks-categories a {
  display: inline-block; background: var(--wpwc-soft); color: var(--wpwc-accent-ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600;
  line-height: 1.5; text-decoration: none; margin-block: 0 4px; margin-inline: 0 4px;
}
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .entry-taxonomies .category-style-pill a:hover,
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-blocks-categories a:hover { background: var(--wpwc-soft-2); }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-blocks-category-pretext { display: none; }
body.wpwc:is(.wpwc-a-cards, .wpwc-a-minimal) .kt-blocks-post-grid-item .kt-blocks-post-top-meta { margin-top: 8px; }
/* minimal: no box, rounded image */
body.wpwc.wpwc-a-minimal :is(.loop-entry.content-bg, .kt-blocks-post-grid-item) { background: transparent; box-shadow: none !important; border: 0 !important; }
body.wpwc.wpwc-a-minimal :is(.loop-entry .post-thumbnail, .kt-blocks-post-grid-item .kadence-post-image) { border-radius: calc(var(--wpwc-radius) + 2px); overflow: clip; }
body.wpwc.wpwc-a-minimal .loop-entry .entry-content-wrap { padding: 16px 2px 0; }
body.wpwc.wpwc-a-minimal .kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner { padding: 14px 2px 0; }

/* WP Writer badges on card images */
:where(.post-thumbnail, .kadence-post-image-inner-intrisic, .wpwc-minicard__media) { position: relative; }
.wpwc-badges { display: none; }
:is(.post-thumbnail, .kadence-post-image-inner-intrisic, .wpwc-minicard__media) .wpwc-badges { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; pointer-events: none; }
body.wpwc.wpwc-bpos-tl .wpwc-badges { inset-inline: 12px auto; justify-content: flex-start; }
body.wpwc.wpwc-bpos-bl .wpwc-badges { top: auto; bottom: 12px; inset-inline: 12px auto; justify-content: flex-start; }
body.wpwc.wpwc-bpos-br .wpwc-badges { top: auto; bottom: 12px; }
.wpwc-badge {
  display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35;
  background: rgba(255, 255, 255, .96); color: #1f2329; box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
}
.wpwc-badge--score b { font-size: 15px; font-weight: 800; }
.wpwc-badge--score small { font-size: 11px; font-weight: 600; opacity: .75; }
.wpwc-badge--kind { background: var(--wpwc-solid, #0b827e); color: var(--wpwc-on-solid, #fff); }
body.wpwc:not(.wpwc-show-badges) .wpwc-badges { display: none; }

/* ------------------------------------------------------------------ 404 and "Latest Reads" */
body.wpwc .error .page-content .wpwc-404-code {
  margin: 0 0 4px; font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--wpwc-accent) 22%, var(--wpwc-panel));
}
body.wpwc .error .page-content .search-form { max-width: 620px; }
body.wpwc .error .page-content .search-form input.search-field { padding-block: 14px; padding-inline-start: 16px; font-size: 17px; }
body.wpwc .wpwc-more { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--wpwc-line); }
body.wpwc .wpwc-more__title { font-size: 1.25rem; margin: 0 0 16px; letter-spacing: -.01em; }
body.wpwc .wpwc-minicards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
body.wpwc .wpwc-minicard a {
  display: flex; flex-direction: column; height: 100%; background: var(--wpwc-panel); border: 1px solid var(--wpwc-line); border-radius: var(--wpwc-radius);
  overflow: clip; text-decoration: none; color: var(--wpwc-ink); transition: box-shadow .2s, border-color .2s;
}
body.wpwc .wpwc-minicard a:hover { box-shadow: var(--wpwc-shadow-hover); border-color: color-mix(in srgb, var(--wpwc-accent) 30%, var(--wpwc-panel)); }
body.wpwc .wpwc-minicard__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--wpwc-soft); }
body.wpwc .wpwc-minicard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.wpwc .wpwc-minicard__title { display: block; padding: 12px 14px 14px; font-weight: 700; line-height: 1.35; }
body.wpwc .wpwc-minicard .wpwc-badge { font-size: 12px; padding: 3px 9px; }

/* ------------------------------------------------------------------ footer */
body.wpwc:not(.wpwc-f-kadence) .site-footer .footer-navigation a { border-radius: 999px; transition: background-color .15s, color .15s; }
body.wpwc:not(.wpwc-f-kadence) .site-footer .site-info { font-size: 14px; }

/* ink: calm dark footer */
body.wpwc.wpwc-f-ink #colophon { background: var(--wpwc-dark); }
body.wpwc.wpwc-f-ink #colophon .site-footer-row-container-inner { background: transparent; border-color: rgba(255, 255, 255, .08) !important; }
body.wpwc.wpwc-f-ink #colophon :is(.footer-navigation a, .widget a) { color: rgba(255, 255, 255, .86); }
body.wpwc.wpwc-f-ink #colophon :is(.footer-navigation a:hover, .footer-navigation .current-menu-item > a) { color: #fff; background: rgba(255, 255, 255, .08); }
body.wpwc.wpwc-f-ink #colophon :is(.site-info, .widget, p) { color: rgba(255, 255, 255, .7); }
body.wpwc.wpwc-f-ink #colophon :is(h1, h2, h3, h4, h5, h6, .widget-title) { color: #fff; }

/* soft: light accent tint */
body.wpwc.wpwc-f-soft #colophon { background: var(--wpwc-soft); border-top: 1px solid color-mix(in srgb, var(--wpwc-accent) 14%, var(--wpwc-panel)); }
body.wpwc.wpwc-f-soft #colophon .site-footer-row-container-inner { background: transparent; border-color: color-mix(in srgb, var(--wpwc-accent) 14%, var(--wpwc-panel)) !important; }
body.wpwc.wpwc-f-soft #colophon :is(.footer-navigation a, .widget a) { color: var(--wpwc-ink); }
body.wpwc.wpwc-f-soft #colophon :is(.footer-navigation a:hover, .footer-navigation .current-menu-item > a) { color: var(--wpwc-accent-ink); background: var(--wpwc-soft-2); }
body.wpwc.wpwc-f-soft #colophon :is(.site-info, .widget, p) { color: var(--wpwc-text); }
body.wpwc.wpwc-f-soft #colophon :is(h1, h2, h3, h4, h5, h6, .widget-title) { color: var(--wpwc-ink); }
body.wpwc.wpwc-f-soft #colophon :focus-visible { outline-color: var(--wpwc-accent-ink); }

/* card: dark rounded panel floating above the page edge */
body.wpwc.wpwc-f-card #colophon { background: transparent; padding: 0 16px 16px; }
body.wpwc.wpwc-f-card #colophon .site-footer-wrap { background: var(--wpwc-dark); border-radius: calc(var(--wpwc-radius) + 10px); max-width: calc(var(--global-content-width, 1290px) + 40px); margin: 0 auto; overflow: clip; }
body.wpwc.wpwc-f-card #colophon .site-footer-row-container-inner { background: transparent; border-color: rgba(255, 255, 255, .08) !important; }
body.wpwc.wpwc-f-card #colophon :is(.footer-navigation a, .widget a) { color: rgba(255, 255, 255, .86); }
body.wpwc.wpwc-f-card #colophon :is(.footer-navigation a:hover, .footer-navigation .current-menu-item > a) { color: #fff; background: rgba(255, 255, 255, .08); }
body.wpwc.wpwc-f-card #colophon :is(.site-info, .widget, p) { color: rgba(255, 255, 255, .7); }
body.wpwc.wpwc-f-card #colophon :is(h1, h2, h3, h4, h5, h6, .widget-title) { color: #fff; }

/* affiliate disclosure line */
.wpwc-disclosure { padding: 12px 0 16px; text-align: center; font-size: 13px; line-height: 1.5; }
.wpwc-disclosure p { margin: 0; }
body.wpwc.wpwc-f-ink .wpwc-disclosure { background: var(--wpwc-dark); color: rgba(255, 255, 255, .66); border-top: 1px solid rgba(255, 255, 255, .08); }
body.wpwc.wpwc-f-kadence .wpwc-disclosure { color: var(--wpwc-muted); }
body.wpwc.wpwc-f-soft .wpwc-disclosure { background: var(--wpwc-soft); color: var(--wpwc-text); border-top: 1px solid color-mix(in srgb, var(--wpwc-accent) 14%, var(--wpwc-panel)); }
body.wpwc.wpwc-f-card .wpwc-disclosure {
  box-sizing: border-box; width: calc(100% - 32px); max-width: calc(var(--global-content-width, 1290px) + 40px); margin: -16px auto 16px; padding-top: 12px;
  background: var(--wpwc-dark); color: rgba(255, 255, 255, .66); border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0 0 calc(var(--wpwc-radius) + 10px) calc(var(--wpwc-radius) + 10px);
}
body.wpwc.wpwc-f-card #colophon:has(+ .wpwc-disclosure) .site-footer-wrap { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* back to top */
body.wpwc.wpwc-totop #kt-scroll-up, body.wpwc.wpwc-totop #kt-scroll-up-reader {
  width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px !important;
  background: var(--wpwc-solid); color: var(--wpwc-on-solid); border: 0; box-shadow: 0 8px 20px rgba(16, 24, 40, .18); bottom: 28px;
}
body.wpwc.wpwc-totop #kt-scroll-up:hover { background: var(--wpwc-accent-ink); color: #fff; }
@media (max-width: 1024px) { body.wpwc.wpwc-totop #kt-scroll-up { bottom: 84px; } }   /* clear of WP Writer's phone buy bar */

/* ------------------------------------------------------------------ announcement bar */
.wpwc-announce { font-size: 14px; line-height: 1.45; }
.wpwc-announce[hidden], .wpwc-ann-closed .wpwc-announce { display: none !important; }
.wpwc-announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; position: relative; }
.wpwc-announce p { margin: 0; text-align: center; font-weight: 500; }
.wpwc-announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wpwc-announce__close {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0;
  background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8;
}
.wpwc-announce__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.wpwc-announce--tint { background: var(--wpwc-soft-2, #e6f6f5); color: var(--wpwc-accent-ink, #00454a); }
.wpwc-announce--brand { background: var(--wpwc-solid, #0b827e); color: var(--wpwc-on-solid, #fff); }
.wpwc-announce--ink { background: var(--wpwc-dark, #1f2329); color: #fff; }
@media (max-width: 600px) { .wpwc-announce__inner { padding-inline-end: 48px; justify-content: flex-start; } .wpwc-announce p { text-align: start; } }

/* ------------------------------------------------------------------ reading progress */
.wpwc-progress { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); height: 3px; z-index: 100000; pointer-events: none; }
.wpwc-progress span { display: block; height: 100%; background: var(--wpwc-accent, #0e9f9a); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .wpwc-progress span { transform-origin: 100% 50%; }
@media (max-width: 600px) { .admin-bar .wpwc-progress { top: 0; } }   /* the admin bar scrolls away on phones */

/* ------------------------------------------------------------------ small screens */
@media (max-width: 719px) {
  /* Kadence stretches boxed content past the screen edge on phones (margin: 0 -1rem); rounded cards stay inside it */
  body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container.site-container { padding-left: max(12px, var(--global-content-edge-padding, 0px)); padding-right: max(12px, var(--global-content-edge-padding, 0px)); }
  body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container .content-bg:not(.loop-entry) { margin-left: 0; margin-right: 0; width: auto; }
  body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container .comments-area { padding-left: 18px; padding-right: 18px; }
  body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container .post-navigation-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 767px) {
  body.wpwc:is(.wpwc-c-cards, .wpwc-c-flat).content-style-boxed .content-container .entry.content-bg:not(.loop-entry) { border-radius: var(--wpwc-radius); }
  body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-links { grid-template-columns: 1fr; }
  body.wpwc:not(.wpwc-c-kadence) .post-navigation .nav-next { grid-column-start: 1; }
  body.wpwc:not(.wpwc-c-kadence) .comment-list .comment-meta { margin-inline-start: 0; }
  body.wpwc:not(.wpwc-c-kadence) .comments-area .comment .avatar { position: static; float: left; margin: 0 10px 6px 0; width: 40px; height: 40px; }
  body.wpwc:not(.wpwc-hero-kadence) .entry-hero .entry-header { padding-top: 30px; padding-bottom: 28px; }
  body.wpwc.wpwc-hero-card .entry-hero { padding: 14px 10px 0; }
  body.wpwc.wpwc-f-card #colophon { padding: 0 10px 10px; }
  body.wpwc.wpwc-f-card .wpwc-disclosure { width: calc(100% - 20px); margin: -10px auto 10px; }
  body.wpwc:not(.wpwc-f-kadence) #colophon .footer-navigation .menu > li > a { padding: 11px 14px; }
  body.wpwc .wpwc-minicards { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.wpwc .wpwc-minicard__title { font-size: 14.5px; padding: 10px 11px 12px; }
}
@media (max-width: 420px) { body.wpwc .wpwc-minicards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ print */
@media print {
  .wpwc-progress, .wpwc-announce, #kt-scroll-up, #kt-scroll-up-reader, .wpwc-badges { display: none !important; }
  body.wpwc #colophon, body.wpwc #colophon *, body.wpwc .wpwc-disclosure, body.wpwc .wpwc-disclosure * { color: #000 !important; background: transparent !important; }
  body.wpwc :is(.entry.content-bg, .loop-entry, .primary-sidebar .widget, .kt-blocks-post-grid-item) { box-shadow: none !important; }
}
