/* =========================================================================
   Musicmag24 — main.css
   Consolidated theme stylesheet (Sarsa-style magazine design).
   Sections:
     1.  Custom properties (light + dark)
     2.  Base / reset
     3.  Utilities (container, wavy, kicker, buttons, a11y)
     4.  Header (top bar, nav, theme toggle)
     5.  Mobile panel
     6.  Hero
     7.  Section heads
     8.  Cards & post components
     9.  Grids
     10. Numbered items (Editor Choice)
     11. Video section
     12. Dark carousel (More to Watch)
     13. Stories
     14. Split + press list
     15. Ad banner
     16. Newsletter
     17. Footer
     18. Archives & pagination
     19. Single post
     20. Comments
     21. Forms / search / 404
     22. Responsive
   ====================================================================== */

/* 1. Custom properties ------------------------------------------------- */
:root {
	--accent: #ff1b54;
	--accent-ink: #ffffff;
	--bg: #ffffff;
	--bg-soft: #f5f5f7;
	--surface: #ffffff;
	--text: #101018;
	--muted: #9a9aa6;
	--muted-2: #c2c2cc;
	--line: #e7e7ec;
	--dark-bg: #0b0b10;
	--dark-surface: #14141b;
	--dark-line: #23232d;
	--radius: 4px;
	--shadow: 0 18px 40px rgba(16, 16, 24, 0.08);
	--font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Prata", "Georgia", serif;
	--wavy-light: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2716%27%20height=%278%27%20viewBox=%270%200%2016%208%27%3E%3Cpath%20d=%27M0%204%20Q4%200%208%204%20T16%204%27%20fill=%27none%27%20stroke=%27%23dcdce2%27%20stroke-width=%271.4%27/%3E%3C/svg%3E");
	--wavy-dark: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2716%27%20height=%278%27%20viewBox=%270%200%2016%208%27%3E%3Cpath%20d=%27M0%204%20Q4%200%208%204%20T16%204%27%20fill=%27none%27%20stroke=%27%232a2a35%27%20stroke-width=%271.4%27/%3E%3C/svg%3E");
	--wavy: var(--wavy-light);
}

[data-theme="dark"] {
	--bg: #0e0e14;
	--bg-soft: #12121a;
	--surface: #16161e;
	--text: #eaeaf0;
	--muted: #8b8b98;
	--muted-2: #55555f;
	--line: #23232d;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	--wavy: var(--wavy-dark);
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	transition: background 0.25s ease, color 0.25s ease;
}

body.no-scroll {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	line-height: 1.25;
	font-weight: 700;
	color: var(--text);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0;
	padding: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
}

svg.i {
	display: inline-block;
	vertical-align: -0.18em;
	flex: none;
}

::selection {
	background: var(--accent);
	color: #fff;
}

/* 3. Utilities ----------------------------------------------------------- */
.container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.wavy {
	height: 8px;
	max-height: 8px;
	overflow: hidden;
	background: var(--wavy) repeat-x left center;
	background-size: 16px 8px;
	margin: 18px 0 0;
}

.kicker {
	display: inline-block;
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: var(--radius);
	padding: 12px 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-accent {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn-accent:hover {
	color: var(--accent-ink);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(255, 27, 84, 0.35);
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 200;
	background: var(--accent);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius);
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 8px;
	color: #fff;
}

/* Featured-image placeholder (musical note on gradient) */
.ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1c1c26 0%, #33334a 45%, var(--accent) 160%);
	color: rgba(255, 255, 255, 0.55);
}

.ph > span {
	font-size: 44px;
	line-height: 1;
}

/* 4. Header --------------------------------------------------------------- */
.site-head {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.head-top {
	padding: 22px 0;
}

.head-top-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

.head-search {
	justify-self: start;
	width: 100%;
	max-width: 280px;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 10px 14px;
}

.search-submit {
	background: none;
	border: 0;
	padding: 0;
	color: var(--muted);
	display: inline-flex;
}

.search-submit:hover {
	color: var(--accent);
}

.search-field {
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
	width: 100%;
}

.search-field::placeholder {
	color: var(--muted);
}

.head-brand {
	justify-self: center;
	text-align: center;
}

.head-brand .custom-logo {
	max-height: 56px;
	width: auto;
}

.brand-text {
	font-family: var(--font-serif);
	font-size: 40px;
	font-weight: 400;
	letter-spacing: 0.5px;
	color: var(--text);
	white-space: nowrap;
}

.brand-text:hover {
	color: var(--text);
}

.brand-text em {
	font-style: normal;
	color: var(--accent);
}

.brand-text--sm {
	font-size: 26px;
}

.head-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Nav row */
.head-nav {
	border-top: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--bg);
}

