/* =========================================================================
   Astra News Child — theme.css

   Every selector is scoped to a .news-* class. No bare h1/h2/p/a/div/button
   rules, so Elementor pages and Astra pages are never touched by this file.

   1.  Tokens (colors, fonts, weights — change them here only)
   2.  Shared primitives
   3.  Header
   4.  Ticker
   5.  Footer
   6.  Cards and grids
   7.  Homepage
   8.  Single post (article + sticky TOC sidebar)
   9.  Archive, search, 404
   9b. Astra overrides
   10. Responsive
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */

:root {
	/* Colors */
	--news-primary:    #00003e;
	--news-secondary:  #12124f;
	--news-accent:     #dd4537;
	--news-accent-dark:#bf3527;
	--news-text:       #0d0d14;
	--news-muted:      #6e6e7c;
	--news-background: #fffefa;
	--news-surface:    #ffffff;
	--news-tint:       #faf8f3;
	--news-dark:       #00003e;
	--news-border:     #e7e4dc;
	--news-on-dark:    #ffffff;
	--news-on-dark-mut:#b9b9d0;

	/* Type */
	--news-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--news-font-heading: var(--news-font);

	/* Weights — raise these two if you ever want a bolder site again */
	--news-weight-heading: 600;   /* headlines, card titles, section titles */
	--news-weight-strong:  700;   /* logo, footer titles, emphasis          */

	/* Shape and rhythm */
	--news-radius:     10px;
	--news-radius-lg:  14px;
	--news-gap:        24px;
	--news-section:    clamp(40px, 5vw, 64px);
	--news-container:  1480px;
	--news-article:    1160px;   /* article + sidebar column width */
	--news-ease:       cubic-bezier(.2, .6, .3, 1);
}

/* Typography applies only inside theme components, never site-wide. */
.news-topbar,
.news-header,
.news-footer,
.news-ticker,
.news-main,
.news-search-panel,
.news-mobile-menu {
	font-family: var(--news-font);
}

/* Astra pads <article> on posts; strip it inside this theme's templates only. */
.news-main article {
	padding: 0 !important;
}

/* -------------------------------------------------------------------------
   2. Shared primitives
   ---------------------------------------------------------------------- */

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

.news-main {
	background: var(--news-background);
	color: var(--news-text);
	overflow-x: clip;
}

.news-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.news-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--news-primary);
	color: var(--news-on-dark) !important;
	font-family: var(--news-font);
	font-size: .88rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s var(--news-ease), color .18s var(--news-ease);
}

.news-btn:hover,
.news-btn:focus {
	background: var(--news-accent);
	color: var(--news-on-dark) !important;
}

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

.news-btn--accent:hover,
.news-btn--accent:focus {
	background: var(--news-primary);
}

.news-btn--light {
	background: var(--news-surface);
	color: var(--news-primary) !important;
}

.news-btn--light:hover,
.news-btn--light:focus {
	background: var(--news-accent);
	color: var(--news-on-dark) !important;
}

.news-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--news-on-dark);
	cursor: pointer;
}

.news-icon-btn:hover,
.news-icon-btn:focus {
	background: rgba(255, 255, 255, .12);
	color: var(--news-on-dark);
}

.news-header :focus-visible,
.news-footer :focus-visible,
.news-main :focus-visible {
	outline: 2px solid var(--news-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Red category label */
.news-category-label {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 4px;
	background: var(--news-accent);
	color: var(--news-on-dark) !important;
	font-size: .7rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

.news-category-label:hover {
	background: var(--news-accent-dark);
	color: var(--news-on-dark) !important;
}

/* Section heading: red square, title, rule, "See All" */
.news-section-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.news-section-head__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--news-text);
	font-family: var(--news-font-heading);
	font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.018em;
	line-height: 1.25;
	white-space: nowrap;
}

.news-section-head__title::before {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: var(--news-accent);
}

.news-section-head__rule {
	flex: 1 1 auto;
	height: 1px;
	background: var(--news-border);
}

.news-section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--news-accent) !important;
	font-size: .84rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.news-section-head__link .news-icon {
	width: 15px;
	height: 15px;
}

