/* News feed — public page, single post, homepage / dashboard mini feed. Uses the site's colour variables (dark mode works by itself). */
.nf-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .nf-layout { grid-template-columns: minmax(0, 700px) minmax(0, 300px); justify-content: center; } }
.nf-head-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nf-head-bar h1 { margin: 0; }
.nf-tabs { display: inline-flex; background: var(--brand-paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nf-tabs a { padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.nf-tabs a.on { background: var(--brand-primary); color: var(--brand-ink); }
html[data-theme="dark"] .nf-tabs a.on { color: #10191b; }
.nf-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.nf-filters select, .nf-filters a.nf-chip { min-height: 38px; padding: .3rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: inherit; font: inherit; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; }
.nf-filters a.nf-chip.on { background: var(--brand-ink); color: var(--brand-paper); border-color: var(--brand-ink); }

/* cards */
.nf-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.nf-head { display: flex; gap: .7rem; align-items: flex-start; }
.nf-head .av { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--brand-primary); color: var(--brand-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.nf-head .av img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="dark"] .nf-head .av { color: #10191b; }
.av.nf-av-anon { background: #6b7a80; color: #fff; }
.av.nf-av-team { background: var(--brand-ink); color: var(--brand-paper); }
.nf-who { flex: 1; min-width: 0; line-height: 1.3; }
.nf-sub { display: block; font-size: .82rem; color: var(--ink-soft); }
.nf-sub a { color: inherit; text-decoration: none; }
.nf-sub a:hover { text-decoration: underline; }
.nf-topic { font-weight: 600; color: var(--brand-primary-dark); }
.nf-badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; background: var(--info-tint); color: var(--info); vertical-align: middle; }
.nf-badge-anon { background: var(--warn-tint); color: var(--warn); }
.nf-pin { background: var(--warn-tint); color: var(--warn); }
.nf-realname { display: block; font-size: .75rem; color: var(--mark); }
.nf-body { margin: .7rem 0 .4rem; overflow-wrap: anywhere; }
.nf-body p { margin: 0 0 .5rem; }
.nf-title { font-size: 1.2rem; margin: 0 0 .4rem; line-height: 1.3; }
.nf-title a { color: inherit; text-decoration: none; }
.nf-title a:hover { text-decoration: underline; }
.nf-more { font-weight: 600; }
.nf-imglink { display: block; margin-top: .5rem; }
.nf-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 10px; display: block; background: var(--brand-paper); }
.nf-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .6rem; }
.nf-act { min-height: 38px; padding: .25rem .8rem; border: 0; background: none; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.nf-act:hover:not(:disabled) { background: var(--brand-paper); color: inherit; }
.nf-act.on { color: var(--brand-primary-dark); background: var(--brand-paper); }
.nf-act:disabled { opacity: .5; cursor: default; }
.nf-stat { font-size: .9rem; color: var(--ink-soft); padding: 0 .5rem; }
.nf-read { margin-left: auto; }

/* ⋯ menu */
.nf-menu { position: relative; }
.nf-dots { border: 0; background: none; font-size: 1.4rem; line-height: 1; padding: .1rem .5rem; cursor: pointer; color: var(--ink-soft); border-radius: 8px; min-height: 36px; }
.nf-dots:hover { background: var(--brand-paper); }
.nf-pop { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 170px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); overflow: hidden; }
.nf-pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .65rem .9rem; font: inherit; font-size: .9rem; cursor: pointer; color: inherit; }
.nf-pop button:hover { background: var(--brand-paper); }

/* comments */
.nf-comments { margin-top: .5rem; }
.nf-clist { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .55rem; }
.nf-comment { background: var(--brand-paper); border-radius: 10px; padding: .55rem .8rem; }
.nf-comment p { margin: .15rem 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.nf-chead { font-size: .85rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.nf-time { color: var(--ink-soft); font-size: .78rem; }
.nf-link { border: 0; background: none; padding: 0; font: inherit; font-size: .78rem; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.nf-cform textarea, .nf-compose textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: .6rem .8rem; font: inherit; resize: vertical; background: var(--surface); color: inherit; }
.nf-cform-row, .nf-compose-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: .5rem; }
.nf-check { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; cursor: pointer; }
.nf-msg { display: block; font-size: .85rem; color: var(--ink-soft); min-height: 1.2em; margin-top: .3rem; }
.nf-muted { color: var(--ink-soft); font-size: .9rem; margin: .3rem 0; }

/* composer */
.nf-compose-top { display: flex; gap: .7rem; align-items: flex-start; }
.nf-compose-top .av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.nf-compose-top .av img { width: 100%; height: 100%; object-fit: cover; }
.nf-compose select { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .8rem; background: var(--surface); color: inherit; font: inherit; max-width: 100%; }
.nf-file { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; cursor: pointer; border: 1px dashed var(--line-strong); border-radius: 999px; padding: .3rem .8rem; min-height: 38px; }
.nf-file input { max-width: 150px; font-size: .75rem; }
.nf-fine { font-size: .8rem; color: var(--ink-soft); margin: .6rem 0 0; }
.nf-compose-cta { text-align: center; }

/* ads (always labelled) */
.nf-ad { margin: 0 0 1rem; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; min-height: 120px; }
.nf-ad-label { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.nf-ad-box { border: 2px dashed var(--line-strong); border-radius: 10px; padding: 1.6rem 1rem; color: var(--ink-soft); font-size: .85rem; }

/* side column */
.nf-side .card, .nf-side .nf-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.nf-side h2 { font-size: 1rem; margin: 0 0 .5rem; }
.nf-side ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.nf-more-btn { display: block; margin: 1rem auto; }
.nf-empty { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--line-strong); border-radius: 14px; color: var(--ink-soft); }

/* mini feed (homepage / dashboard) */
.nf-mini-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.nf-mini-head h2 { margin: 0; }
.nf-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.nf-mini-list a { display: block; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.nf-mini-list a:hover { border-color: var(--brand-primary-dark); }
.nf-mini-who { display: block; font-size: .78rem; color: var(--ink-soft); }
.nf-mini-t { display: block; font-weight: 600; margin: .1rem 0; }
.nf-mini-m { display: block; font-size: .8rem; color: var(--ink-soft); }

/* mini feed v2 — swipeable cards on phones, grid on larger screens */
.nf-mini-head { align-items: flex-end; }
.nf-mini-sub { margin: .2rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.nf-m-list { list-style: none; margin: 0; padding: 0 0 .7rem; display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.nf-m-list > li { flex: 0 0 82%; max-width: 330px; scroll-snap-align: start; display: flex; }
@media (min-width: 700px) {
  .nf-m-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .nf-m-list > li { max-width: none; }
}
.nf-m-card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nf-m-card:hover, .nf-m-card:focus-visible { transform: translateY(-4px); border-color: var(--brand-primary); box-shadow: 0 14px 30px rgba(16, 25, 27, .13); }
.nf-m-card:focus-visible { outline: 2px solid var(--brand-primary-dark); outline-offset: 2px; }
.nf-m-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-paper); }
.nf-m-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }   /* only the photo, never an icon inside the tag */
.nf-m-card:hover .nf-m-media > img { transform: scale(1.06); }
.nf-m-ph { aspect-ratio: auto; height: 84px; display: flex; align-items: center; justify-content: flex-end; padding-right: 1.1rem; }
.nf-m-ico { font-size: 2.6rem; opacity: .35; transform: rotate(-8deg); transition: transform .25s ease, opacity .25s ease; }
.nf-m-card:hover .nf-m-ico { transform: rotate(0) scale(1.1); opacity: .55; }
.nf-t0 { background: linear-gradient(135deg, #d6f3ee, #b9e6df); }
.nf-t1 { background: linear-gradient(135deg, #fdeccb, #f8d9a0); }
.nf-t2 { background: linear-gradient(135deg, #dfe8fb, #c4d4f5); }
.nf-t3 { background: linear-gradient(135deg, #f9dce6, #f2c0d2); }
html[data-theme="dark"] .nf-t0 { background: linear-gradient(135deg, #12403b, #0d2f2c); }
html[data-theme="dark"] .nf-t1 { background: linear-gradient(135deg, #4a3815, #382a10); }
html[data-theme="dark"] .nf-t2 { background: linear-gradient(135deg, #1c2d52, #15213d); }
html[data-theme="dark"] .nf-t3 { background: linear-gradient(135deg, #4d1f31, #3a1725); }
.nf-m-tag { position: absolute; top: .65rem; left: .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .22rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #10191b; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.nf-m-body { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem .6rem; flex: 1; }
.nf-m-topic { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-primary-dark); }
.nf-m-t { font-weight: 700; font-size: 1.02rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-m-quote { font-weight: 600; -webkit-line-clamp: 4; }
.nf-m-x { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-m-foot { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem .85rem; border-top: 1px solid var(--line); }
.nf-m-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; background: var(--brand-primary); color: var(--brand-ink); }
.nf-m-av.anon { background: #6b7a80; color: #fff; }
.nf-m-av.team { background: var(--brand-ink); color: var(--brand-paper); }
html[data-theme="dark"] .nf-m-av:not(.anon):not(.team) { color: #10191b; }
.nf-m-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.nf-m-who strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-m-who small { font-size: .74rem; color: var(--ink-soft); }
.nf-m-stats { display: inline-flex; gap: .55rem; font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.nf-m-go { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-paper); border: 1px solid var(--line); font-weight: 700; transition: background .18s ease, transform .18s ease; }
.nf-m-card:hover .nf-m-go { background: var(--brand-primary); color: var(--brand-ink); transform: translateX(3px); }
.nf-m-more { justify-content: center; align-items: flex-start; gap: .5rem; padding: 1.4rem 1.2rem; border-style: dashed; border-width: 2px; border-color: var(--line-strong); background: transparent; }
.nf-m-more-ico { font-size: 2rem; }
.nf-m-more strong { font-size: 1.1rem; }
.nf-m-more > span:not(.nf-m-more-ico) { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.nf-m-more em { font-style: normal; font-weight: 700; color: var(--brand-primary-dark); margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) { .nf-m-card, .nf-m-media > img, .nf-m-ico, .nf-m-go { transition: none; } .nf-m-card:hover { transform: none; } }
.av.nf-av-named { background: var(--brand-primary); color: var(--brand-ink); }

/* hashtags */
a.nf-tag { color: var(--brand-primary-dark, #0d7c8c); font-weight: 600; text-decoration: none; word-break: break-word; }
a.nf-tag:hover, a.nf-tag:focus-visible { text-decoration: underline; }
.nf-tags { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin: 0; }
.nf-tag-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.nf-tag-head h1 { margin: 0; overflow-wrap: anywhere; }
html[data-theme="dark"] a.nf-tag { color: var(--brand-primary); }

/* Step 4 — replies and comment likes */
.nf-cactions { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; margin-top: .25rem; }
.nf-cactions .nf-link { min-height: 32px; padding: .3rem .1rem; }
.nf-clike.on { color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.nf-clike:disabled { opacity: .6; cursor: default; }
.nf-replies { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .8rem; border-left: 2px solid var(--line); display: grid; gap: .45rem; }
.nf-replies:empty { display: none; }
.nf-reply { background: var(--surface); border: 1px solid var(--line); }
.nf-rform { margin-top: .6rem; }
.nf-who-row { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: center; flex: 1 1 14rem; min-width: 0; }
.nf-who-row .nf-muted { margin: 0; }

/* Step 9C — custom banner campaigns inside the feed */
.nf-cad { margin: 0 0 1rem; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.nf-cad .custom-ad { margin: 0 !important; }

/* ---- follow hashtags */
.nf-follow { font: inherit; font-size: .85rem; font-weight: 600; line-height: 1; padding: .45rem .85rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--brand-primary-dark, #0d7c8c); background: var(--brand-primary-dark, #0d7c8c); color: #fff; white-space: nowrap; }
.nf-follow:hover, .nf-follow:focus-visible { filter: brightness(1.08); }
.nf-follow.on { background: transparent; color: var(--brand-primary-dark, #0d7c8c); }
.nf-follow:disabled { opacity: .6; cursor: wait; }
.nf-follow-sm { font-size: .78rem; padding: .3rem .65rem; }
html[data-theme="dark"] .nf-follow { background: var(--brand-primary); border-color: var(--brand-primary); color: #0b1a1d; }
html[data-theme="dark"] .nf-follow.on { background: transparent; color: var(--brand-primary); }
.nf-taglist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.nf-taglist li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nf-taglist .nf-tag { min-width: 0; overflow-wrap: anywhere; }
.nf-tag-head .nf-follow { align-self: center; }

/* ---- hashtag suggestions in the composer */
.nf-suggest { margin: .5rem 0 0; font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.nf-suggest[hidden] { display: none; }
.nf-suggest-list { display: contents; }
.nf-sug { font: inherit; font-size: .85rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; cursor: pointer; border: 1px dashed var(--brand-primary-dark, #0d7c8c); background: transparent; color: var(--brand-primary-dark, #0d7c8c); }
.nf-sug:hover, .nf-sug:focus-visible { background: var(--brand-primary-dark, #0d7c8c); color: #fff; border-style: solid; }
.nf-sug:disabled { opacity: .5; cursor: not-allowed; }
html[data-theme="dark"] .nf-sug { color: var(--brand-primary); border-color: var(--brand-primary); }
html[data-theme="dark"] .nf-sug:hover, html[data-theme="dark"] .nf-sug:focus-visible { background: var(--brand-primary); color: #0b1a1d; }

/* ---- Step 3d / 10: article hashtags, reading a whole article inside its card, article comments */
.nf-tags { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin: .5rem 0 0; font-size: .92rem; }
.nf-article.is-open .nf-excerpt { display: none; }
.nf-art { border-top: 1px solid var(--line); margin-top: .75rem; padding: 1rem 1.1rem 0; }
.nf-art[hidden] { display: none; }
.nf-art-loading { margin: 0 0 1rem; }
.nf-art .post-content { font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.nf-art .post-content img, .nf-art .post-content video, .nf-art .post-content iframe { max-width: 100%; height: auto; }
.nf-art .post-content table { display: block; max-width: 100%; overflow-x: auto; }
.nf-art .post-content h2 { font-size: 1.35rem; }
.nf-art .post-content h3 { font-size: 1.15rem; }
.nf-art-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); margin-top: 1.25rem; }
.nf-art-foot .nf-open { font-size: .92rem; }
.nf-article .nf-actions { flex-wrap: wrap; }
.nf-bcomments { padding: 0 1.1rem 1rem; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; }
.nf-bcomments[hidden] { display: none; }
.nf-bcomments .be-list { margin-bottom: .9rem; }
.nf-bcomments .be-form { background: transparent; }
.nf-bcomments .be-form .field { margin-bottom: .6rem; }
.nf-bcomments .be-form textarea { width: 100%; }
.nf-bcomments .be-form label input { display: block; width: 100%; margin-top: .25rem; }
.nf-bcomments .be-form label.be-check input { display: inline-block; width: auto; margin: 0; }
html[data-theme="dark"] .nf-bcomments .be-form { background: transparent; }

/* divider card: the feed went round again / reached the very end */
.nf-round { display: grid; gap: .2rem; justify-items: center; text-align: center; margin: .4rem 0 1.1rem; padding: .9rem 1rem; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-soft); font-size: .9rem; }
.nf-round strong { color: var(--brand-ink); font-size: .98rem; }
.nf-round-end { border-style: solid; background: var(--surface); }
.nf-more-btn[disabled] { opacity: .7; }

/* View count on a student post (Admin > News Feed > Settings > “Show the view count”) */
.nf-views { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.nf-views small { font-weight: 500; opacity: .75; }
.nf-views-admin { opacity: .85; border: 1px dashed var(--line); border-radius: 999px; }

/* Reactions (Like / Love / Care / Haha / Wow / Sad / Angry + custom emoji) */
.nf-like { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nf-like .nf-rico { display: inline-block; font-size: 1.1rem; line-height: 1; vertical-align: -2px; }
.nf-like:not(.on) .nf-rico { filter: grayscale(1); opacity: .7; }
.nf-like.on { color: var(--rc, var(--brand-primary-dark)); }
.nf-like.pop .nf-rico { animation: nfPop .38s ease; }
@keyframes nfPop { 0% { transform: scale(.4); } 55% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }

.nf-rline { margin: .6rem 0 0; }
.nf-rline[hidden], .nf-rsum[hidden] { display: none; }
.nf-rsum { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: none; padding: .15rem .25rem; font: inherit; font-size: .9rem; color: var(--ink-soft); cursor: pointer; border-radius: 8px; }
.nf-rsum:hover .nf-rtot, .nf-rsum:focus-visible .nf-rtot { text-decoration: underline; }
.nf-rstack { display: inline-flex; }
.nf-ri { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); font-size: 1rem; line-height: 1; }
.nf-ri:first-child { margin-left: 0; }

.nf-rpick { position: fixed; z-index: 300; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .4rem; box-shadow: 0 10px 34px rgba(0,0,0,.28); max-width: calc(100vw - 16px); animation: nfRpIn .16s ease-out; }
.nf-rpick[hidden] { display: none; }
.nf-rpick.more { border-radius: 22px; }
@keyframes nfRpIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.nf-rrow { display: flex; align-items: center; gap: .05rem; }
.nf-rgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .05rem; border-top: 1px solid var(--line); margin-top: .25rem; padding-top: .25rem; }
.nf-rp { position: relative; border: 0; background: none; padding: 0; min-width: 40px; width: 40px; height: 44px; border-radius: 50%; font-size: 1.75rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .14s ease; -webkit-tap-highlight-color: transparent; }
.nf-rp:hover, .nf-rp:focus-visible, .nf-rp.hot { transform: translateY(-7px) scale(1.4); z-index: 2; }
.nf-rp-c { font-size: 1.45rem; }
.nf-rp-c:hover, .nf-rp-c.hot { transform: scale(1.35); }
.nf-rp-more { font-size: 1.4rem; font-weight: 700; color: var(--ink-soft); background: var(--brand-paper); width: 34px; min-width: 34px; height: 34px; margin-left: .25rem; }
.nf-rp-more:hover { transform: scale(1.1); }
.nf-rp[data-label]:not(.nf-rp-c):hover::after, .nf-rp.hot[data-label]::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) scale(.72); margin-bottom: .1rem; background: rgba(0,0,0,.82); color: #fff; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; pointer-events: none; }
@media (max-width: 420px) { .nf-rp { min-width: 36px; width: 36px; font-size: 1.6rem; } .nf-rgrid { grid-template-columns: repeat(7, 1fr); } }

/* who reacted */
body.nf-rm-open { overflow: hidden; }
.nf-rm-ov { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.nf-rm-ov[hidden] { display: none; }
.nf-rm { width: 100%; max-width: 420px; max-height: min(80vh, 560px); display: flex; flex-direction: column; background: var(--surface); color: inherit; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.nf-rm-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.nf-rm-x { border: 0; background: var(--brand-paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: inherit; }
.nf-rm-tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .5rem .7rem; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.nf-rm-tab { flex: 0 0 auto; border: 0; background: none; padding: .45rem .8rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.nf-rm-tab.on { background: var(--brand-paper); color: var(--brand-primary-dark); box-shadow: inset 0 -3px 0 var(--brand-primary); }
.nf-rm-list { list-style: none; margin: 0; padding: .3rem .5rem; overflow-y: auto; flex: 1; }
.nf-rm-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border-radius: 10px; }
.nf-rm-em { font-size: 1.4rem; line-height: 1; width: 2rem; text-align: center; }
.nf-rm-name { font-weight: 600; }
.nf-rm-empty { padding: 1.2rem; text-align: center; color: var(--ink-soft); }
.nf-rm-more { border: 0; border-top: 1px solid var(--line); background: none; padding: .75rem; font: inherit; font-weight: 600; color: var(--brand-primary-dark); cursor: pointer; }
.nf-rm-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nf-rpick, .nf-like.pop .nf-rico { animation: none; } .nf-rp { transition: none; } }

/* article footer: the 👁 count sits next to “min read”; the Read button keeps the far right */
.nf-article .nf-views { margin-left: 0; padding: .25rem .5rem; }