.head-nav-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	min-height: 62px;
}

.nav-burger {
	background: none;
	border: 0;
	padding: 6px;
	color: var(--text);
	display: inline-flex;
}

.nav-burger:hover {
	color: var(--accent);
}

.nav-menu {
	justify-self: center;
}

.nav-menu ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 28px;
	margin: 0;
	padding: 0;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: inline-block;
	padding: 20px 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	white-space: nowrap;
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
	color: var(--accent);
}

/* Dropdowns */
.nav-menu ul ul {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 210px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: block;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 100;
}

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

.nav-menu ul ul li {
	display: block;
}

.nav-menu ul ul a {
	display: block;
	padding: 9px 18px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 500;
}

.nav-menu ul ul ul {
	top: -8px;
	left: 100%;
}

.nav-tools {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Theme toggle pill */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 4px;
	color: var(--muted);
}

.tt-ico {
	display: inline-flex;
	color: var(--text);
}

[data-theme="dark"] .tt-sun {
	color: var(--muted);
}

html:not([data-theme="dark"]) .tt-moon {
	color: var(--muted-2);
}

.tt-track {
	position: relative;
	width: 44px;
	height: 22px;
	border-radius: 999px;
	background: var(--text);
	transition: background 0.25s ease;
}

.tt-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg);
	transition: transform 0.25s ease;
}

[data-theme="dark"] .tt-knob {
	transform: translateX(22px);
}

/* 5. Mobile panel ---------------------------------------------------------- */
.mp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 12, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
	z-index: 140;
}

.mp-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-panel {
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 88vw;
	max-width: 360px;
	background: var(--surface);
	z-index: 150;
	transform: translateX(-102%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 24px;
	overflow-y: auto;
}

.mobile-panel.is-open {
	transform: translateX(0);
}

.mp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.panel-close {
	background: none;
	border: 0;
	padding: 6px;
	color: var(--text);
	display: inline-flex;
}

.panel-close:hover {
	color: var(--accent);
}

.mp-nav ul {
	list-style: none;
}

.mp-nav ul ul {
	padding-left: 16px;
}

.mp-nav a {
	display: block;
	padding: 11px 0;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 1px solid var(--line);
}

.mp-foot {
	margin-top: auto;
}

.mp-foot .btn {
	width: 100%;
	justify-content: center;
}

/* 6. Hero ------------------------------------------------------------------- */
.hero {
	padding: 34px 24px 10px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
	gap: 40px;
}

.hero-big {
	position: relative;
}

.hero-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
}

.hero-media img,
.hero-mini-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hero-big:hover .hero-media img {
	transform: scale(1.035);
}

.ph-hero > span {
	font-size: 90px;
}

.hero-card {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 78%;
	max-width: 640px;
	background: var(--surface);
	padding: 26px 30px 4px 0;
	border-top-right-radius: var(--radius);
}

.hero-title {
	font-size: clamp(24px, 3vw, 36px);
	margin-top: 10px;
}

.hero-title a:hover {
	color: var(--accent);
}

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

.hero-mini-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 14px;
}

.hero-mini:hover .hero-mini-media img {
	transform: scale(1.04);
}

.hero-mini-title {
	font-size: 20px;
	margin-top: 6px;
}

.hero-wavy {
	margin: 0;
}

/* 7. Section heads ------------------------------------------------------------ */
.sec {
	padding: 46px 24px 10px;
}

.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.sec-title {
	font-size: clamp(22px, 2.4vw, 30px);
	margin-top: 6px;
}

.sec-head-r {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 4px;
}

.sec-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.sec-more:hover {
	color: var(--accent);
}

.sec .wavy {
	margin-bottom: 34px;
}

/* 8. Cards --------------------------------------------------------------------- */
.card {
	min-width: 0;
}

.card-media,
.vitem-media,
.video-big-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 16 / 10;
}

