/*
Theme Name: Netfleek
Theme URI: https://netfleek.com/
Author: Netfleek
Author URI: https://netfleek.com/
Description: A social-feed WordPress theme rebuilt from the original Netfleek layout. Purple card feed with a fixed search header, brief timeline cards that open in full on their own page, block-editor sidebars, likes, threaded comments and sharing. Every colour, font and layout dimension is editable in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netfleek
Tags: blog, one-column, two-columns, three-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style, full-width-template

Netfleek is distributed under the terms of the GNU GPL v2 or later.

Bundled resources:
- Icon outlines in assets/img/icons.svg are derived from Font Awesome Free 5.0.8
  (https://fontawesome.com) - icons licensed CC BY 4.0.
- Open Sans (assets/fonts/open-sans-*.woff2) - SIL Open Font License 1.1.
- Roboto (assets/fonts/roboto-*.woff2) - Apache License 2.0.

--------------------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------------
 1. Fonts
 2. Design tokens
 3. Reset & base
 4. Accessibility helpers
 5. Layout shell
 6. Site header & search
 7. Sidebars & widgets
 8. Welcome notice
 9. Feed tabs
10. Post card
11. Media
12. Action bar, share row, post menu
13. Entry content & blocks
14. Timeline
15. Comments
16. Forms & buttons
17. Pagination
18. Back to top
19. Site footer
20. Notices & empty states
21. Responsive
22. Print & motion
--------------------------------------------------------------
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/open-sans-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/open-sans-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/open-sans-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/roboto-300.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/roboto-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/roboto-500.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design tokens
   The Customizer rewrites these in a <style id="netfleek-customizer"> block,
   so every colour, font and dimension below is a live default, not a hardcode.
   ========================================================================== */

:root {
	/* Palette - taken verbatim from the original Netfleek stylesheet. */
	--nf-primary: #661da8;
	--nf-primary-dark: #501683;
	--nf-primary-darker: #350f57;
	--nf-accent: #e7d4f7;
	--nf-bg: #f3e9fb;
	--nf-surface: #ffffff;
	--nf-text: #263238;
	--nf-muted: #6b7c85;
	--nf-hairline: #e2e6e8;
	--nf-danger: #bd081c;
	--nf-success: #1b5e20;
	--nf-like: #f44336;
	--nf-link: var(--nf-primary);
	--nf-on-primary: #ffffff;

	/* Incidental neutrals. Not exposed as Customizer swatches, but tokenised so
	   a child theme or Additional CSS can repaint them along with the palette. */
	--nf-on-dark: #ffffff;
	--nf-overlay: rgba(0, 0, 0, 0.55);
	--nf-scrim: #000000;
	--nf-thread-bg: #f5f5f5;
	--nf-print-rule: #dddddd;

	/* Typography */
	--nf-font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--nf-font-heading: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--nf-font-ui: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--nf-fs-base: 14px;
	--nf-fs-xs: calc(var(--nf-fs-base) - 2px);
	--nf-fs-sm: calc(var(--nf-fs-base) - 1px);
	--nf-fs-md: calc(var(--nf-fs-base) + 1px);
	--nf-fs-lg: calc(var(--nf-fs-base) + 2px);
	--nf-fs-xl: calc(var(--nf-fs-base) + 4px);
	--nf-fs-2xl: calc(var(--nf-fs-base) + 8px);
	--nf-fs-3xl: calc(var(--nf-fs-base) + 11px);

	--nf-h-scale: 1.125;
	--nf-h6: var(--nf-fs-lg);
	--nf-h5: calc(var(--nf-h6) * var(--nf-h-scale));
	--nf-h4: calc(var(--nf-h5) * var(--nf-h-scale));
	--nf-h3: calc(var(--nf-h4) * var(--nf-h-scale));
	--nf-h2: calc(var(--nf-h3) * var(--nf-h-scale));
	--nf-h1: calc(var(--nf-h2) * var(--nf-h-scale));

	--nf-lh: 1.6;
	--nf-lh-tight: 1.3;
	--nf-heading-weight: 400;
	--nf-letter-spacing: 0;

	/* Layout */
	--nf-content-width: 666px;
	--nf-content-pct: 45%;
	--nf-sidebar-width: 240px;
	--nf-header-h: 46px;
	--nf-gap: 24px;
	--nf-pad: 15px;
	--nf-space: 20px;

	/* Surface treatment */
	--nf-radius: 4px;
	--nf-radius-lg: 10px;
	--nf-radius-pill: 999px;
	--nf-shadow-strength: 1;
	--nf-shadow: 0 6px 12px rgba(53, 15, 87, calc(0.16 * var(--nf-shadow-strength)));
	--nf-shadow-hover: 0 8px 20px rgba(53, 15, 87, calc(0.26 * var(--nf-shadow-strength)));
	--nf-shadow-sm: 0 2px 5px rgba(53, 15, 87, calc(0.18 * var(--nf-shadow-strength)));

	/* Motion */
	--nf-ease: 160ms ease;
}

