/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* ---- AppMole site-wide dark theme (2026-09-13, v2) ---- */
/* !important needed: Elementor's global.css paints body per page-type
   (body[data-prefix="..."]) at higher specificity than a plain body rule. */
body {
  background: #1D1E20 !important;
  color: #d6d8db !important;
}
body.elementor-kit-11 {
  --e-global-color-text: #c9cdd2;
  --e-global-color-secondary: #c9cdd2;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .entry-title a,
.ct-module-title {
  color: #ffffff;
}
.site-main a:not(.elementor-button):not(.wp-element-button) {
  color: #4fc3b8;
}
/* affiliate CTA buttons stay white-on-teal */
.tool-cta a {
  color: #ffffff !important;
}

/* Legacy Elementor listings (posts) hard-code navy text in their template.
   Scoped to single posts so the hand-built homepage/landing pages keep
   their own designed colors. Buttons keep their own colors (not targeted). */
body.single-post .elementor-widget-container,
body.single-post .elementor-widget-container p,
body.single-post .elementor-widget-container li,
body.single-post .elementor-widget-text-editor {
  color: #d6d8db !important;
}
body.single-post .elementor-heading-title {
  color: #ffffff !important;
}

/* archive listings and related-post cards */
.entry-card {
  background: #26272B;
}
.entry-card .entry-title a {
  color: #ffffff;
}
.entry-card .entry-excerpt,
.entry-meta,
.entry-meta a {
  color: #a7abb1;
}
/* content furniture */
.entry-content table th {
  background: #26272B;
  color: #ffffff;
}
.entry-content table td,
.entry-content table th {
  border-color: #2B2B2F;
}
.entry-content blockquote,
.entry-content pre {
  background: #26272B;
  color: #d6d8db;
}
/* sidebar and footer text */
.ct-sidebar,
footer.ct-footer,
.ct-footer [data-column] {
  color: #a7abb1;
}

/* ---- Blog index card grid (wp-block-latest-posts) 2026-09-14 ---- */
.wp-block-latest-posts.is-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  list-style: none;
}
@media (max-width: 1024px) {
  .wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wp-block-latest-posts.is-grid { grid-template-columns: 1fr; }
}
.wp-block-latest-posts.is-grid > li {
  width: auto !important;
  margin: 0 !important;
  background: #26272B;
  border: 1px solid #2B2B2F;
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.wp-block-latest-posts__featured-image,
.wp-block-latest-posts__featured-image a,
.wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
}
.wp-block-latest-posts__featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
}
.wp-block-latest-posts.is-grid > li > a:not(.wp-block-latest-posts__post-excerpt a) {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #ffffff;
  padding: 14px 16px 4px;
  display: block;
  text-decoration: none;
}
.wp-block-latest-posts__post-date {
  color: #8b9096;
  font-size: 0.8rem;
  padding: 0 16px;
}
.wp-block-latest-posts__post-excerpt {
  color: #a7abb1;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 8px 16px 16px;
  margin: 0;
}

/* hero excerpt line under post titles (bare p in entry-header) 2026-09-14 */
.entry-header p {
  color: #a7abb1;
}
