/* TaleBerry Design System v1.0.0 */

:root {
  --tb-cream-50: #FFFEFB;
  --tb-cream-100: #FFFBF2;
  --tb-cream-200: #FFF5E0;
  --tb-cream-300: #FFEEC4;
  --tb-cream-400: #FDE4A3;
  --tb-night-800: #231447;
  --tb-night-900: #1A103C;
  --tb-night-950: #100726;
  --tb-berry-50: #FFF0F3;
  --tb-berry-100: #FFE1E7;
  --tb-berry-400: #FF6B8B;
  --tb-berry-500: #E85A71;
  --tb-berry-600: #D13B53;
  --tb-honey-300: #FFE37B;
  --tb-honey-400: #FCD34D;
  --tb-honey-500: #F6B23C;
  --tb-honey-600: #E09B16;
  --tb-cloud-100: #F4EFFC;
  --tb-cloud-200: #E6DAFB;
  --tb-cloud-300: #D4BFF7;
  --tb-cloud-500: #9B72CF;
  --tb-sage-100: #E7F7EE;
  --tb-sage-500: #2EC4B6;
  --tb-sage-600: #1FA396;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--tb-cream-100);
  color: var(--tb-night-900);
}

h1, h2, h3, h4, .elementor-heading-title {
  font-family: 'Quicksand', sans-serif;
}

::selection { background: var(--tb-honey-300); color: var(--tb-night-950); }

@keyframes tbTwinkle {
  0% { opacity: .3; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1.15); }
}
@keyframes tbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.tb-twinkle { animation: tbTwinkle 3.5s ease-in-out infinite alternate; display: inline-block; }
.tb-float { animation: tbFloat 6s ease-in-out infinite; display: inline-block; }

/* Pills / badges — add via Elementor "CSS Classes" on a Text widget */
.tb-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tb-badge-honey { background: rgba(246,178,60,.25); border: 1px solid rgba(246,178,60,.5); color: var(--tb-night-900); }
.tb-badge-berry { background: var(--tb-berry-50); color: var(--tb-berry-600); }
.tb-badge-cloud { background: var(--tb-cloud-100); color: var(--tb-cloud-500); }
.tb-badge-night { background: rgba(246,178,60,.15); border: 1px solid rgba(246,178,60,.35); color: var(--tb-honey-400); }

/* Buttons — add via Elementor button widget "CSS Classes" */
.tb-btn-dark .elementor-button {
  background: linear-gradient(90deg, var(--tb-berry-500), var(--tb-night-800), var(--tb-night-900));
  color: var(--tb-cream-100);
  border-radius: 16px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(45,26,84,.08);
  border: none;
}
.tb-btn-dark .elementor-button:hover { transform: scale(1.02); color: var(--tb-cream-100); }
.tb-btn-honey .elementor-button {
  background: var(--tb-honey-500);
  color: var(--tb-night-950);
  border-radius: 16px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  border: none;
}
.tb-btn-honey .elementor-button:hover { background: var(--tb-honey-400); color: var(--tb-night-950); }
.tb-btn-outline .elementor-button {
  background: #fff;
  color: var(--tb-night-900);
  border: 2px solid var(--tb-cloud-200);
  border-radius: 16px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}
.tb-btn-outline .elementor-button:hover { border-color: var(--tb-honey-500); color: var(--tb-night-900); background: #fff; }

/* Cards */
.tb-card {
  background: #fff;
  border: 2px solid rgba(230,218,251,.8);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(45,26,84,.08);
  transition: transform .3s, box-shadow .3s;
}
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45,26,84,.15); }

/* Parent read-aloud tip box */
.tb-tip {
  background: rgba(255,227,123,.18);
  border-left: 4px solid var(--tb-honey-500);
  border-radius: 12px;
  padding: 14px 16px;
}

/* Dark sections */
.tb-dark-section { background: linear-gradient(135deg, var(--tb-night-950), var(--tb-night-900), var(--tb-night-950)); }
.tb-dark-card {
  background: rgba(26,16,60,.9);
  border: 1px solid rgba(155,114,207,.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}

/* ---------- Sound Room ([taleberry_sound_room]) ---------- */
.tb-sr-wrap { color: var(--tb-cream-100); }
.tb-sr-panel {
  background: rgba(26,16,60,.9);
  border: 2px solid rgba(155,114,207,.3);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}
@media (min-width: 640px) { .tb-sr-panel { padding: 40px; } }
.tb-sr-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .tb-sr-grid { grid-template-columns: 1fr 1fr; } }
.tb-sr-card {
  text-align: left;
  padding: 20px;
  border-radius: 16px;
  background: rgba(16,7,38,.8);
  border: 2px solid var(--tb-night-800);
  color: var(--tb-cream-100);
  cursor: pointer;
  transition: border-color .25s;
  font-family: 'Nunito', sans-serif;
  width: 100%;
}
.tb-sr-card:hover { border-color: var(--tb-cloud-300); }
.tb-sr-card.tb-active { border-color: var(--tb-honey-400); }
.tb-sr-card h3 { font-size: 18px; margin: 12px 0 4px; color: var(--tb-cream-100); }
.tb-sr-card p { font-size: 12px; color: rgba(230,218,251,.8); margin: 0; }
.tb-sr-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tb-sr-status {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 9999px;
  background: rgba(246,178,60,.15); color: var(--tb-honey-300);
}
.tb-sr-card:not(.tb-active) .tb-sr-status { background: transparent; color: var(--tb-cloud-300); }
.tb-sr-controls {
  margin-top: 24px; padding: 24px; border-radius: 16px;
  background: rgba(16,7,38,.6); border: 1px solid var(--tb-night-800);
  display: flex; flex-direction: column; gap: 24px; align-items: center;
}
@media (min-width: 768px) { .tb-sr-controls { flex-direction: row; justify-content: space-between; } }
.tb-sr-master {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tb-honey-500); color: var(--tb-night-950);
  font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 14px;
  padding: 12px 24px; border-radius: 16px; border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.tb-sr-master:hover { background: var(--tb-honey-400); }