/* ==========================================================================
   3. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nf-header-h) + 16px);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-base);
	line-height: var(--nf-lh);
	letter-spacing: var(--nf-letter-spacing);
	color: var(--nf-text);
	background-color: var(--nf-bg);
	-webkit-font-smoothing: antialiased;
}

@supports (min-height: 100dvh) {
	body {
		min-height: 100dvh;
	}
}

.nf-site-content {
	flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nf-font-heading);
	font-weight: var(--nf-heading-weight);
	line-height: var(--nf-lh-tight);
	color: var(--nf-text);
	margin: 0 0 0.5em;
}

h1 { font-size: var(--nf-h1); }
h2 { font-size: var(--nf-h2); }
h3 { font-size: var(--nf-h3); }
h4 { font-size: var(--nf-h4); }
h5 { font-size: var(--nf-h5); }
h6 { font-size: var(--nf-h6); }

p {
	margin: 0 0 1em;
}

a {
	color: var(--nf-link);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

/* The original removed every focus ring; restore a visible one for keyboards. */
:focus-visible {
	outline: 2px solid var(--nf-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.nf-header :focus-visible,
.nf-btn-gotop:focus-visible {
	outline-color: var(--nf-on-primary);
}

/* The original applied img { width: 100% } globally, which stretched every
   image on the page. Media is sized by its own container instead. */
img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

svg {
	fill: currentColor;
}

.nf-icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	flex: none;
	pointer-events: none;
}

hr {
	border: 0;
	border-top: 1px solid var(--nf-accent);
	margin: var(--nf-space) 0;
}

/* Form controls inherit the theme's type. Wrapped in :where() so they carry no
   specificity at all: an element+attribute selector would otherwise outrank a
   component's single class and repaint fields like the header search. */
:where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="password"],
	input[type="search"],
	input[type="number"],
	input[type="tel"],
	input[type="date"],
	textarea,
	select
) {
	font-family: inherit;
	font-size: var(--nf-fs-base);
	color: var(--nf-text);
}

/* ==========================================================================
   4. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--nf-surface);
	color: var(--nf-primary);
	font-weight: 600;
	box-shadow: var(--nf-shadow);
	border-radius: 0 0 var(--nf-radius) 0;
}

.skip-link:focus {
	left: 0;
	text-decoration: none;
}

/* ==========================================================================
   5. Layout shell
   Grid replaces the original float + margin:auto combination, which let the
   side banner overlap the feed.
   ========================================================================== */

.nf-shell {
	display: grid;
	gap: var(--nf-gap);
	align-items: start;
	justify-content: center;
	width: 100%;
	padding: 0 var(--nf-pad);
	margin: calc(var(--nf-header-h) + var(--nf-gap)) auto var(--nf-gap);
	grid-template-columns: minmax(0, var(--nf-content-width));
	grid-template-areas:
		"notice"
		"main";
}

.nf-main {
	grid-area: main;
	min-width: 0;
}

.nf-sidebar--left { grid-area: left; }
.nf-sidebar--right { grid-area: right; }
.nf-notice { grid-area: notice; }

/* No sidebar: keep the original 45% / 666px feed proportion. */
body.nf-layout-none .nf-shell {
	grid-template-columns: minmax(0, min(var(--nf-content-pct), var(--nf-content-width)));
}

body.nf-layout-left .nf-shell {
	grid-template-columns: var(--nf-sidebar-width) minmax(0, var(--nf-content-width));
	grid-template-areas:
		"notice main"
		"left   main";
	grid-template-rows: auto 1fr;
}

body.nf-layout-right .nf-shell {
	grid-template-columns: minmax(0, var(--nf-content-width)) var(--nf-sidebar-width);
	grid-template-areas:
		"main notice"
		"main right";
	grid-template-rows: auto 1fr;
}

body.nf-layout-both .nf-shell {
	grid-template-columns: var(--nf-sidebar-width) minmax(0, var(--nf-content-width)) var(--nf-sidebar-width);
	grid-template-areas:
		"notice main right"
		"left   main right";
	grid-template-rows: auto 1fr;
}

/* ==========================================================================
   6. Site header & search
   Flexbox replaces the original's negative-percentage absolute positioning
   (top:-36px; right:-87%) and its five media-query patches.
   ========================================================================== */

.nf-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--nf-header-h);
	padding: 0 var(--nf-pad);
	background-color: var(--nf-primary);
	border-bottom: 1px solid var(--nf-primary-dark);
	color: var(--nf-on-primary);
}

body.nf-header-static .nf-header {
	position: absolute;
}

.nf-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: inherit;
	max-width: 45%;
}

.nf-brand:hover,
.nf-brand:focus {
	text-decoration: none;
}

.nf-brand img,
.nf-brand .custom-logo {
	display: block;
	width: auto;
	height: calc(var(--nf-header-h) - 8px);
	max-height: 38px;
	border-radius: 4px;
}

.nf-brand__text {
	font-family: var(--nf-font-heading);
	font-size: var(--nf-fs-lg);
	font-weight: 500;
	color: var(--nf-on-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nf-search {
	position: relative;
	flex: 1 1 35%;
	max-width: 35%;
	min-width: 0;
	display: flex;
	align-items: center;
}

.nf-search__icon {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 18px;
	color: var(--nf-on-primary);
	opacity: 0.8;
	pointer-events: none;
}

.nf-search__field {
	width: 100%;
	height: 36px;
	padding: 0 14px 0 38px;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-base);
	color: var(--nf-on-primary);
	background-color: var(--nf-primary-dark);
	border: 0;
	border-radius: var(--nf-radius);
	appearance: none;
}

.nf-search__field::placeholder {
	color: var(--nf-on-primary);
	opacity: 0.72;
}

.nf-search__field::-webkit-search-cancel-button {
	filter: invert(1);
}

/* The same form used inside content, a sidebar or an empty state. */
.nf-search--inline {
	position: static;
	flex: 1 1 auto;
	max-width: none;
	gap: 8px;
}

.nf-search__field--inline {
	padding: 0 12px;
	color: var(--nf-text);
	background-color: var(--nf-surface);
	border: 1px solid var(--nf-accent);
}

.nf-search__field--inline::placeholder {
	color: var(--nf-muted);
	opacity: 1;
}

.nf-account {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	flex: none;
}

.nf-account__link {
	display: inline-flex;
	align-items: center;
	color: var(--nf-on-primary);
	font-size: 22px;
	line-height: 1;
}

.nf-account__link:hover,
.nf-account__link:focus {
	color: var(--nf-accent);
	text-decoration: none;
}

.nf-account__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: block;
}

