/* ============================================================
   Understand Your EOB - patient-facing tool styles
   Scoped .eob-* classes. Relies on tokens in styles.css :root.
   ============================================================ */

/* ---- Hero quick points ---- */
.eob-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 640px; }
.eob-points span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: var(--white); border: 1px solid var(--border); border-radius: 99px; padding: 8px 14px; box-shadow: var(--shadow-xs); }
.eob-points span svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---- Decoder ---- */
.eob-tool { max-width: 760px; margin: 0 auto; }
.eob-tool__label { display: block; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.eob-tool__hint { font-size: .9rem; color: var(--gray); margin: 0 0 14px; line-height: 1.55; }
.eob-tool textarea {
  width: 100%; min-height: 130px; resize: vertical; padding: 14px 16px;
  font: inherit; font-size: .98rem; color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--white); line-height: 1.5;
}
.eob-tool textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.eob-tool__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.eob-tool__priv { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--gray); margin: 14px 0 0; }
.eob-tool__priv svg { width: 15px; height: 15px; flex: none; color: var(--green); }

.eob-out { margin-top: 26px; display: grid; gap: 14px; }
.eob-summary { font-size: 1rem; color: var(--ink-soft); background: var(--gray-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 16px; }
.eob-empty { color: var(--gray); background: var(--gray-bg); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; line-height: 1.6; }

.eob-card { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 16px 18px; background: var(--white); box-shadow: var(--shadow-xs); }
.eob-card--yes { border-left-color: var(--orange); }
.eob-card--no { border-left-color: var(--green); }
.eob-card--check { border-left-color: var(--blue); }
.eob-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.eob-badge { font-weight: 800; font-size: .82rem; letter-spacing: .01em; color: var(--ink); background: var(--gray-bg); border: 1px solid var(--border-strong); border-radius: 6px; padding: 3px 9px; }
.eob-verdict { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.eob-verdict--yes { color: #9a4d12; background: #fdf0e6; }
.eob-verdict--no { color: var(--green-deep); background: var(--green-soft); }
.eob-verdict--check { color: var(--blue-deep); background: var(--blue-soft); }
.eob-card__title { font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.eob-card__def { color: var(--ink-soft); line-height: 1.6; margin: 0; }
.eob-card__todo { color: var(--gray); line-height: 1.6; margin: 9px 0 0; font-size: .92rem; }
.eob-disclaimer { font-size: .8rem; color: var(--gray); line-height: 1.6; margin: 8px 0 0; }

/* ---- Glossary (static) ---- */
.eob-glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.eob-term { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.eob-term h3 { font-size: 1.05rem; margin: 0 0 7px; color: var(--ink); }
.eob-term p { margin: 0; color: var(--gray); line-height: 1.6; font-size: .95rem; }
.eob-term__owe { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-top: 10px; }
.eob-term__owe--yes { color: #9a4d12; background: #fdf0e6; }
.eob-term__owe--no { color: var(--green-deep); background: var(--green-soft); }

/* ---- Annotated sample EOB (static) ---- */
.eob-sample { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.eob-sample table { width: 100%; border-collapse: collapse; min-width: 560px; }
.eob-sample th, .eob-sample td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.eob-sample thead th { background: var(--gray-bg); color: var(--ink); font-weight: 700; }
.eob-sample tbody td:first-child { font-weight: 600; color: var(--ink); }
.eob-sample td .amt { font-variant-numeric: tabular-nums; }
.eob-sample tr:last-child td { border-bottom: none; }
.eob-sample__row--owe td { background: #fef7f1; }
.eob-sample__note { font-size: .85rem; color: var(--gray); padding: 12px 16px; border-top: 1px solid var(--border); line-height: 1.55; }

/* ---- Patient-tool disclaimer banner ---- */
.eob-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 0 auto 22px; background: var(--blue-soft); border: 1px solid #cfe2fb; border-radius: var(--radius); padding: 14px 16px; color: var(--ink-soft); line-height: 1.6; font-size: .92rem; }
.eob-note svg { width: 20px; height: 20px; flex: none; color: var(--blue-deep); margin-top: 1px; }
