/*
Theme Name: Neon Drift
Theme URI: https://wordpress.org/themes/
Author: Neon Drift
Description: A dark, neon, three-column blogging theme for guest-post sites. Categories and Pages in the left rail, full recent posts in the centre, and 10 shuffled posts (image, title, 100-word preview) in the right rail that change on every visit. Trending tags bar. Self-hosted fonts, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neon-drift
Tags: blog, news, three-columns, left-sidebar, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Unbounded";
	src: url("assets/fonts/unbounded.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Space Grotesk";
	src: url("assets/fonts/space-grotesk.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--nd-bg);
	color: var(--nd-ink);
	font-family: var(--nd-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--nd-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--nd-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.nd-wrap { width: min(100% - 32px, var(--nd-wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--nd-accent);
	color: var(--nd-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.nd-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--nd-accent);
	color: var(--nd-on-accent);
	border: 0;
	border-radius: var(--nd-btn-radius, 8px);
	font-family: var(--nd-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.nd-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.nd-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nd-nav-button { display: none; }
.nd-burger { position: relative; width: 18px; height: 12px; }
.nd-burger::before,
.nd-burger::after,
.nd-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nd-burger::before { top: 0; }
.nd-burger span { top: 5px; }
.nd-burger::after { top: 10px; }
.nd-nav-toggle:checked + .nd-nav-button .nd-burger::before { transform: translateY(5px) rotate(45deg); }
.nd-nav-toggle:checked + .nd-nav-button .nd-burger span { opacity: 0; }
.nd-nav-toggle:checked + .nd-nav-button .nd-burger::after { transform: translateY(-5px) rotate(-45deg); }
.nd-nav-toggle:focus-visible + .nd-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.nd-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nd-menu li { position: relative; }
.nd-menu a { display: block; text-decoration: none; }
.nd-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nd-menu li:hover > .sub-menu,
.nd-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.nd-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--nd-soft);
}
.nd-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.nd-thumb:hover img { transform: scale(1.04); }
.nd-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--nd-tone, var(--nd-soft));
	font-family: var(--nd-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--nd-tone-ink, var(--nd-ink));
}

/* Chips + meta */
.nd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nd-chip { text-decoration: none; }
.nd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--nd-muted); font-size: 0.88rem; }
.nd-meta__item + .nd-meta__item::before { content: "·"; margin: 0 8px; }
.nd-meta a { color: var(--nd-ink); font-weight: 700; text-decoration: none; }
.nd-meta a:hover { text-decoration: underline; }
.nd-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.nd-catlist,
.nd-pagelist,
.nd-randlist { margin: 0; padding: 0; list-style: none; }
.nd-pagelist .children { display: none; }
.nd-cat,
.nd-pagelist a { text-decoration: none; }
.nd-rand__media { position: relative; }
.nd-rand__title { margin: 0 0 6px; }
.nd-rand__title a,
.nd-card__title a,
.nd-full__title a { text-decoration: none; }
.nd-rand__text { margin: 0 0 8px; }
.nd-rand__more { font-weight: 700; }
.widget.nd-box > :not(.nd-box__title) { margin: 16px 18px; }
.widget.nd-box ul { padding-left: 1.1em; }

