/*
Theme Name: NexaBlog
Theme URI: https://wordpress.org/themes/
Author: NexaBlog
Description: A unique timeline blogging theme for guest-post sites. Each recent post sits on a vertical timeline with its date on the left, image and summary on the right, beside a Recent Posts sidebar (shuffled every visit, or latest) with Categories and Pages. Self-hosted font, 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: nexablog
Update URI: false
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk.woff2") format("woff2");
	font-weight: 100 900;
	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(--nx-bg);
	color: var(--nx-ink);
	font-family: var(--nx-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(--nx-display);
	line-height: 1.15;
	text-wrap: balance;
}

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

.nx-wrap { width: min(100% - 32px, var(--nx-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(--nx-accent);
	color: var(--nx-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.nx-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
	border: 0;
	border-radius: var(--nx-btn-radius, 8px);
	font-family: var(--nx-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;
}
.nx-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.nx-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nx-nav-button { display: none; }
.nx-burger { position: relative; width: 18px; height: 12px; }
.nx-burger::before,
.nx-burger::after,
.nx-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;
}
.nx-burger::before { top: 0; }
.nx-burger span { top: 5px; }
.nx-burger::after { top: 10px; }
.nx-nav-toggle:checked + .nx-nav-button .nx-burger::before { transform: translateY(5px) rotate(45deg); }
.nx-nav-toggle:checked + .nx-nav-button .nx-burger span { opacity: 0; }
.nx-nav-toggle:checked + .nx-nav-button .nx-burger::after { transform: translateY(-5px) rotate(-45deg); }
.nx-nav-toggle:focus-visible + .nx-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.nx-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nx-menu li { position: relative; }
.nx-menu a { display: block; text-decoration: none; }
.nx-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;
}
.nx-menu li:hover > .sub-menu,
.nx-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

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

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

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

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

.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--nx-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.nx-tags a::before { content: "#"; color: var(--nx-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(--nx-accent); }

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

.nx-postnav { margin-top: 36px; }
.nx-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nx-postnav .nav-next { grid-column: 2; text-align: right; }
.nx-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.nx-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-postnav__title { font-family: var(--nx-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.nx-postnav .nav-links { grid-template-columns: 1fr; }
	.nx-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(--nx-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 */
.nx-archive-head { margin-bottom: 32px; }
.nx-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.nx-archive-head__desc { color: var(--nx-muted); max-width: 60ch; }
.nx-archive-head .nx-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.nx-search { display: flex; gap: 8px; }
.nx-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(--nx-paper);
	color: var(--nx-ink);
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.nx-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--nx-accent); box-shadow: 0 0 0 3px var(--nx-ring, rgba(0, 0, 0, 0.12)); }
.nx-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
	border: 0;
	border-radius: var(--nx-input-radius, 8px);
	cursor: pointer;
}

.nx-comments { margin-top: 44px; }
.nx-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.nx-comment-list,
.nx-comment-list .children { margin: 0; padding: 0; list-style: none; }
.nx-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--nx-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(--nx-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(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-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 */
.nx-404,
.nx-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--nx-paper); border-radius: var(--nx-radius); }
.nx-404__num { margin: 0; font-family: var(--nx-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--nx-accent); }
.nx-404 .nx-search,
.nx-empty .nx-search { max-width: 460px; margin: 18px auto 22px; }

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

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


/* ==========================================================================
   News kit (shared structure for the news-style themes)
   ========================================================================== */
body { font-size: 1.02rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.012em; }
.nx-icon { flex: none; }