.news-section-head--dark .news-section-head__title {
	color: var(--news-on-dark);
}

.news-section-head--dark .news-section-head__title::before {
	display: none;
}

.news-section-head--dark .news-section-head__rule {
	background: rgba(255, 255, 255, .22);
}

.news-section-head--dark .news-section-head__link {
	color: var(--news-on-dark) !important;
}

/* -------------------------------------------------------------------------
   3. Header
   ---------------------------------------------------------------------- */

/* Only .news-header sticks. The top bar and ticker are siblings of it, so
   they scroll away normally. */
.news-header {
	position: relative;
	z-index: 50;
	background: var(--news-primary);
}

.news-has-sticky-header .news-header {
	position: sticky;
	top: 0;
}

.admin-bar.news-has-sticky-header .news-header {
	top: 32px;
}

.news-header.is-stuck {
	box-shadow: 0 6px 24px rgba(0, 0, 62, .28);
}

.news-topbar {
	background: var(--news-primary);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	color: var(--news-on-dark-mut);
	font-size: .76rem;
}

.news-topbar__note {
	color: var(--news-on-dark-mut) !important;
	text-decoration: none;
}

a.news-topbar__note:hover {
	color: var(--news-on-dark) !important;
}

.news-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 9px;
}

.news-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px;
}

.news-logo {
	color: var(--news-on-dark) !important;
	font-family: var(--news-font-heading);
	font-size: 1.6rem;
	font-weight: var(--news-weight-strong);
	letter-spacing: -0.03em;
	line-height: 1;
	text-decoration: none;
}

.news-logo--image {
	display: inline-flex;
	line-height: 0;
}

.news-logo__img {
	display: block;
	width: auto;
	height: auto;
}

.news-header__brand .custom-logo-link img {
	display: block;
	max-height: 42px;
	width: auto;
}

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

.news-nav__menu li {
	position: relative;
	margin: 0;
	list-style: none;
}

.news-nav__menu > li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -3px;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	transform: translateY(-50%);
}

.news-nav__menu a {
	display: block;
	padding: 8px 13px;
	color: var(--news-on-dark) !important;
	font-size: .88rem;
	font-weight: 400;
	text-decoration: none;
}

.news-nav__menu a:hover,
.news-nav__menu .current-menu-item > a {
	color: #fff !important;
	opacity: .85;
}

.news-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	border-radius: var(--news-radius);
	background: var(--news-secondary);
	box-shadow: 0 20px 40px rgba(0, 0, 62, .3);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .16s var(--news-ease);
}

.news-nav__menu li:hover > .sub-menu,
.news-nav__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.news-nav__menu .sub-menu a {
	padding: 9px 12px;
	border-radius: 6px;
	font-size: .86rem;
}

.news-nav__menu .sub-menu a:hover {
	background: rgba(221, 69, 55, .18);
}

.news-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

/* Search panel */
.news-search-panel {
	padding-block: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: var(--news-secondary);
}

.news-search-panel .search-form,
.news-archive__search .search-form,
.news-404__search .search-form {
	display: flex;
	gap: 8px;
}

.news-search-panel .search-field {
	flex: 1;
	padding: 11px 16px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-family: var(--news-font);
	font-size: .9rem;
}

.news-search-panel .search-field::placeholder {
	color: rgba(255, 255, 255, .6);
}

.news-search-panel .search-submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--news-accent);
	color: #fff;
	font-family: var(--news-font);
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
}

/* Mobile menu */
.news-mobile-menu {
	max-height: calc(100vh - var(--news-sticky-offset, 80px));
	overflow-y: auto;
	padding-block: 12px 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: var(--news-primary);
}

.news-mobile-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-mobile-menu__list li {
	margin: 0;
	list-style: none;
}

.news-mobile-menu__list a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	color: var(--news-on-dark) !important;
	font-size: .95rem;
	font-weight: 400;
	text-decoration: none;
}

.news-mobile-menu__list .sub-menu {
	margin: 0;
	padding-left: 16px;
	list-style: none;
}

.news-mobile-menu__cta {
	width: 100%;
	margin-top: 16px;
}

