/* v8 light skin for the blog (listing, category, search, post, blog 404): dark site header,
   light reading area in the plugin's light-mode palette. Loaded last. */
body.blocksy {
  --v8-canvas: #f0f2f5;
  --v8-canvas-top: #e2e5fa;
  --v8-surface: #ffffff;
  --v8-field: #e8edf3;
  --v8-field-hover: #dce3ed;
  --v8-text: #152133;
  --v8-muted: #526176;
  --v8-border: #dce3ed;
  --v8-action: #0765b5;
  --v8-action-hover: #091d70;
  --v8-on-action: #ffffff;
  --v8-shadow: 0 1px 2px #1521330a, 0 12px 32px #15213312;
  /* dark chrome: header and the newsletter banner */
  --v8-ink-text: #edf2ff;
  --v8-ink-muted: #b0bfd6;
  --v8-ink-action: #8db9ff;
  --v8-ink-action-hover: #b3d1ff;
  --v8-on-ink-action: #0d1830;
  --v8-heading-font: "Space Grotesk", "Geist", "Inter", sans-serif;
  --v8-body-font: "Geist", "Inter", sans-serif;

  --theme-palette-color-1: var(--v8-action);
  --theme-palette-color-2: var(--v8-action-hover);
  --theme-palette-color-3: var(--v8-muted);
  --theme-palette-color-4: var(--v8-text);
  --theme-palette-color-5: var(--v8-border);
  --theme-palette-color-6: var(--v8-field);
  --theme-palette-color-7: var(--v8-canvas);
  --theme-palette-color-8: var(--v8-surface);
  --theme-text-color: #2b3a50;
  --theme-headings-color: var(--v8-text);
  --theme-heading-color: var(--v8-text);
  --theme-link-initial-color: var(--v8-action);
  --theme-link-hover-color: var(--v8-action-hover);
  --theme-border-color: var(--v8-border);
  --theme-form-field-border-initial-color: var(--v8-border);
  --theme-form-field-border-focus-color: var(--v8-action);
  --theme-form-text-initial-color: var(--v8-text);
  --theme-form-text-focus-color: var(--v8-text);
  --theme-button-background-initial-color: var(--v8-action);
  --theme-button-background-hover-color: var(--v8-action-hover);
  --theme-button-text-initial-color: var(--v8-on-action);
  --theme-button-text-hover-color: var(--v8-on-action);

  background-color: var(--v8-canvas);
  background-image: linear-gradient(180deg, var(--v8-canvas-top) 0, var(--v8-canvas) 520px);
  background-repeat: no-repeat;
  color: var(--theme-text-color);
  font-family: var(--v8-body-font);
}

body.blocksy #main,
body.blocksy #main-container,
body.blocksy .site-main,
body.blocksy [data-prefix] .hero-section,
body.blocksy .ct-container,
body.blocksy .ct-container-narrow {
  background-color: transparent;
}

/* Header: same dark bar as the rest of the site */
body.blocksy #page-header {
  background:
    radial-gradient(ellipse 50% 160% at 30% 0%, #1c579c66 0%, transparent 70%),
    radial-gradient(ellipse 40% 160% at 75% 0%, #56299066 0%, transparent 72%),
    #061329;
}
body.blocksy #page-header .uk-navbar-container,
body.blocksy #page-header .wpdt-login-header {
  background: transparent;
}
body.blocksy #page-header .wpdt-login-header {
  border-bottom-color: rgba(237, 242, 255, 0.14);
}
body.blocksy #page-header .wpdt-login-header a,
body.blocksy #page-header .wpdt-login-header span,
body.blocksy #page-header .wpdt-help-center {
  color: var(--v8-ink-muted);
}
body.blocksy #page-header .wpdt-help-center svg path {
  fill: var(--v8-ink-muted);
}
body.blocksy #page-header .wpdt-sign-in-icon,
body.blocksy #page-header #wpdt-caret-down-icon {
  filter: brightness(0) invert(0.78);
}
body.blocksy #page-header .uk-navbar-nav > li > a.uk-link {
  color: var(--v8-ink-text);
}
body.blocksy #page-header .uk-navbar-nav > li > a.uk-link:hover {
  color: var(--v8-ink-action);
}
body.blocksy #page-header .wpdt-nav-dropdown {
  background: #192235;
  border: 1px solid #35435c;
  border-radius: 14px;
  box-shadow: 0 16px 45px #050b2560;
}
body.blocksy #page-header .wpdt-nav-dropdown a {
  color: var(--v8-ink-text);
}
body.blocksy #page-header .wpdt-nav-dropdown a:hover {
  color: var(--v8-ink-action);
}
body.blocksy #page-header .uk-navbar-toggle {
  color: var(--v8-ink-text);
}
body.blocksy #page-header .uk-offcanvas-bar {
  background: #0a1428;
}
body.blocksy #page-header .mobile-nav-items a {
  color: var(--v8-ink-text);
}