.nf-btn-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	font-size: var(--nf-fs-base);
	color: var(--nf-on-primary);
	background-color: var(--nf-primary-dark);
	border-radius: 6px;
	white-space: nowrap;
}

.nf-btn-login:hover,
.nf-btn-login:focus {
	background-color: var(--nf-surface);
	color: var(--nf-text);
	text-decoration: none;
}

/* Primary nav */
.nf-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 18px;
	color: var(--nf-on-primary);
	background: none;
	border: 0;
	border-radius: var(--nf-radius);
	cursor: pointer;
}

.nf-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-nav a {
	display: block;
	padding: 6px 10px;
	font-size: var(--nf-fs-sm);
	color: var(--nf-on-primary);
	border-radius: var(--nf-radius);
	white-space: nowrap;
}

.nf-nav a:hover,
.nf-nav a:focus {
	background-color: var(--nf-primary-dark);
	text-decoration: none;
}

.nf-nav .current-menu-item > a {
	background-color: var(--nf-primary-dark);
}

/* ==========================================================================
   7. Sidebars & widgets
   Filled with the block editor at Appearance > Widgets.
   ========================================================================== */

.nf-sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--nf-gap);
}

body.nf-sticky-sidebars .nf-sidebar {
	position: sticky;
	top: calc(var(--nf-header-h) + var(--nf-gap));
}

.nf-widget {
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius-lg);
	box-shadow: var(--nf-shadow);
	padding: 16px;
	overflow-wrap: anywhere;
}

.nf-widget__title {
	font-family: var(--nf-font-heading);
	font-size: var(--nf-fs-lg);
	font-weight: 500;
	color: var(--nf-primary);
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--nf-accent);
}

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

.nf-widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--nf-hairline);
	font-size: var(--nf-fs-sm);
}

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

.nf-widget li a {
	color: var(--nf-text);
}

.nf-widget li a:hover,
.nf-widget li a:focus {
	color: var(--nf-primary);
}

.nf-widget .wp-block-search__inside-wrapper,
.nf-widget select {
	width: 100%;
}

.nf-widget select {
	padding: 8px;
	font-family: inherit;
	font-size: var(--nf-fs-sm);
	color: var(--nf-text);
	background-color: var(--nf-surface);
	border: 1px solid var(--nf-accent);
	border-radius: var(--nf-radius);
}

.nf-widget .wp-block-tag-cloud a,
.nf-widget .tagcloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 3px 9px;
	font-size: var(--nf-fs-xs) !important;
	color: var(--nf-primary);
	background-color: var(--nf-bg);
	border-radius: var(--nf-radius-pill);
}

.nf-widget .wp-block-tag-cloud a:hover,
.nf-widget .tagcloud a:hover {
	color: var(--nf-on-primary);
	background-color: var(--nf-primary);
	text-decoration: none;
}

.nf-widget .wp-block-latest-posts__post-title {
	font-weight: 600;
}

.nf-widget .wp-block-latest-posts__post-date,
.nf-widget .wp-block-latest-comments__comment-date {
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
}

.nf-widget img {
	border-radius: var(--nf-radius);
}

/* ==========================================================================
   8. Welcome notice  (the original .side-banner-info / .site-banner-info)
   ========================================================================== */

.nf-notice {
	background-color: var(--nf-surface);
	border: 3px solid var(--nf-accent);
	border-radius: var(--nf-radius-lg);
	padding: 15px;
	font-size: var(--nf-fs-lg);
	text-align: center;
	align-self: start;
}

.nf-notice p {
	margin: 0;
}

.nf-notice a {
	font-weight: 600;
}

/* ==========================================================================
   9. Feed tabs  (the original .menu-btns rank switcher)
   ========================================================================== */

.nf-tabs {
	display: flex;
	gap: 2%;
	margin-bottom: var(--nf-space);
}

.nf-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1 1 49%;
	height: 40px;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-base);
	color: var(--nf-primary);
	background-color: var(--nf-surface);
	border: 4px solid var(--nf-accent);
	border-radius: var(--nf-radius);
	cursor: pointer;
	transition: background-color var(--nf-ease), color var(--nf-ease);
}

.nf-tab:hover,
.nf-tab:focus {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
	text-decoration: none;
}

.nf-tab.is-active {
	background-color: var(--nf-primary);
	border-color: var(--nf-primary);
	color: var(--nf-on-primary);
}

/* ==========================================================================
   10. Post card
   ========================================================================== */

.nf-card {
	position: relative;
	margin: 0 0 var(--nf-space);
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow);
	overflow-wrap: break-word;
}

.nf-card__head {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px var(--nf-pad) 2px;
}

.nf-card__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex: none;
}

.nf-card__byline {
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	padding: 2px 0;
	word-spacing: 1px;
}

.nf-author-link {
	font-size: var(--nf-fs-base);
	font-weight: 700;
	color: var(--nf-text);
}