.tb-sr-vol { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; }
.tb-sr-vol input { width: 100%; accent-color: var(--tb-honey-400); cursor: pointer; }
.tb-sr-timers { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--tb-night-800); text-align: center; }
.tb-sr-timers .tb-sr-label { display: block; font-size: 12px; font-weight: 800; color: var(--tb-honey-300); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-family: 'Quicksand', sans-serif; }
.tb-sr-chip {
  padding: 8px 16px; border-radius: 12px; font-size: 12px; font-weight: 800;
  background: var(--tb-night-950); color: var(--tb-cream-100);
  border: 1px solid var(--tb-night-800); cursor: pointer; margin: 0 4px 8px;
  font-family: 'Nunito', sans-serif;
}
.tb-sr-chip:hover { border-color: var(--tb-honey-400); }
.tb-sr-chip.tb-on { background: var(--tb-honey-400); color: var(--tb-night-950); border-color: var(--tb-honey-400); }
#tbTimerText { font-size: 12px; color: var(--tb-honey-400); font-weight: 700; padding-top: 4px; }

/* ---------- TaleBerry site header & footer (plugin-rendered) ---------- */
.tb-site-header { font-family: 'Nunito', sans-serif; }
.tb-topbar { background: var(--tb-night-950); color: var(--tb-cream-100); font-size: 12px; border-bottom: 1px solid var(--tb-night-800); }
.tb-topbar-inner { max-width: 80rem; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tb-topbar-sub { color: rgba(255,251,242,.72); font-weight: 600; }
.tb-topbar-link { color: var(--tb-honey-300); font-weight: 800; text-decoration: none; font-size: 11px; }
.tb-topbar-link:hover { color: var(--tb-honey-400); }
.tb-mainbar { background: rgba(255,251,242,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--tb-cloud-200); box-shadow: 0 2px 12px rgba(45,26,84,.06); position: sticky; top: 0; z-index: 60; }
body.admin-bar .tb-mainbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tb-mainbar { top: 46px; } }
.tb-mainbar-inner { max-width: 80rem; margin: 0 auto; padding: 0 16px; height: 80px; display: flex; align-items: center; gap: 16px; position: relative; }
.tb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.tb-brand img { height: 44px; width: auto; display: block; }
.tb-brand-name { font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.tb-brand-name .tb-b1 { color: var(--tb-night-900); }
.tb-brand-name .tb-b2 { color: var(--tb-berry-500); }
.tb-brand-tag { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--tb-cloud-500); text-transform: uppercase; }
.tb-nav .tb-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tb-nav .tb-menu a { display: block; padding: 8px 12px; border-radius: 12px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 14px; color: var(--tb-night-800); text-decoration: none; white-space: nowrap; }
.tb-nav .tb-menu a:hover { color: var(--tb-berry-600); background: var(--tb-cloud-100); }
.tb-nav .tb-menu .current-menu-item a { color: var(--tb-berry-600); background: var(--tb-berry-50); }
.tb-surprise { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: none; border-radius: 12px; background: linear-gradient(90deg, var(--tb-berry-500), var(--tb-night-800)); color: var(--tb-cream-100); font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 12px; cursor: pointer; box-shadow: 0 8px 30px rgba(45,26,84,.12); white-space: nowrap; }
.tb-surprise:hover { transform: scale(1.03); }
.tb-nav-toggle { display: none; border: 1px solid var(--tb-cloud-200); background: #fff; border-radius: 12px; width: 44px; height: 44px; font-size: 20px; line-height: 1; color: var(--tb-night-900); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1023px) {
  .tb-nav-toggle { display: inline-flex; }
  .tb-surprise { display: none; }
  .tb-topbar-sub { display: none; }
  .tb-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--tb-cream-50); border-bottom: 1px solid var(--tb-cloud-200); box-shadow: 0 20px 40px rgba(45,26,84,.12); z-index: 59; }
  .tb-nav.tb-open { display: block; }
  .tb-nav .tb-menu { flex-direction: column; align-items: stretch; padding: 8px; }
  .tb-nav .tb-menu a { padding: 12px; font-size: 15px; }
}
.tb-site-footer { background: var(--tb-night-950); color: var(--tb-cream-200); font-family: 'Nunito', sans-serif; }
.tb-footer-inner { max-width: 80rem; margin: 0 auto; padding: 48px 16px 0; }
.tb-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; padding-bottom: 40px; }
@media (min-width: 1024px) { .tb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.tb-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tb-footer-brand img { height: 36px; width: auto; display: block; }
.tb-footer-brand span { font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 22px; color: var(--tb-cream-100); }
.tb-footer-blurb { font-size: 14px; color: rgba(230,218,251,.75); line-height: 1.7; max-width: 300px; margin: 0; }
.tb-footer-h { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--tb-cream-100); margin: 0 0 12px; }
.tb-footer-links { list-style: none; margin: 0; padding: 0; }
.tb-footer-links li { margin-bottom: 8px; }
.tb-footer-links a { font-size: 14px; font-weight: 600; color: rgba(230,218,251,.75); text-decoration: none; }
.tb-footer-links a:hover { color: var(--tb-honey-400); }
.tb-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(230,218,251,.55); }

/* Hide the theme's own header/footer wrappers — TaleBerry renders its own
   header/footer via the plugin on wp_body_open / wp_footer. */
#masthead,
#colophon { display: none !important; }

/* ---------- Homepage layout fixes (v1.1.5) ---------- */

/* Card rows: non-card children (headings, newsletter) span full width; cards form 3 columns.
   Apply the tb-cards-row class to the section flexbox via Elementor (Advanced > CSS Classes). */
