/*
Theme Name: Netstan News
Theme URI: https://netstan.com/netstan-news
Author: NETSTAN
Author URI: https://netstan.com
Description: Netstan News is a fast, premium magazine theme for newsrooms, bloggers and multi-author publications. Four style presets, a breaking-news ticker, trending posts, reading tools, self-hosted fonts, zero jQuery and a one-click demo importer.
Version: 1.3.8
Requires at least: 6.4
Tested up to: 7.1
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: netstan-news
Tags: news, blog, magazine, grid-layout, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, block-patterns, wide-blocks

Netstan News is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Design tokens

   Colours, radius, container width and fonts are custom properties. The
   values below are only fallbacks: the theme prints the active preset's
   values (inc/design.php) right after this file. Dark mode changes the same
   tokens once - there is no per-component dark-mode CSS.
   ========================================================================== */

:root {
	--nn-accent: #c8102e;
	--nn-accent-dark: #a50d26;
	--nn-on-accent: #fff;
	--nn-accent-text: var(--nn-accent);
	--nn-radius: 10px;
	--nn-radius-sm: 6px;
	--nn-container: 1200px;
	--nn-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--nn-font-head: var(--nn-font-body);

	--nn-bg: #fff;
	--nn-surface: #fff;
	--nn-surface-2: #f5f6f8;
	--nn-text: #15181d;
	--nn-text-2: #3d4451;
	--nn-muted: #667085;
	--nn-border: #e5e7eb;
	--nn-ink: #15181d;
	--nn-ticker-bg: #101216;
	--nn-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
	--nn-shadow-md: 0 14px 30px -10px rgba(16, 24, 40, 0.28);

	--nn-topbar-h: 36px;
	--nn-bar-h: 88px;
	--nn-sticky-offset: 124px;

	color-scheme: light dark;
}

:root.nn-light {
	color-scheme: light;
}

:root.nn-dark {
	color-scheme: dark;
	--nn-bg: #0e1013;
	--nn-surface: #161a1f;
	--nn-surface-2: #1c2127;
	--nn-text: #eef0f3;
	--nn-text-2: #c7ccd4;
	--nn-muted: #98a1ae;
	--nn-border: #262c34;
	--nn-ink: #eef0f3;
	--nn-ticker-bg: #000;
	--nn-accent-text: color-mix(in srgb, var(--nn-accent) 62%, #fff);
	--nn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
	--nn-shadow-md: 0 16px 34px -10px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
	:root:not(.nn-light) {
		--nn-bg: #0e1013;
		--nn-surface: #161a1f;
		--nn-surface-2: #1c2127;
		--nn-text: #eef0f3;
		--nn-text-2: #c7ccd4;
		--nn-muted: #98a1ae;
		--nn-border: #262c34;
		--nn-ink: #eef0f3;
		--nn-ticker-bg: #000;
		--nn-accent-text: color-mix(in srgb, var(--nn-accent) 62%, #fff);
		--nn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
		--nn-shadow-md: 0 16px 34px -10px rgba(0, 0, 0, 0.7);
	}
}

/* Smooth cross-page fades in browsers that support cross-document view
   transitions; everywhere else this is ignored. */
@view-transition {
	navigation: auto;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Safety net: some imported articles carry legacy markup (inline-width
	   images, bare pasted URLs) that can push an element wider than the
	   viewport. Set on <html> only - overflow on <body> would break the
	   sticky header. */
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--nn-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--nn-text);
	background: var(--nn-bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

::selection {
	background: var(--nn-accent);
	color: var(--nn-on-accent);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.4em;
	font-family: var(--nn-font-head);
	font-weight: 800;
	line-height: 1.2;
}

.nn-font-serif h1,
.nn-font-serif h2,
.nn-font-serif h3,
.nn-font-serif h4 {
	font-weight: 700;
	letter-spacing: -0.005em;
}

p {
	margin: 0 0 1em;
}

button {
	font-family: inherit;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--nn-accent-text);
	outline-offset: 2px;
	border-radius: 3px;
}

.screen-reader-text,
.nn-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

a.nn-visually-hidden:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--nn-accent);
	color: var(--nn-on-accent);
	font-weight: 700;
	border-radius: var(--nn-radius-sm);
}

.nn-container {
	width: 100%;
	max-width: var(--nn-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.nn-site-header {
	position: relative;
	z-index: 60;
	background: var(--nn-bg);
	border-bottom: 1px solid var(--nn-border);
}

/* Sticky header: only the menu strip stays on screen. The header is pulled up
   by the height of the top bar + logo bar, so it "docks" once they scroll away. */
.nn-sticky .nn-site-header {
	position: sticky;
	top: calc(-1 * var(--nn-sticky-offset));
}

.nn-sticky:not(.nn-has-topbar) {
	--nn-sticky-offset: 88px;
}

.nn-sticky .nn-site-header.is-stuck {
	box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.5);
}

.admin-bar.nn-sticky .nn-site-header {
	top: calc(32px - var(--nn-sticky-offset));
}

.nn-topbar {
	height: var(--nn-topbar-h);
	border-bottom: 1px solid var(--nn-border);
	font-size: 13px;
	color: var(--nn-muted);
}

.nn-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
}