.nf-author-link:hover,
.nf-author-link:focus {
	color: var(--nf-primary);
	text-decoration: none;
}

.nf-meta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 10px;
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
	white-space: nowrap;
}

.nf-meta a {
	color: inherit;
}

.nf-card__title {
	font-size: var(--nf-fs-xl);
	font-weight: 500;
	margin: 0;
	padding: 6px var(--nf-pad) 0;
}

.nf-card__title a {
	color: var(--nf-text);
}

.nf-card__title a:hover,
.nf-card__title a:focus {
	color: var(--nf-primary);
	text-decoration: none;
}

.nf-card__body {
	padding: 12px var(--nf-pad) var(--nf-pad);
	font-size: var(--nf-fs-lg);
}

.nf-card__body > :last-child {
	margin-bottom: 0;
}

.nf-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: var(--nf-fs-sm);
	font-weight: 600;
	color: var(--nf-primary);
}

.nf-card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 var(--nf-pad) 12px;
}

.nf-term {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	font-size: var(--nf-fs-xs);
	color: var(--nf-primary);
	background-color: var(--nf-bg);
	border-radius: var(--nf-radius-pill);
}

.nf-term:hover,
.nf-term:focus {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
	text-decoration: none;
}

.nf-card.sticky {
	border-top: 3px solid var(--nf-primary);
}

.nf-sticky-flag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--nf-primary);
	font-size: var(--nf-fs-xs);
	font-weight: 600;
}

.nf-term.is-active {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
}

/* Author profile header (the original profile.php view). */
.nf-profile__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px var(--nf-pad);
}

.nf-profile__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex: none;
}

.nf-profile__info {
	min-width: 0;
}

.nf-profile__name {
	font-size: var(--nf-fs-xl);
	font-weight: 500;
	color: var(--nf-primary);
	margin: 0 0 4px;
}

.nf-profile__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
}

.nf-profile__stats .nf-meta {
	margin-left: 0;
}

.nf-profile__bio {
	margin: 8px 0 0;
	font-size: var(--nf-fs-sm);
	color: var(--nf-muted);
}

/* ==========================================================================
   11. Media
   ========================================================================== */

.nf-media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background-color: var(--nf-bg);
	border-radius: var(--nf-radius) var(--nf-radius) 0 0;
	line-height: 0;
}

.nf-media a {
	display: block;
}

.nf-media img,
.nf-media video {
	display: block;
	width: 100%;
}

/* In the feed a tall image must not break the rhythm of the column. */
.nf-card .nf-media--crop img {
	aspect-ratio: var(--nf-media-ratio, 16 / 9);
	object-fit: cover;
}

.nf-media--embed {
	aspect-ratio: 16 / 9;
}

.nf-media--embed iframe,
.nf-media--embed video,
.nf-media--embed .wp-block-embed__wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.nf-media__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	font-family: var(--nf-font-ui);
	font-size: var(--nf-fs-xs);
	line-height: 1.4;
	color: var(--nf-on-dark);
	background-color: var(--nf-overlay);
	border-radius: var(--nf-radius-pill);
	backdrop-filter: blur(2px);
}

.nf-media__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nf-on-dark);
	font-size: 44px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

/* Lightbox */
.nf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
	background-color: rgba(38, 50, 56, 0.92);
	border: 0;
}

.nf-lightbox::backdrop {
	background-color: rgba(38, 50, 56, 0.92);
}

.nf-lightbox img {
	max-width: 100%;
	max-height: 92vh;
	width: auto;
	border-radius: var(--nf-radius);
}

.nf-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	font-size: 20px;
	color: var(--nf-on-dark);
	background-color: var(--nf-overlay);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

/* ==========================================================================
   12. Action bar, share row, post menu
   Flexbox replaces the original 28px fixed height plus 35px/40px margin
   centring hacks, which clipped the buttons.
   ========================================================================== */

.nf-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 28px;
	min-height: 36px;
	border-radius: 0 0 var(--nf-radius) var(--nf-radius);
}

.nf-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 8px;
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-lg);
	line-height: 1;
	color: var(--nf-text);
	background: none;
	border: 0;
	border-radius: var(--nf-radius);
	cursor: pointer;
	transition: color var(--nf-ease), background-color var(--nf-ease);
}

.nf-action:hover,
.nf-action:focus {
	color: var(--nf-primary);
	background-color: var(--nf-bg);
	text-decoration: none;
}

.nf-action__count {
	font-size: var(--nf-fs-base);
	min-width: 0.5em;
}

.nf-action--like.is-liked .nf-icon,
.nf-action--like[aria-pressed="true"] .nf-icon {
	color: var(--nf-like);
}

.nf-action--like .nf-icon {
	transition: transform 220ms cubic-bezier(0.2, 1.6, 0.4, 1), color var(--nf-ease);
}

.nf-action--like.is-bumping .nf-icon {
	transform: scale(1.35);
}

.nf-action[disabled] {
	opacity: 0.55;
	cursor: default;
}

/* Share row */
.nf-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 10px var(--nf-pad);
	font-size: var(--nf-fs-md);
	color: var(--nf-primary);
	border-top: 1px solid var(--nf-hairline);
}

.nf-share[hidden] {
	display: none;
}

.nf-share__label {
	margin-right: 4px;
}

.nf-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 26px;
	font-family: var(--nf-font-ui);
	font-size: var(--nf-fs-lg);
	color: var(--nf-on-dark);
	background-color: var(--nf-share-color, var(--nf-primary));
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: box-shadow var(--nf-ease), transform var(--nf-ease);
}

