/*
Theme Name: Buzzle
Theme URI: https://buzzle.ro
Author: Netring
Author URI: https://netring.ro
Description: Temă editorială personalizată pentru revista buzzle.ro.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netring-mag
*/

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/fraunces-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/fraunces-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/fraunces-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/fraunces-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display-weight: 600;
	--display-tracking: -0.02em;
	--logo-weight: 700;
	--logo-tracking: -0.04em;
	--mark-radius: 10px;
	--mark-style: normal;
	--quote-style: italic;
	--prose-size: 1.1rem;
	--head-align: left;
	--head-justify: flex-start;

	--paper: #fbf8f3;
	--card: #ffffff;
	--ink: #16161d;
	--muted: #5f5d66;
	--line: #e7e1d7;
	--line-strong: #cfc7b9;
	--tint: #f3ede3;
	--accent: #ff5733;
	--accent-soft: #ffb199;
	--on-accent: #ffffff;
	--link: #c9361a;
	--band: #16161d;
	--band-ink: #fbf8f3;

	--cat1: #ff5733; --cat2: #2a9d8f; --cat3: #e9a23b; --cat4: #3d5afe;
	--cat5: #8e44ad; --cat6: #0f8b5f; --cat7: #d63c7b;

	--radius: 14px;
	--radius-lg: 20px;
	--wrap: 1240px;
}
/* ==========================================================================
   Netring Magazine – base styles (tokens come from the variant file)
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nm-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: var(--display-tracking); margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.nm-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 6px; }
.nm-skip:focus { left: 8px; }

.nm-wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.nm-wrap--text { width: min(100% - 32px, 720px); }
.nm-wrap--wide { width: min(100% - 32px, 1120px); }

.nm-icon { width: 22px; height: 22px; }

/* ---------- Category colours ---------- */
.nm-c1 { --c: var(--cat1); } .nm-c2 { --c: var(--cat2); } .nm-c3 { --c: var(--cat3); } .nm-c4 { --c: var(--cat4); }
.nm-c5 { --c: var(--cat5); } .nm-c6 { --c: var(--cat6); } .nm-c7 { --c: var(--cat7); }

.nm-chip {
	display: inline-flex; align-items: center; gap: .45em;
	font: 600 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
}
.nm-chip::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.nm-chip:hover { color: var(--c, var(--accent)); }
.nm-chip--lg { font-size: .8rem; padding: .7em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: var(--card); transition: border-color .2s, transform .2s; }
.nm-chip--lg:hover { border-color: var(--c); transform: translateY(-2px); color: var(--ink); }

.nm-meta { font-size: .8rem; color: var(--muted); }

/* ---------- Header ---------- */
.nm-topbar { background: var(--ink); color: var(--paper); font-size: .78rem; }
.nm-topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.nm-topbar__date { text-transform: capitalize; opacity: .85; }
.nm-topbar__tag { opacity: .7; text-align: right; }
@media (max-width: 640px) { .nm-topbar__tag { display: none; } }

.nm-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .nm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nm-header { top: 0; } }
.nm-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.25); }
.nm-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; border-bottom: 1px solid var(--line); }
.nm-header.is-stuck .nm-header__in { border-bottom-color: transparent; }

.nm-logo { margin: 0; font-family: var(--font-display); font-size: 1.85rem; font-weight: var(--logo-weight); letter-spacing: var(--logo-tracking); line-height: 1; }
.nm-logo a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink); }
.nm-logo__mark { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: var(--mark-radius); background: var(--accent); color: var(--on-accent); font-size: .78em; font-style: var(--mark-style); }
.nm-logo__dot { color: var(--accent); margin-left: -.35rem; }
.nm-logo img { max-height: 48px; width: auto; }

.nm-nav { margin-left: auto; }
.nm-nav__list { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nm-nav__list a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .93rem; }
.nm-nav__list a:hover, .nm-nav__list .current-menu-item > a, .nm-nav__list .current-post-parent > a, .nm-nav__list .current-menu-parent > a { background: var(--tint); color: var(--ink); }

.nm-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.nm-iconbtn:hover { background: var(--tint); }
.nm-menu-toggle { display: none; }
@media (max-width: 1080px) {
	.nm-nav { display: none; }
	.nm-menu-toggle { display: inline-grid; margin-left: -10px; }
	.nm-search-toggle { margin-left: auto; }
	.nm-header__in { min-height: 64px; gap: .5rem; }
	.nm-logo { font-size: 1.55rem; }
}

.nm-searchbar { border-bottom: 1px solid var(--line); padding: 1rem 0; background: var(--paper); }

.nm-searchform { display: flex; max-width: 640px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); overflow: hidden; }
.nm-searchform input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .85rem 1.25rem; font: inherit; color: var(--ink); }
.nm-searchform input:focus { outline: none; }
.nm-searchform:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.nm-searchform button { border: 0; background: var(--ink); color: var(--paper); padding: 0 1.2rem; cursor: pointer; }
.nm-searchform button:hover { background: var(--accent); color: var(--on-accent); }