.nn-topbar-links {
	display: flex;
	align-items: center;
	gap: 18px;
}

.nn-topbar-links a:hover {
	color: var(--nn-accent-text);
	text-decoration: none;
}

.nn-header-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: var(--nn-bar-h);
	gap: 16px;
}

.nn-header-tools {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	order: 1;
}

.nn-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--nn-text);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.nn-icon-btn:hover {
	background: var(--nn-surface-2);
}

.nn-icon-btn svg {
	width: 20px;
	height: 20px;
}

.nn-menu-toggle {
	display: none;
}

.nn-site-branding {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	min-width: 0;
	max-width: 60%;
	text-align: center;
}

.nn-site-title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nn-site-title a:hover {
	text-decoration: none;
}

.nn-custom-logo-link img {
	max-height: 56px;
	max-width: 100%;
	width: auto;
	margin: 0 auto;
}

.nn-header-actions {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	order: 2;
}

.nn-subscribe-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--nn-accent);
	color: var(--nn-on-accent);
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--nn-radius-sm);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.nn-subscribe-btn:hover {
	background: var(--nn-accent-dark);
	color: var(--nn-on-accent);
	text-decoration: none;
	transform: translateY(-1px);
}

/* Left-aligned logo variant (desktop only; phones always centre the logo). */
@media (min-width: 681px) {
	.nn-header-left .nn-header-bar {
		justify-content: flex-start;
	}

	.nn-header-left .nn-site-branding {
		position: static;
		transform: none;
		order: 0;
		max-width: none;
		margin-right: auto;
		text-align: left;
	}

	.nn-header-left .nn-custom-logo-link img {
		margin: 0;
	}

	.nn-header-left .nn-primary-nav,
	.nn-header-left .nn-primary-nav ul {
		justify-content: flex-start;
	}
}

/* Primary navigation */

.nn-nav-wrap {
	border-top: 1px solid var(--nn-border);
	background: var(--nn-surface);
}

.nn-primary-nav {
	display: flex;
	justify-content: center;
}

.nn-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
}

.nn-primary-nav li {
	position: relative;
}

.nn-primary-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 15px 14px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nn-text-2);
	transition: color 0.15s ease;
}

.nn-primary-nav a::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 8px;
	height: 2px;
	background: var(--nn-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.22s ease;
}

.nn-primary-nav a:hover,
.nn-primary-nav .current-menu-item > a,
.nn-primary-nav .current-menu-ancestor > a,
.nn-primary-nav .current_page_item > a {
	color: var(--nn-accent-text);
	text-decoration: none;
}

.nn-primary-nav a:hover::before,
.nn-primary-nav .current-menu-item > a::before,
.nn-primary-nav .current-menu-ancestor > a::before,
.nn-primary-nav .current_page_item > a::before {
	transform: scaleX(1);
}

.nn-primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.7;
}

.nn-primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 220px;
	padding: 8px;
	background: var(--nn-surface);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius);
	box-shadow: var(--nn-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nn-primary-nav li:hover > .sub-menu,
.nn-primary-nav li:focus-within > .sub-menu,
.nn-primary-nav li.nn-sub-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nn-primary-nav .sub-menu a {
	display: flex;
	width: 100%;
	padding: 9px 12px;
	border-radius: var(--nn-radius-sm);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 600;
}

.nn-primary-nav .sub-menu a::before {
	display: none;
}

.nn-primary-nav .sub-menu a:hover {
	background: var(--nn-surface-2);
}

/* Search flyout */

.nn-search-flyout {
	display: none;
	padding: 16px 0;
	background: var(--nn-surface-2);
	border-top: 1px solid var(--nn-border);
}

.nn-search-flyout.is-open {
	display: block;
}

.nn-search-flyout form {
	margin: 0 auto;
}

/* ==========================================================================
   Breaking-news ticker
   ========================================================================== */

.nn-ticker {
	background: var(--nn-ticker-bg);
	color: #fff;
	font-size: 14px;
}

.nn-ticker-inner {
	display: flex;
	align-items: stretch;
	gap: 16px;
	height: 42px;
}

.nn-ticker-label {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	background: var(--nn-accent);
	color: var(--nn-on-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nn-ticker-label::before {
	content: "";
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
	animation: nn-pulse 1.6s ease-in-out infinite;
}

.nn-ticker-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.nn-ticker-track {
	display: flex;
	align-items: center;
	gap: 44px;
	width: max-content;
	height: 100%;
	animation: nn-marquee 60s linear infinite;
}

.nn-ticker-viewport:hover .nn-ticker-track,
.nn-ticker-viewport:focus-within .nn-ticker-track {
	animation-play-state: paused;
}

.nn-ticker-track li {
	flex: none;
	white-space: nowrap;
}

.nn-ticker-track a {
	color: rgba(255, 255, 255, 0.9);
}

.nn-ticker-track a:hover {
	color: #fff;
	text-decoration: underline;
}

@keyframes nn-marquee {
	to {
		transform: translateX(-50%);
	}
}

@keyframes nn-pulse {
	50% {
		opacity: 0.35;
	}
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.nn-section {
	padding-top: 36px;
	padding-bottom: 36px;
}

.nn-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--nn-border);
}

.nn-section-head-title {
	margin: 0;
	font-size: inherit;
}

.nn-section-title {
	display: inline-block;
	margin: 0 0 -1px;
	padding: 0 0 12px;
	font-family: var(--nn-font-body);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nn-text);
	border-bottom: 3px solid var(--nn-cat, var(--nn-accent));
}

a.nn-section-title:hover {
	color: var(--nn-cat, var(--nn-accent-text));
	text-decoration: none;
}

.nn-view-all {
	padding-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nn-accent-text);
	white-space: nowrap;
}

