/* तथ्य-सूची: लेख में हाइलाइट हुए आँकड़े और उनका popup (app/core/Facts.php, assets/js/facts.js) */
.fact-ref{cursor:pointer;border-radius:4px;padding:0 .18em;font-weight:600;background:#eaf6ee;border-bottom:2px dotted #2f855a;transition:background .15s}
.fact-ref:hover,.fact-ref:focus-visible{background:#d5eedd;outline:2px solid #2f855a;outline-offset:1px}
.fact-ref.is-due{background:#fff4dc;border-bottom-color:#d97706}
.fact-ref.is-due:hover,.fact-ref.is-due:focus-visible{background:#ffe9b8;outline-color:#d97706}
.fact-ref.is-unverified{background:#f1f3f5;border-bottom-color:#868e96}
.fact-ref.is-unverified:hover,.fact-ref.is-unverified:focus-visible{background:#e3e7ea;outline-color:#868e96}
.fact-ref.is-disputed{background:#fdecec;border-bottom-color:#c53030}
.fact-ref.is-disputed:hover,.fact-ref.is-disputed:focus-visible{background:#fbd5d5;outline-color:#c53030}
.fact-ref.is-estimate{border-bottom-style:dashed}
.fact-missing{background:#ffd6d6;color:#900;border-radius:4px;padding:0 .3em;font-size:.85em}

.fact-pop{position:absolute;z-index:1080;width:min(360px,calc(100vw - 24px));background:#fff;color:#212529;border:1px solid #cfd8dc;border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,.2);padding:14px 16px 12px;font-size:.92rem;line-height:1.55;text-align:left}
.fact-pop[hidden],.fact-pop [hidden]{display:none!important}
.fact-pop h4{font-size:.8rem;font-weight:600;color:#6c757d;margin:0 28px 4px 0;letter-spacing:.02em}
.fact-pop .fp-title{font-weight:700;font-size:1rem;line-height:1.35}
.fact-pop .fp-val{font-size:1.45rem;font-weight:800;margin:.15rem 0 .1rem;color:#14532d}
.fact-pop .fp-ctx{color:#495057;font-size:.86rem;margin-bottom:.4rem}
.fact-pop .fp-badge{display:inline-block;font-size:.74rem;font-weight:700;border-radius:999px;padding:.1rem .6rem;margin:0 .3rem .3rem 0;background:#e6f4ea;color:#14532d}
.fact-pop .fp-badge.is-due{background:#fff1d6;color:#8a4b00}
.fact-pop .fp-badge.is-unverified{background:#eceff1;color:#455a64}
.fact-pop .fp-badge.is-disputed{background:#fde2e2;color:#9b1c1c}
.fact-pop .fp-badge.is-estimate{background:#e7f0ff;color:#1d4ed8}
.fact-pop dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem .7rem;margin:.4rem 0;font-size:.85rem}
.fact-pop dt{color:#6c757d;font-weight:500}
.fact-pop dd{margin:0;font-weight:600}
.fact-pop .fp-src a{display:block;color:#0b5ed7;word-break:break-word;font-size:.88rem}
.fact-pop .fp-note{font-size:.78rem;color:#6c757d;margin:.5rem 0 .2rem}
.fact-pop .fp-x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:1.4rem;line-height:1;color:#6c757d;cursor:pointer;padding:2px 6px;border-radius:6px}
.fact-pop .fp-x:hover{background:#f1f3f5;color:#212529}
.fact-pop .fp-rep{margin-top:.4rem;border:1px solid #0b5ed7;background:#fff;color:#0b5ed7;border-radius:999px;padding:.25rem .9rem;font-size:.85rem;cursor:pointer}
.fact-pop .fp-rep:hover{background:#0b5ed7;color:#fff}
.fact-pop form{margin-top:.5rem;display:grid;gap:.4rem}
.fact-pop form p{margin:0;font-size:.82rem;color:#495057}
.fact-pop label{font-size:.78rem;font-weight:600;color:#495057;display:block}
.fact-pop input[type=text],.fact-pop input[type=url],.fact-pop input[type=email],.fact-pop textarea{width:100%;border:1px solid #ced4da;border-radius:8px;padding:.35rem .55rem;font-size:.9rem}
.fact-pop input[type=file]{width:100%;font-size:.82rem}
.fact-pop .fp-fh{display:flex;align-items:center;gap:.4rem;margin:0 28px .2rem 0;font-weight:700;font-size:1rem}
.fact-pop .fp-back{border:0;background:#f1f3f5;border-radius:999px;width:28px;height:28px;line-height:1;cursor:pointer;font-size:1rem;color:#212529}
.fact-pop .fp-back:hover{background:#e3e7ea}
.fact-pop .fp-hint{font-size:.74rem;color:#6c757d;font-weight:400}
.fact-pop .fp-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.fact-pop .fp-send{border:0;background:#0b5ed7;color:#fff;border-radius:999px;padding:.35rem 1.1rem;font-weight:600;cursor:pointer}
.fact-pop .fp-send[disabled]{opacity:.6;cursor:wait}
.fact-pop .fp-msg{font-size:.85rem;border-radius:8px;padding:.45rem .6rem}
.fact-pop .fp-msg.ok{background:#e6f4ea;color:#14532d}
.fact-pop .fp-msg.err{background:#fde2e2;color:#9b1c1c}
@media (max-width:575px){
  .fact-pop{position:fixed;left:8px!important;right:8px;bottom:8px;top:auto!important;width:auto;max-height:80vh;overflow:auto;border-radius:16px}
}
@media print{.fact-ref{background:none;border-bottom:0}.fact-pop{display:none}}