/* Article content */
.nd-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.nd-entry > * { margin-block: 0 1.15em; }
.nd-entry > *:last-child { margin-bottom: 0; }
.nd-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.nd-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.nd-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.nd-entry a { color: var(--nd-link, var(--nd-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nd-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nd-entry a:hover { text-decoration-thickness: 4px; }
.nd-entry ul,
.nd-entry ol { padding-left: 1.4em; }
.nd-entry li { margin-bottom: 0.4em; }
.nd-entry li::marker { color: var(--nd-accent); }
.nd-entry blockquote { margin-inline: 0; }
.nd-entry blockquote p:last-child { margin-bottom: 0; }
.nd-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--nd-muted); }
.nd-entry img { border-radius: var(--nd-img-radius, 8px); }
.nd-entry figure { margin-inline: 0; }
.nd-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--nd-muted); font-size: 0.88rem; text-align: center; }
.nd-entry code,
.nd-entry kbd { padding: 0.12em 0.4em; background: var(--nd-soft); border-radius: 6px; font-family: var(--nd-mono); font-size: 0.88em; }
.nd-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--nd-mono); font-size: 0.9rem; line-height: 1.6; }
.nd-entry pre code { padding: 0; background: none; color: inherit; }
.nd-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.nd-entry th,
.nd-entry td { padding: 10px 12px; border: 1px solid var(--nd-line); text-align: left; }
.nd-entry th { background: var(--nd-soft); }
.nd-entry .wp-block-table { overflow-x: auto; }
.nd-entry hr { border: 0; height: 1px; background: var(--nd-line); margin: 2.4em 0; }
.nd-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--nd-display); font-weight: 700; }
.nd-pagelinks { margin-top: 22px; font-weight: 700; }
.nd-pagelinks a,
.nd-pagelinks > span:not(:first-child) { margin-left: 6px; }

.nd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--nd-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.nd-tags a::before { content: "#"; color: var(--nd-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--nd-accent); }

/* Single post */
.nd-single__thumb { margin: 0; }
.nd-single__thumb img { display: block; width: 100%; height: auto; }
.nd-single .nd-tags { margin-top: 30px; }
.nd-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.nd-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.nd-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nd-muted); }
.nd-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.nd-author__name a { text-decoration: none; }
.nd-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--nd-muted); }
.nd-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.nd-author { grid-template-columns: 1fr; }
	.nd-author__avatar { width: 64px; height: 64px; }
}

.nd-postnav { margin-top: 36px; }
.nd-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nd-postnav .nav-next { grid-column: 2; text-align: right; }
.nd-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.nd-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nd-muted); }
.nd-postnav__title { font-family: var(--nd-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.nd-postnav .nav-links { grid-template-columns: 1fr; }
	.nd-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--nd-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.nd-archive-head { margin-bottom: 32px; }
.nd-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.nd-archive-head__desc { color: var(--nd-muted); max-width: 60ch; }
.nd-archive-head .nd-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.nd-search { display: flex; gap: 8px; }
.nd-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--nd-paper);
	color: var(--nd-ink);
	border: 1px solid var(--nd-line);
	border-radius: var(--nd-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.nd-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--nd-accent); box-shadow: 0 0 0 3px var(--nd-ring, rgba(0, 0, 0, 0.12)); }
.nd-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--nd-accent);
	color: var(--nd-on-accent);
	border: 0;
	border-radius: var(--nd-input-radius, 8px);
	cursor: pointer;
}

.nd-comments { margin-top: 44px; }
.nd-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.nd-comment-list,
.nd-comment-list .children { margin: 0; padding: 0; list-style: none; }
.nd-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--nd-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--nd-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.nd-404,
.nd-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--nd-paper); border-radius: var(--nd-radius); }
.nd-404__num { margin: 0; font-family: var(--nd-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--nd-accent); }
.nd-404 .nd-search,
.nd-empty .nd-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.nd-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.nd-footer-widget ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   Neon Drift look
   ========================================================================== */
:root {
	color-scheme: dark;
	--nd-bg: #0d0d12;
	--nd-head: #101018;
	--nd-paper: #15151e;
	--nd-raise: #1e1e2a;
	--nd-ink: #f2f2f7;
	--nd-text: #cfcfdc;
	--nd-muted: #a1a1b5;
	--nd-soft: #1e1e2a;
	--nd-line: #2a2a38;
	--nd-pink: #ff3dcb;
	--nd-cyan: #3df2ff;
	--nd-accent: #d4ff3a;
	--nd-on-accent: #15131c;
	--nd-link: #f2f2f7;
	--nd-radius: 20px;
	--nd-btn-radius: 12px;
	--nd-input-radius: 12px;
	--nd-img-radius: 12px;
	--nd-focus: #3df2ff;
	--nd-ring: rgba(212, 255, 58, 0.25);
	--nd-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
	--nd-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--nd-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--nd-wrap: 1260px;
}

