/*
Theme Name: Neat News WP Fixed
Theme URI: https://neatandnews.com/
Author: Neat News
Author URI: https://neatandnews.com/
Description: A production-ready WordPress conversion of the uploaded React/TSX Nepali news portal. Built with PHP templates, semantic HTML, CSS, and minimal vanilla JavaScript. No React, JSX, Vite, Tailwind, CSS-in-JS, or JavaScript framework dependency.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neat-news-wp-fixed
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--nn-dark: #1e2d1f;
	--nn-green: #29b538;
	--nn-green-light: #34eb49;
	--nn-text: #1c1917;
	--nn-muted: #57534e;
	--nn-soft: #fafaf7;
	--nn-border: #d6d3d1;
	--nn-white: #ffffff;
	--nn-card: #ffffff;
	--nn-red: #dc2626;
	--nn-shadow: 0 15px 30px -10px rgba(52, 235, 73, 0.15);
	--nn-radius: 18px;
	--nn-container: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--nn-soft);
	color: var(--nn-text);
	font-family: "Mukta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus {
	color: var(--nn-green);
}

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

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

.screen-reader-text,
.skip-link {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link:focus {
	background: var(--nn-dark);
	clip: auto;
	clip-path: none;
	color: var(--nn-green-light);
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	border-radius: 10px;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.nn-container {
	width: min(100% - 2rem, var(--nn-container));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nn-white);
	border-bottom: 1px solid rgba(214, 211, 209, 0.85);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.masthead {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding-block: 0.8rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	justify-self: start;
}

.custom-logo-link,
.site-logo-fallback {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nn-dark);
	color: var(--nn-green-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	box-shadow: 0 0 0 3px rgba(52, 235, 73, 0.08);
	overflow: hidden;
}

.custom-logo-link {
	background: transparent;
	box-shadow: none;
	width: auto;
	min-width: 44px;
}

.custom-logo {
	max-height: 52px;
	width: auto;
	object-fit: contain;
}

.site-title-wrap {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-title {
	font-family: "Khand", sans-serif;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #111827;
}

.site-description {
	margin-top: 0.25rem;
	font-family: "Fira Sans Condensed", sans-serif;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nn-green);
}

.header-date {
	justify-self: end;
	font-size: 0.83rem;
	font-weight: 700;
	color: var(--nn-muted);
	text-align: right;
}

.header-ad {
	justify-self: center;
	max-width: 420px;
	width: 100%;
}

.primary-nav-wrap {
	border-top: 1px solid rgba(214, 211, 209, 0.85);
	border-bottom: 1px solid rgba(214, 211, 209, 0.85);
	background: #f5f5f4;
}

.primary-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.primary-menu,
.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	overflow-x: auto;
	white-space: nowrap;
}

.primary-menu a {
	display: block;
	padding: 0.8rem 0.95rem;
	font-family: "Khand", sans-serif;
	font-size: 1.08rem;
	font-weight: 600;
	color: #44403c;
	border-bottom: 2px solid transparent;
	transition: 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-post-ancestor > a {
	background: rgba(214, 211, 209, 0.38);
	border-bottom-color: var(--nn-green);
	color: var(--nn-green);
}

.menu-toggle {
	display: none;
	background: var(--nn-dark);
	color: var(--nn-green-light);
	border: 0;
	border-radius: 10px;
	padding: 0.65rem 0.9rem;
	font-weight: 800;
}

.header-search {
	position: relative;
	min-width: 220px;
}

.header-search .search-form {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.header-search label {
	flex: 1;
}

.search-field {
	width: 100%;
	border: 1px solid #d7d3cf;
	background: #fff;
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	font-size: 0.85rem;
	outline: none;
}

.search-field:focus {
	border-color: var(--nn-green);
	box-shadow: 0 0 0 3px rgba(52, 235, 73, 0.12);
}

.search-submit {
	border: 0;
	background: var(--nn-dark);
	color: var(--nn-green-light);
	border-radius: 999px;
	padding: 0.48rem 0.8rem;
	font-size: 0.8rem;
	font-weight: 800;
}

.site-main {
	flex: 1;	
	padding-block: 2rem;
}

.page-intro,
.archive-header,
.single-article,
.no-results {
	background: var(--nn-white);
	border: 1px solid rgba(214, 211, 209, 0.85);
	border-radius: var(--nn-radius);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
}

.page-intro {
	padding: clamp(1rem, 3vw, 2rem);
	margin-bottom: 2rem;
}

.page-intro h1,
.archive-header h1,
.single-title {
	margin: 0 0 0.8rem;
	font-family: "Khand", sans-serif;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.05;
	color: #111827;
}

.section-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 2px solid var(--nn-dark);
	padding-bottom: 0.55rem;
	margin-bottom: 1.15rem;
}

.section-kicker {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-family: "Khand", sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--nn-dark);
}

.section-kicker::before {
	content: "";
	width: 0.65rem;
	height: 1.55rem;
	border-radius: 999px;
	background: var(--nn-green);
	display: inline-block;
}

.view-all {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--nn-green);
}

.top-story {
	margin-bottom: 2rem;
}

.top-story__shell {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
	gap: 1.4rem;
	background: var(--nn-white);
	border: 1px solid rgba(214, 211, 209, 0.9);
	border-radius: var(--nn-radius);
	padding: clamp(1rem, 2vw, 1.35rem);
	box-shadow: var(--nn-shadow);
}

.top-story__panel {
	display: none;
}

.top-story__panel.is-active {
	display: block;
}

.top-story__image,
.news-card__media,
.single-featured {
	position: relative;
	overflow: hidden;
	background: #f5f5f4;
}

.top-story__image {
	border-radius: 16px;
	aspect-ratio: 16 / 9;
	border: 1px solid #e7e5e4;
}

.top-story__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 50%);
}

.top-story__image img,
.news-card__media img,
.single-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.top-story__panel:hover img,
.news-card:hover img {
	transform: scale(1.04);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 999px;
	background: var(--nn-dark);
	color: var(--nn-green-light);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.28rem 0.6rem;
}

.top-story__badge {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 2;
}

.video-badge {
	position: absolute;
	right: 1rem;
	top: 1rem;
	z-index: 2;
	background: #be123c;
	color: #fff;
}

.top-story__title {
	font-size: clamp(1.55rem, 4vw, 2.25rem);
	line-height: 1.12;
	font-weight: 900;
	letter-spacing: -0.02em;
	margin: 1rem 0 0.5rem;
}

.top-story__summary {
	color: var(--nn-muted);
	font-size: 1rem;
	margin: 0;
}

.meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	color: #78716c;
	font-size: 0.85rem;
	font-weight: 700;
	margin-top: 1rem;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-top: 1rem;
}

.nn-button,
.share-button,
.poll-button,
.comment-form .submit {
	border: 0;
	border-radius: 11px;
	background: var(--nn-dark);
	color: var(--nn-green-light);
	padding: 0.65rem 0.9rem;
	font-weight: 900;
	font-size: 0.86rem;
	transition: 0.22s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.nn-button:hover,
.share-button:hover,
.poll-button:hover,
.comment-form .submit:hover {
	background: var(--nn-green-light);
	color: #111827;
}

.share-button {
	background: #f5f5f4;
	color: #44403c;
	border: 1px solid #e7e5e4;
}

.top-story__switcher {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.switcher-note {
	background: #f8fafc;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	padding: 0.85rem;
	color: var(--nn-muted);
	font-size: 0.86rem;
}

.top-story-tab {
	text-align: left;
	border: 1px solid #e7e5e4;
	background: #fff;
	border-radius: 14px;
	padding: 0.85rem;
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.7rem;
	align-items: start;
	transition: 0.22s ease;
}

.top-story-tab__number {
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 8px;
	background: #f5f5f4;
	color: #57534e;
	display: grid;
	place-items: center;
	font-size: 0.78rem;
	font-weight: 900;
}

.top-story-tab__category {
	display: block;
	color: #78716c;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.top-story-tab__title {
	display: block;
	font-weight: 800;
	font-size: 0.9rem;
	line-height: 1.3;
}

.top-story-tab.is-active,
.top-story-tab:hover {
	border-color: var(--nn-green-light);
	background: rgba(52, 235, 73, 0.09);
	box-shadow: 0 8px 20px rgba(52, 235, 73, 0.12);
}

.top-story-tab.is-active .top-story-tab__number {
	background: var(--nn-dark);
	color: var(--nn-green-light);
}

.news-ticker {
	margin-top: auto;
	background: var(--nn-dark);
	color: #f5f5f4;
	border: 1px solid rgba(52, 235, 73, 0.25);
	border-radius: 14px;
	padding: 0.72rem 0.85rem;
	display: flex;
	gap: 0.7rem;
	align-items: center;
	font-size: 0.85rem;
	overflow: hidden;
}

.news-ticker strong {
	background: rgba(52, 235, 73, 0.16);
	color: var(--nn-green-light);
	border-radius: 8px;
	padding: 0.15rem 0.45rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
}

.special-grid,
.news-grid,
.utility-grid,
.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.special-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 2rem;
}

.special-card {
	background: linear-gradient(145deg, rgba(52, 235, 73, 0.06), #fff);
	border: 1px solid rgba(214, 211, 209, 0.9);
	border-radius: var(--nn-radius);
	padding: 1.1rem;
	min-height: 160px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
	transition: 0.22s ease;
}

.special-card:hover {
	transform: translateY(-3px);
	border-color: rgba(52, 235, 73, 0.7);
	box-shadow: var(--nn-shadow);
}

.special-card h3 {
	margin: 0 0 0.2rem;
	font-family: "Khand", sans-serif;
	font-size: 1.35rem;
	line-height: 1;
}

.special-card p {
	margin: 0;
	color: var(--nn-muted);
	font-size: 0.88rem;
}

.special-card__latest {
	border-top: 1px solid rgba(214, 211, 209, 0.65);
	padding-top: 0.65rem;
	margin-top: 0.8rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--nn-green);
}

.news-section {
	margin-top: 2.5rem;
}

.news-card {
	background: var(--nn-card);
	border: 1px solid rgba(214, 211, 209, 0.9);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.025);
	transition: 0.24s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	border-color: rgba(52, 235, 73, 0.55);
	box-shadow: var(--nn-shadow);
}

.news-card__media {
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid #f5f5f4;
}

.news-card__badge {
	position: absolute;
	left: 0.85rem;
	top: 0.85rem;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	border: 1px solid rgba(214, 211, 209, 0.6);
}

.news-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	flex: 1;
}

.news-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 900;
}

.news-card__summary {
	margin: 0;
	color: var(--nn-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.news-card__footer {
	margin-top: auto;
	padding-top: 0.9rem;
	border-top: 1px solid #f5f5f4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	font-size: 0.78rem;
	color: #78716c;
}

.author-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 800;
	min-width: 0;
}

.author-chip::before {
	content: attr(data-initial);
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: rgba(52, 235, 73, 0.16);
	color: var(--nn-green);
	display: inline-grid;
	place-items: center;
	font-size: 0.75rem;
	border: 1px solid rgba(52, 235, 73, 0.25);
	flex: 0 0 auto;
}

.read-more {
	font-weight: 900;
	color: var(--nn-green);
	white-space: nowrap;
}

.ad-widget {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(214, 211, 209, 0.95);
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
}

.ad-widget a {
	display: block;
}

.ad-widget img {
	width: 100%;
	max-height: 210px;
	object-fit: cover;
}

.ad-widget__label {
	position: absolute;
	right: 0.7rem;
	top: 0.7rem;
	z-index: 2;
	background: rgba(30, 45, 31, 0.82);
	color: var(--nn-green-light);
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.25rem 0.48rem;
	border-radius: 8px;
}

.ad-widget__body {
	padding: 0.75rem 0.9rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	background: #fafaf9;
	font-size: 0.8rem;
	font-weight: 800;
}

.ad-widget--header img {
	max-height: 86px;
}

.ad-placeholder {
	border: 1px dashed #d6d3d1;
	border-radius: 14px;
	padding: 0.9rem;
	color: #78716c;
	font-size: 0.8rem;
	text-align: center;
	background: #fafaf9;
}

.ad-floating {
	position: fixed;
	right: 1.3rem;
	bottom: 1.3rem;
	z-index: 70;
	max-width: 315px;
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.ad-floating.is-hidden {
	display: none;
}

.ad-floating__close {
	position: absolute;
	right: 0.55rem;
	top: 0.55rem;
	z-index: 4;
	width: 1.55rem;
	height: 1.55rem;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-weight: 900;
}

.utility-grid {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	margin-top: 2.5rem;
}

.poll-box,
.video-box {
	background: #fff;
	border: 1px solid rgba(214, 211, 209, 0.9);
	border-radius: var(--nn-radius);
	padding: 1.2rem;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
}

.poll-box h3,
.video-box h3 {
	margin: 0 0 1rem;
	font-size: 1.22rem;
	line-height: 1.3;
}

.poll-options {
	display: grid;
	gap: 0.65rem;
}

.poll-button {
	width: 100%;
	justify-content: space-between;
	background: #fafaf9;
	color: #292524;
	border: 1px solid #e7e5e4;
	text-align: left;
}

.poll-results {
	display: none;
	gap: 0.8rem;
}

.poll-box.has-voted .poll-options {
	display: none;
}

.poll-box.has-voted .poll-results {
	display: grid;
}

.poll-result__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.82rem;
	font-weight: 900;
}

.poll-bar {
	height: 0.65rem;
	background: #f5f5f4;
	border-radius: 999px;
	overflow: hidden;
}

.poll-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--nn-green);
	border-radius: inherit;
	transition: width 0.4s ease;
}

.video-box {
	background: var(--nn-dark);
	color: #fff;
	border-color: rgba(52, 235, 73, 0.2);
}

.video-box h3,
.video-box a {
	color: var(--nn-green-light);
}

.video-frame {
	aspect-ratio: 16 / 9;
	background: #0f172a;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(52, 235, 73, 0.18);
}

.video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.video-list {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.9rem;
}

.video-list a {
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	font-weight: 800;
	font-size: 0.9rem;
}

.archive-header {
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

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

.single-article {
	padding: clamp(1.1rem, 3vw, 2rem);
	max-width: 900px;
	margin-inline: auto;
}

.single-featured {
	border-radius: 18px;
	aspect-ratio: 16 / 9;
	margin: 1.4rem 0;
}

.single-content {
	font-size: 1.08rem;
	line-height: 1.85;
}

.single-content p {
	margin: 0 0 1.3rem;
}

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

.post-navigation,
.posts-pagination {
	max-width: 900px;
	margin: 2rem auto 0;
}

.posts-pagination .nav-links {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

.posts-pagination a,
.posts-pagination span,
.post-navigation a {
	display: inline-flex;
	padding: 0.55rem 0.75rem;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	font-weight: 800;
}

.no-results {
	padding: 2rem;
	text-align: center;
}

.comments-area {
	max-width: 900px;
	margin: 2rem auto 0;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: var(--nn-radius);
	padding: 1.4rem;
}

.comment-list {
	padding-left: 1.2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid #d6d3d1;
	border-radius: 12px;
	padding: 0.75rem 0.85rem;
}

.site-footer {
	background: #f5f5f4;
	border-top: 1px solid rgba(214, 211, 209, 0.95);
	color: var(--nn-muted);
	padding: 3.5rem 0 2rem;
	margin-top: 3rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 2rem;
}

.footer-brand {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	font-size: 1.35rem;
	font-weight: 900;
	color: #111827;
}

.footer-about {
	max-width: 680px;
}

.footer-contact {
	border-left: 1px solid #d6d3d1;
	padding-left: 2rem;
}

.footer-contact h3 {
	margin-top: 0;
	font-size: 1rem;
	text-transform: uppercase;
	color: #111827;
}

.footer-contact p {
	margin: 0 0 0.45rem;
}

.footer-bottom {
	border-top: 1px solid #d6d3d1;
	margin-top: 2.2rem;
	padding-top: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.82rem;
	color: #78716c;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

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

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
}

@media (max-width: 980px) {
	.masthead {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.site-branding,
	.header-date,
	.header-ad {
		justify-self: center;
	}

	.primary-nav-inner {
		align-items: stretch;
		padding-block: 0.55rem;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.site-navigation {
		display: none;
		position: absolute;
		left: 1rem;
		right: 1rem;
		top: 100%;
		background: #fff;
		border: 1px solid #e7e5e4;
		border-radius: 16px;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
		padding: 0.6rem;
	}

	.site-navigation.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		overflow: visible;
	}

	.primary-menu a {
		border-radius: 10px;
	}

	.header-search {
		min-width: 170px;
	}

	.top-story__shell,
	.footer-grid,
	.utility-grid {
		grid-template-columns: 1fr;
	}

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

	.footer-contact {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid #d6d3d1;
		padding-top: 1.4rem;
	}
}

@media (max-width: 640px) {
	.nn-container {
		width: min(100% - 1rem, var(--nn-container));
	}

	.primary-nav-inner {
		flex-wrap: wrap;
	}

	.header-search {
		width: 100%;
		order: 3;
	}

	.special-grid,
	.news-grid,
	.archive-grid {
		grid-template-columns: 1fr;
	}

	.section-title-row,
	.footer-bottom,
	.news-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.ad-floating {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		max-width: none;
	}
}

.poll-box.has-voted .poll-percent-15 { width: 15%; }
.poll-box.has-voted .poll-percent-27 { width: 27%; }
.poll-box.has-voted .poll-percent-58 { width: 58%; }

.nn-clipboard-helper {
	position: absolute;
	left: -9999px;
}