/* ==========================================================================
   Ad slots
   ========================================================================== */

.nn-ad-slot {
	padding: 24px 0;
	text-align: center;
}

.nn-ad-label {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nn-muted);
}

.nn-ad-slot-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 728px;
	min-height: 90px;
	margin: 0 auto;
	overflow: hidden;
}

.nn-ad-slot-inner img {
	max-width: 100%;
	height: auto;
}

/* The space is reserved up front so a late-loading ad never shoves the
   article text down (no layout shift). */
.nn-ad-inline {
	margin: 28px 0;
	padding: 16px 0;
	background: var(--nn-surface-2);
	border-radius: var(--nn-radius);
}

.nn-ad-inline .nn-ad-slot-inner {
	min-height: 250px;
}

/* ==========================================================================
   Category label, meta, cards
   ========================================================================== */

.nn-cat-label {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.nn-cat-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	border-radius: var(--nn-radius-sm);
}

.nn-cat-badge:hover {
	opacity: 0.88;
	text-decoration: none;
}

.nn-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 6px;
	font-size: 13px;
	color: var(--nn-muted);
}

.nn-meta a {
	font-weight: 700;
	color: var(--nn-text-2);
}

.nn-meta a:hover {
	color: var(--nn-accent-text);
}

.nn-card-excerpt {
	margin: 6px 0 10px;
	font-size: 14px;
	color: var(--nn-text-2);
}

.nn-card-title {
	margin-bottom: 6px;
	font-size: 18px;
}

.nn-card-title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size 0.3s ease, color 0.15s ease;
}

.nn-card-title a:hover {
	background-size: 100% 2px;
	text-decoration: none;
}

.nn-grid-4 .nn-card-title,
.nn-split-grid .nn-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nn-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--nn-surface);
	border-radius: var(--nn-radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nn-cards-bordered .nn-card {
	border: 1px solid var(--nn-border);
}

.nn-cards-bordered .nn-card:hover {
	border-color: var(--nn-accent);
}

.nn-cards-elevated .nn-card {
	box-shadow: var(--nn-shadow-sm);
}

.nn-cards-elevated .nn-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--nn-shadow-md);
}

.nn-cards-flat .nn-card {
	background: transparent;
	overflow: visible;
	border-radius: 0;
}

.nn-cards-flat .nn-thumb {
	border-radius: var(--nn-radius);
}

.nn-cards-flat .nn-card-body {
	padding: 14px 0 0;
}

.nn-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}

.nn-card-body .nn-meta {
	margin-top: auto;
}

.nn-thumb {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--nn-surface-2);
}

.nn-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nn-card:hover .nn-thumb img {
	transform: scale(1.05);
}

/* Posts with no featured image get a branded block instead of a hole. */
.nn-thumb-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--nn-cat, var(--nn-accent)), color-mix(in srgb, var(--nn-cat, var(--nn-accent)) 55%, #000));
}

.nn-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: #fff;
	background: rgba(0, 0, 0, 0.58);
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.nn-card:hover .nn-play {
	background: var(--nn-accent);
	transform: translate(-50%, -50%) scale(1.08);
}

.nn-author-avatar {
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 2px;
	border-radius: 50%;
	object-fit: cover;
	vertical-align: middle;
}

/* Overlay card: the title sits on the image. The image fills the card, so the
   card's height comes from min-height (set per placement below). */
.nn-card--overlay {
	display: block;
	color: #fff;
	background: #0b0d10;
	border: 0;
}

.nn-card--overlay .nn-thumb {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.nn-card--overlay .nn-card-body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	padding: 90px clamp(18px, 3vw, 32px) clamp(18px, 3vw, 30px);
	background: linear-gradient(to top, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.66) 55%, rgba(8, 10, 14, 0) 100%);
}