.tb-cards-row { display: grid !important; grid-template-columns: 1fr; gap: 20px; }
.tb-cards-row > :not(.tb-card) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .tb-cards-row { grid-template-columns: repeat(3, 1fr); }
}
.tb-cards-row .tb-card { height: 100%; }

/* Hero: text left, full image right. Pre-JS fallback uses float (upgraded to a
   real two-column row by tb-helpers.js, which sets data-tb-hero-done).
   Apply the tb-hero class to the hero flexbox via Elementor (Advanced > CSS Classes). */
.tb-hero { display: block !important; }
.tb-hero::after { content: ""; display: table; clear: both; }
.tb-hero:not([data-tb-hero-done]) > :nth-child(5) {
  float: right;
  width: 42%;
  max-width: 520px;
  margin: 0 0 24px 40px;
}
/* The hero image must always render uncropped at its natural aspect ratio */
.tb-hero .elementor-widget-image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}
.tb-hero:not([data-tb-hero-done]) > :nth-child(n+6) { clear: both; }
@media (max-width: 899px) {
  .tb-hero:not([data-tb-hero-done]) > :nth-child(5) { float: none; width: 100%; max-width: 100%; margin: 0 0 24px; }
}

/* Hero v3 (v1.1.9): two-column row built at render time by tb-helpers.js
   (.tb-hero-row > .tb-hero-text + .tb-hero-media). */
.tb-hero-row { display: flex; gap: 48px; align-items: center; }
.tb-hero-text { flex: 1.05; min-width: 0; }
.tb-hero-media { flex: 0.95; min-width: 0; }
.tb-hero-media img { width: 100% !important; height: auto !important; display: block; }
@media (max-width: 899px) {
  .tb-hero-row { flex-direction: column; gap: 24px; }
}

/* Newsletter form (WPForms) inside dark cards */
.tb-dark-card .wpforms-container-full { max-width: 640px; }
.tb-dark-card .wpforms-field-label { color: var(--tb-cream-100) !important; font-weight: 700; }
.tb-dark-card .wpforms-field-sublabel { color: rgba(255,251,242,.7) !important; }
.tb-dark-card .wpforms-field-email input[type=email] {
  background: rgba(255,255,255,.08) !important;
  border: 2px solid rgba(155,114,207,.45) !important;
  border-radius: 16px !important;
  color: var(--tb-cream-100) !important;
  padding: 12px 18px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.tb-dark-card .wpforms-field-email input[type=email]::placeholder { color: rgba(255,251,242,.5); }
.tb-dark-card .wpforms-field-email input[type=email]:focus { border-color: var(--tb-honey-400) !important; outline: none; }
.tb-dark-card .wpforms-submit {
  background: var(--tb-honey-500) !important;
  color: var(--tb-night-950) !important;
  border: none !important;
  border-radius: 16px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  padding: 13px 32px !important;
  cursor: pointer;
}
.tb-dark-card .wpforms-submit:hover { background: var(--tb-honey-400) !important; }
.tb-dark-card .wpforms-confirmation-container-full { color: var(--tb-cream-100); }
@media (min-width: 640px) {
  .tb-dark-card form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
  .tb-dark-card form .wpforms-field-container { flex: 1 1 260px; }
  .tb-dark-card form .wpforms-field { margin-bottom: 0; padding: 0; }
  .tb-dark-card form .wpforms-submit-container { flex: 0 0 auto; margin: 0; padding: 0; }
}

/* (Hero v2 editor-class block removed in v1.1.9 — superseded by the JS-built row above.) */

/* ========== TaleBerry Theme: Posts, Pages, Archives, Forms (v1.2.0) ========== */

/* --- Single post template --- */
.single-post .entry-header { text-align: center; max-width: 820px; margin: 8px auto 20px; padding: 0 16px; }
.single-post .entry-title,
.single-post .entry-header .entry-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  color: var(--tb-night-800) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 12px !important;
}
.single-post .entry-meta { color: var(--tb-cloud-500); font-weight: 600; font-size: 14px; }
.single-post .entry-meta a { color: var(--tb-berry-600); text-decoration: none; font-weight: 700; }
.single-post .entry-meta a:hover { color: var(--tb-berry-500); }
.single-post .post-thumb { margin-bottom: 28px; }
.single-post .post-thumb img { border-radius: 24px !important; box-shadow: 0 16px 40px rgba(45,26,84,.12); }
.single-post .entry-content { font-size: 17px; line-height: 1.85; color: var(--tb-night-900); }
.single-post .entry-content p { margin-bottom: 1.4em; }
.single-post .entry-content h2 {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; -webkit-text-fill-color: currentColor !important;
  font-size: 28px !important; line-height: 1.3 !important; margin: 36px 0 14px !important;
}
.single-post .entry-content h3 {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; -webkit-text-fill-color: currentColor !important;
  font-size: 22px !important; margin: 28px 0 12px !important;
}
.single-post .entry-content a { color: var(--tb-berry-600); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tb-berry-100); text-underline-offset: 3px; }
.single-post .entry-content a:hover { color: var(--tb-berry-500); text-decoration-color: var(--tb-berry-500); }
.single-post .entry-content img { border-radius: 16px; }
.single-post .entry-content ul, .single-post .entry-content ol { margin-bottom: 1.4em; padding-left: 1.4em; }
.single-post .entry-content li { margin-bottom: .5em; }
.single-post .entry-content li::marker { color: var(--tb-berry-500); font-weight: 800; }
.single-post .entry-content blockquote {
  border-left: 4px solid var(--tb-honey-500); background: rgba(255,227,123,.14);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0;
  font-style: italic; color: var(--tb-night-800);
}
.single-post .entry-content .tb-tip { margin: 24px 0; }
/* Author box */
.single-post .ast-author-box {
  background: #fff; border: 2px solid var(--tb-cloud-200); border-radius: 24px;
  padding: 24px; box-shadow: 0 8px 30px rgba(45,26,84,.08); margin-top: 40px;
}
.single-post .ast-author-box .ast-author-bio h3,
.single-post .ast-author-box .ast-author-bio .ast-author-name {
  font-family: 'Quicksand', sans-serif !important; color: var(--tb-night-800) !important; font-weight: 800 !important;
}
/* Related posts */
.ast-related-posts { margin-top: 48px; }
.ast-related-posts .ast-related-post-title,
.ast-related-posts-title {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; font-size: 24px !important; margin-bottom: 20px !important;
}
.ast-related-post-content { background: #fff; border: 2px solid rgba(230,218,251,.8); border-radius: 20px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.ast-related-post-content:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45,26,84,.15); }
.ast-related-post-content .entry-title a { font-family: 'Quicksand', sans-serif !important; color: var(--tb-night-800) !important; font-weight: 800 !important; }
/* Post navigation */
.post-navigation { margin-top: 40px; }
.post-navigation a { font-family: 'Quicksand', sans-serif; font-weight: 700; color: var(--tb-night-800); text-decoration: none; }
.post-navigation a:hover { color: var(--tb-berry-600); }
/* Comments */
#comments { margin-top: 48px; }
#comments .comments-title, #comments .comment-reply-title {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important; color: var(--tb-night-800) !important;
}
#comments .comment-body { background: #fff; border: 1px solid var(--tb-cloud-200); border-radius: 16px; padding: 16px 20px; margin-bottom: 16px; }
#comments .comment-form input[type=text], #comments .comment-form input[type=email],
#comments .comment-form input[type=url], #comments .comment-form textarea {
  border: 2px solid var(--tb-cloud-200); border-radius: 12px; padding: 12px 16px; background: #fff;
}
#comments .comment-form input:focus, #comments .comment-form textarea:focus { border-color: var(--tb-honey-500); outline: none; }
#comments .submit {
  background: var(--tb-honey-500) !important; color: var(--tb-night-950) !important; border: none !important;
  border-radius: 16px !important; font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  padding: 12px 28px !important; cursor: pointer;
}