.news-mobile-menu__list--secondary a {
	color: var(--news-on-dark-mut) !important;
	font-size: .88rem;
}

/* -------------------------------------------------------------------------
   4. Ticker
   ---------------------------------------------------------------------- */

.news-ticker {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background: var(--news-accent);
	color: var(--news-on-dark);
}

.news-ticker__label {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 18px;
	background: var(--news-primary);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.news-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.news-ticker__track {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-block: 11px;
	white-space: nowrap;
	animation: news-marquee 45s linear infinite;
}

.news-ticker:hover .news-ticker__track,
.news-ticker__track:focus-within {
	animation-play-state: paused;
}

@keyframes news-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.news-ticker__item {
	position: relative;
	color: var(--news-on-dark) !important;
	font-size: .84rem;
	font-weight: 400;
	text-decoration: none;
}

.news-ticker__item:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.news-ticker__item:not(:first-child)::before {
	content: "";
	position: absolute;
	left: -22px;
	top: 50%;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, .8);
	transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
   5. Footer
   ---------------------------------------------------------------------- */

.news-footer {
	background: var(--news-primary);
	color: var(--news-on-dark-mut);
}

.news-footer a {
	color: var(--news-on-dark-mut) !important;
	text-decoration: none;
}

.news-footer a:hover {
	color: var(--news-on-dark) !important;
}

.news-footer__newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	padding-block: 44px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.news-footer__newsletter-title {
	max-width: 24ch;
	margin: 0;
	color: var(--news-on-dark);
	font-family: var(--news-font-heading);
	font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem);
	font-weight: var(--news-weight-heading);
	line-height: 1.32;
	letter-spacing: -0.018em;
}

.news-footer__newsletter-muted {
	color: var(--news-on-dark-mut);
}

/* Shortcode forms (Mailchimp for WP, WPForms, CF7, Fluent Forms…) restyled
   to match. Scoped to the footer newsletter slot only. */
.news-footer__newsletter-form {
	flex: 0 1 520px;
	min-width: 0;
}

.news-footer__newsletter-form form,
.news-footer__newsletter-form .mc4wp-form-fields,
.news-footer__newsletter-form .wpforms-field-container {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: flex-start;
	margin: 0;
}

.news-footer__newsletter-form p,
.news-footer__newsletter-form .wpforms-field {
	margin: 0;
	padding: 0;
}

.news-footer__newsletter-form label {
	color: var(--news-on-dark-mut);
	font-size: .82rem;
}

.news-footer__newsletter-form input[type="email"],
.news-footer__newsletter-form input[type="text"] {
	width: 100%;
	min-width: 240px;
	padding: 13px 18px;
	border: 1px solid rgba(255, 255, 255, .22) !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, .08) !important;
	color: #fff !important;
	font-family: var(--news-font);
	font-size: .88rem;
}

.news-footer__newsletter-form input::placeholder {
	color: rgba(255, 255, 255, .55);
}

.news-footer__newsletter-form button,
.news-footer__newsletter-form input[type="submit"] {
	padding: 13px 26px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--news-surface) !important;
	color: var(--news-primary) !important;
	font-family: var(--news-font);
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
}

.news-footer__newsletter-form button:hover,
.news-footer__newsletter-form input[type="submit"]:hover {
	background: var(--news-accent) !important;
	color: #fff !important;
}

.news-newsletter-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.news-newsletter-form input[type="email"] {
	min-width: 260px;
	flex: 1 1 240px;
	padding: 13px 18px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-family: var(--news-font);
	font-size: .88rem;
}

.news-newsletter-form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, .55);
}

.news-footer__main {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding-block: 52px;
}

/* The template counts visible columns so hidden ones leave no gap. */
.news-footer__main--3 { grid-template-columns: 1.6fr 1fr 1.3fr; }
.news-footer__main--2 { grid-template-columns: 1.6fr 1fr; }
.news-footer__main--1 { grid-template-columns: minmax(0, 560px); }

.news-logo--footer {
	display: inline-block;
	margin-bottom: 16px;
}

.news-footer__desc {
	max-width: 42ch;
	margin: 0 0 24px;
	font-size: .86rem;
	line-height: 1.65;
}

