/* ─────────────────────────────────────────────────────────────────────
   rail.css — shared sidebar rail for BOTH treatment and condition pages.
   Dark, cohesive theme: navy chapter-nav whose left/right edges fade into
   the page, plus dark navy "Find out more" cards with one consistent gold
   label style and light titles. Loaded after each page's inline <style>
   (and after treatments-box.css on treatment pages) so it wins.
   ───────────────────────────────────────────────────────────────────── */

/* ── Chapter nav — solid navy, edges fade into the page ──────────────── */
.ed-chapters {
    /* Solid navy box (no edge fade), rounded to match the "Find out more"
       cards so the whole right-hand column reads as one set. */
    background: #16243a !important;
    border-radius: 14px !important;
    padding: 1.1rem 1.4rem !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
}
/* Each chapter reads as a real button-link: a surface, a border, and a
   link arrow that slides on hover. */
.ed-chapters-inner { gap: 0.55rem !important; }
.ed-chapters a {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 9px !important;
    padding: 0.7rem 0.9rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}
.ed-chapters a .ed-ch-roman { color: var(--gold-light, #d4b06a) !important; }
.ed-chapters a::after {
    content: '\2192';
    margin-left: auto;
    color: var(--gold-light, #d4b06a);
    font-style: normal;
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.ed-chapters a:hover {
    background: rgba(201, 169, 110, 0.16) !important;
    border-color: rgba(201, 169, 110, 0.5) !important;
    color: #ffffff !important;
    padding-left: 0.9rem !important;
}
.ed-chapters a:hover::after { transform: translateX(3px); opacity: 1; }
.ed-chapters a.is-active, .ed-chapters a[aria-current] {
    background: rgba(201, 169, 110, 0.2) !important;
    border-color: rgba(201, 169, 110, 0.55) !important;
    color: #fff !important;
}

/* ── "Find out more" — transparent wrapper; the cards are dark islands ── */
.ed-rail-deepdive {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin-top: 1.6rem !important;
}
.ed-rail-deepdive .ed-rail-head {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: var(--navy, #16243a) !important;
    margin: 0 0 1rem !important;
}
.ed-rail-deepdive .ed-rail-head em { font-style: normal !important; font-weight: 700 !important; color: var(--gold-dark, #a78a52) !important; }

/* Dark navy cards */
.dd-sidebar { display: flex !important; flex-direction: column !important; gap: 1rem !important; position: static !important; }
.dd-block {
    background: #16243a !important;
    border: 1px solid rgba(201, 169, 110, 0.22) !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.2rem !important;
    box-shadow: 0 18px 36px -28px rgba(12, 24, 41, 0.55) !important;
    margin: 0 0 1rem !important;
}
.dd-block:last-child { margin-bottom: 0 !important; }
.dd-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.6rem !important;
}
/* One consistent label style: small gold uppercase caps */
.dd-head h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--gold-light, #d4b06a) !important;
}
.dd-viewall { color: var(--gold-light, #d4b06a) !important; font-size: 0.5rem !important; }
.dd-vid-title {
    font-family: 'Inter', sans-serif !important;
    color: #f5efe3 !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
.dd-link { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.dd-link-t { font-family: 'Inter', sans-serif !important; color: rgba(245, 239, 227, 0.88) !important; font-size: 0.78rem !important; }
.dd-link:hover .dd-link-t { color: #ffffff !important; }
.dd-link-arrow { color: var(--gold-light, #d4b06a) !important; }
.dd-dur { color: #ffffff !important; }

/* ─────────────────────────────────────────────────────────────────────
   Conditions FAQ — answer copy in the same serif as the question
   (.ed-faq-* exists only on condition pages, so this is scoped to them).
   ───────────────────────────────────────────────────────────────────── */
.ed-faq-a p {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.18rem !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    color: var(--text-body) !important;
}