body { color: var(--nd-text); }
h1, h2, h3, h4, h5, h6 { color: var(--nd-ink); font-weight: 700; letter-spacing: -0.02em; }
::selection { background: var(--nd-accent); color: #0d0d12; }

.nd-t0 { --nd-tone: #d4ff3a; --nd-tone-bg: #283313; }
.nd-t1 { --nd-tone: #3df2ff; --nd-tone-bg: #12303a; }
.nd-t2 { --nd-tone: #ff3dcb; --nd-tone-bg: #3a1636; }
.nd-t3 { --nd-tone: #ffb03d; --nd-tone-bg: #3a2a13; }
.nd-t4 { --nd-tone: #b39dff; --nd-tone-bg: #261d42; }
.nd-thumb__fallback { background: var(--nd-tone-bg); color: var(--nd-tone); }

/* Header */
.nd-header { background: var(--nd-head); border-bottom: 1px solid var(--nd-line); position: relative; z-index: 50; }
.nd-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; min-height: 80px; padding-block: 14px; }
.nd-brand { margin-right: auto; }
.nd-brand__title { margin: 0; font-family: var(--nd-display); color: var(--nd-ink); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; }
.nd-brand__title a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nd-brand__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--nd-accent); box-shadow: 0 0 16px var(--nd-accent); }
.custom-logo { max-height: 56px; width: auto; }

.nd-header__panel { display: flex; align-items: center; gap: 14px; }
.nd-menu a { padding: 8px 16px; border-radius: 999px; font-weight: 500; color: var(--nd-ink); transition: background-color 0.15s ease, color 0.15s ease; }
.nd-menu a:hover { background: var(--nd-raise); }
.nd-menu .current-menu-item > a,
.nd-menu .current_page_item > a { background: var(--nd-raise); color: var(--nd-accent); font-weight: 600; }
.nd-menu .sub-menu { background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: 14px; }
.nd-menu .sub-menu a { border-radius: 8px; }

.nd-searchbox { position: relative; }
.nd-searchbox summary {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid #3a3a4f;
	border-radius: 12px;
	background: var(--nd-paper);
	color: var(--nd-ink);
	cursor: pointer;
	list-style: none;
}
.nd-searchbox summary::-webkit-details-marker { display: none; }
.nd-searchbox[open] summary { border-color: var(--nd-accent); color: var(--nd-accent); }
.nd-searchbox__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 86vw); padding: 12px; background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.nd-cta { box-shadow: 0 0 22px rgba(212, 255, 58, 0.25); }
.nd-cta:hover { box-shadow: 0 0 30px rgba(212, 255, 58, 0.45); }

.nd-trending { border-top: 1px solid var(--nd-line); }
.nd-trending__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-block: 10px; font-size: 0.9rem; }
.nd-trending__label { font-family: var(--nd-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-pink); }
.nd-trending a { color: var(--nd-muted); text-decoration: none; }
.nd-trending a:hover { color: var(--nd-accent); }

@media (max-width: 900px) {
	.nd-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #3a3a4f; border-radius: 12px; color: var(--nd-ink); font-weight: 600; cursor: pointer; }
	.nd-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 6px; }
	.nd-nav-toggle:checked ~ .nd-header__panel { display: flex; }
	.nd-menu { flex-direction: column; align-items: stretch; }
	.nd-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding-left: 16px; }
	.nd-searchbox { display: none; }
	.nd-mobile-search { display: block; }
	.nd-cta { align-self: flex-start; }
}
@media (min-width: 901px) {
	.nd-mobile-search { display: none; }
}