.news-footer__follow {
	margin: 0 0 12px;
	font-size: .82rem;
}

.news-social {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-social li {
	margin: 0;
	list-style: none;
}

.news-social a {
	display: inline-flex;
	color: var(--news-on-dark) !important;
}

.news-social a:hover {
	opacity: .7;
}

.news-footer__col-title {
	margin: 0 0 16px;
	color: var(--news-on-dark);
	font-family: var(--news-font-heading);
	font-size: .92rem;
	font-weight: var(--news-weight-heading);
}

.news-footer__menu,
.news-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-footer__menu li,
.news-footer__contact li {
	margin: 0 0 11px;
	font-size: .86rem;
	line-height: 1.55;
	list-style: none;
}

.news-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding-block: 18px;
	font-size: .8rem;
}

.news-footer__bottom p {
	margin: 0;
}

.news-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	flex-wrap: wrap;
}

.news-footer__bottom-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-footer__bottom-links li {
	margin: 0;
	list-style: none;
}

.news-footer__contact-text {
	margin: 0 0 14px;
	font-size: .86rem;
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
   6. Cards and grids
   ---------------------------------------------------------------------- */

.news-grid {
	display: grid;
	gap: var(--news-gap);
	row-gap: 50px;
}

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

.news-card {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.news-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--news-radius);
	line-height: 0;
}

.news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s var(--news-ease);
}

.news-card:hover .news-card__media img {
	transform: scale(1.03);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 14px;
}

.news-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--news-muted);
	font-size: .78rem;
	font-weight: 400;
}

.news-card__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--news-accent);
	opacity: .55;
}

.news-card__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.news-card__title {
	margin: 0;
	font-family: var(--news-font-heading);
	font-size: .95rem;
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.01em;
	line-height: 1.45;
}

.news-card__title a {
	color: var(--news-text) !important;
	text-decoration: none;
}

.news-card__title a:hover {
	color: var(--news-accent) !important;
}

.news-card__excerpt {
	margin: 0;
	color: var(--news-muted);
	font-size: .86rem;
	line-height: 1.6;
}

.news-card__tags {
	display: flex;
	gap: 10px;
	margin: 0;
	font-size: .78rem;
}

.news-card__tags a {
	color: var(--news-muted) !important;
	text-decoration: none;
}

/* List variant — hero side rail */
.news-card--list {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding-block: 20px;
	border-bottom: 1px solid var(--news-border);
}

.news-card--list .news-card__media img {
	aspect-ratio: 1 / 1;
}

.news-card--list .news-card__body {
	padding-top: 0;
}

.news-card--list .news-card__title {
	font-size: .9rem;
}

.news-story-list .news-card--list:last-child {
	border-bottom: 0;
}

.news-story-list .news-card.news-card--list {
	padding: 15px 0 !important;
}

/* Overlay variant — dark section */
.news-card--overlay {
	position: relative;
	border-radius: var(--news-radius-lg);
	overflow: hidden;
}

.news-card--overlay .news-card__media {
	border-radius: var(--news-radius-lg);
}

.news-card--overlay .news-card__media img {
	aspect-ratio: 16 / 10;
}

.news-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 20, .88) 0%, rgba(0, 0, 20, .35) 42%, rgba(0, 0, 20, 0) 70%);
	pointer-events: none;
}

.news-card--overlay .news-card__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	padding: 24px;
}

.news-card--overlay .news-card__title {
	font-size: clamp(.98rem, .85rem + .6vw, 1.2rem);
	line-height: 1.38;
}

.news-card--overlay .news-card__title a {
	color: #fff !important;
}

/* Cards inside the dark section */
.news-section--dark .news-card__title a {
	color: #fff !important;
}

.news-section--dark .news-card__title a:hover {
	opacity: .8;
}

.news-section--dark .news-card__meta {
	color: var(--news-on-dark-mut);
}

/* -------------------------------------------------------------------------
   7. Homepage
   ---------------------------------------------------------------------- */

.news-hero {
	padding-block: var(--news-section) 0;
}

.news-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 48px;
}

.news-hero__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--news-radius-lg);
	line-height: 0;
}