/* Badge / dot tones */
.nx-t0 { --nx-tone: #1f4fae; --nx-tone-bg: #e3ecfb; }
.nx-t1 { --nx-tone: #2b7a3d; --nx-tone-bg: #e2f3e6; }
.nx-t2 { --nx-tone: #b5591a; --nx-tone-bg: #fdeedd; }
.nx-t3 { --nx-tone: #b23a55; --nx-tone-bg: #fbe7ea; }
.nx-t4 { --nx-tone: #5b45a8; --nx-tone-bg: #ece8f8; }
.nx-thumb__fallback { background: var(--nx-tone-bg); color: var(--nx-tone); font-family: var(--nx-display); }

.nx-badge,
.nx-chip {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--nx-tone-bg);
	color: var(--nx-tone);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
}
.nx-badge:hover,
.nx-chip:hover { background: var(--nx-tone); color: #ffffff; }

.nx-dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--nx-muted); font-size: 0.85rem; }
.nx-dateline span,
.nx-dateline a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.nx-dateline a:hover { color: var(--nx-accent); }

.nx-btn { font-family: var(--nx-body); font-weight: 600; font-size: 0.95rem; padding: 0.75em 1.4em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.nx-btn:hover { background: var(--nx-accent-dark, var(--nx-ink)); color: #ffffff; transform: none; }
.nx-btn .nx-icon { transition: transform 0.15s ease; }
.nx-btn:hover .nx-icon { transform: translateX(3px); }

/* Header */
.nx-header { background: var(--nx-paper); border-bottom: 1px solid var(--nx-line); position: relative; z-index: 50; }
.nx-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 72px; padding-block: 10px; }
.nx-brand { flex: none; }
.nx-brand__title { margin: 0; font-family: var(--nx-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -0.03em; color: var(--nx-ink); }
.nx-brand__title a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nx-brand__mark { display: grid; flex: none; color: var(--nx-accent); }
.nx-brand__tagline { margin: 3px 0 0 var(--nx-logo-gap, 50px); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--nx-muted); }
.custom-logo { max-height: 56px; width: auto; }

.nx-header__panel { flex: 1; display: flex; align-items: center; gap: 20px; }
.nx-nav { margin-inline: auto; }
.nx-menu { gap: 2px 6px; }
.nx-menu > li > a { position: relative; padding: 12px 13px; white-space: nowrap; font-weight: 500; font-size: 0.95rem; color: var(--nx-ink); }
.nx-menu > .current-menu-item > a,
.nx-menu > .current_page_item > a { color: var(--nx-accent); }
.nx-menu a { display: inline-flex; align-items: center; gap: 4px; }
.nx-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--nx-accent); transform: scaleX(0); transition: transform 0.2s ease; }
.nx-menu > li > a:hover::after,
.nx-menu > .current-menu-item > a::after,
.nx-menu > .current_page_item > a::after,
.nx-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nx-menu > .current-menu-item > a { color: var(--nx-ink); }
.nx-menu .sub-menu { background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.nx-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.92rem; }
.nx-menu .sub-menu a:hover { background: var(--nx-soft); }
.nx-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.nx-header__tools { display: flex; align-items: center; gap: 10px; }
.nx-cta { white-space: nowrap; background: transparent; color: var(--nx-accent); border: 1px solid var(--nx-accent); box-shadow: none; font-family: var(--nx-body); font-size: 0.85rem; padding: 0.55em 1em; }
.nx-cta:hover { background: var(--nx-accent); color: #ffffff; transform: none; }
.nx-searchbox { position: relative; }
.nx-searchbox summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--nx-ink); cursor: pointer; list-style: none; }
.nx-searchbox summary::-webkit-details-marker { display: none; }
.nx-searchbox summary:hover,
.nx-searchbox[open] summary { background: var(--nx-soft); }
.nx-searchbox summary svg { width: 22px; height: 22px; }
.nx-searchbox__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 88vw); padding: 12px; background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: 0 16px 40px rgba(22, 32, 58, 0.12); }
.nx-mobile-search { display: none; }

@media (max-width: 1180px) {
	.nx-header__inner { justify-content: space-between; flex-wrap: wrap; }
	.nx-brand { flex: 1 1 0; min-width: 0; }
	.nx-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--nx-line); border-radius: 4px; font-weight: 600; cursor: pointer; }
	.nx-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
	.nx-nav-toggle:checked ~ .nx-header__panel { display: flex; }
	.nx-nav { margin: 0; }
	.nx-menu { flex-direction: column; align-items: stretch; }
	.nx-menu > li > a { display: flex; padding: 10px 4px; border-bottom: 1px solid var(--nx-line); }
	.nx-menu > li > a::after { display: none; }
	.nx-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.nx-header__tools { flex-wrap: wrap; }
	.nx-searchbox { display: none; }
	.nx-mobile-search { display: block; flex: 1 1 240px; }
}

