/* NovelNutt ARC Hub — inherits the theme's fonts. Change the accent here to match Odrin. */
.nn-arc {
	--nn-accent: #3f2a56;      /* deep ink plum */
	--nn-accent-ink: #ffffff;
	--nn-gold: #d9a21b;        /* rating stars */
	--nn-line: rgba(0, 0, 0, .12);
	--nn-muted: rgba(0, 0, 0, .6);
	--nn-soft: rgba(63, 42, 86, .04);
	--nn-ok: #2e6b47;
	--nn-warn: #93600a;
	--nn-bad: #a1322b;
	line-height: 1.6;
	margin: 1.5em 0;
}
.nn-arc *, .nn-arc *::before, .nn-arc *::after { box-sizing: border-box; }
.nn-arc h3 { margin: 0 0 .6em; }
.nn-arc h4 { margin: 0 0 .25em; font-size: 1.05em; line-height: 1.3; }
.nn-arc p { margin: 0 0 .75em; }

/* Navigation */
.nn-tabs { display: flex; flex-wrap: wrap; gap: .25em; border-bottom: 1px solid var(--nn-line); margin-bottom: 1.5em; }
.nn-tab { padding: .65em 1em; color: var(--nn-muted); text-decoration: none !important; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nn-tab:hover { color: inherit; }
.nn-tab.is-active { color: inherit; font-weight: 600; border-bottom-color: var(--nn-accent); }
.nn-pills { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1em; }
.nn-pill { padding: .3em .9em; border: 1px solid var(--nn-line); border-radius: 999px; text-decoration: none !important; color: inherit; }
.nn-pill.is-active { background: var(--nn-accent); border-color: var(--nn-accent); color: var(--nn-accent-ink); }

/* Layout */
.nn-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; margin-bottom: .75em; }
.nn-head h3, .nn-head h4 { margin: 0; }
.nn-section { margin: 2em 0 .75em; }
.nn-card { background: var(--nn-soft); border: 1px solid var(--nn-line); border-radius: 6px; padding: 1.25em; margin-bottom: 1.25em; }
.nn-empty { text-align: center; padding: 2.25em 1.25em; }
.nn-callout { border-left: 3px solid var(--nn-accent); }
.nn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25em; margin-bottom: 1.25em; }
.nn-grid-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nn-grid > .nn-card { margin: 0; }
.nn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1em; }

/* Books and ARC cards */
.nn-book, .nn-arc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #fff; }
.nn-book-link { color: inherit; text-decoration: none !important; }
.nn-cover { aspect-ratio: 2 / 3; background: #ECEEF2; overflow: hidden; }
.nn-cover img { display: block; width: 100%; height: 100%; object-fit: contain; } /* whole cover always visible */
.nn-cover-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1em; text-align: center; font-style: italic; color: var(--nn-muted); }
.nn-cover-small { width: 90px; border-radius: 3px; margin-bottom: .5em; }
.nn-cover-small img { object-fit: contain; }
.nn-book-body { display: flex; flex-direction: column; gap: .4em; flex: 1; padding: 1em; }
.nn-by { color: var(--nn-muted); font-style: italic; margin: 0; }
.nn-facts { display: grid; grid-template-columns: auto 1fr; gap: .15em .75em; margin: .25em 0; font-size: .9em; }
.nn-facts dt { color: var(--nn-muted); }
.nn-facts dd { margin: 0; }
.nn-warnings { font-size: .88em; margin: 0; }
.nn-details summary { cursor: pointer; font-weight: 600; font-size: .9em; }
.nn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: auto; padding-top: .5em; }
.nn-request-form { display: flex; flex-direction: column; gap: .5em; width: 100%; }
.nn-request-form textarea { width: 100%; font: inherit; padding: .5em; border: 1px solid var(--nn-line); border-radius: 4px; }

/* List rows (my ARCs) */
.nn-item { display: grid; grid-template-columns: 76px 1fr; gap: 1.1em; align-items: start; }
.nn-item .nn-cover { border-radius: 3px; }
.nn-meta { color: var(--nn-muted); font-size: .9em; margin: .2em 0; }
.nn-counts { list-style: none; margin: .5em 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em 1.5em; }
.nn-counts strong { font-size: 1.15em; margin-right: .2em; }

/* Buttons
   Odrin styles all buttons as white with white text (green on hover), so these rules are
   extra-specific with !important to win: white button, black text, theme green on hover. */