.nm-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.4); }
.nm-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--paper); padding: 1rem 1.25rem 2rem; overflow-y: auto; animation: nm-slide .25s ease-out; }
@keyframes nm-slide { from { transform: translateX(-100%); } }
.nm-drawer__close { margin-left: auto; display: grid; }
.nm-drawer__list { list-style: none; margin: .5rem 0 1.5rem; padding: 0; }
.nm-drawer__list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }

.nm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .nm-progress { top: 32px; }
.nm-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cards ---------- */
.nm-card { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.nm-card__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 16 / 10.4; }
.nm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.nm-card:hover .nm-card__media img { transform: scale(1.04); }
.nm-card__body { display: flex; flex-direction: column; gap: .5rem; }
.nm-card__title { font-size: 1.28rem; }
.nm-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.nm-card__title a:hover { color: var(--ink); background-size: 100% 1px; }
.nm-card__title a::after { content: ""; position: absolute; inset: 0; }
.nm-card .nm-chip { position: relative; z-index: 1; align-self: flex-start; }
.nm-card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nm-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--paper)), color-mix(in srgb, var(--c) 70%, var(--paper))); }
.nm-ph span { font-family: var(--font-display); font-size: 4rem; color: var(--paper); opacity: .9; }

.nm-card--hero .nm-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.nm-card--hero .nm-card__title { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; }
.nm-card--hero .nm-card__excerpt { font-size: 1.1rem; -webkit-line-clamp: 4; }

.nm-card--wide { display: grid; grid-template-columns: 140px 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.nm-card--wide:last-child { border-bottom: 0; padding-bottom: 0; }
.nm-card--wide .nm-card__media { aspect-ratio: 1; }
.nm-card--wide .nm-card__title { font-size: 1.12rem; }
.nm-card--wide .nm-card__excerpt { display: none; }

/* ---------- Home ---------- */
.nm-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem); }
.nm-hero__side { display: flex; flex-direction: column; gap: 1.15rem; }
@media (max-width: 900px) { .nm-hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nm-card--wide { grid-template-columns: 96px 1fr; } }

.nm-band { background: var(--band); color: var(--band-ink); padding: clamp(2.5rem, 6vw, 4.5rem) 0; margin-bottom: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.nm-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--accent); opacity: .18; }
.nm-band__kicker { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1rem; }
.nm-band__text { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; max-width: 22ch; margin-bottom: 1.75rem; letter-spacing: var(--display-tracking); }
.nm-band__cats { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }

.nm-section { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.nm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1rem; margin-bottom: 1.6rem; border-top: 3px solid var(--ink); }
[class*="nm-section--c"] .nm-section__head { border-top-color: var(--c); }
.nm-section--c1 { --c: var(--cat1); } .nm-section--c2 { --c: var(--cat2); } .nm-section--c3 { --c: var(--cat3); } .nm-section--c4 { --c: var(--cat4); }
.nm-section--c5 { --c: var(--cat5); } .nm-section--c6 { --c: var(--cat6); } .nm-section--c7 { --c: var(--cat7); }
.nm-section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nm-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nm-more .nm-icon { width: 18px; height: 18px; transition: transform .2s; }
.nm-more:hover .nm-icon { transform: translateX(3px); }

.nm-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.nm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nm-grid--4 .nm-card__title { font-size: 1.15rem; }
@media (max-width: 1080px) { .nm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .nm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nm-grid--3, .nm-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Archive ---------- */
.nm-archive-head { background: var(--tint); padding: clamp(2rem, 5vw, 3.5rem) 0; margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
[class*="nm-archive-head--c"] { background: color-mix(in srgb, var(--c) 14%, var(--paper)); }
.nm-archive-head--c1 { --c: var(--cat1); } .nm-archive-head--c2 { --c: var(--cat2); } .nm-archive-head--c3 { --c: var(--cat3); } .nm-archive-head--c4 { --c: var(--cat4); }
.nm-archive-head--c5 { --c: var(--cat5); } .nm-archive-head--c6 { --c: var(--cat6); } .nm-archive-head--c7 { --c: var(--cat7); }
.nm-archive-head__kicker { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: .75rem 0; }
.nm-archive-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .5rem; }
.nm-archive-head__desc { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.nm-archive-head .nm-searchform { margin-top: 1.25rem; }

.nm-pagination { margin-top: 3rem; }
.nm-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.nm-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.nm-pagination .page-numbers.current, .nm-pagination a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nm-empty { text-align: center; padding: 3rem 0; }
.nm-empty .nm-searchform { margin: 1rem auto 0; }

.nm-crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.nm-crumbs a { text-decoration: none; }
.nm-crumbs .separator { margin: 0 .35em; opacity: .6; }
.nm-crumbs p { margin: 0; }

/* ---------- Article ---------- */
.nm-article__head { padding-top: clamp(1.5rem, 4vw, 3rem); text-align: var(--head-align); }
.nm-article__title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.06; margin: .9rem 0 1rem; }
.nm-article__lead { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.5; color: var(--muted); margin-bottom: 1.4rem; }
.nm-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; justify-content: var(--head-justify); padding-bottom: 1.6rem; }
.nm-byline { font-weight: 600; font-size: .85rem; }
.nm-article__figure { margin: 0 auto clamp(1.75rem, 4vw, 3rem); }
.nm-article__figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.nm-article--page .nm-article__head { text-align: left; }