.nn-card--overlay .nn-card-title {
	margin-bottom: 8px;
	font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem);
	line-height: 1.18;
}

.nn-card--overlay .nn-card-title a,
.nn-card--overlay .nn-meta a {
	color: #fff;
}

.nn-card--overlay .nn-card-excerpt,
.nn-card--overlay .nn-meta {
	color: rgba(255, 255, 255, 0.82);
}

.nn-card--overlay .nn-card-excerpt {
	max-width: 62ch;
	font-size: 15px;
}

.nn-cards-flat .nn-card--overlay {
	border-radius: var(--nn-radius);
	overflow: hidden;
}

.nn-cards-flat .nn-card--overlay .nn-card-body {
	padding: 90px clamp(18px, 3vw, 32px) clamp(18px, 3vw, 30px);
}

/* ==========================================================================
   Hero, latest rail, trending, grids
   ========================================================================== */

.nn-hero {
	display: grid;
	grid-template-columns: 1fr 2.1fr 1fr;
	gap: 28px;
	padding-top: 32px;
	padding-bottom: 12px;
	align-items: stretch;
}

.nn-hero-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nn-hero-side .nn-card {
	flex: 1;
}

.nn-hero-side .nn-card-title {
	font-size: 16px;
}

.nn-hero-featured {
	display: flex;
}

.nn-hero-featured .nn-card {
	flex: 1;
	min-height: 480px;
}

/* "Grid Front" homepage layout: a bold asymmetric grid, no side rail. */

.nn-hero-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	padding-top: 32px;
	padding-bottom: 12px;
}

.nn-hero-grid-main {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.nn-hero-grid-main .nn-card {
	min-height: 520px;
}

.nn-hero-grid-item .nn-card {
	min-height: 252px;
}

.nn-latest-rail-title {
	margin-bottom: 8px;
	border-bottom: 1px solid var(--nn-border);
}

.nn-latest-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--nn-border);
}

.nn-latest-item:first-of-type {
	padding-top: 6px;
}

.nn-latest-item .nn-thumb {
	flex: none;
	width: 72px;
	height: 72px;
	aspect-ratio: 1;
	border-radius: var(--nn-radius-sm);
}

.nn-latest-item .nn-play {
	width: 26px;
	height: 26px;
	box-shadow: none;
}

.nn-latest-item .nn-play svg {
	width: 13px;
	height: 13px;
}

.nn-latest-item-title {
	margin-bottom: 4px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
}

.nn-latest-item-title a:hover {
	color: var(--nn-accent-text);
	text-decoration: none;
}

/* Trending */

.nn-trending--strip {
	padding-top: 28px;
	padding-bottom: 8px;
}

.nn-trending--strip .nn-trending-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0 28px;
}

.nn-trending-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 4px 0;
}

.nn-trending-num {
	flex: none;
	min-width: 2ch;
	font-family: var(--nn-font-head);
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--nn-accent);
}

.nn-trending-link {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
	line-height: 1.32;
}

.nn-trending-link:hover {
	color: var(--nn-accent-text);
	text-decoration: none;
}

.nn-trending--list .nn-trending-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--nn-border);
}

.nn-trending--list .nn-trending-item:first-child {
	padding-top: 0;
}

.nn-trending--list .nn-trending-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.nn-trending--list .nn-trending-num {
	font-size: 1.9rem;
}

/* Grids */

.nn-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.nn-split-section {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 28px;
}

.nn-split-featured {
	display: flex;
}

.nn-split-featured .nn-card {
	flex: 1;
	min-height: 400px;
}

.nn-split-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.nn-split-grid .nn-card-title {
	font-size: 16px;
}

.nn-archive-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

/* ==========================================================================
   Single / page / archive content
   ========================================================================== */

.nn-content-area {
	padding-top: 40px;
	padding-bottom: 40px;
}

.nn-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
}

.nn-layout.has-sidebar {
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
}

/* Grid items default to min-width: auto, so one oversized child (an old
   inline-width image, a long pasted URL) could widen the whole column. */
.nn-main,
.nn-sidebar {
	min-width: 0;
}

.nn-entry-header {
	margin-bottom: 22px;
}

.nn-entry-title {
	font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
}

.nn-entry-header .nn-cat-label {
	display: flex;
	margin-bottom: 12px;
}

.nn-entry-header .nn-meta {
	margin-top: 10px;
}

.nn-updated {
	color: var(--nn-muted);
}

/* Article tools */

.nn-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-top: 16px;
	padding: 10px 0;
	border-top: 1px solid var(--nn-border);
	border-bottom: 1px solid var(--nn-border);
	font-size: 13px;
	color: var(--nn-muted);
}

.nn-tool-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: auto;
	font-weight: 600;
}