/* --- Pages (generic page template) --- */
.page .entry-header { text-align: center; max-width: 820px; margin: 8px auto 20px; padding: 0 16px; }
.page .entry-header .entry-title {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; -webkit-text-fill-color: currentColor !important;
  font-size: clamp(30px, 4vw, 42px) !important; line-height: 1.2 !important; margin: 0 !important;
}
.page .entry-content { font-size: 16.5px; line-height: 1.8; color: var(--tb-night-900); }
.page .entry-content p { margin-bottom: 1.3em; }
.page .entry-content h2, .page .entry-content .wp-block-heading {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; -webkit-text-fill-color: currentColor !important;
  font-size: 28px !important; margin: 32px 0 14px !important;
}
.page .entry-content h3 {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; font-size: 22px !important; margin: 24px 0 12px !important;
}
.page .entry-content a { color: var(--tb-berry-600); font-weight: 600; }
.page .entry-content a:hover { color: var(--tb-berry-500); }
.page .entry-content ul, .page .entry-content ol { margin-bottom: 1.3em; }
.page .entry-content li::marker { color: var(--tb-berry-500); font-weight: 800; }

/* --- WPForms on light backgrounds (contact etc.) --- */
.wpforms-container-full .wpforms-field-label { color: var(--tb-night-800) !important; font-weight: 700 !important; font-family: 'Nunito', sans-serif; }
.wpforms-container-full .wpforms-field-sublabel { color: var(--tb-cloud-500) !important; }
.wpforms-container-full .wpforms-field-description { color: var(--tb-night-900); }
.wpforms-container-full input[type=text], .wpforms-container-full input[type=email],
.wpforms-container-full input[type=tel], .wpforms-container-full input[type=url],
.wpforms-container-full input[type=password], .wpforms-container-full input[type=number],
.wpforms-container-full select, .wpforms-container-full textarea {
  border: 2px solid var(--tb-cloud-200) !important; border-radius: 12px !important;
  padding: 12px 16px !important; background: #fff !important; color: var(--tb-night-900) !important;
  font-family: 'Nunito', sans-serif !important; font-size: 15px !important; max-width: 100% !important;
}
.wpforms-container-full input:focus, .wpforms-container-full select:focus, .wpforms-container-full textarea:focus {
  border-color: var(--tb-honey-500) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(246,178,60,.15) !important;
}
.wpforms-container-full .wpforms-required-label { color: var(--tb-berry-600) !important; }
.wpforms-container-full .wpforms-submit {
  background: var(--tb-honey-500) !important; color: var(--tb-night-950) !important; border: none !important;
  border-radius: 16px !important; font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  font-size: 16px !important; padding: 14px 36px !important; cursor: pointer; transition: transform .2s;
}
.wpforms-container-full .wpforms-submit:hover { background: var(--tb-honey-400) !important; transform: scale(1.02); }
.wpforms-container-full .wpforms-confirmation-container-full {
  background: var(--tb-sage-100) !important; border: 2px solid var(--tb-sage-500) !important;
  border-radius: 16px !important; color: var(--tb-night-800) !important; font-weight: 600;
}
/* Dark-card newsletter keeps its own styling (more specific selectors above win) */

