/* ============================
   SUMMARY + WHY THIS MATTERS
   Clean, wide 2-column layout
   ============================ */

.gna-top-box-table {
    width: 100%;
    margin: 0 0 1.5rem 0;
    padding: 20px;
    background: #F4ECEC;   
    border: none;
    border-radius: 12px;   /* NEW: rounded corners */
    overflow: hidden;      /* NEW: ensures smooth curved edges */
}


/* Two equal columns side by side */
.gna-table-row {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Cells: equal width, compact vertical padding */
.gna-table-cell {
    flex: 1 1 0;          /* <<< equal widths, no weird shrink/grow */
    padding: 0.75rem 0;
    background: transparent;
    box-sizing: border-box;
}

/* Headings: keep tight */
.gna-table-cell h4 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

/* Paragraphs inherit theme text styles */
.gna-table-cell p {
    margin: 0;
}

/* Vertical divider only between the two columns */
.gna-table-cell.left-cell {
    padding-right: 1rem;
    border-right: 2px solid #761028;
}

/* Space between divider and right column text */
.gna-table-cell.right-cell {
    padding-left: 1rem;
}

/* ============================
   MOBILE LAYOUT
   ============================ */
@media (max-width: 768px) {
    .gna-table-row {
        flex-direction: column;
    }

    /* Divider becomes horizontal under Summary */
    .gna-table-cell.left-cell {
        border-right: none;
        border-bottom: 2px solid #F4ECEC;
        padding-right: 0;
        padding-bottom: 0.75rem;
    }

    .gna-table-cell.right-cell {
        padding-left: 0;
        padding-top: 0.75rem;
    }
}
/* ============================
   PERSPECTIVES & REACTIONS — HORIZONTAL CARDS
   ============================ */

.gna-reactions-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Horizontal scrolling strip */
.gna-perspectives-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Only specific elements become cards:
   - blockquote (quotes)
   - figure / .wp-block-embed / iframe (embeds) */
.gna-perspectives-carousel > blockquote,
.gna-perspectives-carousel > figure,
.gna-perspectives-carousel > .wp-block-embed,
.gna-perspectives-carousel > iframe {
    flex: 0 0 min(320px, 80%);
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    box-sizing: border-box;
    scroll-snap-align: start;
}

/* ============================
   QUOTE CARDS (blockquote)
   ============================ */

.gna-perspectives-carousel blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* First paragraph = the quote */
.gna-perspectives-carousel blockquote p:first-of-type {
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* Second paragraph = attribution/source */
.gna-perspectives-carousel blockquote p:nth-of-type(2) {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* Additional paragraphs inside same card */
.gna-perspectives-carousel blockquote p + p + p {
    margin-top: 0.4rem;
}

/* ============================
   EMBED CARDS (YouTube, HTML embeds)
   ============================ */

.gna-perspectives-carousel figure,
.gna-perspectives-carousel .wp-block-embed,
.gna-perspectives-carousel iframe {
    max-width: 100%;
    margin: 0;
}

/* Optional caption under embeds */
.gna-perspectives-carousel figure figcaption {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #666;
}
/* Hide the separator after the last post in any Query Loop */
.wp-block-query .wp-block-post:last-child .wp-block-separator {
    display: none;
}
/* =========================================
   G&A SYNTHESIS — match section styling (h4), no boxes
   ========================================= */

.gna-syn-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  border: none;
}

/* Ensure headings match other module headings */
.gna-syn-section h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* As-of line: small metadata */
.gna-syn-meta {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.65;
  margin: -0.15rem 0 0.75rem 0;
}

/* Body spacing consistent */
.gna-syn-body p {
  margin: 0 0 0.75rem 0;
}
.gna-syn-body p:last-child {
  margin-bottom: 0;
}

.gna-syn-body ul,
.gna-syn-body ol {
  margin: 0.25rem 0 0.75rem 1.25rem;
}

.gna-syn-body li {
  margin: 0.25rem 0;
}
/* =========================================
   G&A MODULES — normalize header-to-body spacing
   (Match the tighter synthesis spacing)
   ========================================= */

/* Target all your GNA sections that have an h4 header */
.gna-actionable-box h4,
.gna-reactions-box h4,
.gna-sources-box h4,
.gna-analysis-box h4,
.gna-plain-section h4,
.gna-syn-section h4,
.gna-top-box-table h4 {
  margin-bottom: 0.5rem;   /* tighter, consistent */
}

/* Reduce top margin on first paragraph after the header inside module bodies */
.gna-actionable-box p:first-of-type,
.gna-analysis-box p:first-of-type,
.gna-sources-box .gna-sources-body > p:first-of-type,
.gna-reactions-box .gna-perspectives-carousel > p:first-of-type,
.gna-plain-section .gna-plain-body > p:first-of-type,
.gna-syn-section .gna-syn-body > p:first-of-type,
.gna-top-box-table .gna-table-cell > p:first-of-type,
.gna-top-box-table .gna-table-cell .gna-rich > p:first-of-type {
  margin-top: 0;
}

/* Optional: tighten bottom spacing in Sources where WP adds extra */
.gna-sources-box .gna-sources-body p {
  margin: 0 0 0.75rem 0;
}
.gna-sources-box .gna-sources-body p:last-child {
  margin-bottom: 0;
}