.nn-tool-group {
	display: inline-flex;
	gap: 6px;
}

.nn-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nn-text);
	background: var(--nn-surface-2);
	border: 1px solid var(--nn-border);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nn-tool:hover {
	border-color: var(--nn-accent);
}

.nn-tool[aria-pressed="true"] {
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	border-color: var(--nn-accent);
}

.nn-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 120;
	height: 3px;
	pointer-events: none;
}

.admin-bar .nn-progress {
	top: 32px;
}

.nn-progress-bar {
	display: block;
	height: 100%;
	background: var(--nn-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.nn-entry-thumbnail {
	margin: 0 0 26px;
}

.nn-entry-thumbnail img {
	width: 100%;
	border-radius: var(--nn-radius);
}

.nn-entry-thumbnail figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--nn-muted);
}

.nn-entry-content {
	font-size: calc(1.0625rem * var(--nn-article-scale, 1));
	line-height: 1.8;
	color: var(--nn-text-2);
	overflow-wrap: break-word;
	word-break: break-word;
}

.nn-entry-content > * + * {
	margin-top: 1.25em;
}

.nn-entry-content p {
	margin-bottom: 0;
}

.nn-entry-content h2,
.nn-entry-content h3,
.nn-entry-content h4 {
	margin-top: 1.7em;
	margin-bottom: 0;
	color: var(--nn-text);
}

.nn-entry-content h2 {
	font-size: 1.6em;
}

.nn-entry-content h3 {
	font-size: 1.3em;
}

.nn-entry-content a {
	color: var(--nn-accent-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nn-entry-content ul,
.nn-entry-content ol {
	padding-left: 1.4em;
}

.nn-entry-content ul {
	list-style: disc;
}

.nn-entry-content ol {
	list-style: decimal;
}

.nn-entry-content li + li {
	margin-top: 0.4em;
}

.nn-entry-content img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: var(--nn-radius-sm);
}

/* [caption] wraps its image in a figure carrying an inline width. */
.nn-entry-content .wp-caption,
.nn-entry-content .wp-video {
	max-width: 100%;
}

.nn-entry-content .wp-caption img {
	width: auto;
}

.nn-entry-content .wp-caption-text,
.nn-entry-content figcaption {
	margin-top: 8px;
	font-size: 0.85em;
	color: var(--nn-muted);
	text-align: center;
}

.nn-entry-content iframe,
.nn-entry-content video,
.nn-entry-content audio,
.nn-entry-content embed,
.nn-entry-content object {
	max-width: 100%;
}

.nn-entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.nn-entry-content th,
.nn-entry-content td {
	padding: 8px 12px;
	text-align: left;
	border: 1px solid var(--nn-border);
}

.nn-entry-content .alignleft {
	float: left;
	max-width: 50%;
	margin: 6px 24px 16px 0;
}

.nn-entry-content .alignright {
	float: right;
	max-width: 50%;
	margin: 6px 0 16px 24px;
}

.nn-entry-content .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.nn-entry-content blockquote,
.nn-entry-content .wp-block-quote {
	margin-right: 0;
	margin-left: 0;
	padding: 6px 0 6px 22px;
	font-family: var(--nn-font-head);
	font-size: 1.2em;
	font-style: italic;
	line-height: 1.55;
	color: var(--nn-text);
	border-left: 4px solid var(--nn-accent);
}

.nn-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.nn-entry-content cite {
	display: block;
	margin-top: 0.8em;
	font-family: var(--nn-font-body);
	font-size: 0.72em;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nn-muted);
}

.nn-entry-content cite::before {
	content: "\2014\00a0";
}

.nn-entry-content .wp-block-pullquote {
	padding: 22px 0;
	text-align: center;
	border-top: 3px solid var(--nn-accent);
	border-bottom: 3px solid var(--nn-accent);
}

.nn-entry-content .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
}

.nn-entry-content .wp-block-button__link {
	font-weight: 700;
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	border-radius: var(--nn-radius-sm);
}

.nn-entry-content .wp-block-button__link:hover {
	background: var(--nn-accent-dark);
	text-decoration: none;
}

.nn-entry-content .wp-block-separator,
.nn-entry-content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--nn-border);
}

.nn-entry-content pre,
.nn-entry-content code {
	font-family: ui-monospace, Consolas, Monaco, monospace;
	color: var(--nn-text);
	background: var(--nn-surface-2);
	border-radius: 4px;
}

.nn-entry-content code {
	padding: 2px 6px;
	font-size: 0.9em;
}

.nn-entry-content pre {
	padding: 16px;
	overflow-x: auto;
}

.nn-entry-content pre code {
	padding: 0;
	background: none;
}

/* [gallery]: with html5 gallery support core prints no gallery CSS. */
.nn-entry-content .gallery {
	display: grid;
	gap: 12px;
}