.card-media img,
.vitem-media img,
.video-big-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.card:hover .card-media img,
.vitem:hover .vitem-media img,
.video-big:hover .video-big-media img {
	transform: scale(1.05);
}

.badge-bolt {
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	border-bottom-right-radius: var(--radius);
	z-index: 2;
}

.play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(3px);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.card:hover .play,
.vitem:hover .play,
.video-big:hover .play {
	background: var(--accent);
	transform: scale(1.06);
}

.meta-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.mcat {
	color: var(--accent);
}

.mcat:hover {
	color: var(--accent);
	opacity: 0.8;
}

.mdot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--muted-2);
}

.mby {
	color: var(--muted-2);
	font-weight: 600;
}

.mauthor {
	color: var(--text);
}

.mdate {
	color: var(--muted);
	font-weight: 600;
}

.card-title {
	font-size: 20px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-title a:hover {
	color: var(--accent);
}

.card--lg .card-title {
	font-size: clamp(22px, 2.2vw, 28px);
	-webkit-line-clamp: 3;
}

.stats {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
}

.stat {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: none;
	border: 0;
	padding: 0;
	color: var(--muted);
	font-size: 14px;
	font-family: inherit;
}

a.stat:hover,
button.stat:hover {
	color: var(--accent);
}

.share-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--text);
	color: var(--bg);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: var(--radius);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.js-share.copied .share-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Dark card variant (carousel) */
.card--dark .card-title a,
.card--dark .mauthor {
	color: #fff;
}

.card--dark .card-title a:hover {
	color: var(--accent);
}

.card--dark .stats,
.card--dark .stat {
	color: #8b8b98;
}

/* 9. Grids ----------------------------------------------------------------------- */
.grid {
	display: grid;
	gap: 40px 30px;
}

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

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.stories-top {
	margin-bottom: 44px;
}

/* 10. Numbered items --------------------------------------------------------------- */
.numgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 44px;
}

.numi {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.numi-media {
	position: relative;
	flex: none;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
}

.numi-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.numi-media .ph > span {
	font-size: 30px;
}

.numi-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 16, 0.42);
	border-radius: 50%;
	transition: background 0.2s ease;
}

.numi:hover .numi-media::after {
	background: rgba(255, 27, 84, 0.45);
}

.numi-n {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	z-index: 2;
}

.numi-body {
	min-width: 0;
}

.numi-body .meta-top {
	margin-top: 0;
}

.numi-title {
	font-size: 19px;
	line-height: 1.4;
}

.numi-title a:hover {
	color: var(--accent);
}

/* 11. Video section ------------------------------------------------------------------ */
.video-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
	gap: 44px;
}

.video-big-media {
	aspect-ratio: 16 / 9;
}

.video-big-title {
	font-size: clamp(22px, 2.4vw, 30px);
	margin-top: 4px;
}

.video-big-title a:hover {
	color: var(--accent);
}

.video-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vitem {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.vitem-media {
	flex: none;
	width: 122px;
	aspect-ratio: 4 / 3;
}

.vitem-media .play {
	width: 36px;
	height: 36px;
}

.vitem-media .ph > span {
	font-size: 26px;
}

.vitem-body {
	min-width: 0;
}

.vitem-body .meta-top {
	margin-top: 0;
	margin-bottom: 6px;
	font-size: 12px;
}

.vitem-title {
	font-size: 17px;
	line-height: 1.4;
}

.vitem-title a:hover {
	color: var(--accent);
}

.vitem-wavy {
	margin: 0;
}

/* 12. Dark carousel -------------------------------------------------------------------- */
.watch {
	background: var(--dark-bg);
	color: #fff;
	padding-top: 56px;
	padding-bottom: 60px;
	margin-top: 46px;
}

.watch .sec-title,
.watch .sec-more {
	color: #fff;
}

.watch .sec-more:hover {
	color: var(--accent);
}

.watch .wavy {
	background-image: var(--wavy-dark);
}

.car-arrows {
	display: flex;
	gap: 10px;
}

.car-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--dark-line);
	background: transparent;
	color: #fff;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.car-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(285px, 1fr);
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.carousel-track .card {
	scroll-snap-align: start;
}

/* 13. Stories — covered by .grid + .card--lg */