.nm-toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .95rem; }
.nm-toc summary { cursor: pointer; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; list-style-position: inside; }
.nm-toc ol { margin: .75rem 0 0; padding-left: 1.3rem; }
.nm-toc li { margin: .3rem 0; }
.nm-toc a { text-decoration: none; }
.nm-toc a:hover { text-decoration: underline; }

.nm-prose { font-size: var(--prose-size); line-height: 1.75; }
.nm-prose > * + * { margin-top: 1.15em; }
.nm-prose p { margin-bottom: 0; }
.nm-prose.has-dropcap > p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 4.1em; line-height: .82; padding: .08em .1em 0 0; color: var(--accent); font-weight: var(--display-weight); }
.nm-prose h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); margin-top: 2.1em; scroll-margin-top: 100px; }
.nm-prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); margin-top: 1.7em; }
.nm-prose h2 + *, .nm-prose h3 + * { margin-top: .7em; }
.nm-prose a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.nm-prose a:hover { text-decoration-color: currentColor; }
.nm-prose ul, .nm-prose ol { padding-left: 1.3em; margin-bottom: 0; }
.nm-prose li + li { margin-top: .45em; }
.nm-prose ul li::marker { color: var(--accent); }
.nm-prose ol li::marker { color: var(--accent); font-weight: 700; }
.nm-prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.3em; line-height: 1.4; font-style: var(--quote-style); }
.nm-prose blockquote p { margin: 0; }
.nm-prose strong { font-weight: 650; }
.nm-prose .wp-block-table, .nm-prose > table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: 0; }
.nm-prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92em; }
.nm-prose th, .nm-prose td, .nm-prose .wp-block-table th, .nm-prose .wp-block-table td { padding: .7em .8em; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nm-prose .wp-block-table thead { border-bottom: 0; }
.nm-prose thead th { background: var(--tint); font-weight: 650; border-bottom: 2px solid var(--line-strong); }
.nm-prose figure { margin: 0; }
.nm-prose img { border-radius: var(--radius); }
.nm-prose figcaption { font-size: .82rem; color: var(--muted); margin-top: .5em; }
.nm-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

.nm-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.nm-tags a { display: inline-block; padding: .35em .8em; border-radius: 999px; background: var(--tint); font-size: .85rem; text-decoration: none; }

.nm-authorbox { display: flex; gap: 1rem; align-items: flex-start; margin: 3rem 0 clamp(2.5rem, 6vw, 4rem); padding: 1.4rem; border-radius: var(--radius); background: var(--tint); }
.nm-authorbox__mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--mark-radius); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 1.5rem; font-style: var(--mark-style); }
.nm-authorbox p { margin: 0; font-size: .93rem; color: var(--muted); }
.nm-authorbox .nm-authorbox__name { font-weight: 700; color: var(--ink); margin-bottom: .2rem; font-size: 1rem; }

.nm-related { border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vw, 3rem); }
.nm-related .nm-section__head { border-top: 0; padding-top: 0; }

.nm-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0 3rem; }
.nm-404__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--accent); margin: 0; }
.nm-404 .nm-searchform { margin: 1.5rem auto 0; }

/* ---------- Footer ---------- */
.nm-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 78%, transparent); margin-top: clamp(2rem, 5vw, 4rem); font-size: .93rem; }
.nm-footer a { text-decoration: none; }
.nm-footer a:hover { color: var(--accent-soft); }
.nm-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
@media (max-width: 760px) { .nm-footer__grid { grid-template-columns: 1fr 1fr; } .nm-footer__about { grid-column: 1 / -1; } }
.nm-footer .nm-logo a, .nm-footer .nm-logo__text { color: var(--paper); }
.nm-footer__about p:last-child { max-width: 42ch; margin-top: 1rem; }
.nm-footer__title { font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; }
.nm-footer ul { list-style: none; margin: 0; padding: 0; }
.nm-footer li { margin: .45rem 0; }
.nm-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent); font-size: .82rem; }
.nm-footer__bottom p { margin: 0; }
.nm-totop { display: inline-flex; align-items: center; gap: .3rem; }
.nm-totop .nm-icon { width: 18px; height: 18px; }

/* ---------- Core blocks used in pages ---------- */
.wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: 999px; padding: .8em 1.5em; text-decoration: none; }
.alignwide { width: min(100vw - 32px, 1120px); margin-inline: calc(50% - min(100vw - 32px, 1120px) / 2); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.has-text-align-center { text-align: center; }

@media print {
	.nm-header, .nm-footer, .nm-related, .nm-toc, .nm-progress, .nm-authorbox { display: none !important; }
}