.nf-share__btn:hover,
.nf-share__btn:focus {
	box-shadow: var(--nf-shadow-sm);
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--nf-on-dark);
}

.nf-share__btn--copy {
	--nf-share-color: var(--nf-text);
}

.nf-share__btn.is-copied {
	--nf-share-color: var(--nf-success);
}

/* Post menu - the original rendered this but kept it display:none forever. */
.nf-card__menu {
	position: relative;
	flex: none;
	margin-left: auto;
}

.nf-card__menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: var(--nf-fs-lg);
	color: var(--nf-muted);
	background: none;
	border: 0;
	border-radius: var(--nf-radius);
	cursor: pointer;
}

.nf-card__menu-btn:hover,
.nf-card__menu-btn:focus,
.nf-card__menu-btn[aria-expanded="true"] {
	color: var(--nf-primary);
	background-color: var(--nf-bg);
}

.nf-card__menu-list {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 20;
	min-width: 150px;
	padding: 4px 0;
	margin: 0;
	list-style: none;
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow);
}

.nf-card__menu-list[hidden] {
	display: none;
}

.nf-card__menu-list button,
.nf-card__menu-list a {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 7px 12px;
	font-family: inherit;
	font-size: var(--nf-fs-sm);
	text-align: left;
	color: var(--nf-text);
	background: none;
	border: 0;
	cursor: pointer;
}

.nf-card__menu-list button:hover,
.nf-card__menu-list button:focus,
.nf-card__menu-list a:hover,
.nf-card__menu-list a:focus {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
	text-decoration: none;
}

/* ==========================================================================
   13. Entry content & blocks
   ========================================================================== */

.nf-entry {
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow);
	margin-bottom: var(--nf-space);
	overflow-wrap: break-word;
}

.nf-entry__header {
	padding: var(--nf-space) var(--nf-pad) 0;
}

.nf-entry__title {
	font-size: var(--nf-h1);
	font-weight: 500;
	margin: 0 0 10px;
}

.nf-entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	padding: 0 var(--nf-pad) 14px;
	border-bottom: 1px solid var(--nf-hairline);
}

.entry-content {
	padding: var(--nf-space) var(--nf-pad);
	font-size: var(--nf-fs-lg);
}

.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 1.4em;
	color: var(--nf-primary);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content img {
	height: auto;
	border-radius: var(--nf-radius);
}

.entry-content figure {
	margin: 0 0 1.2em;
}

.entry-content figcaption,
.wp-caption-text,
.wp-element-caption {
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
	text-align: center;
	margin-top: 8px;
}

.entry-content blockquote,
.wp-block-quote {
	margin: 0 0 1.2em;
	padding: 4px 0 4px 18px;
	border-left: 4px solid var(--nf-accent);
	color: var(--nf-muted);
	font-style: italic;
}

.wp-block-pullquote {
	padding: 18px;
	border-top: 4px solid var(--nf-accent);
	border-bottom: 4px solid var(--nf-accent);
	text-align: center;
}

.entry-content code,
.entry-content kbd {
	padding: 2px 6px;
	font-size: 0.9em;
	background-color: var(--nf-bg);
	border-radius: 3px;
}

.entry-content pre,
.wp-block-code {
	padding: 14px;
	overflow-x: auto;
	font-size: var(--nf-fs-sm);
	background-color: var(--nf-bg);
	border-radius: var(--nf-radius);
	border-left: 4px solid var(--nf-accent);
}

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

.entry-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--nf-fs-sm);
}

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

.entry-content th {
	background-color: var(--nf-bg);
	color: var(--nf-primary);
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-separator {
	border-top: 1px solid var(--nf-accent);
	max-width: 120px;
	margin: 1.6em auto;
}

.wp-block-button__link {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
	border-radius: var(--nf-radius);
	padding: 10px 20px;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: none;
	color: var(--nf-primary);
	border: 2px solid var(--nf-primary);
}

.wp-block-gallery img {
	border-radius: var(--nf-radius);
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
	padding-top: 56.25%;
}

/* Alignments */
.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}

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

.entry-content .alignwide {
	width: calc(100% + var(--nf-pad));
	max-width: none;
	margin-left: calc(var(--nf-pad) / -2);
	margin-right: calc(var(--nf-pad) / -2);
}

.entry-content .alignfull {
	width: calc(100% + (var(--nf-pad) * 2));
	max-width: none;
	margin-left: calc(var(--nf-pad) * -1);
	margin-right: calc(var(--nf-pad) * -1);
	border-radius: 0;
}

.entry-content .alignfull img {
	border-radius: 0;
	width: 100%;
}

.wp-caption {
	max-width: 100%;
}

.gallery-caption {
	display: block;
}

.nf-clear::after {
	content: "";
	display: table;
	clear: both;
}

/* Post navigation */
.nf-post-nav {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
	margin-bottom: var(--nf-space);
}

.nf-post-nav a {
	display: block;
	padding: 12px 14px;
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow-sm);
	color: var(--nf-text);
}

.nf-post-nav a:hover,
.nf-post-nav a:focus {
	box-shadow: var(--nf-shadow);
	text-decoration: none;
}

.nf-post-nav__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
	margin-bottom: 4px;
}

.nf-post-nav__next {
	text-align: right;
	grid-column: 2;
}

.nf-post-nav__next .nf-post-nav__label {
	justify-content: flex-end;
}

.nf-post-nav__title {
	font-weight: 600;
	font-size: var(--nf-fs-sm);
}

/* ==========================================================================
   14. Timeline
   ========================================================================== */