/* Three-column layout */
.nd-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 320px;
	grid-template-areas: "left main right";
	gap: 30px;
	align-items: start;
	padding-block: 36px 72px;
}
.nd-main { grid-area: main; min-width: 0; }
.nd-rail--left { grid-area: left; position: sticky; top: 24px; }
.nd-rail--right { grid-area: right; }
.nd-rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 1180px) {
	.nd-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main right" "left right"; }
	.nd-rail--left { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 860px) {
	.nd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; padding-block: 24px 56px; }
}

/* Boxes */
.nd-box { background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); padding: 18px; }
.widget.nd-box > .nd-box__title,
.nd-box--cats .nd-box__title,
.nd-box--pages .nd-box__title {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nd-muted);
}
.nd-catlist { display: flex; flex-direction: column; gap: 2px; }
.nd-cat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--nd-ink); font-weight: 500; transition: background-color 0.15s ease; }
.nd-cat::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-tone); box-shadow: 0 0 8px var(--nd-tone); }
.nd-cat__name { flex: 1; }
.nd-cat:hover,
.nd-cat.is-current { background: var(--nd-raise); }
.nd-count { font-size: 0.78rem; color: var(--nd-muted); }
.nd-pagelist a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--nd-ink); font-weight: 500; }
.nd-pagelist a:hover,
.nd-pagelist .current_page_item > a { background: var(--nd-raise); color: var(--nd-accent); }

.nd-box--random { padding: 20px; }
.nd-box--random .nd-box__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.nd-box__heading { margin: 0; font-size: 1.1rem; }
.nd-box__hint { padding: 4px 10px; border: 1px solid var(--nd-pink); border-radius: 999px; color: var(--nd-pink); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.nd-rand { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--nd-line); }
.nd-rand:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.nd-rand__thumb { border-radius: 12px; margin-bottom: 12px; }
.nd-rand__num { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: #0d0d12; color: var(--nd-ink); font-family: var(--nd-display); font-size: 0.66rem; font-weight: 700; }
.nd-rand__title { font-size: 0.98rem; line-height: 1.35; }
.nd-rand__title a:hover { color: var(--nd-accent); }
.nd-rand__text { font-size: 0.9rem; line-height: 1.6; color: var(--nd-muted); }
.nd-rand__more { color: var(--nd-accent); font-size: 0.9rem; text-decoration: none; }
.nd-rand__more:hover { text-decoration: underline; }
.widget.nd-box > :not(.nd-box__title) { margin: 10px 0; }
.widget.nd-box a { color: var(--nd-ink); }

@media (max-width: 1180px) and (min-width: 861px) {
	.nd-rail--left .nd-box { height: 100%; }
}
@media (max-width: 860px) {
	.nd-randlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 24px; }
	.nd-rand,
	.nd-rand:last-child { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--nd-line); }
}

