/* ============================================================
   Catalyst Ridge Advisory — "Fable" Edition
   Industry Insights article styles (AI in Church)
   Builds on fable.css: header, footer, buttons, reveal, dropdown.
   ============================================================ */

/* ---------- article hero — dawn title card ---------- */
.insight-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + clamp(40px, 7vh, 90px)) 0 clamp(150px, 22vh, 240px);
    text-align: center;
    background:
        radial-gradient(circle at 84% 88%, rgba(255, 190, 110, .42) 0%, rgba(255, 190, 110, 0) 30%),
        linear-gradient(180deg, #FBF3E6 0%, #F9EBD4 45%, #F4DFC0 75%, #EFD5AE 100%);
}
.insight-hero-inner { position: relative; z-index: 3; }
.insight-kicker {
    font-size: .8rem; font-weight: 700; letter-spacing: .24em;
    text-transform: uppercase; color: var(--cr-coral); margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.insight-kicker::before,
.insight-kicker::after {
    content: ""; width: 44px; height: 1px; background: var(--cr-coral); display: inline-block;
}
.insight-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 600;
    line-height: 1.12; color: var(--cr-teal-dark); letter-spacing: -.015em;
    max-width: 21ch; margin: 0 auto 20px; text-wrap: balance;
}
.insight-hero h1 .accent {
    font-style: italic;
    background: linear-gradient(100deg, var(--cr-coral), #e0492f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.insight-hero .subheading {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.02rem, 1.45vw, 1.24rem); line-height: 1.55;
    color: #40606c; max-width: 640px; margin: 0 auto 28px;
}
.insight-meta {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .85rem; font-weight: 700; color: var(--cr-teal-dark);
    padding: 9px 20px; border-radius: 999px;
    background: rgba(253, 249, 242, .68);
    border: 1px solid rgba(14, 94, 111, .22);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(20, 38, 45, .1);
}
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cr-coral); display: inline-block; }

/* ridge strip along the hero base */
.insight-ridges {
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: clamp(120px, 18vh, 210px); pointer-events: none; z-index: 1;
}
.insight-ridges svg {
    position: absolute; bottom: 0; left: -2%; width: 104%; display: block;
}
.insight-ridges .ir-mid { height: 88%; }
.insight-ridges .ir-front { height: 70%; }

/* ---------- article body ---------- */
.insight-body {
    max-width: 820px;
    padding: clamp(60px, 9vh, 100px) 0 30px;
}
.insight-section { margin-bottom: clamp(56px, 8vh, 88px); }
.insight-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600;
    color: var(--cr-teal); line-height: 1.15; margin-bottom: 22px;
    padding-top: 18px; position: relative;
}
.insight-section h2::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 44px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--cr-coral), var(--cr-teal));
}
.insight-section h3 {
    font-size: 1.25rem; font-weight: 600; color: var(--cr-ink);
    margin: 34px 0 14px;
}
.insight-section p { color: var(--cr-muted); margin-bottom: 16px; }

.insight-pull {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45;
    color: var(--cr-teal-dark) !important;
    border-left: 3px solid var(--cr-coral);
    padding: 4px 0 4px 22px; margin: 28px 0 !important;
}

/* research backbone card */
.backbone-card {
    background: var(--cr-soft); border: 1px solid var(--cr-line);
    border-radius: 18px; padding: 28px 30px;
    position: relative; overflow: hidden;
}
.backbone-card::after {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 90, .14), transparent 70%);
}
.backbone-card h3 {
    margin: 0 0 10px; font-size: 1.05rem; color: var(--cr-teal);
    text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    font-family: var(--font-body);
}
.backbone-card p { margin: 0; font-size: .95rem; }