.nf-timeline {
	margin-bottom: var(--nf-space);
}

.nf-timeline__year {
	position: sticky;
	top: calc(var(--nf-header-h) + 8px);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 16px;
	font-family: var(--nf-font-ui);
	font-size: var(--nf-fs-lg);
	font-weight: 500;
	color: var(--nf-on-primary);
	background-color: var(--nf-primary);
	border-radius: var(--nf-radius-pill);
	box-shadow: var(--nf-shadow-sm);
}

.nf-timeline__month {
	position: relative;
	margin: 0 0 26px;
	padding-left: 26px;
}

/* The rail */
.nf-timeline__month::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 6px;
	width: 2px;
	background: linear-gradient(to bottom, var(--nf-accent), var(--nf-bg));
}

.nf-timeline__month-title {
	font-family: var(--nf-font-ui);
	font-size: var(--nf-fs-md);
	font-weight: 500;
	color: var(--nf-primary);
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.nf-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nf-timeline__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 14px;
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow-sm);
	transition: box-shadow var(--nf-ease), transform var(--nf-ease);
}

.nf-timeline__item:hover {
	box-shadow: var(--nf-shadow);
	transform: translateX(2px);
}

/* The dot */
.nf-timeline__item::before {
	content: "";
	position: absolute;
	top: 20px;
	left: -24px;
	width: 10px;
	height: 10px;
	background-color: var(--nf-primary);
	border: 2px solid var(--nf-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--nf-accent);
}

.nf-timeline__date {
	flex: none;
	width: 42px;
	text-align: center;
	font-family: var(--nf-font-ui);
	line-height: 1.15;
	color: var(--nf-primary);
}

.nf-timeline__day {
	display: block;
	font-size: var(--nf-fs-xl);
	font-weight: 500;
}

.nf-timeline__weekday {
	display: block;
	font-size: 10px;
	font-weight: 300;
	color: var(--nf-muted);
	text-transform: uppercase;
}

.nf-timeline__content {
	min-width: 0;
	flex: 1 1 auto;
}

.nf-timeline__title {
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-md);
	font-weight: 600;
	margin: 0 0 3px;
	line-height: 1.35;
}

.nf-timeline__title a {
	color: var(--nf-text);
}

.nf-timeline__title a:hover,
.nf-timeline__title a:focus {
	color: var(--nf-primary);
	text-decoration: none;
}

.nf-timeline__excerpt {
	margin: 0;
	font-size: var(--nf-fs-sm);
	color: var(--nf-muted);
	line-height: 1.5;
}

.nf-timeline__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.nf-timeline__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: var(--nf-radius);
	overflow: hidden;
	background-color: var(--nf-bg);
}

.nf-timeline__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nf-timeline__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var(--nf-space);
}

/* ==========================================================================
   15. Comments
   ========================================================================== */

.nf-comments {
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow);
	margin-bottom: var(--nf-space);
	overflow: hidden;
}

.nf-comments__title {
	font-family: var(--nf-font-heading);
	font-size: var(--nf-fs-lg);
	font-weight: 500;
	color: var(--nf-primary);
	margin: 0;
	padding: 14px var(--nf-pad) 10px;
}

.nf-comments__divider {
	height: 5px;
	background-color: var(--nf-accent);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 5px 0 0;
	padding: 0 0 0 50px;
	background-color: var(--nf-thread-bg);
}

.nf-comment {
	background-color: var(--nf-surface);
	border-bottom: 1px solid var(--nf-hairline);
	overflow-wrap: anywhere;
}

.comment-list .children .nf-comment {
	background-color: transparent;
}

.nf-comment__body {
	padding: 13px var(--nf-pad);
	margin: 0;
	font-size: var(--nf-fs-base);
	line-height: 1.45;
}

.nf-comment__author {
	font-weight: 700;
	color: var(--nf-primary);
}

.nf-comment__author a {
	color: var(--nf-primary);
	font-weight: 700;
}

.nf-comment__text {
	color: var(--nf-text);
	font-weight: 400;
	padding-left: 2px;
}

.nf-comment__text > :last-child {
	margin-bottom: 0;
}

.nf-comment__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	vertical-align: -8px;
	margin-right: 8px;
}

.nf-comment__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 0 var(--nf-pad) 10px 15px;
	font-size: var(--nf-fs-sm);
}

.nf-comment__footer a,
.nf-comment .comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nf-primary);
}

.nf-comment.bypostauthor > .nf-comment__body .nf-comment__author::after {
	content: attr(data-author-badge);
}

.nf-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	font-family: var(--nf-font-ui);
	font-size: 10px;
	font-weight: 400;
	color: var(--nf-on-primary);
	background-color: var(--nf-primary);
	border-radius: var(--nf-radius-pill);
	vertical-align: 1px;
}

.comment-awaiting-moderation {
	display: block;
	margin-top: 6px;
	font-size: var(--nf-fs-xs);
	color: var(--nf-danger);
}

/* Comment form styled like the original single-line composer. */
.comment-respond {
	padding: 0;
	border-bottom: 1px solid var(--nf-hairline);
}

.comment-list .comment-respond {
	padding: 0 var(--nf-pad) 14px;
	border-bottom: 0;
}

.comment-reply-title {
	font-family: var(--nf-font-heading);
	font-size: var(--nf-fs-md);
	font-weight: 500;
	color: var(--nf-primary);
	margin: 0;
	padding: 12px var(--nf-pad) 0;
}

.comment-list .comment-reply-title {
	padding: 12px 0 0;
}

