/* EW Commentary Summary — hybrid card styling
 *
 * Collapsed state: hairline divider, transparent, deferential to chapter content.
 * Expanded state:  soft teal→cream gradient + cyan accent stripe + dark-navy
 *                  heading + ✨ prefix, matching the AI Summary box in the
 *                  EW Semantic Search frontend (EW_Search/app/static/index.html
 *                  .ai-summary-container) so both AI surfaces share a single
 *                  visual language across the site.
 *
 * Tokens (copied verbatim from EW_Search semantic search frontend):
 *   #014161  --ew-primary           dark navy heading
 *   #02E9C3  --ew-cyan              accent stripe + border tint
 *   #EBFFFC  --ew-bg-teal-light     gradient start
 *   #FEFCF2  --ew-bg-light-cream    gradient end
 *   #404A4E  --ew-text-gray         body text
 *   #6B7280  --ew-text-light        subheadings + disclaimer
 */

.ew-summary-card {
    margin: 8px 0 22px;
    border: 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: transparent;
    font: inherit;
    transition: background 0.2s, border-color 0.2s, padding 0.2s, box-shadow 0.2s;
}

/* Expanded — adopt the semantic-search visual container */
.ew-summary-card:not(.is-collapsed) {
    border: 0;
    border-left: 5px solid #02E9C3;
    background: linear-gradient(135deg, #EBFFFC 0%, #FEFCF2 100%);
    border-radius: 8px;
    padding: 8px 30px 22px;
    box-shadow: 0 4px 12px rgba(2, 233, 195, 0.15);
}

.ew-summary-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 2px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 500;
    color: #777;
    text-align: left;
    letter-spacing: 0.02em;
    transition: color 0.2s, font-size 0.2s, font-weight 0.2s;
}

/* Expanded — toggle becomes the title (navy, larger, bold) */
.ew-summary-card:not(.is-collapsed) .ew-summary-toggle {
    color: #014161;
    padding: 18px 0 8px;
    font-size: 1.1em;
    font-weight: 700;
}

.ew-summary-toggle:hover { color: #2d7bc4; }
.ew-summary-toggle:focus-visible { outline: 1px dotted #449ae3; outline-offset: 2px; }

.ew-summary-label { flex: 1; }
.ew-summary-icon { font-size: 1em; opacity: 0.7; }
.ew-summary-chevron {
    font-size: 0.75em;
    opacity: 0.6;
    transition: transform 0.18s ease;
}
.ew-summary-card.is-collapsed .ew-summary-chevron { transform: rotate(-90deg); }

.ew-summary-body {
    padding: 2px 0 12px;
    color: #404A4E;
    line-height: 1.7;
    font-size: 1em;
}

.ew-summary-heading {
    margin: 14px 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280;
}

.ew-summary-points { margin: 0 0 4px; padding-left: 22px; }
.ew-summary-points li { margin-bottom: 6px; }
.ew-summary-text { margin: 0 0 6px; }

/* v1.0.1 — each high point leads with a link to its commentary section
 * (section heading + verse references, e.g. "Jesus explains the new birth
 * (5-8)"), deep-linking to that section's #section-N anchor. Subtle dotted
 * underline that solidifies on hover, matching the EW Semantic Search
 * source-link house style (.ew-summary-source-link). */
.ew-summary-point-link {
    color: #449ae3;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    font-weight: 700;
}
.ew-summary-point-link:hover,
.ew-summary-point-link:focus {
    border-bottom-style: solid;
    color: #2d7bc4;
    outline: none;
}

/* The linked heading sits on its own line above the point. */
.ew-summary-point-eyebrow {
    display: block;
    margin-bottom: 1px;
    line-height: 1.35;
}

.ew-summary-disclaimer {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(2, 233, 195, 0.3);
    font-size: 13px;
    color: #6B7280;
    font-style: italic;
}