/* Chips + meta */
.nd-chip { padding: 5px 12px; border-radius: 999px; background: #0d0d12; border: 1px solid var(--nd-tone); color: var(--nd-tone); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nd-chip:hover { background: var(--nd-tone); color: #0d0d12; }
.nd-meta { color: var(--nd-muted); }
.nd-meta a { color: var(--nd-ink); }

/* Full posts */
.nd-feed--full { display: flex; flex-direction: column; gap: 28px; }
.nd-full { background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; }
.nd-full__thumb { aspect-ratio: 16 / 8; }
.nd-full__body { padding: clamp(22px, 4vw, 34px); }
.nd-full__title { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.nd-full__title a:hover { color: var(--nd-accent); }
.nd-full .nd-meta { margin-bottom: 20px; }
.nd-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--nd-line); }
.nd-btn--ghost { background: transparent; color: var(--nd-accent); border: 1px solid var(--nd-accent); font-family: var(--nd-body); font-weight: 600; }
.nd-btn--ghost:hover { background: var(--nd-accent); color: #0d0d12; }

/* Cards (archives, search, excerpt mode) */
.nd-feed--cards { display: flex; flex-direction: column; gap: 20px; }
.nd-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; transition: border-color 0.15s ease, transform 0.15s ease; }
.nd-card:hover { border-color: var(--nd-accent); transform: translateY(-2px); }
.nd-card__thumb { aspect-ratio: auto; height: 100%; min-height: 200px; }
.nd-card__body { padding: 22px 24px; }
.nd-card__title { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.nd-card__title a:hover { color: var(--nd-accent); }
.nd-card__excerpt { color: var(--nd-muted); font-size: 0.95rem; }
.nd-card__excerpt p { margin: 0 0 10px; }
.nd-card .nd-meta { font-size: 0.8rem; }
@media (max-width: 620px) {
	.nd-card { grid-template-columns: 1fr; }
	.nd-card__thumb { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Content */
.nd-entry { color: var(--nd-text); }
.nd-entry h2,
.nd-entry h3,
.nd-entry h4 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.nd-entry blockquote,
.nd-entry .wp-block-quote {
	padding: 22px 24px;
	background: linear-gradient(135deg, rgba(255, 61, 203, 0.12), rgba(61, 242, 255, 0.10));
	border: 1px solid var(--nd-line);
	border-radius: 16px;
	color: var(--nd-ink);
	font-size: 1.15rem;
	font-weight: 500;
}
.nd-entry a:hover { color: var(--nd-accent); }
.nd-entry pre { background: #07070b; border: 1px solid var(--nd-line); }
.nd-tags a { background: var(--nd-raise); color: var(--nd-muted); }
.nd-tags a:hover { color: var(--nd-accent); }

/* Single + page */
.nd-single { background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; }
.nd-single__head { padding: clamp(22px, 4vw, 38px) clamp(22px, 4vw, 38px) 18px; }
.nd-single__title { margin: 6px 0 16px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; }
.nd-single__body { padding: 26px clamp(22px, 4vw, 38px) clamp(22px, 4vw, 38px); }
.nd-author { background: var(--nd-raise); border-radius: 16px; }
.nd-author__name a:hover { color: var(--nd-accent); }
.nd-author__site { color: var(--nd-accent); }
.nd-postnav a { background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: 16px; transition: border-color 0.15s ease; }
.nd-postnav a:hover { border-color: var(--nd-accent); }
.nd-postnav__title { color: var(--nd-ink); }

.page-numbers { border: 1px solid #3a3a4f; border-radius: 12px; color: var(--nd-ink); }
a.page-numbers:hover { border-color: var(--nd-accent); color: var(--nd-accent); }
.page-numbers.current { background: var(--nd-accent); color: #0d0d12; border-color: var(--nd-accent); }

.nd-kicker { font-family: var(--nd-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-pink); }
.nd-404,
.nd-empty { border: 1px solid var(--nd-line); }
.nd-404__num { color: var(--nd-accent); text-shadow: 0 0 40px rgba(212, 255, 58, 0.45); }

.comment-body,
.comment-respond { color: var(--nd-text); }
.comment-author { color: var(--nd-ink); }
.reply a,
.comment-respond a { color: var(--nd-accent); }

/* Footer */
.nd-footer { background: var(--nd-head); border-top: 1px solid var(--nd-line); padding-block: 44px 30px; }
.nd-footer a { color: var(--nd-ink); text-decoration: none; }
.nd-footer__widgets { border-bottom: 1px solid var(--nd-line); }
.nd-footer-widget__title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--nd-muted); }
.nd-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.nd-footer__brand { font-family: var(--nd-display); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.03em; }
.nd-footer__brand span { color: var(--nd-accent); }
.nd-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.nd-footer__menu a:hover,
.nd-footer__bottom a:hover { color: var(--nd-accent); }
.nd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--nd-line); color: var(--nd-muted); font-size: 0.88rem; }
.nd-footer__bottom p { margin: 0; }
