/* NovelNutt Community. Scoped to .nncm. */
.nncm {
	--a: #2E7562;
	--a-tint: #e8f2ef;
	--author: #b8860b;
	--author-tint: #fdf6e3;
	--ink: #1d1b22;
	--soft: #6b6874;
	--line: #e9e6ef;
	--bg: #faf9fc;
	color: var(--ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 16px 60px;
	font-size: 15.5px;
	line-height: 1.5;
	box-sizing: border-box;
}
.nncm *, .nncm *::before, .nncm *::after { box-sizing: border-box; }
.nncm-main { background: var(--bg, #faf9fc); }
.nncm [hidden] { display: none !important; }
.nncm a { color: inherit; }
.nncm img { max-width: 100%; height: auto; }
.nncm .avatar { border-radius: 50%; display: block; object-fit: cover; }
.nncm-grid { display: grid; grid-template-columns: 200px minmax(0, 620px) 280px; gap: 24px; justify-content: center; align-items: start; }
.nncm-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.nncm-brand { font-weight: 800; font-size: 20px; text-decoration: none !important; margin: 0 0 10px 10px; color: var(--a) !important; }
.nncm-navlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; text-decoration: none !important; font-weight: 600; color: var(--ink) !important; }
.nncm-navlink span { width: 20px; text-align: center; }
.nncm-navlink:hover { background: #f0eef4; }
.nncm-navlink.is-active { background: var(--a-tint); color: var(--a) !important; }
.nncm-dot { margin-left: auto; background: #c2577a; color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.nncm-side { position: sticky; top: 90px; }
.nncm-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.nncm-h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.nncm-h2 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.nncm-muted { color: var(--soft); font-size: 14px; }
.nncm-crumb { margin: 0 0 10px; font-size: 14px; } .nncm-crumb a { text-decoration: none; color: var(--soft); }

/* buttons (theme-proof) */
.nncm .nncm-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--a) !important; color: #fff !important; border: 2px solid var(--a) !important; border-radius: 999px !important; padding: 8px 18px !important; font-weight: 700 !important; font-size: 14px !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important; cursor: pointer; height: auto !important; width: auto !important; box-shadow: none !important; }
.nncm .nncm-btn--ghost { background: transparent !important; color: var(--a) !important; }
.nncm .nncm-btn--s { padding: 5px 12px !important; font-size: 13px !important; }
.nncm .nncm-btn:disabled { opacity: .6; }
.nncm .nncm-link { background: none !important; border: 0 !important; padding: 0 !important; color: var(--soft) !important; font-size: 13px !important; text-decoration: underline; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; height: auto !important; width: auto !important; box-shadow: none !important; font-weight: 500 !important; }

/* composer */
.nncm-compose { display: flex; gap: 12px; }
.nncm-compose-main { flex: 1; min-width: 0; }
.nncm-compose textarea { width: 100%; border: 0 !important; resize: none; font-size: 17px; padding: 8px 0 !important; min-height: 44px; outline: none; background: transparent !important; box-shadow: none !important; margin: 0; }
.nncm-compose-extra { padding: 6px 0; }
.nncm-preview { max-height: 220px; border-radius: 12px; margin-bottom: 8px; }
.nncm-book-pick label { font-size: 13px; color: var(--soft); display: block; margin-bottom: 4px; text-transform: none; letter-spacing: normal; font-weight: 600; }
.nncm-book-pick input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 0; height: auto; }
.nncm-compose-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.nncm-compose-row .nncm-btn { margin-left: auto; }
.nncm .nncm-icon-btn { display: inline-flex; align-items: center; gap: 5px; background: none !important; border: 0 !important; color: var(--a) !important; font-size: 14px !important; font-weight: 600 !important; padding: 6px 8px !important; border-radius: 999px !important; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; height: auto !important; width: auto !important; box-shadow: none !important; margin: 0; }
.nncm .nncm-icon-btn:hover { background: var(--a-tint) !important; }
.nncm-count { color: var(--soft); font-size: 13px; }
.nncm-join { text-align: center; }

/* tabs */
.nncm-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.nncm-tab { flex: 1; text-align: center; padding: 12px 6px; text-decoration: none !important; font-weight: 700; color: var(--soft) !important; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nncm-tab.is-active { color: var(--ink) !important; border-bottom-color: var(--a); }

/* posts */
.nncm-post { display: grid; grid-template-columns: 48px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.nncm-post.is-author { border-color: #ecd9a6; background: linear-gradient(180deg, var(--author-tint), #fff 120px); box-shadow: inset 3px 0 0 var(--author); }
.nncm-post.is-held { opacity: .85; border-style: dashed; }
.nncm-post.is-pinned { box-shadow: inset 3px 0 0 var(--a); }
.nncm-body { min-width: 0; }
.nncm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14.5px; }
.nncm-name { font-weight: 700; text-decoration: none !important; color: var(--ink) !important; }
.nncm-name:hover { text-decoration: underline !important; }
.nncm-badge { display: inline-block; background: var(--author); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.nncm-badge--team { background: var(--a); }
.nncm-time { color: var(--soft) !important; font-size: 13px; text-decoration: none !important; }
.nncm-time::before { content: '· '; }
.nncm-pin { font-size: 12px; color: var(--soft); }
.nncm-held { background: #fff3cd; color: #8a5a00; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin: 6px 0; }
.nncm-text { margin-top: 4px; overflow-wrap: anywhere; }
.nncm-text p { margin: 0 0 8px; }
.nncm-text a { color: var(--a) !important; }
.nncm-at { font-weight: 600; text-decoration: none !important; }
.nncm-img { display: block; margin: 8px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.nncm-img img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.nncm-book { display: flex; gap: 12px; align-items: center; margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none !important; background: #fff; }
.nncm-book:hover { border-color: var(--a); }
.nncm-book img { width: 52px; height: 78px; object-fit: cover; border-radius: 4px; }
.nncm-book span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.nncm-book small { color: var(--soft); } .nncm-book em { font-style: normal; color: var(--a); font-weight: 600; font-size: 13px; }
.nncm-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.nncm .nncm-act { display: inline-flex; align-items: center; gap: 6px; background: none !important; border: 0 !important; color: var(--soft) !important; font-size: 14px !important; padding: 6px 10px !important; border-radius: 999px !important; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; height: auto !important; width: auto !important; box-shadow: none !important; margin: 0; font-weight: 500 !important; }
.nncm .nncm-act:hover { background: #f0eef4 !important; }
.nncm .nncm-like.is-on { color: #d6336c !important; }
.nncm-act b { font-weight: 600; }
.nncm-more { margin-left: auto; position: relative; }
.nncm-more summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; color: var(--soft); font-size: 18px; line-height: 1; }
.nncm-more summary::-webkit-details-marker { display: none; }
.nncm-more > div { position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; z-index: 5; min-width: 170px; display: flex; flex-direction: column; }
.nncm-more > div button, .nncm-more > div a { background: none !important; border: 0 !important; text-align: left; padding: 8px 10px !important; border-radius: 8px !important; font-size: 14px !important; cursor: pointer; color: var(--ink) !important; text-transform: none !important; letter-spacing: normal !important; height: auto !important; width: 100% !important; box-shadow: none !important; text-decoration: none; font-weight: 500 !important; }
.nncm-more > div button:hover { background: #f4f2f7 !important; }

/* comments */
.nncm-comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.nncm-clist { list-style: none; margin: 0; padding: 0; }
.nncm-c { display: flex; gap: 8px; margin-bottom: 10px; }
.nncm-c > div { min-width: 0; }
.nncm-cbubble { background: #f4f2f7; border-radius: 14px; padding: 8px 12px; }
.nncm-cbubble p { margin: 0 0 4px; } .nncm-chead { font-size: 13.5px; }
.nncm-c.is-held .nncm-cbubble { background: #fff8e1; }
.nncm-cform { display: flex; gap: 8px; align-items: flex-start; }
.nncm-cform textarea { flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 8px 14px; font-size: 14px; resize: none; min-height: 38px; margin: 0; }

/* profile */
.nncm-profile-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nncm-profile-top > div { flex: 1; min-width: 160px; }
.nncm-profile.is-author { background: linear-gradient(180deg, var(--author-tint), #fff 140px); border-color: #ecd9a6; }
.nncm-handle { color: var(--soft); margin: 0; }
.nncm-bio { margin: 10px 0; }
.nncm-stats { list-style: none; padding: 0; margin: 10px 0; display: flex; gap: 18px; color: var(--soft); }
.nncm-stats b { color: var(--ink); }
.nncm-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.nncm-links a { background: var(--a-tint); color: var(--a) !important; border-radius: 999px; padding: 4px 12px; text-decoration: none !important; font-size: 13px; font-weight: 600; }
.nncm-pref { font-size: 13px; color: var(--soft); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; text-transform: none; letter-spacing: normal; }

/* notifications */
.nncm-notes { list-style: none; padding: 6px; }
.nncm-note a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none !important; }
.nncm-note a:hover { background: #f7f5fa; }
.nncm-note.is-new a { background: var(--a-tint); }
.nncm-note.is-author a { box-shadow: inset 3px 0 0 var(--author); }
.nncm-note span { display: flex; flex-direction: column; font-size: 14.5px; }
.nncm-note em { font-style: normal; color: var(--soft); font-size: 13.5px; }
.nncm-note small { color: var(--soft); font-size: 12px; }

/* who to follow */
.nncm-wtf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nncm-wtf li { display: flex; align-items: center; gap: 10px; }
.nncm-wtf li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nncm-wtf small { color: var(--soft); font-size: 12px; }
.nncm-empty { text-align: center; color: var(--soft); }
.nncm-more-btn { display: flex !important; margin: 10px auto !important; }

.nncm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1d1b22; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 9999; max-width: 90vw; }
.nncm-toast.is-on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1100px) { .nncm-grid { grid-template-columns: 180px minmax(0, 1fr); } .nncm-side { display: none; } }
@media (max-width: 760px) {
	.nncm-grid { grid-template-columns: 1fr; }
	.nncm-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; }
	.nncm-brand { display: none; }
	.nncm-navlink { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
	.nncm-post { grid-template-columns: 40px 1fr; padding: 12px; }
	.nncm-post .nncm-av img { width: 40px; height: 40px; }
}
/* Avatars keep their size whatever the theme does to images. */
.nncm-compose > .avatar { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
.nncm-av img { width: 48px !important; height: 48px !important; }
.nncm-c > .avatar, .nncm-cform > .avatar { width: 32px !important; height: 32px !important; flex: 0 0 32px; }
.nncm-wtf .avatar, .nncm-note .avatar { width: 40px !important; height: 40px !important; flex: 0 0 40px; }
.nncm-profile-top > .avatar { width: 96px !important; height: 96px !important; flex: 0 0 96px; }
