/* Hide GP native featured image on single posts */
.single-post .featured-image.page-header-image-single { display: none !important; }

/* Search overlay */
.cc-search-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #3d4f24 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}
.cc-search-overlay.cc-open {
  display: flex !important;
}
.cc-search-overlay-inner {
  width: 90% !important;
  max-width: 640px !important;
  text-align: center !important;
  position: relative !important;
}
.cc-search-overlay .cc-search-heading {
  font-family: "Fraunces", serif !important;
  font-style: italic !important;
  font-size: 32px !important;
  color: #fff !important;
  margin-bottom: 30px !important;
  font-weight: 400 !important;
}
.cc-search-overlay .cc-search-input,
.cc-search-overlay input[type="search"].cc-search-input {
  width: 100% !important;
  padding: 18px 0 !important;
  font-size: 24px !important;
  border: none !important;
  border-bottom: 3px solid #c8ce5a !important;
  background: transparent !important;
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  outline: none !important;
  text-align: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}
.cc-search-overlay .cc-search-input::placeholder {
  color: rgba(213,215,179,0.6) !important;
}
.cc-search-overlay .cc-search-input:focus {
  background: transparent !important;
  color: #fff !important;
  border-bottom: 3px solid #c8ce5a !important;
  box-shadow: none !important;
  outline: none !important;
}
.cc-search-close {
  position: absolute !important;
  top: -50px !important;
  right: 0 !important;
  background: none !important;
  border: none !important;
  color: #d5d7b3 !important;
  font-size: 36px !important;
  cursor: pointer !important;
  padding: 5px !important;
  line-height: 1 !important;
}
.cc-search-close:hover {
  color: #fff !important;
}
/* Search nav item */
.cc-nav-search-item a {
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
}
.cc-nav-search-item svg {
  color: #d5d7b3 !important;
  transition: color 0.2s !important;
}
.cc-nav-search-item a:hover svg {
  color: #fff !important;
}

/* ========== Search Results Page ========== */
/* Hide author and date */
.search-results .entry-meta .posted-on,
.search-results .entry-meta .byline { display: none !important; }