/* 14. Split + press list ------------------------------------------------------------------ */
.split {
	display: grid;
	grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
	gap: 44px;
}

.split-side-title {
	font-size: 22px;
}

.press-list {
	list-style: none;
	margin-top: 24px;
}

.press-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.press-item:first-child {
	padding-top: 0;
}

.press-item a {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.45;
}

.press-item a:hover {
	color: var(--accent);
}

.press-date {
	font-size: 13px;
	color: var(--muted);
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.split-side .sec-more {
	margin-top: 20px;
}

/* 15. Ad banner ------------------------------------------------------------------------------ */
.ad-wrap {
	padding-top: 52px;
	display: flex;
	justify-content: center;
}

.ad {
	display: block;
	width: 728px;
	max-width: 100%;
}

.ad img {
	width: 728px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.ad-ph {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 90px;
	padding: 0 34px;
	background: linear-gradient(100deg, #0b0b10 0%, #1a1a26 60%, #2a1020 100%);
	border-radius: var(--radius);
	color: #fff;
}

.ad-brand {
	font-family: var(--font-serif);
	font-size: 26px;
}

.ad-brand em {
	font-style: normal;
	color: var(--accent);
}

.ad-note {
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* 16. Newsletter -------------------------------------------------------------------------------- */
.newsletter {
	background: var(--bg-soft);
	padding: 70px 0;
	margin-top: 64px;
}

.nl-box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
	align-items: center;
	gap: 40px;
	background: var(--surface);
	padding: 48px 54px;
	border-radius: var(--radius);
	overflow: hidden;
}

.nl-heading {
	font-size: clamp(20px, 2vw, 26px);
	margin-top: 8px;
	line-height: 1.4;
}

.nl-form {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px 22px;
	align-items: center;
}

.nl-field {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	padding-bottom: 12px;
	background: var(--wavy) repeat-x left bottom;
	background-size: 16px 8px;
}

.nl-field input {
	border: 0;
	outline: 0;
	background: transparent;
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	color: var(--text);
}

.nl-field input::placeholder {
	color: var(--muted);
}

.nl-agree {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--muted);
}

.nl-agree input {
	margin-top: 3px;
	accent-color: var(--accent);
}

.nl-hp {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
}

.nl-msg {
	grid-column: 1 / -1;
	font-size: 14px;
	font-weight: 600;
	min-height: 0;
}

.nl-msg.ok {
	color: #17a468;
}

.nl-msg.err {
	color: var(--accent);
}

.nl-art {
	position: absolute;
	right: -26px;
	bottom: -34px;
	color: var(--line);
	opacity: 0.8;
	pointer-events: none;
	z-index: 1;
}

.nl-art svg {
	width: 210px;
	height: 210px;
}

/* 17. Footer --------------------------------------------------------------------------------------- */
.site-foot {
	background: var(--dark-bg);
	color: #b9b9c4;
}

.foot-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 40px 30px;
	padding-top: 70px;
	padding-bottom: 56px;
}

.foot-title {
	color: #fff;
	font-size: 18px;
	margin-bottom: 22px;
}

.foot-links {
	list-style: none;
}

.foot-links li {
	margin-bottom: 13px;
}

.foot-links a {
	color: #b9b9c4;
	font-size: 15px;
}

.foot-links a:hover {
	color: #fff;
}

.foot-mid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	flex-wrap: wrap;
	padding-top: 34px;
	padding-bottom: 34px;
	border-top: 1px solid var(--dark-line);
}

.brand-text--foot {
	color: #fff;
	font-size: 30px;
}

.brand-text--foot:hover {
	color: #fff;
}

.foot-social {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
}