.comment-reply-title small {
	margin-left: 10px;
	font-size: var(--nf-fs-xs);
}

.comment-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px var(--nf-pad) 14px;
}

.comment-list .comment-form {
	padding: 10px 0 0;
}

.comment-form p {
	margin: 0;
	flex: 1 1 100%;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	flex: 1 1 200px;
}

.comment-form label {
	display: block;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
	margin-bottom: 4px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-base);
	color: var(--nf-text);
	background-color: var(--nf-surface);
	border: 1px solid var(--nf-accent);
	border-radius: var(--nf-radius);
	resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
	border-color: var(--nf-primary);
}

.comment-form .form-submit {
	flex: 1 1 100%;
	margin: 0;
}

.comment-notes,
.comment-form-cookies-consent label {
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-form-cookies-consent input {
	margin: 0;
}

.nf-comments__closed,
.nf-comments__login {
	padding: 14px var(--nf-pad);
	font-size: var(--nf-fs-sm);
	color: var(--nf-muted);
}

.comment-list .comment-respond,
.nf-comment__footer {
	font-family: var(--nf-font-body);
}

/* ==========================================================================
   16. Forms & buttons
   ========================================================================== */

.nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-md);
	color: var(--nf-on-primary);
	background-color: var(--nf-primary);
	border: 0;
	border-radius: var(--nf-radius);
	cursor: pointer;
	transition: box-shadow var(--nf-ease), transform var(--nf-ease);
}

.nf-btn:hover,
.nf-btn:focus {
	box-shadow: var(--nf-shadow);
	color: var(--nf-on-primary);
	text-decoration: none;
}

.nf-btn:disabled {
	background-color: var(--nf-accent);
	color: var(--nf-primary);
	cursor: not-allowed;
	box-shadow: none;
}

.nf-btn--ghost {
	background-color: var(--nf-surface);
	color: var(--nf-primary);
	border: 2px solid var(--nf-accent);
}

.nf-btn--pill {
	border-radius: var(--nf-radius-pill);
}

input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--nf-surface) inset;
}

.wp-block-search__button,
.nf-widget .wp-block-search__button {
	background-color: var(--nf-primary);
	color: var(--nf-on-primary);
	border: 0;
	border-radius: var(--nf-radius);
	padding: 8px 14px;
	cursor: pointer;
}

.wp-block-search__input {
	padding: 8px 10px;
	border: 1px solid var(--nf-accent);
	border-radius: var(--nf-radius);
}

/* ==========================================================================
   17. Pagination
   ========================================================================== */

.nf-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: var(--nf-space) 0;
}

.nf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 15px;
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-sm);
	color: var(--nf-on-primary);
	background-color: var(--nf-primary);
	border-radius: var(--nf-radius);
	transition: box-shadow var(--nf-ease);
}

.nf-pagination .page-numbers:hover,
.nf-pagination .page-numbers:focus {
	box-shadow: var(--nf-shadow);
	text-decoration: none;
	color: var(--nf-on-primary);
}

.nf-pagination .page-numbers.current {
	background-color: var(--nf-surface);
	color: var(--nf-primary);
	border: 2px solid var(--nf-accent);
}

.nf-pagination .page-numbers.dots {
	background: none;
	color: var(--nf-muted);
	box-shadow: none;
}

/* ==========================================================================
   18. Back to top
   ========================================================================== */

.nf-btn-gotop {
	position: fixed;
	right: 4%;
	bottom: 5%;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 20px;
	color: var(--nf-on-dark);
	background-color: var(--nf-scrim);
	opacity: 0.3;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: opacity var(--nf-ease), box-shadow var(--nf-ease), visibility var(--nf-ease);
}

.nf-btn-gotop:hover,
.nf-btn-gotop:focus {
	opacity: 1;
	box-shadow: var(--nf-shadow-hover);
}

.nf-btn-gotop[hidden] {
	display: none;
}

/* ==========================================================================
   19. Site footer
   The original footer used position:absolute; height:0; z-index:-1, which
   hid it behind the page entirely.
   ========================================================================== */

.nf-footer {
	flex: none;
	padding: 26px var(--nf-pad);
	text-align: center;
	border-top: 1px solid var(--nf-accent);
}

.nf-footer__widgets {
	display: grid;
	gap: var(--nf-gap);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	max-width: calc(var(--nf-content-width) + (var(--nf-sidebar-width) + var(--nf-gap)) * 2);
	margin: 0 auto 22px;
	text-align: left;
}

.nf-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 8px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.nf-footer__links a {
	display: inline-block;
	padding: 8px;
	font-family: var(--nf-font-ui);
	font-size: var(--nf-fs-sm);
	color: var(--nf-text);
}

.nf-footer__links a:hover,
.nf-footer__links a:focus {
	color: var(--nf-primary);
}

.nf-footer__copy {
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-xs);
	color: var(--nf-muted);
}

.nf-footer__copy a {
	color: inherit;
}

/* ==========================================================================
   20. Notices & empty states
   ========================================================================== */

.nf-warning {
	position: relative;
	margin: 60px auto;
	width: 100%;
	max-width: 620px;
	text-align: center;
	background-color: var(--nf-surface);
	border: 4px solid var(--nf-accent);
	border-radius: var(--nf-radius-lg);
	padding-bottom: 20px;
}

.nf-warning__text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px 15px;
	font-size: var(--nf-fs-3xl);
	color: var(--nf-primary);
	margin: 0 0 6px;
	line-height: 1.35;
}

