:root {
	--ni-ink: #07111b;
	--ni-ink-soft: #102232;
	--ni-line: #d9e0e6;
	--ni-text: #15202a;
	--ni-muted: #65717d;
	--ni-orange: #f47a49;
	--ni-gold: #efc38e;
	--ni-paper: #f7f8f8;
	--ni-white: #ffffff;
	--ni-max: 1140px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--ni-paper);
	color: var(--ni-text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

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

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

a:hover {
	color: var(--ni-orange);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #061321;
	color: var(--ni-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-inner {
	max-width: var(--ni-max);
	min-height: 90px;
	margin: 0 auto;
	padding: 0 22px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 34px;
}

.brand-text {
	display: inline-flex;
	align-items: baseline;
	position: relative;
	color: var(--ni-white);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0;
}

.brand-text::after {
	content: "";
	position: absolute;
	left: 6px;
	right: -8px;
	bottom: -8px;
	height: 9px;
	background: var(--ni-gold);
	transform: skewX(-18deg);
	opacity: 0.9;
}

.brand-text span,
.brand-text strong,
.brand-text em {
	position: relative;
	z-index: 1;
}

.brand-text strong {
	font-weight: 900;
}

.brand-text em {
	font-style: normal;
}

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

.primary-nav a {
	display: block;
	padding: 35px 0 32px;
	color: var(--ni-white);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover {
	color: var(--ni-white);
	box-shadow: inset 0 -2px 0 var(--ni-orange);
}

.search-toggle {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: transparent;
	border: 1px solid transparent;
	color: var(--ni-white);
	cursor: pointer;
}

.search-toggle svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.header-search {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding: 18px 22px;
}

.search-form {
	max-width: 760px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}

.search-field,
.newsletter-form input {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ni-white);
	padding: 14px 16px;
}

.search-form button,
.newsletter-form button {
	border: 0;
	background: var(--ni-orange);
	color: var(--ni-white);
	font-weight: 800;
	text-transform: uppercase;
	padding: 14px 22px;
	cursor: pointer;
}

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	max-width: 1440px;
	margin: 0 auto;
	background: var(--ni-ink);
	color: var(--ni-white);
}

.hero-main {
	position: relative;
	min-height: 575px;
	overflow: hidden;
}

.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-main::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #07111b 0%, rgba(7, 17, 27, 0.84) 25%, rgba(7, 17, 27, 0.15) 72%);
	z-index: 1;
}

.hero-main.no-image {
	background:
		linear-gradient(110deg, rgba(7, 17, 27, 0.96), rgba(16, 34, 50, 0.55)),
		url("../img/energy-placeholder.svg") center/cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(7, 17, 27, 0.6), transparent 40%);
	z-index: 2;
}

.hero-copy {
	position: relative;
	z-index: 3;
	max-width: 720px;
	padding: 110px 54px 80px;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	color: var(--ni-orange);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.hero-copy h1 {
	margin: 0;
	color: var(--ni-white);
	font-size: clamp(42px, 5.4vw, 72px);
	line-height: 1.05;
	letter-spacing: 0;
}

.hero-copy p {
	max-width: 620px;
	margin: 24px 0 34px;
	font-size: 21px;
}

.button-outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--ni-orange);
	padding: 14px 20px;
	color: var(--ni-white);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
}

.button-outline::after,
.text-link::after {
	content: "→";
}

.hero-dots {
	position: absolute;
	left: 54px;
	bottom: 28px;
	z-index: 3;
	display: flex;
	gap: 10px;
}

.hero-dots span {
	width: 26px;
	height: 7px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.7);
}

.hero-dots span:first-child {
	background: var(--ni-orange);
}

.hero-side {
	padding: 30px 28px;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-side h2,
.content-section h2,
.agenda-column h2,
.feature-column h2,
.opinion-column h2 {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 900;
	text-transform: uppercase;
}

.mini-card {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.mini-card img {
	width: 112px;
	height: 88px;
	object-fit: cover;
}

.mini-card h3 {
	margin: 0 0 5px;
	font-size: 16px;
	line-height: 1.18;
}

.mini-card time {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.74);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--ni-white);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
}

.text-link.dark {
	color: var(--ni-ink);
}

.content-section,
.page-heading,
.archive-grid,
.next-article,
.single-article {
	max-width: var(--ni-max);
	margin: 0 auto;
	padding-left: 22px;
	padding-right: 22px;
}

.content-section {
	padding-top: 34px;
	padding-bottom: 34px;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
}

.card-grid {
	display: grid;
	gap: 22px;
}

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

.post-card {
	background: var(--ni-white);
	box-shadow: 0 10px 28px rgba(7, 17, 27, 0.08);
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #dfe5ea;
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.22s ease;
}

.post-card:hover .post-card-media img {
	transform: scale(1.04);
}

.post-card-body {
	padding: 18px 16px 20px;
}

.post-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.25;
}

.post-card p {
	margin: 0;
	color: var(--ni-muted);
	font-size: 14px;
}

.topics-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	background: var(--ni-white);
	border: 1px solid var(--ni-line);
}

.topic-tile {
	min-height: 106px;
	display: grid;
	place-items: center;
	gap: 6px;
	padding: 16px 10px;
	text-align: center;
	border-right: 1px solid var(--ni-line);
}

.topic-tile:last-child {
	border-right: 0;
}

.topic-tile span {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 2px solid var(--ni-ink);
	border-radius: 50%;
	font-weight: 900;
}

.topic-tile strong {
	font-size: 12px;
	text-transform: uppercase;
}