/* Typography */
body.blocksy h1,
body.blocksy h2,
body.blocksy h3,
body.blocksy h4,
body.blocksy h5,
body.blocksy h6,
body.blocksy .entry-title,
body.blocksy .page-title,
body.blocksy .category-navbar .blog-title,
body.blocksy .category-navbar .category-title {
  color: var(--v8-text);
  font-family: var(--v8-heading-font);
  font-weight: 500;
  letter-spacing: -0.02em;
}
body.blocksy .category-navbar .blog-description,
body.blocksy .page-description {
  color: var(--v8-muted);
}

/* Category chips and search */
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item,
body.blocksy .main-menu-show-more .category-item {
  background: var(--v8-field);
  border: 1px solid var(--v8-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--v8-body-font);
}
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item a,
body.blocksy .main-menu-show-more .category-item a {
  color: var(--v8-text);
}
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item:hover,
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item.is-active {
  background: var(--v8-action);
  border-color: var(--v8-action);
}
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item:hover a,
body.blocksy .category-navbar .category-navbar-wrapper .main-menu .category-item.is-active a {
  color: var(--v8-on-action);
  opacity: 1;
}
body.blocksy .category-navbar .badge {
  color: var(--v8-action);
  background: none;
  cursor: pointer;
}
body.blocksy .main-menu-show-more {
  background: var(--v8-surface);
  border: 1px solid var(--v8-border);
}
body.blocksy form.search-form input,
body.blocksy .search-form-wrapper input[type="search"],
body.blocksy .search-form-wrapper input[type="text"],
body.blocksy .is-search-form input.is-search-input {
  background: var(--v8-field) !important;
  border: 1px solid var(--v8-border) !important;
  color: var(--v8-text) !important;
  border-radius: 999px;
}
body.blocksy .search-form-wrapper input::placeholder {
  color: var(--v8-muted);
}