.nf-warning__text .nf-icon {
	flex: none;
	font-size: 30px;
}

.nf-warning--error .nf-warning__text {
	color: var(--nf-danger);
}

.nf-warning__form {
	max-width: 340px;
	margin: 0 auto 18px;
	padding: 0 15px;
}

.nf-flash {
	position: fixed;
	right: 10%;
	bottom: 0;
	left: 10%;
	z-index: 150;
	padding: 15px;
	font-size: var(--nf-fs-md);
	text-align: center;
	color: var(--nf-on-dark);
	background-color: var(--nf-danger);
	border-radius: var(--nf-radius) var(--nf-radius) 0 0;
	cursor: pointer;
}

.nf-flash--success {
	background-color: var(--nf-success);
}

.nf-flash[hidden] {
	display: none;
}

.nf-page-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--nf-space);
	padding: 14px var(--nf-pad);
	font-family: var(--nf-font-heading);
	font-size: var(--nf-fs-xl);
	font-weight: 500;
	color: var(--nf-primary);
	background-color: var(--nf-surface);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow-sm);
}

.nf-page-title__count {
	margin-left: auto;
	font-family: var(--nf-font-ui);
	font-weight: 300;
	font-size: var(--nf-fs-sm);
	color: var(--nf-muted);
}

.nf-archive-description {
	margin: calc(var(--nf-space) * -0.5) 0 var(--nf-space);
	padding: 0 var(--nf-pad);
	font-size: var(--nf-fs-sm);
	color: var(--nf-muted);
}

/* ==========================================================================
   21. Responsive
   Breakpoints follow the original stylesheet: 900 / 800 / 500 / 410 / 360.
   ========================================================================== */

@media only screen and (max-width: 1180px) {
	body.nf-layout-both .nf-shell {
		grid-template-columns: var(--nf-sidebar-width) minmax(0, var(--nf-content-width));
		grid-template-areas:
			"notice main"
			"left   main"
			"right  right";
	}
}

@media only screen and (max-width: 900px) {
	/* Sidebars stack under the feed and the notice spans the column, exactly
	   as the original swapped .side-banner-info for .site-banner-info. */
	body[class*="nf-layout-"] .nf-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"notice"
			"main"
			"left"
			"right";
	}

	body.nf-sticky-sidebars .nf-sidebar {
		position: static;
	}

	.nf-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.nf-sidebar > .nf-widget {
		flex: 1 1 260px;
	}
}

@media only screen and (max-width: 800px) {
	body.nf-layout-none .nf-shell {
		grid-template-columns: minmax(0, 70%);
	}
}

@media only screen and (max-width: 782px) {
	.nf-nav-toggle {
		display: inline-flex;
	}

	/* Collapsed by default below this width and opened by the toggle. Driven by
	   a class, not the hidden attribute, so the menu stays visible on desktop
	   even before any script has run. */
	.nf-nav {
		display: none;
		position: absolute;
		top: var(--nf-header-h);
		right: 0;
		left: 0;
		background-color: var(--nf-primary);
		border-bottom: 1px solid var(--nf-primary-dark);
		box-shadow: var(--nf-shadow);
		padding: 6px var(--nf-pad) 12px;
	}

	.nf-nav.is-open {
		display: block;
	}

	.nf-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nf-nav a {
		padding: 10px 8px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
}

@media only screen and (max-width: 600px) {
	.nf-post-nav {
		grid-template-columns: 1fr;
	}

	.nf-post-nav__next {
		grid-column: 1;
		text-align: left;
	}

	.nf-post-nav__next .nf-post-nav__label {
		justify-content: flex-start;
	}
}

@media only screen and (max-width: 500px) {
	:root {
		--nf-pad: 12px;
		--nf-gap: 16px;
	}

	body.nf-layout-none .nf-shell {
		grid-template-columns: minmax(0, 100%);
	}

	.nf-shell {
		padding-left: 0;
		padding-right: 0;
	}

	.nf-card,
	.nf-entry,
	.nf-comments {
		border-radius: 0;
	}

	.nf-media {
		border-radius: 0;
	}

	.nf-actions {
		padding: 4px 8px;
	}

	.nf-sidebar,
	.nf-notice,
	.nf-tabs,
	.nf-pagination,
	.nf-timeline {
		padding-left: var(--nf-pad);
		padding-right: var(--nf-pad);
	}

	.comment-list .children {
		padding-left: 20px;
	}

	.nf-warning__text {
		font-size: var(--nf-fs-xl);
	}
}

@media only screen and (max-width: 410px) {
	.nf-search__field {
		height: 34px;
		font-size: var(--nf-fs-xs);
		padding-left: 32px;
	}

	.nf-search__icon {
		left: 9px;
		width: 15px;
		height: 15px;
	}

	.nf-brand__text {
		display: none;
	}

	.nf-header {
		gap: 8px;
		padding: 0 8px;
	}
}

@media only screen and (max-width: 360px) {
	.nf-search {
		max-width: none;
	}

	.nf-timeline__thumb {
		display: none;
	}
}

/* ==========================================================================
   22. Print & motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.nf-header,
	.nf-sidebar,
	.nf-notice,
	.nf-tabs,
	.nf-actions,
	.nf-share,
	.nf-btn-gotop,
	.nf-pagination,
	.nf-card__menu,
	.comment-respond {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.nf-shell {
		margin-top: 0;
		display: block;
	}

	.nf-card,
	.nf-entry,
	.nf-comments {
		box-shadow: none;
		border: 1px solid var(--nf-print-rule);
	}
}
