/* NNC सहयोगी chat popup */
.nc-fab{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:10px;background:var(--gold);color:#1b1500;border:0;border-radius:999px;padding:14px 22px;font:inherit;font-weight:800;font-size:1.05rem;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;min-height:60px}
.nc-fab .icon{width:28px;height:28px}
.nc-fab:hover{background:var(--gold-dark)}
.nc-fab.on{background:var(--navy);color:#fff}
.nc-teaser{position:fixed;right:20px;bottom:92px;z-index:60;background:#fff;color:var(--ink);border-radius:16px 16px 4px 16px;padding:14px 38px 14px 16px;max-width:280px;box-shadow:0 6px 24px rgba(0,0,0,.18);cursor:pointer;font-weight:600;animation:ncPop .3s ease}
.nc-teaser[hidden]{display:none}
.nc-x{position:absolute;right:6px;top:4px;border:0;background:none;font-size:1.4rem;line-height:1;color:var(--muted);cursor:pointer;padding:4px 8px}
.nc-panel{padding:0;position:fixed;right:20px;bottom:92px;z-index:61;width:390px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 120px);background:#fff;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden;animation:ncPop .2s ease}
.nc-panel[hidden]{display:none}
@keyframes ncPop{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.nc-head{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;padding:14px 16px}
.nc-head img{width:44px;height:44px;background:#fff;border-radius:50%;padding:2px}
.nc-head b{display:block;font-size:1.1rem;line-height:1.2}
.nc-head small{opacity:.85;font-size:.82rem}
.nc-close{margin-left:auto;background:rgba(255,255,255,.15);border:0;color:#fff;font-size:1.6rem;width:42px;height:42px;border-radius:50%;cursor:pointer;line-height:1}
.nc-body{flex:1;overflow-y:auto;padding:16px;background:var(--bg-2);display:flex;flex-direction:column;gap:10px}
.nc-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:.95rem;line-height:1.55;word-wrap:break-word}
.nc-msg.bot{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;align-self:flex-start}
.nc-msg.me{background:var(--navy);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.nc-msg ol,.nc-msg ul{margin:6px 0;padding-left:20px}
.nc-msg li{margin:3px 0}
.nc-links{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.nc-link{display:block;text-align:left;background:var(--navy-soft);color:var(--navy);border:0;border-radius:10px;padding:9px 12px;font:inherit;font-weight:700;font-size:.9rem;text-decoration:none;cursor:pointer}
.nc-link:hover{background:#dfe3f5}
.nc-typing{display:flex;gap:5px;padding:14px 16px}
.nc-typing i{width:8px;height:8px;border-radius:50%;background:var(--muted);opacity:.4;animation:ncDot 1s infinite}
.nc-typing i:nth-child(2){animation-delay:.15s}.nc-typing i:nth-child(3){animation-delay:.3s}
@keyframes ncDot{50%{opacity:1;transform:translateY(-3px)}}
.nc-chips{display:flex;gap:8px;overflow-x:auto;padding:10px 12px;border-top:1px solid var(--line);background:#fff;flex-wrap:wrap;max-height:150px;overflow-y:auto}
.nc-chips button{flex:none;border:2px solid var(--navy);background:#fff;color:var(--navy);border-radius:999px;padding:7px 14px;font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;text-align:left}
.nc-chips button:hover{background:var(--navy-soft)}
.nc-chips .nc-home{border-color:var(--line);color:var(--muted)}
.nc-input{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:#fff}
.nc-input input{min-height:48px;border-radius:999px;padding:10px 16px}
.nc-input button{flex:none;width:50px;height:50px;border-radius:50%;border:0;background:var(--navy);color:#fff;cursor:pointer;display:grid;place-items:center}
.nc-input button .icon{width:24px;height:24px}
.nc-foot{font-size:.75rem;color:var(--muted);text-align:center;padding:0 12px 10px;background:#fff}
@media (max-width:760px){
  .nc-fab{right:12px;bottom:12px;padding:12px 18px;font-size:.95rem}
  .nc-teaser{right:12px;bottom:84px}
  .nc-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100%;max-height:100%;border-radius:0}
}
@media print{.nc{display:none}}

/* ---- bigger helper, topics as real buttons ---- */
.nc-fab{padding:16px 26px;font-size:1.15rem;min-height:66px}
.nc-fab .icon{width:32px;height:32px}
.nc-teaser,.nc-panel{bottom:100px}
.nc-panel{width:470px;height:720px;max-height:calc(100vh - 120px)}
.nc-head{padding:16px 18px}
.nc-head img{width:52px;height:52px}
.nc-head b{font-size:1.25rem}
.nc-head small{font-size:.9rem}
.nc-msg{font-size:1.02rem;max-width:92%}
.nc-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:260px;padding:12px;background:var(--bg-2)}
.nc-chips button{display:flex;align-items:center;gap:8px;width:100%;min-height:54px;border-radius:12px;border:0;background:var(--navy);color:#fff;padding:10px 12px;font-size:.92rem;line-height:1.3;box-shadow:0 2px 6px rgba(20,30,80,.15)}
.nc-chips button::before{content:"›";font-size:1.4rem;line-height:1;color:var(--gold)}
.nc-chips button:hover{background:var(--navy-2)}
.nc-chips .nc-home{grid-column:1/-1;background:#fff;color:var(--navy);border:2px solid var(--navy);box-shadow:none}
.nc-chips .nc-home::before{content:none}
.nc-link{font-size:.95rem;padding:11px 14px}
@media (max-width:760px){
  .nc-panel{width:100vw;height:100%;max-height:100%;bottom:0}
  .nc-fab{padding:13px 18px;font-size:1rem;min-height:58px}
  .nc-chips{grid-template-columns:1fr;max-height:40vh}
}

/* topic buttons inside the conversation */
.nc-chips{display:block;max-height:none;padding:10px 12px;background:#fff}
.nc-chips .nc-home{width:100%;justify-content:center;min-height:48px}
.nc-topics{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-self:stretch}
.nc-topics small{grid-column:1/-1;color:var(--muted);font-weight:700}
.nc-topics button{display:flex;align-items:center;gap:8px;text-align:left;min-height:56px;border-radius:12px;border:0;background:var(--navy);color:#fff;padding:10px 12px;font:inherit;font-weight:700;font-size:.93rem;line-height:1.3;cursor:pointer;box-shadow:0 2px 6px rgba(20,30,80,.15)}
.nc-topics button::before{content:"›";font-size:1.5rem;line-height:1;color:var(--gold)}
.nc-topics button:hover{background:var(--navy-2)}
@media (max-width:760px){.nc-topics{grid-template-columns:1fr}}

/* category buttons (first level) */
.nc-topics .nc-cat{grid-column:auto;background:#fff;color:var(--navy);border:2px solid var(--navy);align-items:center;gap:10px;min-height:66px;box-shadow:none}
.nc-topics .nc-cat::before{content:none}
.nc-topics .nc-cat:hover{background:var(--navy-soft)}
.nc-cat .ci{font-size:1.6rem;line-height:1;flex:none}
.nc-cat b{display:block;font-size:.98rem}
.nc-cat small{display:block;font-weight:500;font-size:.78rem;color:var(--muted);line-height:1.25;margin-top:2px}
.nc-topics .nc-back{grid-column:1/-1;background:var(--gold);color:#1b1500;justify-content:center}
.nc-topics .nc-back::before{content:none}
.nc-topics .nc-back:hover{background:var(--gold-dark)}

/* answer layout: lead / sections / warning */
.nc-msg .lead{margin:0 0 6px;font-weight:600}
.nc-msg .sec{margin:10px 0 2px;font-weight:800;color:var(--navy)}
.nc-msg .warn{margin:10px 0 0;background:#fff4d6;border-left:4px solid var(--gold);padding:6px 10px;border-radius:6px}
.nc-msg .note{margin:8px 0 0}
.nc-msg p{margin:0}
.fab-short{display:none}
@media (max-width:760px){
  .nc-fab{padding:10px 16px;min-height:52px;font-size:.98rem;gap:6px;right:10px;bottom:10px}
  .nc-fab .icon{width:24px;height:24px}
  .fab-long{display:none}.fab-short{display:inline}
  .nc-teaser{bottom:72px;right:10px;max-width:240px}
}