/* --- Archives (category/tag) --- */
.archive .page-header, .blog .page-header { text-align: center; margin-bottom: 32px; }
.archive .page-header .page-title, .blog .page-header .page-title {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: var(--tb-night-800) !important; -webkit-text-fill-color: currentColor !important;
  font-size: clamp(30px, 4vw, 40px) !important;
}
.archive .page-header .page-description, .archive .taxonomy-description { color: var(--tb-night-900); font-size: 16px; }
.archive .ast-article-post, .blog .ast-article-post {
  background: #fff; border: 2px solid rgba(230,218,251,.8); border-radius: 24px;
  overflow: hidden; box-shadow: 0 8px 30px rgba(45,26,84,.08); transition: transform .3s, box-shadow .3s;
}
.archive .ast-article-post:hover, .blog .ast-article-post:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45,26,84,.15); }
.archive .ast-article-post .entry-title a, .blog .ast-article-post .entry-title a,
.archive .entry-title a, .blog .entry-title a {
  font-family: 'Quicksand', sans-serif !important; color: var(--tb-night-800) !important; font-weight: 800 !important;
}
.archive .entry-meta, .blog .entry-meta { color: var(--tb-cloud-500); font-size: 13px; font-weight: 600; }
.archive .entry-meta a, .blog .entry-meta a { color: var(--tb-berry-600); }
.archive .post-thumb img, .blog .post-thumb img { border-radius: 20px 20px 0 0 !important; }
.archive .read-more a, .blog .read-more a {
  display: inline-block; padding: 10px 22px; border-radius: 12px; background: var(--tb-honey-500);
  color: var(--tb-night-950) !important; font-family: 'Quicksand', sans-serif; font-weight: 800; text-decoration: none;
}
.archive .read-more a:hover, .blog .read-more a:hover { background: var(--tb-honey-400); }
.ast-pagination a, .ast-pagination .page-numbers {
  border-radius: 12px; font-family: 'Quicksand', sans-serif; font-weight: 700; color: var(--tb-night-800);
}
.ast-pagination .current { background: var(--tb-berry-500); color: #fff; border-color: var(--tb-berry-500); }

/* --- Sound Room page fixes --- */
.page-id-115 .entry-header { display: none; }
.page-id-115 .tb-sr-wrap { max-width: 900px; margin: 0 auto; }
.page-id-115 .wp-block-heading {
  text-align: center; font-size: clamp(30px, 4vw, 40px) !important; margin-bottom: 8px !important;
}
.page-id-115 .wp-block-paragraph { text-align: center; max-width: 640px; margin: 0 auto 28px; color: var(--tb-night-900); }

/* ============================================================
   v1.3.0 — site-wide consistency: one background, no stretched
   images, real card gaps, branded loops, Theme Builder helpers
   ============================================================ */

/* 1. ONE background color across the whole site (warm cream). */
body,
body.ast-separate-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background-color: #FFFBF2 !important;
}
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: #fff !important;
  border-radius: 24px;
}

/* 2. Archive / card images: fixed 4:3 frame, cover fit — never stretch. */
.ast-archive .post-thumb,
.ast-archive .post-thumb a,
.blog-layout-1 .post-thumb img,
.ast-blog-layout-1 .post-thumb img {
  display: block;
}
.ast-archive .post-thumb img,
.ast-blog-featured-section img,
.post-thumb img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

/* 3. Real gaps in native archive grids. */
.ast-archive .ast-row,
.ast-blog .ast-row {
  gap: 28px;
}
@media (max-width: 768px) {
  .ast-archive .ast-row,
  .ast-blog .ast-row { gap: 20px; }
}

/* Native archive title/meta polish (fallback when Astra renders it). */
.ast-archive .ast-archive-title,
.page-header .ast-archive-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  color: #231447 !important;
  text-align: center;
}
.ast-archive .ast-archive-description {
  text-align: center;
  color: #231447;
  max-width: 640px;
  margin: 0 auto;
}

