/* Likes and comments on public article pages and Latest news cards. */
.mb-article-social { margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid #dadada; }
.mb-article-social .pn-social { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .35rem; }
.mb-article-social .pn-rx { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 30px; min-width: 0; padding: .12rem .55rem; border-radius: 999px; border: 1px solid #c8c8c8; background: #f7f7f5; font-size: .8rem; font-weight: 600; color: #333333; text-decoration: none; }
.mb-article-social .pn-rx[type="button"] { cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; }
.mb-article-social .pn-rx.on { background: #eef6ee; color: #1f5a33; border-color: #8fbf8f; }
.mb-article-social .pn-comments { list-style: none; margin: .45rem 0 0; padding: 0; width: 100%; }
.mb-article-social .pn-comment { border-top: 1px solid #eeeeee; padding: .4rem 0 .25rem; }
.mb-article-social .pn-comment.pn-reply { margin: .15rem 0 0 .85rem; padding: .3rem 0 .15rem .7rem; border-top: 0; border-left: 2px solid #e6e0d4; }
.mb-article-social .pn-cmeta { font-size: .8rem; color: #666666; margin: 0 0 .1rem; }
.mb-article-social .pn-cbody { margin: 0; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.mb-article-social .pn-cact { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .2rem; }
.mb-article-social .pn-chip { display: inline-flex; align-items: center; justify-content: center; gap: .15rem; min-height: 26px; padding: .05rem .45rem; border-radius: 999px; border: 1px solid #d4d4d4; background: #fbfbfa; font: inherit; font-size: .72rem; font-weight: 600; color: #444444; cursor: pointer; }
.mb-article-social .pn-chip.on { background: #eef6ee; color: #1f5a33; border-color: #8fbf8f; }
.mb-article-social .pn-rform { width: 100%; margin: .3rem 0 0; }
.mb-article-social .pn-cform { width: 100%; margin: .5rem 0 0; }
.mb-article-social .pn-cform label, .mb-article-social .pn-rform label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 .2rem; }
.mb-article-social .pn-cform textarea, .mb-article-social .pn-rform textarea { width: 100%; min-height: 3.2rem; padding: .4rem .55rem; font: inherit; font-size: .95rem; border: 1px solid #bdbdbd; border-radius: 12px; box-sizing: border-box; }
.mb-article-social .pn-cform button, .mb-article-social .pn-rform button { margin-top: .3rem; margin-right: .3rem; min-height: 30px; padding: .15rem .7rem; border-radius: 999px; border: 1px solid #111111; background: #111111; color: #ffffff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mb-article-social .pn-rform button.pn-cancel { border-color: #c8c8c8; background: #fff; color: #333; }
.mb-article-social .pn-note { font-size: .85rem; color: #5a5a5a; width: 100%; margin: .3rem 0 0; }
.mb-article-social-h { font-size: 1.05rem; margin: 0 0 .3rem; }
.hn-social { margin: .45rem 0 0; }
.hn-social-actions, .hn-social-link { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-weight: 600; color: #333333; text-decoration: none; font-size: .8rem; min-height: 30px; }
.hn-social .pn-rx { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 30px; min-width: 0; padding: .12rem .55rem; border-radius: 999px; border: 1px solid #c8c8c8; background: #f7f7f5; font: inherit; font-size: .8rem; font-weight: 600; color: #333333; cursor: pointer; }
.hn-social .pn-rx.on { background: #eef6ee; color: #1f5a33; border-color: #8fbf8f; }
.hn-social .pn-rx:focus-visible, .mb-article-social .pn-rx:focus-visible, .mb-article-social .pn-chip:focus-visible { outline: 2px solid #008000; outline-offset: 2px; }
.hn-social-note { font-size: .85rem; color: #5a5a5a; width: 100%; margin: .3rem 0 0; }
.news-feature .hn-social { margin-top: .45rem; }

.hn-notepad-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hn-notepad { width: min(28rem, 100%); max-height: min(32rem, 90vh); overflow: auto; background: #fff; color: #111; border-radius: 16px; border: 1px solid #111; padding: 1rem 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.hn-notepad-h { font-size: 1.1rem; margin: 0 0 .2rem; }
.hn-notepad-sub { margin: 0 0 .7rem; font-size: .9rem; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-notepad-list { margin: 0 0 .7rem; }
.hn-notepad .pn-comments { list-style: none; margin: 0; padding: 0; }
.hn-notepad .pn-comment { border-top: 1px solid #eeeeee; padding: .4rem 0 .25rem; }
.hn-notepad .pn-comment.pn-reply { margin: .15rem 0 0 .75rem; padding: .25rem 0 .1rem .65rem; border-top: 0; border-left: 2px solid #e6e0d4; }
.hn-notepad .pn-cmeta { font-size: .8rem; color: #666; margin: 0 0 .1rem; }
.hn-notepad .pn-cbody { margin: 0; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.hn-notepad .pn-cact { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.hn-notepad .pn-chip { display: inline-flex; align-items: center; justify-content: center; gap: .15rem; min-height: 26px; padding: .05rem .45rem; border-radius: 999px; border: 1px solid #d4d4d4; background: #fbfbfa; font: inherit; font-size: .72rem; font-weight: 600; color: #444; cursor: pointer; }
.hn-notepad .pn-chip.on { background: #eef6ee; color: #1f5a33; border-color: #8fbf8f; }
.hn-notepad-form label { display: block; font-weight: 600; margin: 0 0 .25rem; font-size: .85rem; }
.hn-notepad-form textarea { width: 100%; min-height: 4.5rem; padding: .5rem; font: inherit; font-size: 16px; border: 1px solid #bdbdbd; border-radius: 12px; box-sizing: border-box; resize: vertical; }
.hn-notepad-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.hn-notepad-post, .hn-notepad-cancel { min-height: 32px; padding: .2rem .85rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hn-notepad-post { border: 1px solid #111111; background: #111111; color: #ffffff; }
.hn-notepad-cancel { border: 1px solid #c8c8c8; background: #fff; color: #111; }
@media (max-width: 640px) {
  .hn-notepad-backdrop { align-items: flex-end; padding: 0; }
  .hn-notepad { width: 100%; max-height: min(88vh, 100%); border-radius: 16px 16px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
}