.nn-arc .nn-btn,
.nn-arc a.nn-btn,
.nn-arc button.nn-btn,
.nn-arc input.nn-btn {
	display: inline-block;
	padding: .6em 1.25em;
	background: #ffffff !important;
	color: #111111 !important;
	border: 2px solid #111111 !important;
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	opacity: 1;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nn-arc .nn-btn:hover,
.nn-arc .nn-btn:focus-visible {
	background: #8edcc6 !important; /* Odrin's hover green */
	border-color: #8edcc6 !important;
	color: #ffffff !important;
}
.nn-arc .nn-btn:focus-visible, .nn-tab:focus-visible, .nn-pill:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.nn-arc .nn-btn-ghost { border-width: 1px !important; }
.nn-arc .nn-btn-danger { color: var(--nn-bad) !important; border-color: var(--nn-bad) !important; }
.nn-arc .nn-btn-danger:hover { background: var(--nn-bad) !important; border-color: var(--nn-bad) !important; color: #fff !important; }
.nn-arc .nn-btn-small { padding: .4em .9em; font-size: .88em; }
.nn-arc .nn-btn[disabled],
.nn-arc .nn-btn[disabled]:hover { background: #fff !important; color: #777 !important; border-color: #bbb !important; cursor: not-allowed; }
.nn-inline { display: inline; margin: 0; }

/* Forms */
.nn-form { background: #fff; }
.nn-field { margin-bottom: 1.1em; }
.nn-field > label, .nn-label { display: block; font-weight: 600; margin-bottom: .35em; }
.nn-form input[type="text"], .nn-form input[type="url"], .nn-form input[type="number"], .nn-form input[type="date"], .nn-form select, .nn-form textarea {
	width: 100%; max-width: 100%; padding: .6em .75em; border: 1px solid var(--nn-line); border-radius: 4px; background: #fff; color: inherit; font: inherit;
}
.nn-form input:focus, .nn-form select:focus, .nn-form textarea:focus { outline: 2px solid var(--nn-accent); outline-offset: 1px; }
.nn-form small, .nn-help { display: block; color: var(--nn-muted); font-size: .88em; margin-top: .3em; }
.nn-fieldset { border: 1px solid var(--nn-line); border-radius: 6px; padding: 1em 1.1em .25em; margin: 0 0 1.25em; }
.nn-fieldset legend { font-weight: 600; padding: 0 .35em; }
.nn-checks, .nn-cats { list-style: none; margin: 0; padding: 0; }
.nn-checks { display: flex; flex-wrap: wrap; gap: .35em 1.25em; }
.nn-cats { columns: 2 200px; column-gap: 1.5em; }
.nn-cats li { break-inside: avoid; }
.nn-cats-sub { columns: auto; padding-left: 1.4em; }
.nn-checks label, .nn-cats label, .nn-check { display: flex; align-items: flex-start; gap: .45em; font-weight: 400; }
.nn-checks input, .nn-cats input, .nn-check input { margin-top: .35em; }
.nn-review-form { background: transparent; margin-top: 1em; padding-top: 1em; border-top: 1px dashed var(--nn-line); }

/* Notices and badges */
.nn-notice { padding: .8em 1em; border-radius: 4px; margin-bottom: 1.25em; border-left: 4px solid; }
.nn-notice-ok { background: #edf6f0; border-color: var(--nn-ok); }
.nn-notice-err { background: #fbeeed; border-color: var(--nn-bad); }
.nn-notice-info { background: #f1eef6; border-color: var(--nn-accent); }
.nn-badge { display: inline-block; padding: .15em .6em; border-radius: 3px; font-size: .78em; font-weight: 600; line-height: 1.5; background: var(--nn-line); color: inherit; white-space: nowrap; }
.nn-badge-publish, .nn-badge-open, .nn-badge-on_time, .nn-badge-great, .nn-badge-good { background: #dcefe3; color: var(--nn-ok); }
.nn-badge-pending, .nn-badge-requested, .nn-badge-late, .nn-badge-warn { background: #f8ecd4; color: var(--nn-warn); }
.nn-badge-missed, .nn-badge-flagged, .nn-badge-bad { background: #f6dcda; color: var(--nn-bad); }
.nn-badge-approved, .nn-badge-new { background: #e8e2f0; color: var(--nn-accent); }

/* Reliability */
.nn-reliability { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .6em; margin: .4em 0; }
.nn-reliability small { flex-basis: 100%; color: var(--nn-muted); }
.nn-stars { display: inline-block; font-size: 1.1em; line-height: 1; letter-spacing: .06em; }
.nn-stars::before {
	content: "\2605\2605\2605\2605\2605";
	background: linear-gradient(90deg, var(--nn-gold, #d9a21b) var(--nn-pct), rgba(0, 0, 0, .16) var(--nn-pct));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.nn-links { display: flex; flex-wrap: wrap; gap: .25em 1em; font-size: .9em; margin: .35em 0; }
.nn-note { margin: .6em 0; padding: .1em 0 .1em .9em; border-left: 2px solid var(--nn-line); font-style: italic; }

/* Reader score: the one bold moment */
.nn-score { background: var(--nn-accent); color: var(--nn-accent-ink); border-color: var(--nn-accent); }
.nn-score .nn-help { color: rgba(255, 255, 255, .78); margin-top: .75em; }
.nn-score-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em 1em; }
.nn-score-num { font-size: clamp(2.6em, 9vw, 4em); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -.02em; }
.nn-score-num span { font-size: .45em; font-weight: 400; margin-left: .05em; }
.nn-score .nn-stars { font-size: 1.5em; }
.nn-score .nn-stars::before { background: linear-gradient(90deg, var(--nn-gold) var(--nn-pct), rgba(255, 255, 255, .25) var(--nn-pct)); -webkit-background-clip: text; background-clip: text; }
.nn-score .nn-counts { margin-top: 1em; }

/* Public author card */
.nn-author-card { display: grid; grid-template-columns: 140px 1fr; gap: 1.5em; align-items: start; background: #fff; }
.nn-avatar img { display: block; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.nn-form .nn-avatar img { width: 96px; height: 96px; margin-bottom: .5em; }

@media (max-width: 600px) {
	.nn-author-card { grid-template-columns: 1fr; }
	.nn-grid { grid-template-columns: repeat(2, 1fr); gap: .75em; }
	.nn-grid-wide { grid-template-columns: 1fr; }
	.nn-item { grid-template-columns: 60px 1fr; }
	.nn-tab { padding: .55em .7em; }
}
@media (prefers-reduced-motion: reduce) { .nn-arc * { transition: none !important; } }
.nn-review { margin: .5em 0; padding: .6em .8em; background: #fff; border: 1px solid var(--nn-line); }
.nn-review p:last-child { margin-bottom: 0; }
.nn-field label .nn-badge { margin-left: .35em; vertical-align: middle; }

/* Featured deals */
.nn-deal-price { margin: .1em 0; font-size: 1.15em; }
.nn-deal-price s { opacity: .55; font-size: .85em; margin-left: .3em; }
.nn-deal-blurb { font-size: .9em; margin: .2em 0; }
.nn-rules { margin: 0 0 1em 1.1em; padding: 0; }
.nn-rules li { margin-bottom: .2em; }

/* Genres list */
.nn-genre-list { list-style: none; margin: 0; padding: 0; }
.nn-genre-list li { margin: .35em 0; }
.nn-genre-sub { padding-left: 1.1em; margin-top: .25em; }
.nn-genre-list .is-current > a { font-weight: 700; }
.nn-count { opacity: .6; }
.nn-genre-meta { display: block; }

/* Reader profile panel (ARC requests) */
.nn-arc .nn-reader-profile { margin: 10px 0; }
.nn-arc .nn-reader-profile summary { cursor: pointer; font-weight: 600; color: var(--nn-accent, #2E7562); }
.nn-arc .nn-reader-profile-body { margin-top: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--nn-line); }
.nn-arc .nn-reader-profile .nn-label { margin: 10px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nn-muted); }
.nn-arc .nn-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: .92rem; }
.nn-arc .nn-facts dt { color: var(--nn-muted); }
.nn-arc .nn-facts dd { margin: 0; }
.nn-arc .nn-past-reviews { margin: 0; padding-left: 1.1em; }
.nn-arc .nn-past-reviews li { margin: 6px 0; }

/* Author card above search results */
.nn-search-authors { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.nn-search-author { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--nn-line); border-left: 4px solid var(--nn-accent, #2E7562); text-decoration: none !important; color: inherit; }
.nn-search-author img, .nn-search-author-initial { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.nn-search-author-initial { display: flex; align-items: center; justify-content: center; background: #F1F3F6; color: var(--nn-accent, #2E7562); font-weight: 700; font-size: 1.4rem; }
.nn-search-author small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nn-muted); }
.nn-search-author strong { display: block; font-size: 1.15rem; }
.nn-search-author em { display: block; font-style: normal; font-size: .85rem; color: var(--nn-accent, #2E7562); }

.nn-arc .nn-reader-name { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nn-arc .nn-reader-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.nn-arc .nn-reader-head img { border-radius: 50%; }
.nn-arc .nn-reader-head h3 { margin: 0; }
.nn-arc .nn-review-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nn-arc .nn-review-links a { font-weight: 600; }
.nn-arc .nn-followers { color: var(--nn-muted); font-size: .85rem; }
.nn-arc .nn-rel-counts { margin: 4px 0 8px; }