.news-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.news-hero__overlay {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 26px;
	line-height: 1.4;
}

.news-hero__kicker {
	max-width: 36ch;
	color: #fff;
	font-family: var(--news-font-heading);
	font-size: clamp(1rem, .88rem + .6vw, 1.3rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.012em;
	line-height: 1.4;
}

.news-hero__overlay-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, .85);
	font-size: .8rem;
	font-weight: 400;
}

.news-hero__byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 18px;
	color: var(--news-muted);
	font-size: .84rem;
	font-weight: 400;
}

.news-hero__readmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--news-accent) !important;
	font-weight: 500;
	text-decoration: none;
}

.news-hero__readmore .news-icon {
	width: 15px;
	height: 15px;
}

.news-hero__title {
	margin: 0 0 14px;
	font-family: var(--news-font-heading);
	font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.15rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.028em;
	line-height: 1.18;
}

.news-hero__title a {
	color: var(--news-text) !important;
	text-decoration: none;
}

.news-hero__title a:hover {
	color: var(--news-accent) !important;
}

.news-hero__excerpt {
	max-width: 64ch;
	margin: 0;
	color: var(--news-muted);
	font-size: .95rem;
	line-height: 1.7;
}

.news-hero__side {
	padding-left: 40px;
	border-left: 1px solid var(--news-border);
}

.news-section {
	padding-block: var(--news-section);
}

.news-section--dark {
	background: var(--news-dark);
	color: var(--news-on-dark);
}

.news-section--tint {
	background: var(--news-tint);
}

.news-section--dark .news-grid--2 {
	margin-bottom: var(--news-gap);
}

/* Editorial band */
.news-editorial {
	padding-block: var(--news-section);
}

.news-editorial__card {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding: 28px;
	border: 1px solid var(--news-border);
	border-radius: var(--news-radius-lg);
	background: var(--news-surface);
}

.news-editorial__media {
	display: block;
	overflow: hidden;
	border-radius: var(--news-radius);
	line-height: 0;
}

.news-editorial__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.news-editorial__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.news-editorial__title {
	margin: 0;
	font-family: var(--news-font-heading);
	font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.022em;
	line-height: 1.28;
}

.news-editorial__title a {
	color: var(--news-text) !important;
	text-decoration: none;
}

.news-editorial__title a:hover {
	color: var(--news-accent) !important;
}

.news-editorial__excerpt {
	margin: 0;
	color: var(--news-muted);
	font-size: .92rem;
	line-height: 1.7;
}

/* Newsletter CTA */
.news-cta {
	padding-block: var(--news-section);
}

.news-cta__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: clamp(44px, 7vw, 88px) 24px;
	border-radius: var(--news-radius-lg);
	background: linear-gradient(135deg, #1a4fd6 0%, #0b2f9c 55%, #061a63 100%);
	text-align: center;
}

.news-cta__panel--image {
	background-position: center;
	background-size: cover;
}

.news-cta__title {
	max-width: 22ch;
	margin: 0;
	color: #fff;
	font-family: var(--news-font-heading);
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
	font-weight: var(--news-weight-strong);
	letter-spacing: -0.025em;
	line-height: 1.22;
}

.news-cta__text {
	max-width: 54ch;
	margin: 0;
	color: rgba(255, 255, 255, .85);
	font-size: .92rem;
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
   8. Single post — article with sticky TOC sidebar
   ---------------------------------------------------------------------- */

.news-article__top {
	padding-top: 26px;
	max-width: var(--news-article);
}

.news-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--news-muted);
	font-size: .78rem;
}

.news-breadcrumb a {
	color: var(--news-muted) !important;
	text-decoration: none;
}

.news-breadcrumb a:hover {
	color: var(--news-accent) !important;
}

.news-breadcrumb__current {
	color: var(--news-text);
}

/* Layout */
.news-article__grid,
.news-single .news-article__grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	max-width: var(--news-article);
	padding-top: 32px;
	padding-bottom: var(--news-section);
}

.news-article__grid--full,
.news-single .news-article__grid--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: 840px;
}

.news-article__col {
	min-width: 0;
	max-width: 720px;
}