/* ---------- stats grid ---------- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px; margin: 30px 0 44px;
}
.stat-card {
    background: #fff; border: 1px solid var(--cr-line); border-radius: 18px;
    padding: 26px 24px;
    transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--cr-grad-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(14, 94, 111, .13);
    border-color: rgba(14, 94, 111, .3);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-number {
    font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; line-height: 1;
    background: var(--cr-grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 10px;
}
.stat-label { font-weight: 700; font-size: .95rem; color: var(--cr-ink); margin-bottom: 8px; line-height: 1.35; }
.stat-context { font-size: .86rem; color: var(--cr-muted); line-height: 1.55; }

/* ---------- expandables ---------- */
.expandable {
    background: #fff; border: 1px solid var(--cr-line); border-radius: 14px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.expandable:hover { border-color: rgba(14, 94, 111, .32); }
.expandable[open] { box-shadow: 0 14px 36px rgba(14, 94, 111, .09); }
.expandable summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 22px;
    font-weight: 700; font-size: .97rem; color: var(--cr-teal-dark);
}
.expandable summary::-webkit-details-marker { display: none; }
.expandable summary::after {
    content: ""; flex-shrink: 0; width: 9px; height: 9px;
    border-right: 2px solid var(--cr-coral); border-bottom: 2px solid var(--cr-coral);
    transform: rotate(45deg); transition: transform .3s var(--ease-out);
    margin-top: -4px;
}
.expandable[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.expandable-content { padding: 0 22px 20px; }
.expandable-content p { font-size: .93rem; margin: 0; }

/* ---------- risk grid ---------- */
.risk-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin: 22px 0 40px;
}
.risk-card {
    background: #fff; border: 1px solid var(--cr-line); border-radius: 16px;
    border-top: 3px solid var(--cr-coral);
    padding: 24px 24px 26px;
    transition: transform .45s var(--ease-out), box-shadow .45s;
}
.risk-card:nth-child(even) { border-top-color: var(--cr-teal); }
.risk-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(14, 94, 111, .12); }
.risk-card h4 {
    font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
    color: var(--cr-teal); margin-bottom: 8px;
}
.risk-card p { font-size: .9rem; margin: 0; }

/* ---------- CTA panel — the next ridge ---------- */
.insight-cta {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 24px;
    padding: clamp(52px, 8vh, 76px) clamp(24px, 5vw, 60px) clamp(120px, 17vh, 170px);
    background:
        radial-gradient(circle at 78% 90%, rgba(255, 190, 110, .5) 0%, rgba(255, 190, 110, 0) 34%),
        linear-gradient(180deg, #FBF1E0 0%, #F6E3C6 60%, #F0D8B4 100%);
    border: 1px solid rgba(14, 94, 111, .12);
    box-shadow: 0 30px 70px rgba(14, 94, 111, .14);
}
.insight-cta h3 {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 600;
    color: var(--cr-teal-dark); margin: 0 0 14px;
}
.insight-cta .cta-description {
    color: var(--cr-slate); max-width: 540px; margin: 0 auto 30px;
}
.insight-cta .cta-ridge {
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: clamp(90px, 13vh, 130px); pointer-events: none;
}
.insight-cta .cta-ridge svg {
    position: absolute; bottom: 0; left: -2%; width: 104%; height: 100%; display: block;
}
.insight-cta .btn { position: relative; z-index: 2; }

/* ---------- sources ---------- */
.sources h4 {
    font-family: var(--font-body); font-size: .8rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--cr-coral);
    margin: 30px 0 14px;
}
.sources h4:first-child { margin-top: 0; }
.source-item {
    border-left: 3px solid rgba(14, 94, 111, .18);
    padding: 4px 0 4px 18px; margin-bottom: 16px;
    transition: border-color .3s;
}
.source-item:hover { border-left-color: var(--cr-coral); }
.source-item strong { color: var(--cr-teal-dark); font-size: .97rem; }
.source-item p { font-size: .88rem; margin: 4px 0 0; }

/* ---------- footer disclaimer ---------- */
.footer-disclaimer {
    margin-top: 10px; font-size: .76rem; color: rgba(255, 255, 255, .38);
    max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .insight-hero { padding-bottom: clamp(120px, 17vh, 180px); }
    .insight-hero h1 { max-width: none; }
    .insight-body { padding-top: 54px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .insight-meta { flex-wrap: wrap; justify-content: center; }
}