.nn-entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
.nn-entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.nn-entry-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.nn-entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.nn-entry-content .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.nn-entry-content .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.nn-entry-content .gallery-item {
	margin: 0;
}

.nn-entry-content .gallery-caption {
	margin-top: 4px;
	font-size: 13px;
	color: var(--nn-muted);
	text-align: center;
}

/* The single template always has a sidebar, so "wide"/"full" simply means
   the full width of the article column. */
.nn-entry-content .alignwide,
.nn-entry-content .alignfull {
	width: 100%;
	max-width: 100%;
}

/* Breadcrumbs, share, tags, author box, navigation, related */

.nn-breadcrumbs {
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--nn-muted);
}

.nn-breadcrumbs a {
	font-weight: 600;
	color: var(--nn-text-2);
}

.nn-breadcrumbs a:hover {
	color: var(--nn-accent-text);
}

.nn-breadcrumb-sep {
	margin: 0 4px;
	opacity: 0.5;
}

.nn-breadcrumb-current {
	color: var(--nn-muted);
}

.nn-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 30px 0;
	padding: 16px 0;
	border-top: 1px solid var(--nn-border);
	border-bottom: 1px solid var(--nn-border);
}

.nn-share-label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nn-muted);
}

.nn-share-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nn-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.nn-share-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
}

.nn-share-btn svg {
	width: 18px;
	height: 18px;
}

.nn-share-whatsapp { background: #25d366; }
.nn-share-facebook { background: #1877f2; }
.nn-share-twitter { background: #14171a; }
.nn-share-telegram { background: #229ed9; }
.nn-share-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.nn-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	z-index: 200;
	max-width: calc(100% - 32px);
	padding: 12px 20px;
	font-size: 14px;
	color: #fff;
	background: #1f2430;
	border-radius: var(--nn-radius-sm);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nn-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.nn-entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0;
}

.nn-tag-pill {
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nn-text-2);
	border: 1px solid var(--nn-border);
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.nn-tag-pill:hover {
	color: var(--nn-accent-text);
	border-color: var(--nn-accent);
	text-decoration: none;
}

.nn-author-box {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding: 16px 20px;
	background: var(--nn-surface-2);
	border-radius: var(--nn-radius);
}

.nn-author-box img {
	flex: none;
	border-radius: 50%;
}

.nn-author-box-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nn-muted);
}

.nn-author-box-name {
	font-size: 15px;
	font-weight: 800;
}

.nn-author-box-name:hover {
	color: var(--nn-accent-text);
	text-decoration: none;
}

.nn-author-box-bio {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--nn-text-2);
}

.nn-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0 0;
}

.nn-post-nav-item {
	display: block;
	padding: 16px 18px;
	background: var(--nn-surface);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius);
	transition: border-color 0.15s ease, transform 0.2s ease;
}

a.nn-post-nav-item:hover {
	border-color: var(--nn-accent);
	text-decoration: none;
	transform: translateY(-2px);
}

.nn-post-nav-item.is-empty {
	border: 0;
	background: none;
}

.nn-post-nav-next {
	text-align: right;
}

.nn-post-nav-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nn-muted);
}

.nn-post-nav-title {
	display: -webkit-box;
	overflow: hidden;
	font-weight: 700;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.nn-related-posts {
	margin: 48px 0;
}

.nn-author-header {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--nn-border);
}

.nn-author-header img {
	flex: none;
	border-radius: 50%;
}

.nn-author-header-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nn-accent-text);
}

.nn-author-header-bio {
	max-width: 640px;
	margin: 8px 0;
	font-size: 15px;
	color: var(--nn-text-2);
}

.nn-author-header-url {
	font-size: 13px;
	font-weight: 600;
	color: var(--nn-accent-text);
}

.nn-archive-count {
	padding-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nn-muted);
	white-space: nowrap;
}

.nn-archive-description {
	margin: -8px 0 24px;
	color: var(--nn-text-2);
}

.nn-no-results,
.nn-404 {
	padding: 20px 0 60px;
}

/* ==========================================================================
   Pagination, forms, comments
   ========================================================================== */

.nn-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

.nn-pagination a,
.nn-pagination span {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-sm);
}

.nn-pagination a:hover {
	color: var(--nn-accent-text);
	border-color: var(--nn-accent);
	text-decoration: none;
}

.nn-pagination .current {
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	border-color: var(--nn-accent);
}

.nn-search-form {
	display: flex;
	gap: 8px;
	max-width: 600px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	padding: 11px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--nn-text);
	background: var(--nn-surface);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-sm);
}

input:focus,
textarea:focus {
	border-color: var(--nn-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nn-accent) 25%, transparent);
}

.nn-search-form input[type="search"] {
	flex: 1;
	width: auto;
	min-width: 0;
}

