/**
 * Theme Name: Recipe Theme (Blocksy Child)
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
    --card-radius: 14px;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Map to your theme colours if not already set */
  --faq-accent: var(--wp--preset--color--palette-color-1, #A6C970);
  --faq-text: var(--wp--preset--color--palette-color-4, #111518);
  --faq-muted: var(--wp--preset--color--palette-color-3, #687279);
  --faq-bg: var(--wp--preset--color--palette-color-7, #ffffff);
}

.single-recipe .page-title,
.single-post  .page-title {
    font-size: 3rem;
    line-height: 1.2;
}

.single-recipe .recipe-meta-under-title {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.single-recipe .gallery-size-large .gallery-item {
    margin-bottom: 2rem;
}

.single-recipe .recipe-meta-pill {
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.single-recipe .recipe-meta-pill:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.2);
    opacity: 1;
}

/* Outer card */
.single-recipe .recipe-section-faqs {
  background: var(--faq-bg);
  border: 1px solid var(--card-border);
  padding: 1.4rem 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.single-recipe .recipe-section-faqs > .wp-block-heading {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

/* Items as clean dividers */
.single-recipe .recipe-section-faqs details {
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-recipe .recipe-section-faqs details:first-of-type {
  border-top: 0;
}

/* Question row */
.single-recipe .recipe-section-faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 650;
  color: var(--faq-text);

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-block-end: 0;
}

.single-recipe .recipe-section-faqs summary::-webkit-details-marker {
  display: none;
}

/* Chevron (no layout shift) */
.single-recipe .recipe-section-faqs summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faq-muted);
  border-bottom: 2px solid var(--faq-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
  margin-left: 0.25rem;
}

.single-recipe .recipe-section-faqs details[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--faq-accent);
}

/* Answer */
.single-recipe .recipe-section-faqs details > *:not(summary) {
  padding: 0 0 1rem;
  color: var(--faq-muted);
  line-height: 1.7;
}

/* Subtle open state (left accent bar) */
.single-recipe .recipe-section-faqs details[open] summary {
  color: var(--faq-text);
  position: relative;
}

.single-recipe .recipe-section-faqs details[open] summary::before {
  content: "";
  position: absolute;
  left: -2rem;          /* matches outer padding */
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  background: var(--faq-accent);
  border-radius: 2px;
}

/* Keyboard focus */
.single-recipe .recipe-section-faqs summary:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: 4px;
}

.entry-card .boundless-image img,
.entry-card .ct-media-container img,
.entry-card .wp-block-post-featured-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.entry-card .entry-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

.entry-card .entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-card .entry-title a:hover {
    text-decoration: underline;
}

.entry-card .entry-excerpt {
    color: #555;
    line-height: 1.65;
    margin: 0 0 1.2rem;
}

.entry-card .entry-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #7a7a7a;
}

.entry-card .entry-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.entry-card.card-content {
    padding: 1.4rem 1.5rem 1.4rem;
}