@media (min-width: 1181px) and (max-width: 1360px) {
	.nx-header__inner { gap: 12px 18px; }
	.nx-menu > li > a { padding-inline: 9px; font-size: 0.92rem; }
	.nx-menu > li > a::after { left: 9px; right: 9px; }
	.nx-brand__title { font-size: 1.8rem; }
}

/* Layout */
.nx-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 28px;
	align-items: start;
	padding-block: 26px 60px;
}
.nx-main,
.nx-box { background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: var(--nx-panel-shadow); }
.nx-main { min-width: 0; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 28px; }
.nx-sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

@media (max-width: 1080px) {
	.nx-layout { grid-template-columns: minmax(0, 1fr); padding-block: 18px 48px; }
}
@media (max-width: 560px) {
	.nx-sidebar__pair { grid-template-columns: minmax(0, 1fr); }
}

/* Post rows */
.nx-feed--cards { display: flex; flex-direction: column; }
.nx-card {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 26px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--nx-line);
}
.nx-card:last-child { margin-bottom: 0; border-bottom: 0; }
.nx-card__thumb { aspect-ratio: 16 / 8.4; border-radius: var(--nx-radius); }
.nx-card__title { margin: 8px 0 6px; font-size: 1.32rem; font-weight: 600; line-height: 1.25; color: var(--nx-ink); }
.nx-card__title a:hover { color: var(--nx-accent); }
.nx-card__excerpt { margin: 0 0 10px; color: var(--nx-muted); font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 640px) {
	.nx-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.nx-card__thumb { aspect-ratio: 16 / 9; }
}

/* Full posts (Customizer option) */
.nx-feed--full { display: flex; flex-direction: column; gap: 34px; }
.nx-full { padding-bottom: 30px; border-bottom: 1px solid var(--nx-line); }
.nx-full:last-child { border-bottom: 0; }
.nx-full__thumb { border-radius: var(--nx-radius); margin-bottom: 18px; }
.nx-full__title { margin: 6px 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.nx-full__title a:hover { color: var(--nx-accent); }
.nx-full .nx-meta { margin-bottom: 18px; }
.nx-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.nx-btn--ghost { background: transparent; color: var(--nx-accent); border: 1px solid var(--nx-accent); box-shadow: none; font-size: 0.85rem; }

/* Sidebar boxes */
.nx-box { padding: 20px 20px 18px; }
.nx-box__title { position: relative; display: block; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--nx-line); font-size: 1.3rem; font-weight: 700; color: var(--nx-ink); }
.nx-box__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--nx-accent); }
.nx-box--cats .nx-box__title,
.nx-box--pages .nx-box__title { margin-bottom: 12px; }
.nx-pagelist li:first-child,
.nx-catlist li:first-child { border-top: 0 !important; }
.nx-pagelist li,
.nx-catlist li { border-bottom: 1px solid var(--nx-line); }
.nx-pagelist li:first-child,
.nx-catlist li:first-child { border-top: 1px solid var(--nx-line); }
.nx-pagelist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; font-size: 0.94rem; color: var(--nx-ink); }
.nx-pagelist a::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.6px solid var(--nx-muted); border-top: 1.6px solid var(--nx-muted); transform: rotate(45deg); margin-right: 4px; transition: transform 0.15s ease; }
.nx-pagelist a:hover,
.nx-pagelist .current_page_item > a { color: var(--nx-accent); }
.nx-pagelist a:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--nx-accent); }

.nx-cat { display: flex; align-items: center; gap: 12px; padding: 7px 2px; font-size: 0.94rem; color: var(--nx-ink); }
.nx-cat::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--nx-tone); }
.nx-cat__name { flex: 1; }
.nx-cat:hover .nx-cat__name,
.nx-cat.is-current .nx-cat__name { color: var(--nx-accent); }
.nx-count { min-width: 30px; padding: 1px 7px; border-radius: 3px; background: var(--nx-soft); color: var(--nx-muted); font-size: 0.8rem; text-align: center; }