.nn-search-form button,
.comment-form .form-submit input,
.nn-contact-form button,
.nn-contact-form input[type="submit"] {
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	border: 0;
	border-radius: var(--nn-radius-sm);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.nn-search-form button:hover,
.comment-form .form-submit input:hover,
.nn-contact-form input[type="submit"]:hover {
	background: var(--nn-accent-dark);
}

.nn-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--nn-border);
}

.nn-comments-title {
	margin-bottom: 20px;
	font-size: 20px;
}

.nn-comment-list,
.nn-comment-list ul.children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nn-comment-list ul.children {
	margin-left: 32px;
}

.nn-comment-list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--nn-border);
}

.nn-comment-list .comment-author img {
	margin-right: 8px;
	border-radius: 50%;
	vertical-align: middle;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	max-width: 480px;
	margin-top: 4px;
}

.comment-form textarea {
	min-height: 140px;
}

.comment-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--nn-text);
}

.comment-form p {
	margin-bottom: 14px;
}

.comment-notes,
.logged-in-as {
	font-size: 14px;
	color: var(--nn-muted);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* The contact form puts a <br> between each label and field; labels are blocks now. */
.nn-contact-form br {
	display: none;
}

/* Contact page */

.nn-contact-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 20px 0 28px;
	padding: 16px 20px;
	background: var(--nn-surface-2);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius);
}

.nn-contact-info p {
	margin: 0;
}

.nn-form-notice {
	margin-bottom: 20px;
	padding: 14px 18px;
	font-size: 15px;
	border-radius: var(--nn-radius-sm);
}

.nn-form-notice ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}

.nn-form-success {
	color: #166534;
	background: #ecfdf3;
	border: 1px solid #86efac;
}

.nn-form-error {
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fca5a5;
}

:root.nn-dark .nn-form-success {
	color: #86efac;
	background: rgba(34, 197, 94, 0.12);
	border-color: #166534;
}

:root.nn-dark .nn-form-error {
	color: #fca5a5;
	background: rgba(239, 68, 68, 0.12);
	border-color: #991b1b;
}

.nn-contact-form {
	max-width: 560px;
}

/* Sitemap page */

.nn-sitemap-section {
	margin-bottom: 32px;
}

.nn-sitemap-section .nn-section-title {
	margin-bottom: 14px;
}

.nn-sitemap-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 24px;
}

.nn-sitemap-count {
	font-size: 14px;
	color: var(--nn-muted);
}

/* ==========================================================================
   Sidebar and widgets
   ========================================================================== */

.widget {
	margin-bottom: 24px;
	padding: 20px;
	background: var(--nn-surface);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius);
}

.widget-title {
	margin-bottom: 16px;
	font-family: var(--nn-font-body);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--nn-border);
}

.widget-title span {
	display: inline-block;
	margin-bottom: -1px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--nn-accent);
}

.widget ul li {
	padding: 9px 0;
	border-bottom: 1px solid var(--nn-border);
}

.widget ul li:last-child {
	border-bottom: 0;
}

.widget ul ul {
	padding-left: 14px;
}

.widget a:hover {
	color: var(--nn-accent-text);
}

.nn-category-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
}

.nn-category-list a {
	font-weight: 600;
}

.nn-cat-count {
	min-width: 26px;
	padding: 1px 8px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	color: var(--nn-muted);
	background: var(--nn-surface-2);
	border-radius: 999px;
}

@media (min-width: 961px) and (min-height: 900px) {
	.nn-sidebar-inner {
		position: sticky;
		top: 20px;
	}

	.nn-sticky .nn-sidebar-inner {
		top: 72px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.nn-site-footer {
	margin-top: 20px;
	padding: 40px 0;
	background: var(--nn-surface-2);
	border-top: 1px solid var(--nn-border);
}

.nn-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nn-footer-text,
.nn-footer-credit,
.nn-footer-menu a {
	font-size: 14px;
	color: var(--nn-text-2);
}

.nn-footer-credit {
	margin-left: auto;
}

.nn-footer-credit a {
	font-weight: 600;
	color: var(--nn-accent-text);
}

.nn-footer-credit a:hover {
	text-decoration: underline;
}

.nn-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.nn-footer-menu a:hover {
	color: var(--nn-accent-text);
}

.nn-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	padding-top: 28px;
}

.nn-footer-widgets .widget {
	margin: 0;
}

.nn-social-links {
	display: flex;
	gap: 12px;
}

.nn-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--nn-bg);
	background: var(--nn-ink);
	border-radius: 50%;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.nn-social-links a:hover {
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	transform: translateY(-2px);
}

.nn-social-links svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.nn-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--nn-on-accent);
	background: var(--nn-accent);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.nn-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nn-back-to-top:hover {
	background: var(--nn-accent-dark);
}