/* Cards */
body.blocksy .entries > article.entry-card,
body.blocksy [data-cards="boxed"] .entry-card {
  background: var(--v8-surface);
  border: 1px solid var(--v8-border);
  border-radius: 24px;
  box-shadow: var(--v8-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
body.blocksy .entries > article.entry-card:hover {
  border-color: #0765b566;
  transform: translateY(-2px);
}
body.blocksy .entry-card .entry-title a {
  color: var(--v8-text);
}
body.blocksy .entry-card .entry-title a:hover {
  color: var(--v8-action);
}
body.blocksy .entry-card .entry-excerpt {
  color: var(--v8-muted);
}
body.blocksy .entry-card .ct-media-container {
  border-radius: 14px;
  overflow: hidden;
  background: #e4eaf6;
}
body.blocksy .entry-meta,
body.blocksy .entry-meta a,
body.blocksy .entry-meta li {
  color: var(--v8-muted);
}
body.blocksy .entry-meta a:hover,
body.blocksy .entry-card .entry-button {
  color: var(--v8-action);
}
body.blocksy .entry-card .entry-button:hover {
  color: var(--v8-action-hover);
}
body.blocksy .meta-categories a {
  color: var(--v8-action);
}

/* Pagination */
body.blocksy .ct-pagination .page-numbers {
  color: var(--v8-text);
  border-color: var(--v8-border);
}
body.blocksy .ct-pagination .page-numbers.current,
body.blocksy .ct-pagination a.page-numbers:hover {
  background: var(--v8-action);
  border-color: var(--v8-action);
  color: var(--v8-on-action);
}

/* Post */
body.blocksy .ct-breadcrumbs,
body.blocksy .ct-breadcrumbs span {
  color: var(--v8-muted);
}
body.blocksy .ct-breadcrumbs a {
  color: var(--v8-action);
}
body.blocksy .blog-post-wrapper aside .explore-title,
body.blocksy .blog-post-wrapper aside p {
  color: var(--v8-muted);
}
body.blocksy .blog-post-wrapper aside .featured-blogs a {
  color: var(--v8-action);
}
body.blocksy .blog-post-wrapper aside .featured-blogs a:hover {
  color: var(--v8-action-hover);
}
body.blocksy .entry-content {
  color: var(--theme-text-color);
  font-size: 17px;
  line-height: 1.75;
}
body.blocksy .entry-content p,
body.blocksy .entry-content li,
body.blocksy .entry-content dd,
body.blocksy .entry-content figcaption {
  color: var(--theme-text-color);
}
body.blocksy .entry-content strong,
body.blocksy .entry-content b {
  color: var(--v8-text);
}
body.blocksy .entry-content a {
  color: var(--v8-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.blocksy .entry-content a:hover {
  color: var(--v8-action-hover);
}
body.blocksy .entry-content img,
body.blocksy .ct-featured-image img,
body.blocksy .entry-content iframe,
body.blocksy .entry-content video {
  border-radius: 14px;
}
body.blocksy .entry-content figure.wp-caption {
  background: none;
  border-color: var(--v8-border);
}
body.blocksy .entry-content blockquote {
  background: var(--v8-surface);
  border-left: 3px solid var(--v8-action);
  border-radius: 0 14px 14px 0;
  color: var(--v8-text);
  padding: 20px 24px;
}
body.blocksy .entry-content blockquote p {
  color: var(--v8-text);
}
body.blocksy .entry-content hr {
  border-color: var(--v8-border);
  background-color: var(--v8-border);
}
body.blocksy .entry-content :not(pre) > code,
body.blocksy .entry-content kbd {
  background: var(--v8-field);
  color: #7a2a8f;
  border: 0;
  border-radius: 6px;
  padding: 2px 6px;
}
body.blocksy .entry-content pre {
  background: #0a1428;
  border: 1px solid var(--v8-border);
  border-radius: 14px;
  color: #dbe6ff;
}
body.blocksy .entry-content pre code {
  background: none;
  color: inherit;
}

/* Tables inside posts (plain HTML tables, not wpDataTables) */
body.blocksy .entry-content table:not(.wpDataTable) {
  border-color: var(--v8-border);
  --theme-table-border-color: var(--v8-border);
}
body.blocksy .entry-content table:not(.wpDataTable) th {
  background: var(--v8-field);
  color: var(--v8-text);
  border-color: var(--v8-border);
}
body.blocksy .entry-content table:not(.wpDataTable) td {
  background: var(--v8-surface);
  color: var(--theme-text-color);
  border-color: var(--v8-border);
}

/* Table of contents (Easy TOC) */
body.blocksy #ez-toc-container,
body.blocksy #ez-toc-container.ez-toc-transparent {
  background: var(--v8-surface);
  border: 1px solid var(--v8-border);
  border-radius: 18px;
}
body.blocksy #ez-toc-container .ez-toc-title {
  color: var(--v8-text);
  font-family: var(--v8-heading-font);
}
body.blocksy #ez-toc-container .ez-toc-link,
body.blocksy #ez-toc-container a.ez-toc-link:visited {
  color: var(--v8-action);
}
body.blocksy #ez-toc-container .ez-toc-link:hover {
  color: var(--v8-action-hover);
}
body.blocksy .ez-toc-counter nav ul li a.ez-toc-link::before {
  border-color: var(--v8-border);
  color: var(--v8-muted);
}
body.blocksy #ez-toc-container .ez-toc-toggle,
body.blocksy #ez-toc-container .ez-toc-icon-toggle-span svg {
  color: var(--v8-muted);
  fill: var(--v8-muted);
}

/* Share box, author box, related posts, post navigation */
body.blocksy .ct-share-box a,
body.blocksy .ct-share-box [data-type="type-1"] a {
  color: var(--v8-muted);
  border-color: var(--v8-border);
  --theme-border: 1px solid var(--v8-border);
  --theme-icon-color: var(--v8-muted);
  --theme-icon-hover-color: var(--v8-action);
}
body.blocksy .ct-share-box a:hover {
  color: var(--v8-action);
}
body.blocksy .author-box {
  background: var(--v8-surface);
  border: 1px solid var(--v8-border);
  border-radius: 24px;
  --theme-border-color: var(--v8-border);
}
body.blocksy .author-box .author-box-name,
body.blocksy .author-box h5 {
  color: var(--v8-text);
}
body.blocksy .author-box .author-box-bio,
body.blocksy .author-box .author-box-bio p {
  color: var(--v8-muted);
}
body.blocksy .author-box a {
  color: var(--v8-action);
}
body.blocksy .post-navigation,
body.blocksy .ct-related-posts-container,
body.blocksy .ct-related-posts {
  background: transparent;
  border-color: var(--v8-border);
  --theme-border-color: var(--v8-border);
}
body.blocksy .post-navigation .item-title,
body.blocksy .ct-related-posts .related-entry-title a {
  color: var(--v8-text);
}
body.blocksy .post-navigation .item-label,
body.blocksy .ct-related-posts .entry-meta {
  color: var(--v8-muted);
}
body.blocksy .ct-back-to-top,
body.blocksy .scroll-to-top {
  background: var(--v8-field);
  color: var(--v8-text);
  border: 1px solid var(--v8-border);
  --theme-icon-color: var(--v8-text);
}

/* Buttons */
body.blocksy .entry-content .wp-block-button__link,
body.blocksy .entry-content .buy-now,
body.blocksy button[type="submit"],
body.blocksy .ct-button {
  border-radius: 999px;
}

