/* ============================================================
   SELENE BUILDS THINGS — text colour fixes
   Replaces the earlier caption-only block. Paste the whole thing.

   Kadence assigns several TEXT colours to palette slots that hold
   LIGHT colours, which makes them invisible on a bone page:
     archive post titles -> palette8 (Bone)   1.06:1 on white
     category links      -> palette6 (Blush)  1.13:1 on bone
     captions            -> palette5 (Lime)   1.10:1 on bone
   ============================================================ */


/* --- 1. CAPTIONS -> Drift ---------------------------------- */
/* Kadence's rule also covers .wp-block-table figcaption, which the
   previous version of this block missed — that's the lime caption
   that survived. */

.wp-block-image figcaption,
.wp-block-kadence-image figcaption,
.wp-block-table figcaption,
.wp-block-gallery figcaption,
.blocks-gallery-caption figcaption,
.wp-block-embed figcaption,
.wp-caption-text,
.wp-element-caption {
  color: #57544D;
}

/* Slideshow captions sit on a dark overlay — leave them light. */
.wp-block-jetpack-slideshow figcaption,
.wp-block-jetpack-slideshow_caption {
  color: #FFFFFF;
}


/* --- 2. BLOG ARCHIVE POST TITLES -> Charcoal --------------- */
/* These are headings, so they take full charcoal. Deep Sea on hover
   rather than rust: rust is the urgency colour and stops meaning
   anything if it becomes a general hover state. */

.loop-entry.type-post h2.entry-title,
.loop-entry.type-post h2.entry-title a,
.loop-entry .entry-title a {
  color: #131313;
}

.loop-entry.type-post h2.entry-title a:hover,
.loop-entry .entry-title a:hover {
  color: #0A5250;
}


/* --- 3. CATEGORY & TAG LINKS -> Drift ---------------------- */
/* Categories are metadata, and Drift is the metadata colour. */

.post-title .entry-taxonomies,
.post-title .entry-taxonomies a,
.loop-entry.type-post .entry-taxonomies,
.loop-entry.type-post .entry-taxonomies a,
.entry-taxonomies .category-links a,
.entry-taxonomies .term-links a {
  color: #57544D;
}

.post-title .entry-taxonomies a:hover,
.loop-entry.type-post .entry-taxonomies a:hover,
.entry-taxonomies .category-links a:hover,
.entry-taxonomies .term-links a:hover {
  color: #131313;
}

/* The "#" before tag names was lime too. */
.tag-hash {
  color: #57544D;
}


/* --- 4. PILL-STYLE CATEGORIES ------------------------------ */
/* If a category ever renders as a filled pill, its text is white on
   an unknown fill. Force charcoal-on-lime, which is 14.7:1. */

.entry-taxonomies .category-style-pill a,
.loop-entry.type-post .entry-taxonomies .category-style-pill a {
  color: #131313;
  background-color: #D6F24B;
}

/* --- 5. HOME HERO OVERLAY ------------------------------------ */
/* The Deep Sea strip only clears the text at full desktop width.
   Below 1024px the hero columns stack full width and body copy
   runs over the teal, so hide the overlay there. */

@media (max-width: 1024px) {
  .kb-row-layout-id6988_268f62-1f > .kt-row-layout-overlay {
    display: none !important;
  }
}

/* --- 6. SIDEBAR CATEGORY LIST ------------------------------- */
/* The categories block already outputs a real hierarchy, the theme
   just renders every level flush left, so it reads as one long list.
   Indent the sub-levels, and hide the five ORC year archives.
   One Room Challenge (cat 23846) stays and still holds all 52 posts. */

.wp-block-categories-list ul.children {
  padding-left: 1.1em;
}

.wp-block-categories-list .cat-item-23846 > ul.children {
  display: none;
}