.news-article__grid--full .news-article__col {
	max-width: none;
}

/* Sidebar table of contents */
.news-article__sidebar {
	position: sticky;
	top: calc(var(--news-sticky-offset, 156px) + 24px);
	align-self: start;
	min-width: 0;
}

.news-toc {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.news-toc__title {
	margin: 0 0 14px;
	color: var(--news-muted);
	font-family: var(--news-font-heading);
	font-size: .8rem;
	font-weight: var(--news-weight-heading);
	letter-spacing: .01em;
}

.news-toc__list {
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--news-border);
	list-style: none;
}

.news-toc__item {
	margin: 0;
	list-style: none;
}

.news-toc__list a {
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	color: var(--news-muted) !important;
	font-size: .84rem;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	transition: color .16s var(--news-ease), border-color .16s var(--news-ease);
}

.news-toc__item--h3 a {
	padding-left: 28px;
	font-size: .8rem;
}

.news-toc__list a:hover {
	color: var(--news-text) !important;
}

.news-toc__item.is-active > a {
	border-left-color: var(--news-accent);
	color: var(--news-text) !important;
	font-weight: 500;
}

/* Article header */
.news-article__header {
	margin-bottom: 22px;
}

.news-article__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--news-accent) !important;
	font-size: .8rem;
	font-weight: 500;
	text-decoration: none;
}

.news-article__eyebrow:hover {
	color: var(--news-accent-dark) !important;
}

.news-article__title {
	margin: 0 0 20px;
	font-family: var(--news-font-heading);
	font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.028em;
	line-height: 1.22;
	color: var(--news-text);
}

.news-article__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-block: 16px;
	border-top: 1px solid var(--news-border);
	border-bottom: 1px solid var(--news-border);
}

.news-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.news-article__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.news-article__author {
	color: var(--news-text) !important;
	font-size: .88rem;
	font-weight: 500;
	text-decoration: none;
}

.news-article__meta-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0;
	color: var(--news-muted);
	font-size: .8rem;
}

.news-article__standfirst {
	margin: 0 0 20px;
	color: #43434f;
	font-size: 1rem;
	line-height: 1.72;
}

/* Share row — sits inside the meta row */
.news-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.news-share__label {
	margin-right: 4px;
	color: var(--news-muted);
	font-size: .8rem;
	font-weight: 500;
}

.news-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--news-border);
	border-radius: 50%;
	background: var(--news-surface);
	color: var(--news-primary) !important;
	cursor: pointer;
	transition: background-color .16s var(--news-ease), color .16s var(--news-ease);
}

.news-share__btn .news-icon {
	width: 16px;
	height: 16px;
}

.news-share__btn:hover {
	background: var(--news-primary);
	color: #fff !important;
}

/* Tags */
.news-article__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.news-article__tags a {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	background: #f1eee7;
	color: #4a4a58 !important;
	font-size: .76rem;
	font-weight: 500;
	text-decoration: none;
}

.news-article__tags a:hover {
	background: var(--news-accent);
	color: #fff !important;
}

/* Featured image */
.news-article__figure {
	margin: 0 0 32px;
}

.news-article__figure img {
	display: block;
	width: 100%;
	border-radius: var(--news-radius);
}

.news-article__figure figcaption {
	margin-top: 10px;
	color: var(--news-muted);
	font-size: .8rem;
	line-height: 1.5;
}

/* Article typography — scoped to .article-content only */
.news-single .article-content {
	color: #2f2f3a;
	font-size: 1rem;
	line-height: 1.78;
}

.news-single .article-content > * {
	margin-block: 0 1.3em;
}

.news-single .article-content h2 {
	margin-block: 1.7em .5em;
	font-family: var(--news-font-heading);
	font-size: 1.3rem;
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.018em;
	line-height: 1.35;
	color: var(--news-text);
	scroll-margin-top: calc(var(--news-sticky-offset, 96px) + 24px);
}

.news-single .article-content h3 {
	margin-block: 1.4em .4em;
	font-family: var(--news-font-heading);
	font-size: 1.08rem;
	font-weight: var(--news-weight-heading);
	line-height: 1.4;
	color: var(--news-text);
	scroll-margin-top: calc(var(--news-sticky-offset, 96px) + 24px);
}