/* Blog 404 and empty search */
body.blocksy.error404 .entry-content,
body.blocksy .ct-no-results,
body.blocksy.error404 .page-description {
  color: var(--v8-muted);
}
body.blocksy.error404 .page-title,
body.blocksy.error404 h1 {
  color: var(--v8-text);
}

/* Legacy callouts with an inline light background keep their own dark text */
body.blocksy .entry-content [style*="background"]:not(a):not(th):not(td) :is(p, li, h2, h3, h4, h5, strong, b, em, span) {
  color: inherit;
}
body.blocksy .entry-content [style*="background"]:not(a):not(th):not(td) a:not([style*="background"]) {
  color: #0a4d8f;
}

/* Blog 404 */
body.blocksy .page-not-found-number {
  font-family: var(--v8-heading-font);
  font-weight: 500;
  background: linear-gradient(115deg, #0765b5, #8059ef 55%, #0c8f9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.blocksy .page-not-found-title {
  color: var(--v8-text);
  font-family: var(--v8-heading-font);
  font-weight: 500;
}
body.blocksy .page-not-found-text {
  color: var(--v8-muted);
}
body.blocksy .page-not-found-link-wraper .go-home-link {
  min-height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  background: var(--v8-action);
  color: var(--v8-on-action);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px #0765b533;
}
body.blocksy .page-not-found-link-wraper .go-home-link:hover {
  background: var(--v8-action-hover);
  color: var(--v8-on-action);
}

@media (max-width: 689px) {
  body.blocksy .entry-content table:not(.wpDataTable) {
    font-size: 13px;
  }
  body.blocksy .entry-content table:not(.wpDataTable) :is(th, td) {
    padding: 8px;
  }
}

/* Newsletter banner under posts: the one dark block on the page */
body.blocksy .blog-newsletter-cta__card {
  background: linear-gradient(120deg, #243658, #362b4d, #19424a);
  border: 0;
  border-radius: 24px;
  box-shadow: var(--v8-shadow);
}
body.blocksy .blog-newsletter-cta__card h2 {
  color: var(--v8-ink-text);
}
body.blocksy .blog-newsletter-cta__card p {
  color: var(--v8-ink-muted);
}
body.blocksy .blog-newsletter-cta__button {
  background: var(--v8-ink-action);
  color: var(--v8-on-ink-action);
  border-radius: 999px;
  box-shadow: 0 0 20px #6bb3ff40, inset 0 1px 0 #ffffff50;
}
body.blocksy .blog-newsletter-cta__button:hover,
body.blocksy .blog-newsletter-cta__button:focus {
  background: var(--v8-ink-action-hover);
  color: var(--v8-on-ink-action);
}

/* Buy button in the dark header keeps the light-blue look */
body.blocksy #page-header .uk-button-primary {
  background: var(--v8-ink-action);
  color: var(--v8-on-ink-action);
}

/* Post body sits on a white card, like the documentation article */
body.blocksy .blog-post-wrapper article {
  box-sizing: border-box;
  padding: 40px 48px 48px;
  background: var(--v8-surface);
  border: 1px solid var(--v8-border);
  border-radius: 24px;
  box-shadow: var(--v8-shadow);
}
body.blocksy .blog-post-wrapper article #ez-toc-container,
body.blocksy .blog-post-wrapper article .author-box,
body.blocksy .blog-post-wrapper article .entry-content blockquote {
  background: var(--v8-field);
  border-color: transparent;
}
body.blocksy .blog-post-wrapper article .entry-content table:not(.wpDataTable) td {
  background: transparent;
}
@media (max-width: 689px) {
  body.blocksy .blog-post-wrapper {
    padding: 0 12px;
  }
  body.blocksy .blog-post-wrapper article {
    padding: 24px 18px 28px;
    border-radius: 18px;
  }
}

/* Footer: solid dark, it is translucent on the dark pages */
body.blocksy #page-footer {
  background: #030b1b;
}

@media only screen and (max-width: 639px) {
  body.blocksy #page-header .wpdt-login-header {
    background: #061329;
    border-bottom: 1px solid rgba(237, 242, 255, 0.14);
  }
}

/* inside the card the title, image and footer blocks line up with the text */
body.blocksy .blog-post-wrapper article > .is-width-constrained {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.blocksy .entry-header .page-title,
body.blocksy .entry-card .entry-title,
body.blocksy .category-navbar .blog-title {
  font-family: var(--v8-heading-font) !important;
  font-weight: 500;
}
body.blocksy .blog-post-wrapper article > .hero-section {
  margin-top: 0;
  padding-top: 0;
}
body.blocksy .blog-post-wrapper article > .hero-section .entry-header {
  margin-top: 0;
  padding-top: 0;
}