.fsoc {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.fsoc:hover {
	color: var(--accent);
}

.fsoc-count {
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	padding: 3px 9px;
	border-radius: 999px;
}

.foot-bar {
	border-top: 1px solid var(--dark-line);
	padding: 22px 0;
}

.foot-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.foot-copy a {
	color: #fff;
}

.foot-bar .nav-foot ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.foot-bar .nav-foot a {
	color: #b9b9c4;
	font-weight: 700;
}

.foot-bar .nav-foot a:hover {
	color: #fff;
}

/* 18. Archives & pagination ---------------------------------------------------------------------------- */
.archive-wrap {
	padding-top: 46px;
	padding-bottom: 30px;
}

.archive-head {
	margin-bottom: 40px;
}

.archive-title {
	font-size: clamp(28px, 3.4vw, 42px);
	margin-top: 8px;
}

.archive-desc {
	color: var(--muted);
	max-width: 720px;
	margin-top: 10px;
}

.navigation.pagination {
	margin: 52px 0 30px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	color: var(--text);
	transition: all 0.2s ease;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.nav-links .page-numbers.dots {
	border: 0;
}

/* 19. Single post -------------------------------------------------------------------------------------- */
.single {
	padding-top: 46px;
	max-width: 920px;
}

.single-head {
	margin-bottom: 30px;
}

.single-title {
	font-size: clamp(28px, 3.6vw, 44px);
	margin: 12px 0 18px;
	line-height: 1.2;
}

.single-stats {
	display: flex;
	align-items: center;
	gap: 24px;
	color: var(--muted);
	font-size: 14px;
}

.single-media {
	margin: 0 0 34px;
}

.single-media img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	font-size: 17px;
	line-height: 1.85;
}

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

.entry-content h2 {
	font-size: 28px;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 22px;
	margin-top: 1.5em;
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 26px;
	border-left: 3px solid var(--accent);
	font-size: 20px;
	font-weight: 600;
	font-style: italic;
	color: var(--text);
}

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

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

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

.entry-content pre {
	background: var(--dark-surface);
	color: #eaeaf0;
	padding: 20px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 14px;
}

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

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

.wp-caption,
figure.wp-block-image {
	max-width: 100%;
}

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

.alignleft {
	float: left;
	margin: 6px 26px 16px 0;
}

.alignright {
	float: right;
	margin: 6px 0 16px 26px;
}

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

.page-links {
	margin-top: 2em;
	font-weight: 600;
}

.page-links a,
.page-links > span:not(:first-child) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin-left: 6px;
	border: 1px solid var(--line);
	border-radius: 50%;
	font-size: 14px;
}

.page-links a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.single-foot {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 34px;
}

.tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pill {
	display: inline-block;
	padding: 7px 16px;
	background: var(--bg-soft);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.pill:hover {
	background: var(--accent);
	color: #fff;
}

.share-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 22px 26px;
	background: var(--bg-soft);
	border-radius: var(--radius);
}

.share-label {
	font-weight: 700;
	font-size: 15px;
}

.share-btns {
	display: flex;
	gap: 10px;
}

.sbtn {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	position: relative;
	transition: all 0.2s ease;
}

.sbtn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.sbtn .share-tip {
	bottom: calc(100% + 10px);
}

.author-box {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.author-ava img {
	border-radius: 50%;
}

.author-name {
	font-size: 20px;
	margin: 4px 0 6px;
}

.author-bio {
	color: var(--muted);
	margin: 0;
	font-size: 15px;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	border-top: 1px solid var(--line);
	padding-top: 26px;
}

.post-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
}

.post-nav-next {
	text-align: right;
	justify-self: end;
}

.related {
	padding-top: 30px;
}

/* 20. Comments -------------------------------------------------------------------------------------------- */
.comments {
	max-width: 920px;
	margin: 56px auto 0;
	padding-bottom: 20px;
}

.comments-title,
.comment-reply-title {
	font-size: 24px;
}

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

.comment-list .children {
	list-style: none;
	padding-left: 40px;
}

.comment-body {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.comment-author .avatar {
	border-radius: 50%;
	grid-row: span 3;
}

.comment-author,
.comment-metadata,
.comment-content,
.reply {
	grid-column: 2;
}

.comment-author {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 700;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: -14px;
}

.comment-content {
	font-size: 15px;
}

.reply a {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--accent);
}

.comment-form {
	margin-top: 30px;
	display: grid;
	gap: 16px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-bottom: 7px;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 13px 16px;
	font-family: inherit;
	font-size: 15px;
	color: var(--text);
	outline: 0;
	transition: border-color 0.2s ease;
}

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

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--muted);
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.comment-form .comment-form-cookies-consent input {
	margin-top: 3px;
	accent-color: var(--accent);
}

/* 21. Search / 404 / misc ------------------------------------------------------------------------------------ */
.err404 {
	padding: 80px 24px 20px;
	text-align: center;
}