.nn-back-to-top svg {
	flex: none;
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
	.nn-hero {
		grid-template-columns: 1fr;
	}

	.nn-hero-featured {
		order: 1;
	}

	.nn-hero-featured .nn-card {
		min-height: 400px;
	}

	.nn-hero-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.nn-hero-grid-main {
		grid-column: 1 / -1;
	}

	.nn-hero-grid-main .nn-card {
		min-height: 360px;
	}

	.nn-hero-side {
		order: 2;
		flex-direction: row;
	}

	.nn-hero-latest {
		order: 3;
	}

	.nn-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.nn-trending--strip .nn-trending-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px 24px;
	}

	.nn-split-section,
	.nn-layout.has-sidebar,
	.nn-archive-list {
		grid-template-columns: 1fr;
	}

	/* Sticky share bar: stays at the bottom of the screen while the article is on it. */
	.nn-share {
		position: sticky;
		bottom: 0;
		z-index: 30;
		margin-right: -4px;
		margin-left: -4px;
		padding: 12px 4px calc(12px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--nn-bg) 92%, transparent);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

@media (max-width: 680px) {
	.nn-container {
		padding-right: 16px;
		padding-left: 16px;
	}

	:root {
		--nn-bar-h: 60px;
	}

	.nn-topbar {
		display: none;
	}

	.nn-sticky .nn-site-header,
	.admin-bar.nn-sticky .nn-site-header {
		top: 0;
	}

	.nn-header-bar {
		justify-content: space-between;
		gap: 8px;
	}

	.nn-site-title {
		font-size: 20px;
		letter-spacing: 0.04em;
	}

	.nn-header-tools {
		gap: 0;
	}

	.nn-icon-btn {
		width: 34px;
		height: 34px;
	}

	.nn-site-branding {
		position: static;
		flex: 1;
		order: 1;
		max-width: none;
		transform: none;
	}

	.nn-header-tools {
		order: 0;
	}

	.nn-header-actions {
		order: 2;
	}

	.nn-custom-logo-link img {
		max-height: 30px;
	}

	.nn-subscribe-btn {
		padding: 8px 14px;
		font-size: 13px;
	}

	.nn-menu-toggle {
		display: inline-flex;
	}

	.nn-primary-nav {
		display: none;
		justify-content: flex-start;
	}

	.nn-primary-nav.is-open {
		display: block;
	}

	.nn-primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 0;
		padding: 8px 0;
	}

	.nn-primary-nav li {
		width: 100%;
	}

	.nn-primary-nav a {
		display: flex;
		padding: 13px 20px;
		font-size: 14px;
		letter-spacing: normal;
		text-transform: none;
	}

	.nn-primary-nav a::before {
		display: none;
	}

	.nn-primary-nav .sub-menu {
		position: static;
		display: none;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nn-primary-nav li:hover > .sub-menu,
	.nn-primary-nav li.nn-sub-open > .sub-menu {
		display: block;
	}

	.nn-ticker-inner {
		gap: 10px;
		height: 38px;
	}

	.nn-ticker-label {
		padding: 0 12px;
	}

	.nn-hero-side {
		flex-direction: column;
	}

	.nn-hero-featured .nn-card {
		min-height: 340px;
	}

	.nn-split-featured .nn-card {
		min-height: 320px;
	}

	.nn-card--overlay .nn-card-excerpt {
		display: none;
	}

	.nn-grid-4,
	.nn-split-grid,
	.nn-trending--strip .nn-trending-list {
		grid-template-columns: 1fr;
	}

	.nn-hero-grid {
		grid-template-columns: 1fr;
	}

	.nn-hero-grid-item .nn-card {
		min-height: 220px;
	}

	.nn-author-header,
	.nn-author-box {
		flex-direction: column;
		align-items: flex-start;
	}

	.nn-post-nav {
		grid-template-columns: 1fr;
	}

	.nn-footer-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.nn-footer-credit {
		margin-left: 0;
	}

	.nn-footer-menu,
	.nn-social-links {
		justify-content: center;
	}

	.nn-back-to-top {
		right: 14px;
		bottom: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom));
		width: 40px;
		height: 40px;
	}

	.nn-sitemap-list {
		grid-template-columns: 1fr;
	}

	.nn-entry-content .alignleft,
	.nn-entry-content .alignright {
		float: none;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	.nn-entry-content .gallery[class*="gallery-columns-"] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.admin-bar .nn-progress {
		top: 46px;
	}

	.admin-bar.nn-sticky .nn-site-header {
		top: calc(46px - var(--nn-sticky-offset));
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.nn-ticker-track {
		animation: none;
	}

	.nn-ticker-viewport {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.nn-ticker-track li[aria-hidden="true"] {
		display: none;
	}

	@view-transition {
		navigation: none;
	}
}

@media print {
	.nn-site-header,
	.nn-ticker,
	.nn-sidebar,
	.nn-site-footer,
	.nn-share,
	.nn-tools,
	.nn-back-to-top,
	.nn-progress,
	.nn-post-nav,
	.nn-related-posts,
	.nn-ad-slot {
		display: none !important;
	}
}
