/* "Coming up on NEERMAI" on the home page (2.16.0). Developed by the NEERMAI team. */
.ngh { margin: 18px 0 22px; }
.ngh-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ngh-h h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ngh-h a { color: var(--a); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.ngh-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.ngh-row::-webkit-scrollbar { display: none; }
.ngh-c { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r, 20px); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.ngh-c::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--a); }
.ngh-k-webinar::before { background: #3367D6; } .ngh-k-chat::before { background: #2E9F6B; } .ngh-k-circle::before { background: #C2417A; } .ngh-k-course::before { background: #7A4BD1; }
.ngh-c:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.ngh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ngh-top i { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ngh-top em { font-style: normal; font-size: 11.5px; font-weight: 750; color: #fff; background: #C2414B; padding: 3px 8px; border-radius: 999px; animation: nghPulse 1.6s ease-in-out infinite; }
@keyframes nghPulse { 50% { opacity: .65; } }
.ngh-c b { font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ngh-when { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2); flex-wrap: wrap; }
.ngh-when .nmp-i { width: 16px; height: 16px; color: var(--a); flex: none; }
.ngh-when small { color: var(--muted); font-size: 12px; }
.ngh-who { font-size: 12.5px; color: var(--muted); }
.ngh-go { margin-top: auto; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--a); }
@media (prefers-reduced-motion: reduce) { .ngh-top em { animation: none; } }
/* 2.17.0: featured, other places, and the Moments note */
.ngh-c.is-feat { border-color: color-mix(in srgb, var(--a) 40%, var(--line)); background: color-mix(in srgb, var(--a) 5%, var(--surface)); }
.ngh-top em.is-f { background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.ngh-at-story { margin: 28px 0 8px; }
.ngh-at-explore { margin-top: 6px; }
.ngh-mo { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 52px); width: min(92%, 420px); display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 18px; background: rgba(18,14,22,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: nghMo .4s cubic-bezier(.2,.8,.2,1) both; }
.ngh-mo[hidden] { display: none; }
.ngh-mo a { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; color: inherit; text-decoration: none; padding: 4px 0; }
.ngh-mo i { grid-row: span 2; font-style: normal; font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: #E8A23B; color: #2a1406; }
.ngh-mo b { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngh-mo small { font-size: 12px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngh-mo button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes nghMo { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (min-width: 1000px) { .ngh-mo { top: 70px; } }
@media (prefers-reduced-motion: reduce) { .ngh-mo { animation: none; } }