.news-single .article-content a {
	color: var(--news-primary) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(221, 69, 55, .5);
}

.news-single .article-content a:hover {
	color: var(--news-accent) !important;
}

.news-single .article-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--news-radius);
}

.news-single .article-content blockquote {
	margin-inline: 0;
	padding: 18px 22px;
	border-left: 3px solid var(--news-accent);
	border-radius: 0 var(--news-radius) var(--news-radius) 0;
	background: #f6f4ee;
	font-size: 1rem;
}

.news-single .article-content ul,
.news-single .article-content ol {
	padding-left: 1.3em;
}

.news-single .article-content li {
	margin-bottom: .45em;
}

/* Author box */
.news-authorbox {
	display: flex;
	gap: 20px;
	margin-top: 36px;
	padding: 22px;
	border: 1px solid var(--news-border);
	border-radius: var(--news-radius-lg);
	background: var(--news-tint);
}

.news-authorbox__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.news-authorbox__name {
	margin: 0 0 6px;
	font-family: var(--news-font-heading);
	font-size: 1rem;
	font-weight: var(--news-weight-heading);
	color: var(--news-text);
}

.news-authorbox__bio {
	margin: 0 0 10px;
	color: var(--news-muted);
	font-size: .88rem;
	line-height: 1.65;
}

.news-authorbox__link {
	color: var(--news-accent) !important;
	font-size: .84rem;
	font-weight: 500;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   9. Archive, search, 404
   ---------------------------------------------------------------------- */

.news-archive__header {
	padding-block: var(--news-section) 28px;
}

.news-archive__eyebrow {
	margin: 0 0 6px;
	color: var(--news-muted);
	font-size: .84rem;
	font-weight: 500;
}

.news-archive__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-family: var(--news-font-heading);
	font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.028em;
	color: var(--news-text);
}

.news-archive__title::before {
	content: "";
	width: 15px;
	height: 15px;
	border-radius: 2px;
	background: var(--news-accent);
}

.news-archive__desc,
.news-archive__count {
	max-width: 68ch;
	margin: 14px 0 0;
	color: var(--news-muted);
	font-size: .92rem;
	line-height: 1.7;
}

.news-archive__search {
	max-width: 520px;
	margin-top: 22px;
}

.news-archive__search .search-field,
.news-404__search .search-field {
	flex: 1;
	padding: 11px 16px;
	border: 1px solid var(--news-border);
	border-radius: 8px;
	background: var(--news-surface);
	font-family: var(--news-font);
	font-size: .9rem;
}

.news-archive__search .search-submit,
.news-404__search .search-submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--news-primary);
	color: #fff;
	font-family: var(--news-font);
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
}

.news-archive__featured {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
	padding-bottom: var(--news-section);
}

.news-archive__featured-media {
	display: block;
	overflow: hidden;
	border-radius: var(--news-radius-lg);
	line-height: 0;
}

.news-archive__featured-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.news-archive__featured-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.news-archive__featured-title {
	margin: 0;
	font-family: var(--news-font-heading);
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.024em;
	line-height: 1.26;
}

.news-archive__featured-title a {
	color: var(--news-text) !important;
	text-decoration: none;
}

.news-archive__featured-title a:hover {
	color: var(--news-accent) !important;
}

.news-archive__featured-excerpt {
	margin: 0;
	color: var(--news-muted);
	font-size: .95rem;
	line-height: 1.7;
}

.news-archive__list {
	padding-bottom: var(--news-section);
}

/* Pagination */
.news-main .news-pagination {
	margin-top: 40px;
}

.news-main .news-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.news-main .news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 14px;
	border: 1px solid var(--news-border);
	border-radius: 8px;
	background: var(--news-surface);
	color: var(--news-primary) !important;
	font-size: .86rem;
	font-weight: 500;
	text-decoration: none;
}

.news-main .news-pagination .page-numbers:hover {
	background: var(--news-primary);
	color: #fff !important;
}

.news-main .news-pagination .page-numbers.current {
	background: var(--news-accent);
	border-color: var(--news-accent);
	color: #fff !important;
}