.err404-code {
	font-size: clamp(90px, 16vw, 170px);
	line-height: 1;
	color: var(--accent);
	font-family: var(--font-serif);
}

.err404-text {
	color: var(--muted);
	font-size: 18px;
	margin: 14px auto 30px;
	max-width: 460px;
}

.err404-search {
	max-width: 420px;
	margin: 0 auto;
}

.nothing {
	padding: 30px 0 60px;
	max-width: 460px;
}

/* 22. Responsive ---------------------------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.numgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1200px) {
	.head-search {
		display: none;
	}

	.head-top-inner {
		grid-template-columns: auto 1fr auto;
	}

	.head-brand {
		justify-self: start;
	}

	.nav-menu {
		display: none;
	}

	.head-nav-inner {
		grid-template-columns: auto 1fr auto;
	}
}

@media (max-width: 992px) {
	.hero-grid,
	.video-grid,
	.split {
		grid-template-columns: 1fr;
	}

	.hero-card {
		position: static;
		width: 100%;
		padding: 20px 0 0;
	}

	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nl-box {
		grid-template-columns: 1fr;
		padding: 40px 34px;
	}
}

@media (max-width: 768px) {
	.brand-text {
		font-size: 30px;
	}

	.head-subscribe {
		padding: 10px 18px;
		font-size: 12px;
	}

	.grid-2,
	.grid-3,
	.stories-top {
		grid-template-columns: 1fr;
	}

	.numgrid {
		grid-template-columns: 1fr;
	}

	.sec-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

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

	.post-nav-next {
		text-align: left;
		justify-self: start;
	}

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

	.nl-form {
		grid-template-columns: 1fr;
	}

	.nl-art {
		display: none;
	}
}

@media (max-width: 560px) {
	.container {
		padding: 0 18px;
	}

	.sec,
	.hero {
		padding-left: 18px;
		padding-right: 18px;
	}

	.grid-4 {
		grid-template-columns: 1fr;
	}

	.head-top {
		padding: 16px 0;
	}

	.brand-text {
		font-size: 24px;
	}

	.foot-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.share-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

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

.author-body { min-width: 0; }

/* Hardening: explicit colors (survives aggressive CSS optimizers) */
html { background: var(--bg); }
.nav-menu a, .mp-nav a { color: var(--text); }
.nav-menu a:hover, .mp-nav a:hover { color: var(--accent); }
.card-title a, .hero-title a, .hero-mini-title a, .numi-title a,
.vitem-title a, .video-big-title a, .press-item a { color: var(--text); }
.card--dark .card-title a { color: #fff; }

/* Hardening: neutralize foreign body/html width constraints (old plugin CSS) */
html, body {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	float: none !important;
}

/* Brand logo (image mark, swaps by theme) ------------------------------- */
.brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	line-height: 0;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	flex: none;
}

.brand-word {
	font-family: var(--font-body);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.5px;
	color: var(--text);
	white-space: nowrap;
}

.brand-word em {
	font-style: normal;
	color: var(--accent);
}

.brand-word--sm {
	font-size: 24px;
}

.brand-logo-img {
	display: block;
	height: 66px;
	width: auto;
}

.brand-logo-dark {
	display: none;
}

[data-theme="dark"] .brand-logo-light {
	display: none;
}

[data-theme="dark"] .brand-logo-dark {
	display: block;
}

.brand-logo--panel .brand-logo-img {
	height: 46px;
}

@media (max-width: 768px) {
	.brand-logo-img {
		height: 52px;
	}

	.brand-word {
		font-size: 28px;
	}
}

@media (max-width: 560px) {
	.brand-logo-img {
		height: 40px;
	}

	.brand-logo {
		gap: 8px;
	}

	/* Keep the wordmark visible — shrink it and the button so both fit. */
	.head-brand .brand-word {
		font-size: 22px;
		letter-spacing: -0.4px;
	}

	.head-subscribe {
		padding: 9px 14px;
		font-size: 11px;
		letter-spacing: 0.5px;
	}

	.head-top-inner {
		gap: 12px;
	}
}

@media (max-width: 400px) {
	.head-brand .brand-word {
		font-size: 19px;
	}

	.brand-logo-img {
		height: 36px;
	}

	/* Very narrow: icon-only subscribe to protect the wordmark. */
	.head-subscribe {
		padding: 9px 12px;
	}
}