/* 4. TaleBerry loop shortcodes: [taleberry_archive_posts] + [taleberry_related_posts] */
.tb-loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 900px) {
  .tb-loop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .tb-loop-grid { grid-template-columns: 1fr; gap: 20px; }
}
.tb-loop-card {
  background: #fff;
  border: 2px solid rgba(230, 218, 251, .8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(45, 26, 84, .08);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.tb-loop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45, 26, 84, .15);
}
.tb-loop-thumb-link { display: block; }
.tb-loop-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.tb-loop-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  font-size: 48px;
  background: linear-gradient(135deg, #2b1a52, #4a2b7f);
}
.tb-loop-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tb-loop-cat {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #C2437F !important;
  text-decoration: none !important;
  margin-bottom: 8px;
  display: inline-block;
}
.tb-loop-title {
  margin: 0 0 8px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  color: #231447 !important;
}
.tb-loop-title a { color: #231447 !important; text-decoration: none !important; }
.tb-loop-title a:hover { color: #C2437F !important; }
.tb-loop-meta {
  margin: 0 0 10px !important;
  font-size: 13px;
  color: #9B72CF !important;
  font-family: 'Nunito', sans-serif;
}
.tb-loop-excerpt {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.65;
  color: #3a2a5e;
  font-family: 'Nunito', sans-serif;
}
.tb-loop-none { grid-column: 1 / -1; text-align: center; color: #231447; padding: 40px 0; }
.tb-loop-pagination { margin-top: 36px; text-align: center; }
.tb-loop-pagination ul.page-numbers {
  display: inline-flex; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.tb-loop-pagination a.page-numbers,
.tb-loop-pagination span.page-numbers {
  display: inline-block;
  min-width: 42px; height: 42px; line-height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(230, 218, 251, .8);
  color: #231447 !important;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  text-decoration: none !important; padding: 0 12px;
}
.tb-loop-pagination span.page-numbers.current {
  background: #F6B23C; border-color: #F6B23C; color: #100726 !important;
}

/* 5. Theme Builder single-post template helpers. */
/* v1.4.1 — the REAL width fix. The ~750px squeeze was Astra, not Elementor:
   body carries ast-narrow-container, so Astra's inline CSS forces
   .site-content > .ast-container to max-width:750px, and ast-separate-container
   paints .ast-article-single (our Elementor template wrapper) white.
   Break the template out and give the content its own cards. */
body.single-post .site-content > .ast-container {
  max-width: 1160px !important;
}
body.single-post.ast-separate-container .ast-article-single.elementor {
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.single-post .tb-single-wrap {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(45,26,84,.06);
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 40px 48px;
}
@media (max-width: 767px) {
  body.single-post .tb-single-wrap { padding: 28px 22px; border-radius: 20px; }
}
.tb-single-feat img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
h1.tb-single-title,
.tb-single-title h1,
.tb-single-title .elementor-heading-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  color: #231447 !important;
  text-align: center;
  line-height: 1.25 !important;
}
.tb-single-meta { text-align: center; }
.tb-single-meta a { color: #C2437F !important; }
.tb-single-content { font-size: 17px; line-height: 1.8; color: #2c2145; }
.tb-single-content h2, .tb-single-content h3 {
  font-family: 'Quicksand', sans-serif !important;
  color: #231447 !important;
  font-weight: 800 !important;
}
.tb-single-head {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center;
}
.tb-single-head h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  color: #231447 !important;
}

/* 6. Elementor Full Width page template: keep readable line length. */
.page-template-elementor_header_footer .entry-content {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.page-template-elementor_header_footer .entry-header {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* v1.3.2 — archive title shortcode */
h1.tb-archive-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  color: #231447 !important;
  text-align: center;
  font-size: clamp(30px, 4vw, 42px) !important;
  margin: 0 0 10px !important;
}
.tb-archive-desc {
  text-align: center;
  color: #3a2a5e;
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* v1.3.5 — backstop: keep boxed Elementor inner content within the card. */
body.single-post .e-con-boxed.tb-single-wrap > .e-con-inner {
  max-width: 1100px !important;
}

/* ============================================================
   v1.4.0 — site search with filters + header search toggle
   ============================================================ */
.tb-search-wrap { max-width: 860px; margin: 0 auto; }
.tb-search-form {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: #fff; border: 2px solid rgba(230, 218, 251, .9);
  border-radius: 20px; padding: 14px; box-shadow: 0 8px 30px rgba(45, 26, 84, .08);
}
.tb-search-form input[type="search"] {
  flex: 1 1 220px; border: 2px solid #E6DAFB !important; border-radius: 14px !important;
  padding: 12px 16px !important; font-family: 'Nunito', sans-serif; font-size: 16px;
  color: #231447; background: #FFFBF2 !important; min-width: 0;
}
.tb-search-form input[type="search"]:focus { border-color: #F6B23C !important; outline: none; }
.tb-search-btn {
  background: #F6B23C !important; color: #100726 !important; border: none; cursor: pointer;
  font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 15px;
  padding: 12px 26px; border-radius: 14px; white-space: nowrap;
}
.tb-search-btn:hover { background: #FCD34D !important; }
.tb-search-filters {
  display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%;
}
.tb-pill { cursor: pointer; }
.tb-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tb-pill span {
  display: inline-block; padding: 8px 16px; border-radius: 9999px;
  border: 2px solid #E6DAFB; background: #fff; color: #231447;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 13px;
  transition: all .2s;
}
.tb-pill:hover span { border-color: #9B72CF; }
.tb-pill-on span, .tb-pill input:checked + span {
  background: #231447; border-color: #231447; color: #FFFBF2;
}
.tb-search-count {
  text-align: center; font-family: 'Quicksand', sans-serif; font-weight: 700;
  color: #231447; margin: 28px 0 20px !important; font-size: 17px;
}
.tb-search-empty { text-align: center; padding: 30px 0; color: #3a2a5e; }
.tb-search-empty p { margin: 0 0 12px !important; font-size: 16px; }
.tb-search-home { color: #C2437F !important; font-weight: 700; }

/* Header search toggle + dropdown panel */
.tb-search-toggle {
  background: none; border: 2px solid transparent; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 8px 10px; border-radius: 12px;
}
.tb-search-toggle:hover { border-color: #E6DAFB; }
.tb-site-header { position: relative; }
.tb-search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: rgba(255, 251, 242, .98); border-bottom: 2px solid #E6DAFB;
  box-shadow: 0 18px 40px rgba(45, 26, 84, .12); padding: 18px 24px 22px;
}
.tb-search-panel .tb-search-wrap { max-width: 720px; }
.tb-search-panel .tb-search-form { box-shadow: none; }

/* 404 page */
.tb-fof-moon { font-size: 72px; text-align: center; margin: 0 0 8px; }
.tb-fof-title {
  font-family: 'Quicksand', sans-serif !important; font-weight: 800 !important;
  color: #231447 !important; text-align: center; font-size: clamp(30px, 4vw, 44px) !important;
  margin: 0 0 12px !important; line-height: 1.25 !important;
}
.tb-fof-text { text-align: center; color: #3a2a5e; max-width: 560px; margin: 0 auto 26px !important; font-size: 16px; line-height: 1.7; }
.tb-fof-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.tb-fof-btn {
  display: inline-block; padding: 13px 28px; border-radius: 16px;
  font-family: 'Quicksand', sans-serif; font-weight: 800; font-size: 15px;
  text-decoration: none !important;
}
.tb-fof-btn-home { background: #F6B23C !important; color: #100726 !important; }
.tb-fof-btn-shelf { background: #fff !important; color: #231447 !important; border: 2px solid #E6DAFB; }

/* ============================================================
   v1.4.2 — Contact page (page-id-24): branded card layout.
   The bare WPForms block stretched full-width with no heading;
   wrap it in a centered card and keep fields tidy.
   ============================================================ */
.page-id-24 .wpforms-container,
.page-id-24 .wpforms-container-full {
  max-width: 720px !important;
  margin: 8px auto 72px !important;
  background: #fff !important;
  border: 2px solid rgba(230,218,251,.8) !important;
  border-radius: 24px !important;
  padding: 40px 44px !important;
  box-shadow: 0 12px 40px rgba(45,26,84,.08) !important;
}
.page-id-24 .wpforms-container .wpforms-field,
.page-id-24 .wpforms-container-full .wpforms-field {
  margin-bottom: 18px !important;
}
@media (max-width: 600px) {
  .page-id-24 .wpforms-container,
  .page-id-24 .wpforms-container-full { padding: 28px 22px !important; }
}
/* ============================================================
   v1.5.0 — DARK THEME, redesigned from research (not inverted light).
   Warm cozy-night palette (stone/sand family), zero gradients,
   elevation via tonal surfaces + hairline borders, never shadows.
   Tokens:
     bg #121110 | surface #1C1917 | elevated #292524
     border #3B3A37 | border-strong #4C4A45
     text #F5F4F0 | muted #B5B3AD
     berry-text #FF949D | berry-fill #E85A71
     honey-text #FFCA16 | honey-fill #F6B23C
   ============================================================ */
html[data-tb-theme="dark"] {
  --tb-d-bg: #121110;
  --tb-d-surface: #1C1917;
  --tb-d-elevated: #292524;
  --tb-d-border: #3B3A37;
  --tb-d-border-strong: #4C4A45;
  --tb-d-text: #F5F4F0;
  --tb-d-muted: #B5B3AD;
  --tb-d-berry-text: #FF949D;
  --tb-d-berry-fill: #E85A71;
  --tb-d-honey-text: #FFCA16;
  --tb-d-honey-fill: #F6B23C;
}
html[data-tb-theme="dark"] body,
html[data-tb-theme="dark"] body.ast-separate-container {
  background-color: #121110 !important;
  color: #B5B3AD;
}
html[data-tb-theme="dark"] ::selection { background: #E85A71; color: #121110; }

/* Header — warm chrome layer */
html[data-tb-theme="dark"] .tb-mainbar {
  background: #1C1917;
  border-bottom: 1px solid #3B3A37;
  box-shadow: none;
}
html[data-tb-theme="dark"] .tb-brand-name .tb-b1 { color: #F5F4F0; }
html[data-tb-theme="dark"] .tb-nav .tb-menu a { color: #D6D3D1; }
html[data-tb-theme="dark"] .tb-nav .tb-menu a:hover { color: #FFCA16; background: #292524; }
html[data-tb-theme="dark"] .tb-nav .tb-menu .current-menu-item a { color: #FF949D; background: #292524; }
html[data-tb-theme="dark"] .tb-nav-toggle { background: #292524; border-color: #4C4A45; color: #F5F4F0; }
html[data-tb-theme="dark"] .tb-search-toggle:hover, html[data-tb-theme="dark"] .tb-theme-toggle:hover { border-color: #4C4A45; }
html[data-tb-theme="dark"] .tb-search-panel {
  background: #1C1917; border-bottom: 1px solid #3B3A37;
  box-shadow: none;
}
html[data-tb-theme="dark"] .tb-surprise { background: #E85A71; color: #121110; }
html[data-tb-theme="dark"] .tb-surprise:hover { background: #FF949D; }
@media (max-width: 1023px) {
  html[data-tb-theme="dark"] .tb-nav { background: #1C1917; border-bottom: 1px solid #3B3A37; }
}

/* Theme toggle button */
.tb-theme-toggle {
  background: none; border: 2px solid transparent; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 8px 10px; border-radius: 12px;
}
.tb-theme-toggle:hover { border-color: var(--tb-cloud-200); }
html[data-tb-theme="dark"] .tb-theme-toggle:hover { border-color: #4C4A45; }

/* Single post + 404 cards — warm surfaces, hairline borders */
html[data-tb-theme="dark"] body.single-post .tb-single-wrap,
html[data-tb-theme="dark"] body.error404 .tb-single-wrap {
  background: #1C1917 !important;
  border: 1px solid #3B3A37;
  box-shadow: none;
}
html[data-tb-theme="dark"] h1.tb-single-title,
html[data-tb-theme="dark"] .tb-single-title h1,
html[data-tb-theme="dark"] .tb-single-title .elementor-heading-title,
html[data-tb-theme="dark"] .tb-single-head h1 { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .tb-single-meta { color: #B5B3AD; }
html[data-tb-theme="dark"] .tb-single-meta a { color: #FF949D !important; }
html[data-tb-theme="dark"] .tb-single-content { color: #D6D3D1; }
html[data-tb-theme="dark"] .tb-single-content h2,
html[data-tb-theme="dark"] .tb-single-content h3 { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .tb-single-content a { color: #FF949D; }
html[data-tb-theme="dark"] .tb-single-content strong { color: #F5F4F0; }
html[data-tb-theme="dark"] .single-post .ast-author-box {
  background: #292524; border-color: #3B3A37;
}
html[data-tb-theme="dark"] #comments .comment-body {
  background: #1C1917; border-color: #3B3A37;
}
html[data-tb-theme="dark"] .ast-related-post-content {
  background: #1C1917; border-color: #3B3A37;
}

/* Archive cards */
html[data-tb-theme="dark"] .tb-loop-card {
  background: #1C1917; border-color: #3B3A37;
  box-shadow: none;
}
html[data-tb-theme="dark"] .tb-loop-card:hover { border-color: #4C4A45; }
html[data-tb-theme="dark"] .tb-loop-title,
html[data-tb-theme="dark"] .tb-loop-title a { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .tb-loop-title a:hover { color: #FF949D !important; }
html[data-tb-theme="dark"] .tb-loop-excerpt { color: #B5B3AD; }
html[data-tb-theme="dark"] .tb-loop-meta { color: #8A8781 !important; }
html[data-tb-theme="dark"] .tb-loop-cat { color: #FF949D !important; }
html[data-tb-theme="dark"] .tb-loop-none { color: #F5F4F0; }
html[data-tb-theme="dark"] h1.tb-archive-title { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .tb-archive-desc { color: #B5B3AD; }
html[data-tb-theme="dark"] .tb-loop-pagination a.page-numbers,
html[data-tb-theme="dark"] .tb-loop-pagination span.page-numbers {
  background: #1C1917; border-color: #3B3A37; color: #D6D3D1 !important;
}
html[data-tb-theme="dark"] .tb-loop-pagination .current { background: #292524; color: #FFCA16 !important; }

/* Search */
html[data-tb-theme="dark"] .tb-search-form {
  background: #1C1917; border-color: #3B3A37;
  box-shadow: none;
}
html[data-tb-theme="dark"] .tb-search-form input[type="search"] {
  border-color: #4C4A45 !important; color: #F5F4F0;
  background: #292524 !important;
}
html[data-tb-theme="dark"] .tb-search-btn { background: #F6B23C !important; color: #121110 !important; }
html[data-tb-theme="dark"] .tb-pill span {
  border-color: #4C4A45; background: #1C1917; color: #D6D3D1;
}
html[data-tb-theme="dark"] .tb-pill-on span,
html[data-tb-theme="dark"] .tb-pill input:checked + span {
  background: #F6B23C; border-color: #F6B23C; color: #121110;
}
html[data-tb-theme="dark"] .tb-search-count { color: #F5F4F0; }
html[data-tb-theme="dark"] .tb-search-empty { color: #B5B3AD; }
html[data-tb-theme="dark"] .tb-search-home { color: #FF949D !important; }

/* 404 */
html[data-tb-theme="dark"] .tb-fof-title { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .tb-fof-text { color: #B5B3AD; }
html[data-tb-theme="dark"] .tb-fof-btn-shelf {
  background: #292524 !important; color: #F5F4F0 !important;
  border-color: #4C4A45;
}

/* Contact + WPForms + MailPoet */
html[data-tb-theme="dark"] .page-id-24 .wpforms-container,
html[data-tb-theme="dark"] .page-id-24 .wpforms-container-full {
  background: #1C1917 !important; border-color: #3B3A37 !important;
  box-shadow: none !important;
}
html[data-tb-theme="dark"] .wpforms-container-full .wpforms-field-label { color: #F5F4F0 !important; }
html[data-tb-theme="dark"] .wpforms-container-full .wpforms-field-sublabel { color: #8A8781 !important; }
html[data-tb-theme="dark"] .wpforms-container-full input[type=text],
html[data-tb-theme="dark"] .wpforms-container-full input[type=email],
html[data-tb-theme="dark"] .wpforms-container-full input[type=tel],
html[data-tb-theme="dark"] .wpforms-container-full input[type=url],
html[data-tb-theme="dark"] .wpforms-container-full input[type=password],
html[data-tb-theme="dark"] .wpforms-container-full input[type=number],
html[data-tb-theme="dark"] .wpforms-container-full select,
html[data-tb-theme="dark"] .wpforms-container-full textarea,
html[data-tb-theme="dark"] .mailpoet_form input[type=text],
html[data-tb-theme="dark"] .mailpoet_form input[type=email] {
  border-color: #4C4A45 !important; background: #292524 !important;
  color: #F5F4F0 !important;
}
html[data-tb-theme="dark"] .wpforms-container-full input::placeholder,
html[data-tb-theme="dark"] .wpforms-container-full textarea::placeholder { color: #8A8781; }
html[data-tb-theme="dark"] .wpforms-container-full button[type=submit],
html[data-tb-theme="dark"] .wpforms-container-full .wpforms-submit {
  background: #F6B23C !important; color: #121110 !important;
}

/* Newsletter dark card stays, flatten */
html[data-tb-theme="dark"] .tb-dark-card,
html[data-tb-theme="dark"] .tb-dark-section {
  background: #1C1917 !important;
  border: 1px solid #3B3A37;
  box-shadow: none !important;
}
/* Flatten remaining gradients in dark mode — solid warm surfaces only */
html[data-tb-theme="dark"] .tb-btn-dark .elementor-button {
  background: #E85A71 !important;
  color: #121110 !important;
}
html[data-tb-theme="dark"] .tb-loop-thumb-empty {
  background: #292524 !important;
}

/* Generic Elementor content on dark */
html[data-tb-theme="dark"] .page-template-elementor_header_footer .entry-content { color: #D6D3D1; }
html[data-tb-theme="dark"] .elementor-widget-text-editor { color: #D6D3D1; }
html[data-tb-theme="dark"] .elementor-widget-heading .elementor-heading-title { color: #F5F4F0; }

/* v1.4.5 — TaleBerry icon system: inline SVG, never emoji. */
.tb-icon { vertical-align: -4px; flex: none; }
.tb-sr-icon .tb-icon { width: 30px; height: 30px; }
.tb-search-toggle .tb-icon, .tb-theme-toggle .tb-icon { width: 20px; height: 20px; }
.tb-surprise .tb-icon { width: 16px; height: 16px; }
.tb-topbar .tb-icon { width: 14px; height: 14px; }
.tb-foot-tagline .tb-icon { width: 14px; height: 14px; }
.tb-fof-moon .tb-icon { width: 72px; height: 72px; color: var(--tb-honey-400); }
.tb-loop-thumb-empty .tb-icon { width: 44px; height: 44px; color: #9B72CF; opacity: .7; }
.tb-search-empty .tb-icon { width: 40px; height: 40px; color: #9B72CF; }
.tb-sr-master .tb-icon { width: 16px; height: 16px; }
.tb-sr-vol .tb-icon { width: 18px; height: 18px; color: #E6DAFB; }
.tb-sr-status .tb-icon { width: 13px; height: 13px; }