/* Empty states and 404 */
.news-empty,
.news-404__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-block: clamp(60px, 10vw, 120px);
	max-width: 620px;
}

.news-empty h2,
.news-404__title {
	margin: 0;
	font-family: var(--news-font-heading);
	font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.1rem);
	font-weight: var(--news-weight-heading);
	letter-spacing: -0.025em;
	color: var(--news-text);
}

.news-404__code {
	margin: 0;
	color: var(--news-accent);
	font-family: var(--news-font-heading);
	font-size: clamp(3rem, 2.6rem + 4vw, 5rem);
	font-weight: var(--news-weight-strong);
	line-height: 1;
	letter-spacing: -0.04em;
}

.news-empty p,
.news-404__text {
	margin: 0;
	color: var(--news-muted);
	font-size: .95rem;
	line-height: 1.7;
}

.news-404__search {
	width: 100%;
	max-width: 480px;
}

/* -------------------------------------------------------------------------
   9b. Astra overrides

   Scoped to body classes this theme adds, so Elementor pages and normal Pages
   are unaffected.
   ---------------------------------------------------------------------- */

body.news-homepage #content,
body.news-single #content,
body.news-category #content,
body.news-search #content,
body.news-404 #content {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--news-background) !important;
}

/* -------------------------------------------------------------------------
   10. Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.news-hero__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.news-hero__side {
		padding-left: 0;
		padding-top: 8px;
		border-left: 0;
		border-top: 1px solid var(--news-border);
	}

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

	.news-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.news-editorial__card,
	.news-archive__featured {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* TOC moves above the article and stops sticking. */
	.news-article__grid,
	.news-single .news-article__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		max-width: 840px;
	}

	.news-article__col {
		max-width: none;
	}

	.news-article__sidebar {
		position: static;
		display:none;
	}

	.news-toc {
		padding: 18px 20px;
		border: 1px solid var(--news-border);
		border-radius: var(--news-radius);
		background: var(--news-tint);
	}

	.news-toc__list {
		border-left: 0;
		columns: 2;
		column-gap: 24px;
	}

	.news-toc__list a {
		margin-left: 0;
		padding: 5px 0;
		border-left: 0;
	}

	.news-toc__item--h3 a {
		padding-left: 14px;
	}

	.news-toc__item.is-active > a {
		color: var(--news-accent) !important;
	}
}

@media (max-width: 900px) {
	.news-nav {
		display: none;
	}

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

	.news-header__cta {
		padding: 9px 16px;
		font-size: .84rem;
	}
}

@media (max-width: 782px) {
	.admin-bar.news-has-sticky-header .news-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar.news-has-sticky-header .news-header {
		top: 0;
	}
}

@media (max-width: 700px) {
	:root {
		--news-gap: 20px;
	}

	.news-container {
		padding-inline: 18px;
	}

	.news-grid--2,
	.news-grid--3,
	.news-grid--4 {
		grid-template-columns: 1fr;
	}

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

	.news-topbar__note {
		display: none;
	}

	.news-logo {
		font-size: 1.35rem;
	}

	.news-hero__overlay {
		padding: 18px;
	}

	.news-card--list {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
	}

	.news-footer__main {
		grid-template-columns: 1fr;
	}

	.news-footer__newsletter {
		padding-block: 36px;
	}

	.news-newsletter-form,
	.news-newsletter-form input[type="email"],
	.news-footer__newsletter-form,
	.news-footer__newsletter-form input[type="email"],
	.news-footer__newsletter-form input[type="text"] {
		width: 100%;
		min-width: 0;
		flex-basis: 100%;
	}

	.news-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-toc__list {
		columns: 1;
	}

	.news-article__meta {
		align-items: flex-start;
		gap: 14px;
	}

	.news-authorbox {
		flex-direction: column;
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.news-section--dark .news-grid--3 {
		grid-template-columns: 1fr;
	}

	.news-header__cta {
		display: none;
	}
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
	.news-ticker__track {
		animation: none;
	}

	.news-card__media img,
	.news-btn,
	.news-share__btn,
	.news-toc__list a {
		transition: none;
	}
}