/* Page heading */
.search-results .page-header {
  background: linear-gradient(135deg, #3d4f24, #5a6e34) !important;
  padding: 48px 30px !important;
  margin-bottom: 40px !important;
  text-align: center !important;
}
.search-results .page-header h1 {
  font-family: "Fraunces", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #fff !important;
  font-size: 32px !important;
  margin: 0 !important;
}

/* Result cards */
.search-results .inside-article {
  background: #fff !important;
  border: 1px solid #eae9dc !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  transition: box-shadow 0.2s ease !important;
}
.search-results .inside-article:hover {
  box-shadow: 0 4px 16px rgba(61,79,36,0.12) !important;
}

/* Result titles */
.search-results .entry-title {
  font-family: "Fraunces", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  margin-bottom: 8px !important;
}
.search-results .entry-title a {
  color: #3d4f24 !important;
  text-decoration: none !important;
}
.search-results .entry-title a:hover {
  color: #5a6e34 !important;
}

/* Featured images */
.search-results .post-image {
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}
.search-results .post-image img {
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
}

/* Excerpts */
.search-results .entry-summary {
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #444 !important;
}

/* Category links */
.search-results .entry-meta .cat-links {
  display: inline-block !important;
}
.search-results .entry-meta .cat-links a {
  background: #f4f3eb !important;
  border: 1px solid #d5d7b3 !important;
  color: #5a6e34 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
}
.search-results .entry-meta .cat-links a:hover {
  background: #d5d7b3 !important;
  color: #3d4f24 !important;
}
.search-results .entry-meta .cat-links .gp-icon { display: none !important; }

/* Content area max-width */
.search-results .site-content {
  max-width: 860px !important;
  margin: 0 auto !important;
}

/* ========== Category Archive Pages ========== */
/* Hide date and author */
.archive.category .entry-meta .posted-on,
.archive.category .entry-meta .byline { display: none !important; }

/* Content area max-width */
.archive.category .site-content {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* Override plugin 210px grid — responsive 2-col on desktop, 1-col on mobile */
.archive.category .site-main {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
  padding: 0 !important;
  margin-top: 40px !important;
}

/* Description text under heading */
.archive.category .taxonomy-description {
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,0.8) !important;
  margin-top: 12px !important;
}

/* Article cards */
.archive.category article {
  background: #fff !important;
  border: 1px solid #eae9dc !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
}
.archive.category article:hover {
  box-shadow: 0 6px 20px rgba(61,79,36,0.14) !important;
  transform: translateY(-2px) !important;
}

/* Inside article padding */
.archive.category .inside-article {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Show featured images */
.archive.category .post-image {
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 10 !important;
}
.archive.category .post-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.archive.category .post-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}

/* Entry header & content padding */
.archive.category .entry-header {
  padding: 20px 24px 0 !important;
}
.archive.category .entry-summary {
  padding: 0 24px 20px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #555 !important;
  flex-grow: 1 !important;
}
.archive.category footer.entry-meta {
  padding: 0 24px 20px !important;
}

/* Recipe titles — Fraunces italic */
.archive.category .entry-title {
  font-family: "Fraunces", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
.archive.category .entry-title a {
  color: #3d4f24 !important;
  text-decoration: none !important;
}
.archive.category .entry-title a:hover {
  color: #5a6e34 !important;
}

/* Category pills in meta */
.archive.category .entry-meta .cat-links a {
  background: #f4f3eb !important;
  border: 1px solid #d5d7b3 !important;
  color: #5a6e34 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
}
.archive.category .entry-meta .cat-links a:hover {
  background: #d5d7b3 !important;
  color: #3d4f24 !important;
}
.archive.category .entry-meta .cat-links .gp-icon { display: none !important; }

/* Pagination */
.archive.category .paging-navigation {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 20px 0 40px !important;
}

/* Mobile: single column */
@media (max-width: 768px) {
  .archive.category .site-main {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .archive.category .entry-title {
    font-size: 20px !important;
  }
}

/* Hide sidebar on category archives */
.archive.category #right-sidebar {
  display: none !important;
}
/* Force full width layout when sidebar hidden */
.archive.category .content-area,
.archive.category #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
/* Make site-content single column (no sidebar flex) */
.archive.category .site-content {
  display: block !important;
}

/* Page header full-bleed */
.archive.category .page-header {
  border-radius: 0 !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 52px 30px !important;
}
.archive.category .page-header .page-title {
  font-family: "Fraunces", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #fff !important;
  font-size: 36px !important;
}
.archive.category .taxonomy-description p {
  margin: 0 !important;
}

/* Reorder card: image first via flexbox order */
.archive.category .inside-article .entry-header {
  order: 2 !important;
}
.archive.category .inside-article .post-image {
  order: 1 !important;
}
.archive.category .inside-article .entry-summary {
  order: 3 !important;
}
.archive.category .inside-article footer.entry-meta {
  order: 4 !important;
}

/* Legal banner: was #888 on cream (3:1, unreadable in the dark hero). Deep olive for ~8:1 contrast. (2026-07-05) */
.cc-legal-banner,
.cc-legal-banner span { color: #3d4f24 !important; }

/* Standardise all Amazon CTAs to olive — calculator page had an orange #ff9900 variant clashing with the palette. (2026-07-05) */
.cc-product-btn { background: #5a6e34 !important; color: #fff !important; }
a:hover .cc-product-btn, .cc-product-btn:hover { background: #3d4f24 !important; }

/* Emoji icons -> palette line icons (Twemoji imgs hidden, SVG painted as background). (2026-07-05) */
.cc-home-guide-icon img.emoji, .cc-equip-icon img.emoji { display: none !important; }
.cc-home-guide-icon, .cc-equip-icon {
  display: inline-flex !important;
  width: 40px; height: 40px;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 28px 28px !important;
}
.cc-home-guide-card[href*="decarb"] .cc-home-guide-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/></svg>"); }
.cc-home-guide-card[href*="cannabutter"] .cc-home-guide-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='8' width='10' height='12' rx='2'/><path d='M9 8V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/><path d='M7 13h10'/></svg>"); }
.cc-home-guide-card[href*="dosage"] .cc-home-guide-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m16 16 3-8 3.001 8A5.002 5.002 0 0 1 16 16z'/><path d='m2 16 3-8 3.001 8A5.002 5.002 0 0 1 2 16z'/><path d='M7 21h10'/><path d='M12 3v18'/><path d='M3 7h18'/></svg>"); }
.cc-equip-card:nth-child(1) .cc-equip-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3.5'/><path d='M12 2v3'/><path d='M12 19v3'/><path d='M2 12h3'/><path d='M19 12h3'/><path d='m4.9 4.9 2.1 2.1'/><path d='m17 17 2.1 2.1'/><path d='m19.1 4.9-2.1 2.1'/><path d='m7 17-2.1 2.1'/></svg>"); }
.cc-equip-card:nth-child(2) .cc-equip-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2'/><path d='M8.5 2h7'/><path d='M7 16h10'/></svg>"); }
.cc-equip-card:nth-child(3) .cc-equip-icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z'/></svg>"); }



/* ============ HOMEPAGE HERO — cannabutter kitchen photo behind the original centred layout (2026-07-05 v2) ============ */
.inside-article .entry-content .cc-home .cc-home-hero {
  background-image:
    linear-gradient(180deg, rgba(43,58,30,0.82) 0%, rgba(45,63,36,0.66) 48%, rgba(38,51,26,0.88) 100%),
    url('https://cannabiscuisine.com.au/wp-content/uploads/2026/07/cc-hero-cannabutter-v2.jpg') !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}
@media (max-width: 820px) {
  .inside-article .entry-content .cc-home .cc-home-hero {
    background-image:
      linear-gradient(180deg, rgba(43,58,30,0.88) 0%, rgba(45,63,36,0.80) 50%, rgba(38,51,26,0.92) 100%),
      url('https://cannabiscuisine.com.au/wp-content/uploads/2026/07/cc-hero-cannabutter-v2.jpg') !important;
  }
}