.triple-section {
	display: grid;
	grid-template-columns: 1.12fr 0.9fr 0.98fr;
	gap: 38px;
	align-items: start;
}

.large-card .post-card-media {
	aspect-ratio: 16 / 8.2;
}

.opinion-card {
	background: transparent;
	padding: 0;
}

.opinion-card h3 {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 1.16;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	color: var(--ni-muted);
	font-size: 13px;
}

.post-meta a {
	color: var(--ni-ink);
	font-weight: 700;
}

.agenda-item {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 18px;
	padding: 0 0 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--ni-line);
}

.agenda-item time {
	height: 66px;
	display: grid;
	place-items: center;
	border: 1px solid #9aa6b0;
	text-align: center;
	text-transform: uppercase;
}

.agenda-item time strong {
	display: block;
	font-size: 24px;
	line-height: 1;
}

.agenda-item time span {
	font-size: 12px;
}

.agenda-item h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.22;
}

.ad-slot {
	max-width: var(--ni-max);
	margin: 24px auto;
	padding: 0 22px;
}

.ad-slot > .widget,
.ad-slot-empty {
	min-height: 90px;
	display: grid;
	place-items: center;
	background: #eef1f3;
	border: 1px dashed #aeb8c1;
	color: var(--ni-muted);
	text-align: center;
}

.ad-slot-empty span {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.ad-slot-empty small {
	display: block;
}

.page-heading {
	padding-top: 50px;
	padding-bottom: 26px;
}

.page-heading h1,
.article-header h1 {
	margin: 0;
	color: var(--ni-ink);
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.08;
	letter-spacing: 0;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-bottom: 30px;
}

.load-more {
	display: block;
	margin: 0 auto 46px;
	border: 1px solid var(--ni-ink);
	background: transparent;
	padding: 13px 18px;
	color: var(--ni-ink);
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.load-more:disabled {
	opacity: 0.55;
	cursor: default;
}

.single-article {
	padding-top: 46px;
}

.article-header {
	max-width: 850px;
	margin: 0 auto 28px;
}

.article-header .post-meta {
	margin-top: 18px;
}

.article-hero {
	max-width: 1040px;
	margin: 0 auto 28px;
}

.article-hero img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
}

.article-hero figcaption {
	margin-top: 8px;
	color: var(--ni-muted);
	font-size: 13px;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) 280px;
	justify-content: center;
	gap: 60px;
}

.article-content {
	font-size: 19px;
	line-height: 1.75;
}

.article-content a {
	color: #005f8f;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.article-content h2,
.article-content h3 {
	line-height: 1.2;
	color: var(--ni-ink);
}

.article-tags {
	margin-top: 26px;
	font-size: 14px;
}

.article-sidebar .widget {
	margin-bottom: 24px;
	padding: 18px;
	background: var(--ni-white);
}

.author-box {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 18px;
	margin: 36px 0;
	padding: 24px;
	background: var(--ni-white);
	border-top: 3px solid var(--ni-orange);
}

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

.author-box h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.next-article {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	padding-top: 18px;
	padding-bottom: 48px;
}

.next-article a {
	display: block;
	padding: 22px;
	background: #07111b;
	color: var(--ni-white);
}

.next-article span {
	display: block;
	margin-bottom: 8px;
	color: var(--ni-orange);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.site-footer {
	background: #061321;
	color: var(--ni-white);
}

.newsletter-band {
	max-width: var(--ni-max);
	margin: 0 auto;
	padding: 26px 22px;
	display: grid;
	grid-template-columns: 54px 1fr minmax(280px, 440px);
	align-items: center;
	gap: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.newsletter-icon svg {
	width: 54px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.newsletter-band h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.1;
}

.newsletter-band p {
	margin: 4px 0 0;
}

.newsletter-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
}

.footer-inner {
	max-width: var(--ni-max);
	margin: 0 auto;
	padding: 28px 22px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.8fr;
	gap: 40px;
}

.footer-brand {
	font-size: 20px;
}

.footer-about p,
.footer-nav a,
.footer-bottom {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

.footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
}

.footer-social h3 {
	margin: 0 0 12px;
	font-size: 14px;
	text-transform: uppercase;
}

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

.social-row a {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	font-weight: 900;
}

.footer-bottom {
	max-width: var(--ni-max);
	margin: 0 auto;
	padding: 14px 22px 22px;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1020px) {
	.header-inner {
		grid-template-columns: 1fr auto;
		gap: 16px;
	}

	.primary-nav {
		grid-column: 1 / -1;
		order: 3;
		overflow-x: auto;
	}

	.primary-nav ul {
		justify-content: flex-start;
		gap: 22px;
	}

	.primary-nav a {
		padding: 12px 0 18px;
		white-space: nowrap;
	}

	.home-hero,
	.triple-section,
	.article-layout,
	.newsletter-band,
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.hero-side {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

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

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

@media (max-width: 640px) {
	.header-inner {
		min-height: 72px;
		padding: 0 16px;
	}

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

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

	.hero-copy {
		padding: 82px 22px 72px;
	}

	.hero-copy p {
		font-size: 18px;
	}

	.hero-dots {
		left: 22px;
	}

	.search-form,
	.newsletter-form,
	.card-grid.four,
	.archive-grid,
	.next-article {
		grid-template-columns: 1fr;
	}

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

	.mini-card {
		grid-template-columns: 92px 1fr;
	}

	.mini-card img {
		width: 92px;
		height: 78px;
	}

	.article-content {
		font-size: 17px;
	}

	.author-box {
		grid-template-columns: 1fr;
	}

	.footer-bottom {
		display: block;
	}
}
