/* ============================================================
   AnnuityRadar.com — edu.css
   Shared components for the Annuity Education pages.
   Friendly, digestible visuals: bar charts, comparison cards,
   pro/con grids, callouts, glossary, fee/tax tables.
   ============================================================ */

/* ---------- Lead paragraph under a section title ---------- */
.edu-lead { font-size: 1.12rem; line-height: 1.7; color: var(--text-mid); max-width: 760px; }
.edu-body p { font-size: 1.02rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 16px; max-width: 760px; }
.edu-body p:last-child { margin-bottom: 0; }
.edu-body strong { color: var(--navy); }

/* ---------- Key-takeaway callout ---------- */
.edu-callout {
  background: linear-gradient(135deg, rgba(21,14,65,0.035), rgba(240,185,45,0.07));
  border-left: 4px solid var(--gold-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 28px 0; max-width: 820px;
}
.edu-callout .ec-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-dark, #C8941A); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.edu-callout p { font-size: 0.98rem; line-height: 1.65; color: var(--text-mid); margin: 0; }
.edu-callout p strong { color: var(--navy); }
.edu-callout.navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid, #1E1760));
  border-left-color: var(--gold-bright);
}
.edu-callout.navy .ec-label { color: var(--gold-bright); }
.edu-callout.navy p { color: rgba(255,255,255,0.85); }
.edu-callout.navy p strong { color: #fff; }

/* ---------- Simple horizontal bar chart ---------- */
.edu-chart { margin: 32px 0; max-width: 820px; }
.edu-chart-title { font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.edu-chart-sub { font-size: 0.84rem; color: var(--text-light); margin-bottom: 22px; }
.bar-row { margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.bar-label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.bar-value { font-size: 0.92rem; font-weight: 700; color: var(--gold-dark, #C8941A); font-family: 'Fraunces', Georgia, serif; }
.bar-track { height: 26px; background: var(--off-white); border-radius: 8px; overflow: hidden; border: 1px solid var(--mid-gray); }
.bar-fill {
  height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--blue), var(--gold-bright));
  width: 0; transition: width 1.1s cubic-bezier(0.16,1,0.3,1);
  min-width: 2px;
}
.bar-fill.muted { background: linear-gradient(90deg, #9AA0B8, #C2C7D6); }
.bar-fill.navy { background: linear-gradient(90deg, var(--navy), var(--blue)); }
.bar-fill.gold { background: linear-gradient(90deg, var(--gold-dark, #C8941A), var(--gold-bright)); }
.bar-fill.green { background: linear-gradient(90deg, #2E7D52, #4FB07A); }

/* ---------- Two-column comparison (A vs B) ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--mid-gray); margin: 32px 0; max-width: 880px; }
@media (max-width: 640px) { .vs-grid { grid-template-columns: 1fr; } }
.vs-col { padding: 28px 26px; }
.vs-col.a { background: var(--off-white); }
.vs-col.b { background: var(--navy); }
.vs-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.vs-col.a .vs-eyebrow { color: var(--text-light); }
.vs-col.b .vs-eyebrow { color: var(--gold); }
.vs-col h3 { margin-bottom: 18px; font-size: 1.15rem; }
.vs-col.a h3 { color: var(--navy); }
.vs-col.b h3 { color: var(--white); }
.vs-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.vs-col ul li { font-size: 0.9rem; line-height: 1.55; padding-left: 22px; position: relative; }
.vs-col.a ul li { color: var(--text-mid); }
.vs-col.a ul li::before { content: '•'; position: absolute; left: 4px; color: var(--text-light); }
.vs-col.b ul li { color: rgba(255,255,255,0.85); }
.vs-col.b ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-bright); font-size: 0.7rem; top: 3px; }

/* ---------- Comparison table ---------- */
.edu-table-wrap { overflow-x: auto; margin: 28px 0; max-width: 880px; }
.edu-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.edu-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 13px 16px; font-size: 0.85rem; }
.edu-table thead th:first-child { border-top-left-radius: var(--radius); }
.edu-table thead th:last-child { border-top-right-radius: var(--radius); }
.edu-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--mid-gray); color: var(--text-mid); vertical-align: top; line-height: 1.5; }
.edu-table tbody tr:nth-child(even) { background: var(--off-white); }
.edu-table tbody td:first-child { font-weight: 600; color: var(--navy); }
.edu-table .yes { color: var(--green); font-weight: 700; }
.edu-table .no { color: #C0392B; font-weight: 700; }

/* ---------- Pros / Cons grid ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; max-width: 880px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.pc-card { border-radius: var(--radius-lg); padding: 26px 24px; border: 1px solid var(--mid-gray); }
.pc-card.pros { background: var(--green-light); border-color: #A8D5B8; }
.pc-card.cons { background: #FDEEEC; border-color: #F1C9C2; }
.pc-card h3 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.pc-card.pros h3 { color: #1F6B43; }
.pc-card.cons h3 { color: #B0392B; }
.pc-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.pc-card li { font-size: 0.9rem; line-height: 1.55; padding-left: 26px; position: relative; color: var(--text-mid); }
.pc-card.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pc-card.cons li::before { content: '✕'; position: absolute; left: 2px; color: #C0392B; font-weight: 700; }
.pc-card li strong { color: var(--navy); }

/* ---------- Stat trio (reused from myga pattern, generalized) ---------- */
.edu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0; max-width: 880px; }
@media (max-width: 640px) { .edu-stats { grid-template-columns: 1fr; } }
.edu-stat { border-radius: var(--radius-lg); padding: 26px 20px; text-align: center; }
.edu-stat .es-icon { font-size: 1.8rem; margin-bottom: 10px; }
.edu-stat .es-val { font-family: 'Fraunces', Georgia, serif; font-size: 1.85rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.edu-stat .es-lbl { font-size: 0.84rem; line-height: 1.45; }
.edu-stat.navy { background: var(--navy); }
.edu-stat.navy .es-val { color: var(--gold-bright); }
.edu-stat.navy .es-lbl { color: rgba(255,255,255,0.65); }
.edu-stat.gold { background: linear-gradient(135deg,#fffcf0,#fff8e1); border: 1px solid rgba(240,185,45,0.4); }
.edu-stat.gold .es-val { color: var(--gold-dark, #C8941A); }
.edu-stat.gold .es-lbl { color: var(--text-mid); }
.edu-stat.green { background: var(--green-light); border: 1px solid #A8D5B8; }
.edu-stat.green .es-val { color: var(--green); }
.edu-stat.green .es-lbl { color: var(--text-mid); }

/* ---------- Numbered steps ---------- */
.edu-steps { display: flex; flex-direction: column; max-width: 820px; margin: 24px 0; }
.edu-step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--mid-gray); align-items: start; }
.edu-step:last-child { border-bottom: none; }
.edu-step-num { width: 44px; height: 44px; background: var(--gold-bright); color: var(--navy); font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.edu-step h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.edu-step p { color: var(--text-mid); font-size: 0.94rem; line-height: 1.65; margin: 0; }

/* ---------- Glossary ---------- */
.glossary-search-wrap { max-width: 520px; margin: 0 auto 36px; position: relative; }
.glossary-search-wrap input {
  width: 100%; padding: 14px 18px 14px 46px; border: 1.5px solid var(--mid-gray);
  border-radius: 100px; font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--navy);
}
.glossary-search-wrap input:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(240,185,45,0.16); }
.glossary-search-wrap .gs-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.glossary-list { max-width: 820px; margin: 0 auto; }
.glossary-term {
  padding: 20px 24px; border: 1px solid var(--mid-gray); border-radius: var(--radius-lg);
  margin-bottom: 12px; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.glossary-term:hover { border-color: rgba(240,185,45,0.5); box-shadow: var(--shadow-sm); }
.glossary-term h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.glossary-term p { color: var(--text-mid); font-size: 0.94rem; line-height: 1.6; margin: 0; }
.glossary-term .gt-also { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }
.glossary-noresult { display: none; text-align: center; color: var(--text-light); padding: 24px; }
.glossary-az { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 28px; max-width: 820px; margin-left: auto; margin-right: auto; }
.glossary-az a { font-size: 0.82rem; font-weight: 600; color: var(--gold-dark, #C8941A); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--mid-gray); text-decoration: none; transition: background 0.2s, color 0.2s; }
.glossary-az a:hover { background: var(--navy); color: #fff; }
.glossary-letter-head { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; color: var(--gold-dark, #C8941A); margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--mid-gray); }

/* ---------- Mini "at a glance" definition box ---------- */
.def-box { background: var(--off-white); border: 1px solid var(--mid-gray); border-radius: var(--radius-lg); padding: 24px 26px; margin: 28px 0; max-width: 820px; }
.def-box .db-term { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.def-box .db-def { font-size: 1rem; line-height: 1.65; color: var(--text-mid); }

/* ---------- Buyer's guide embed (download card) ---------- */
.guide-embed { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-mid, #1E1760)); border-radius: var(--radius-lg); padding: 32px 34px; margin: 32px 0; }
@media (max-width: 680px) { .guide-embed { grid-template-columns: 1fr; text-align: center; gap: 18px; } }
.guide-embed .ge-cover { width: 90px; height: 116px; border-radius: 6px; background: linear-gradient(160deg,#28207A,#150E41); border: 1px solid rgba(240,185,45,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
@media (max-width: 680px) { .guide-embed .ge-cover { margin: 0 auto; } }
.guide-embed .ge-cover svg { width: 40px; height: 40px; color: var(--gold-bright); }
.guide-embed h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.guide-embed p { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.guide-embed .ge-btn { white-space: nowrap; }

/* reveal helper already defined in pages.css; bars animate via JS adding .in */