.nx-box__head { position: relative; margin-bottom: 4px; }
.nx-box__head .nx-box__link { position: absolute; right: 0; top: 6px; }
.nx-box__head .nx-box__title { margin: 0; }
.nx-box__link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--nx-ink); text-decoration: none; }
.nx-box__link:hover { color: var(--nx-accent); }
.nx-postlist { margin: 0; padding: 0; list-style: none; }
.nx-mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--nx-line); }
.nx-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.nx-mini__thumb { aspect-ratio: 16 / 10; border-radius: var(--nx-radius); }
.nx-mini__thumb .nx-thumb__fallback { font-size: 2rem; }
.nx-mini__title { margin: 0 0 6px; font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
.nx-mini__title a { text-decoration: none; }
.nx-mini__title a:hover { color: var(--nx-accent); }
.nx-mini__text { margin: 0 0 6px; color: var(--nx-muted); font-size: 0.88rem; line-height: 1.5; }
.nx-mini__date { display: inline-flex; align-items: center; gap: 5px; color: var(--nx-muted); font-size: 0.8rem; }
.widget.nx-box > :not(.nx-box__title) { margin: 10px 0 0; }

/* Single + page */
.nx-single__head { margin-bottom: 20px; }
.nx-single__title { margin: 10px 0 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--nx-ink); }
.nx-single__thumb { margin-bottom: 26px; }
.nx-single__thumb img { border-radius: var(--nx-radius); }
.nx-entry { font-size: 1.06rem; color: var(--nx-text, var(--nx-ink)); }
.nx-entry h2,
.nx-entry h3,
.nx-entry h4 { color: var(--nx-ink); }
.nx-entry blockquote,
.nx-entry .wp-block-quote { padding: 18px 22px; background: var(--nx-soft); border-radius: var(--nx-radius); font-size: 1.15rem; font-weight: 500; line-height: 1.55; }
.nx-author { background: var(--nx-soft); border-radius: var(--nx-radius); }
.nx-postnav a { background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); transition: border-color 0.15s ease; }
.nx-postnav a:hover { border-color: var(--nx-accent); }
.nx-tags a:hover { background: var(--nx-accent); color: #ffffff; }
.nx-tags a:hover::before { color: #ffffff; }

.page-numbers { border: 1px solid var(--nx-line); border-radius: 4px; font-family: var(--nx-body); font-weight: 600; color: var(--nx-ink); }
a.page-numbers:hover { border-color: var(--nx-accent); color: var(--nx-accent); }
.page-numbers.current { background: var(--nx-accent); border-color: var(--nx-accent); color: #ffffff; }

.nx-kicker { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--nx-soft); color: var(--nx-accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nx-archive-head { padding-bottom: 18px; border-bottom: 1px solid var(--nx-line); margin-bottom: 22px; }
.nx-archive-head__title { color: var(--nx-ink); }
.nx-404,
.nx-empty { padding: 30px 10px; }

/* Footer */
.nx-footer { background: var(--nx-foot-bg, #121a2f); color: var(--nx-foot-ink, #e7ece9); padding-block: 40px 30px; }
.nx-footer a { color: inherit; text-decoration: none; }
.nx-footer__widgets { border-bottom: 1px solid rgba(231, 236, 233, 0.15); }
.nx-footer-widget__title { font-size: 1.15rem; color: #ffffff; }
.nx-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.nx-footer__brand { font-family: var(--nx-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }
.nx-footer__brand .nx-brand__hl { color: var(--nx-foot-hl, #9db8ff); }
.nx-footer__credit { margin: 8px 0 0; opacity: 0.78; font-size: 0.88rem; }
.nx-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.nx-footer__menu a:hover,
.nx-footer__top:hover { color: var(--nx-foot-hl, #9db8ff); }
.nx-footer__top { font-size: 0.88rem; font-weight: 600; }

@media (max-width: 560px) {
	.nx-brand__title { font-size: 1.55rem; }
	.nx-brand__tagline { display: none; }
}

.nx-featured__body > .nx-badge,
.nx-card__body > .nx-badge { align-self: flex-start; }


/* ==========================================================================
   NexaBlog look (Design 5: timeline)
   ========================================================================== */
:root {
	--nx-bg: #f6f7fb;
	--nx-paper: #ffffff;
	--nx-ink: #141a33;
	--nx-text: #283152;
	--nx-muted: #5a6280;
	--nx-soft: #eef0fb;
	--nx-line: #e5e7f2;
	--nx-accent: #4f46e5;
	--nx-accent-dark: #3730a3;
	--nx-on-accent: #ffffff;
	--nx-link: #4f46e5;
	--nx-radius: 10px;
	--nx-btn-radius: 8px;
	--nx-input-radius: 8px;
	--nx-img-radius: 8px;
	--nx-focus: #4f46e5;
	--nx-ring: rgba(79, 70, 229, 0.18);
	--nx-panel-shadow: 0 1px 3px rgba(20, 26, 51, 0.05);
	--nx-foot-bg: #141a33;
	--nx-foot-hl: #a5b4fc;
	--nx-logo-gap: 48px;
	--nx-display: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--nx-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--nx-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--nx-wrap: 1340px;
}

body { font-size: 1.02rem; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
.nx-brand__title { font-weight: 800; letter-spacing: -0.03em; }

.nx-layout { gap: 26px; padding-top: 28px; }
@media (min-width: 1081px) {
	.nx-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
.nx-main { padding: 22px 26px 28px; }

/* Timeline */
.nx-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.nx-timeline::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 118px; width: 2px; background: linear-gradient(180deg, var(--nx-accent), #06b6d4 40%, #ec4899 75%, #f59e0b); opacity: 0.55; }
.nx-step { position: relative; display: grid; grid-template-columns: 96px 44px minmax(0, 1fr); align-items: start; padding-block: 14px; }
.nx-step + .nx-step .nx-step__card { border-top: 1px solid var(--nx-line); padding-top: 28px; }
.nx-step + .nx-step .nx-step__date,
.nx-step + .nx-step .nx-step__dot { margin-top: 14px; }
.nx-step__date { display: flex; flex-direction: column; align-items: flex-end; padding-top: 4px; line-height: 1; text-align: right; }
.nx-step__day { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--nx-ink); }
.nx-step__month { margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-step__dot { justify-self: center; width: 14px; height: 14px; margin-top: 14px; border: 3px solid var(--nx-paper); border-radius: 50%; background: var(--nx-accent); box-shadow: 0 0 0 2px var(--nx-accent); }
.nx-step:nth-child(4n + 2) .nx-step__dot { background: #06b6d4; box-shadow: 0 0 0 2px #06b6d4; }
.nx-step:nth-child(4n + 3) .nx-step__dot { background: #ec4899; box-shadow: 0 0 0 2px #ec4899; }
.nx-step:nth-child(4n + 4) .nx-step__dot { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.nx-step__card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding-bottom: 14px; }
.nx-step__thumb { aspect-ratio: 4 / 3; border-radius: var(--nx-img-radius); }
.nx-step__body { display: flex; flex-direction: column; gap: 6px; }
.nx-step__body > .nx-badge { align-self: flex-start; }
.nx-step__title { margin: 2px 0 0; font-size: 1.28rem; line-height: 1.25; }
.nx-step__title a { text-decoration: none; }
.nx-step__title a:hover { color: var(--nx-link); }
.nx-step__excerpt { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--nx-muted); }
.nx-step .nx-dateline { margin-top: 4px; gap: 4px 18px; font-size: 0.8rem; }
@media (max-width: 760px) {
	.nx-timeline::before { left: 7px; }
	.nx-step { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "dot date" "dot card"; row-gap: 10px; }
	.nx-step__dot { grid-area: dot; justify-self: start; margin-top: 4px; }
	.nx-step__date { grid-area: date; flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
	.nx-step__day { font-size: 1.4rem; }
	.nx-step__month { margin-top: 0; }
	.nx-step__card { grid-area: card; grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.nx-step + .nx-step .nx-step__card { padding-top: 0; border-top: 0; }
	.nx-step + .nx-step { border-top: 1px solid var(--nx-line); padding-top: 22px; }
	.nx-step + .nx-step .nx-step__date,
	.nx-step + .nx-step .nx-step__dot { margin-top: 0; }
	.nx-step__thumb { aspect-ratio: 16 / 9; }
}

.nx-box__title { font-size: 1.25rem; }
.nx-single__title { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.025em; }
.nx-entry blockquote,
.nx-entry .wp-block-quote { border-left: 4px solid var(--nx-accent); }
