/* AndNews — mobile-first news UI (header matched to reference layout) */

:root {
	--an-ink: #1a202c;
	--an-ink-soft: #2d3748;
	--an-muted: #4a5568;
	--an-line: #d7dee6;
	--an-paper: #ebeff3;
	--an-header-bg: #ebeff3;
	--an-surface: #ffffff;
	--an-accent: #3d9c40;
	--an-accent-dark: #348a37;
	--an-accent-soft: #5cb85c;
	--an-signal: #3d9c40;
	--an-gold: #f0c14b;
	--an-hero-shade: linear-gradient(180deg, transparent 20%, rgba(20, 24, 32, 0.88) 100%);
	--an-radius: 14px;
	--an-radius-sm: 10px;
	--an-shadow: 0 10px 28px rgba(20, 24, 32, 0.08);
	--an-font-ui: "Open Sans", system-ui, sans-serif;
	--an-font-serif: "Source Serif 4", Georgia, serif;
	--an-max: 720px;
	--an-max-wide: 1140px;
	--an-max-home: 1320px;
	--an-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--an-font-ui);
	font-size: 16px;
	line-height: 1.55;
	color: var(--an-ink);
	background: var(--an-paper);
	min-height: 100vh;
}

.andnews-wrap {
	width: min(100% - 24px, var(--an-max-wide));
	margin: 0 auto;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--an-signal);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--an-accent);
}

.screen-reader-text,
.andnews-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.andnews-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: var(--an-ink);
	color: #fff;
	border-radius: 8px;
}

.andnews-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ========== Header (utility + brand + main nav) — pinned while scrolling ========== */
.andnews-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	align-self: flex-start;
	background: var(--an-header-bg);
	border-bottom: 1px solid var(--an-line);
	box-shadow: 0 2px 14px rgba(20, 24, 32, 0.08);
}

body.admin-bar .andnews-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .andnews-header {
		top: 46px;
	}
}

/* Reserves space so content is not hidden under the fixed header */
.andnews-header-spacer {
	width: 100%;
	flex-shrink: 0;
	pointer-events: none;
}

/* Brand row: logo left · Contact / About right */
.andnews-brandbar {
	background: var(--an-header-bg);
}

.andnews-brandbar__inner {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto 44px;
	align-items: center;
	gap: 8px;
	min-height: 64px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.andnews-brand-links {
	justify-self: end;
}

.andnews-brand-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.andnews-brand-links__list a {
	color: var(--an-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.andnews-brand-links__list a:hover {
	color: var(--an-accent);
}

.andnews-nav-toggle,
.andnews-search-toggle,
.andnews-drawer__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--an-ink);
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
}

.andnews-nav-toggle:hover,
.andnews-search-toggle:hover,
.andnews-drawer__close:hover {
	background: rgba(26, 32, 44, 0.06);
}

.andnews-nav-toggle__bars,
.andnews-nav-toggle__bars::before,
.andnews-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}

.andnews-nav-toggle__bars::before,
.andnews-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.andnews-nav-toggle__bars::before { top: -6px; }
.andnews-nav-toggle__bars::after { top: 6px; }

.andnews-brand {
	display: flex;
	justify-content: flex-start;
	min-width: 0;
}

/* Logo: gambling / and + NEWS (Casino Guru–style) */
.andnews-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	line-height: 1;
	min-width: 0;
}

.andnews-logo__icon {
	flex-shrink: 0;
	display: block;
	line-height: 0;
	filter: drop-shadow(0 2px 5px rgba(61, 156, 64, 0.28));
}

.andnews-logo__icon svg {
	display: block;
	width: 44px;
	height: 44px;
}

.andnews-logo__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.andnews-logo__top {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 0.95rem;
	font-weight: 600;
	font-style: italic;
	letter-spacing: 0.04em;
	text-transform: none;
	color: #5aa85c;
	line-height: 1.1;
}

.andnews-logo__bottom {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.andnews-logo__and {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	background: none;
	color: #111827;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: lowercase;
	line-height: 1;
}

.andnews-logo__news {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 11px 6px;
	border-radius: 5px;
	background: #111827;
	color: #3d9c40;
	font-size: 0.95rem;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	transform: skewX(-8deg);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.andnews-logo--footer .andnews-logo__icon svg {
	width: 40px;
	height: 40px;
}

@media (min-width: 992px) {
	.andnews-logo__icon svg {
		width: 50px;
		height: 50px;
	}

	.andnews-logo__top {
		font-size: 1.05rem;
	}

	.andnews-logo__and {
		font-size: 1.55rem;
		padding: 0;
	}

	.andnews-logo__news {
		font-size: 1.05rem;
		padding: 6px 12px 7px;
	}
}

/* Main nav row */
.andnews-navrow {
	background: var(--an-header-bg);
	border-top: 1px solid rgba(215, 222, 230, 0.95);
}

.andnews-navrow__inner {
	display: none;
	align-items: stretch;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
}

.andnews-mainnav {
	flex: 1;
	min-width: 0;
}

.andnews-mainnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.andnews-mainnav__list::-webkit-scrollbar {
	display: none;
}

.andnews-mainnav__item {
	position: relative;
	flex-shrink: 0;
}

.andnews-mainnav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 48px;
	padding: 0 14px;
	color: var(--an-ink);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 700;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.andnews-mainnav__link:hover,
.andnews-mainnav__link.is-active,
.andnews-mainnav__item.current-menu-item > .andnews-mainnav__link,
.andnews-mainnav__item.current-menu-ancestor > .andnews-mainnav__link {
	color: var(--an-ink);
	border-bottom-color: var(--an-accent-soft);
}

.andnews-mainnav__chev {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-top: 2px;
	opacity: 0.75;
}

.andnews-subnav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--an-line);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 28px rgba(26, 32, 44, 0.12);
	z-index: 50;
}

.andnews-mainnav__item:hover > .andnews-subnav,
.andnews-mainnav__item:focus-within > .andnews-subnav {
	display: block;
}

.andnews-subnav__link {
	display: block;
	padding: 9px 16px;
	color: var(--an-ink);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
}

.andnews-subnav__link:hover {
	background: #f3f6f9;
	color: var(--an-accent);
}

.andnews-search-toggle--desktop {
	display: none;
	flex-shrink: 0;
	align-self: center;
}

/* Search panel */
.andnews-search-panel {
	padding: 0 0 12px;
	border-top: 1px solid var(--an-line);
	background: var(--an-header-bg);
	animation: an-fade-in 0.25s var(--an-ease);
}

.andnews-search-form {
	display: flex;
	gap: 8px;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	border-radius: 8px;
	padding: 6px;
	box-shadow: var(--an-shadow);
	margin-top: 12px;
}

.andnews-search-form__input {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 10px 12px;
	font: inherit;
	background: transparent;
	min-width: 0;
}

.andnews-search-form__submit {
	border: 0;
	border-radius: 6px;
	background: var(--an-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0 16px;
	cursor: pointer;
}

.andnews-search-form__submit:hover {
	background: var(--an-accent-dark);
}

/* Drawer (mobile) */
.andnews-drawer[hidden] {
	display: none !important;
}

.andnews-drawer:not([hidden]) {
	display: block;
}

.andnews-drawer__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 24, 32, 0.45);
	z-index: 120;
	animation: an-fade-in 0.2s ease;
}

.andnews-drawer__panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(86vw, 320px);
	background: var(--an-surface);
	z-index: 130;
	padding: 20px 18px 32px;
	box-shadow: 12px 0 40px rgba(20, 24, 32, 0.18);
	animation: an-slide-in 0.3s var(--an-ease);
	overflow-y: auto;
}

.andnews-drawer__close {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 1.6rem;
	line-height: 1;
}

.andnews-drawer__list {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
}

.andnews-drawer__list a {
	display: block;
	padding: 12px 4px;
	color: var(--an-ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	border-bottom: 1px solid var(--an-line);
}

.andnews-drawer__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 12px;
}

.andnews-drawer__list--utility {
	margin-top: 20px;
	padding-top: 8px;
	border-top: 1px solid var(--an-line);
}

.andnews-drawer__list--utility a {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--an-muted);
}

/* Desktop header layout */
@media (min-width: 992px) {
	.andnews-brandbar__inner {
		display: flex;
		align-items: center;
		gap: 24px;
		min-height: 72px;
		padding-top: 10px;
		padding-bottom: 6px;
	}

	.andnews-nav-toggle,
	.andnews-search-toggle--mobile {
		display: none;
	}

	.andnews-brand {
		justify-content: flex-start;
		flex: 1;
		min-width: 0;
	}

	.andnews-brand-links {
		margin-left: auto;
	}

	.andnews-brand-links__list {
		gap: 22px;
	}

	.andnews-brand-links__list a {
		font-size: 0.9rem;
	}

	.andnews-navrow__inner {
		display: flex;
	}

	.andnews-search-toggle--desktop {
		display: inline-flex;
	}

	.andnews-mainnav__link {
		padding: 0 12px;
		font-size: 0.9rem;
	}
}

/* On very small screens, keep Contact/About readable */
@media (max-width: 420px) {
	.andnews-brand-links__list {
		gap: 10px;
	}

	.andnews-brand-links__list a {
		font-size: 0.75rem;
	}
}

@media (min-width: 1100px) {
	.andnews-mainnav__link {
		padding: 0 14px;
		font-size: 0.94rem;
	}
}

/* Main */
.andnews-main {
	flex: 1;
	padding: 18px 0 48px;
}

.andnews-main__inner {
	width: min(100% - 24px, var(--an-max));
	margin: 0 auto;
}

.andnews-main__inner--article {
	width: min(100% - 24px, 720px);
}

.andnews-main__inner--single {
	width: min(100% - 24px, var(--an-max-home));
}

.andnews-single {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin: 0 0 36px;
	align-items: start;
}

.andnews-single__main {
	min-width: 0;
}

.andnews-single__aside {
	min-width: 0;
}

/* Related carousel under article */
.andnews-related-carousel {
	margin: 28px 0 8px;
	width: 100%;
	clear: both;
}

.andnews-related-carousel__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.andnews-related-carousel__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111827;
}

.andnews-related-carousel__nav {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.andnews-related-carousel__btn {
	appearance: none;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}

.andnews-related-carousel__btn:hover:not(:disabled) {
	background: rgba(17, 24, 39, 0.06);
}

.andnews-related-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.andnews-related-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.andnews-related-carousel__track {
	display: flex;
	gap: 18px;
	transition: transform 0.35s var(--an-ease);
	will-change: transform;
}

.andnews-related-carousel__slide {
	flex: 0 0 calc((100% - 36px) / 3);
	min-width: 0;
}

.andnews-relcard {
	margin: 0;
	height: 100%;
}

.andnews-relcard__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.andnews-relcard__media {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dfe5ef;
}

.andnews-relcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s var(--an-ease);
}

.andnews-relcard__link:hover .andnews-relcard__media img {
	transform: scale(1.03);
}

.andnews-relcard__title {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-relcard__link:hover .andnews-relcard__title {
	color: var(--an-accent);
}

.andnews-relcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 6px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #9ca3af;
	text-transform: uppercase;
}

.andnews-relcard__read {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.andnews-related-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 0;
}

.andnews-related-carousel__dot {
	appearance: none;
	border: 0;
	padding: 0;
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: #d1d5db;
	cursor: pointer;
}

.andnews-related-carousel__dot.is-active {
	background: var(--an-accent);
}

@media (max-width: 900px) {
	.andnews-related-carousel__slide {
		flex: 0 0 calc((100% - 18px) / 2);
	}
}

@media (max-width: 560px) {
	.andnews-related-carousel__slide {
		flex: 0 0 100%;
	}
}

@media (min-width: 980px) {
	.andnews-main__inner--single {
		width: min(100% - 40px, var(--an-max-home));
	}

	.andnews-single {
		grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr);
		gap: 40px;
	}

}

.andnews-page-head {
	margin-bottom: 18px;
	animation: an-rise 0.5s var(--an-ease) both;
}

.andnews-page-head__eyebrow {
	margin: 0 0 4px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--an-accent);
}

.andnews-page-head__title {
	margin: 0;
	font-size: clamp(1.75rem, 5vw, 2.35rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	font-weight: 800;
}

.andnews-page-head__lead {
	margin: 8px 0 0;
	color: var(--an-muted);
	font-size: 0.98rem;
}

/* ===== Section hero (light split: copy + tags | art) ===== */
.andnews-main--section {
	padding-top: 0;
}

.andnews-section-hero {
	background: #f0f4f8;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 22px;
	animation: an-fade-down 0.4s var(--an-ease) both;
}

.andnews-section-hero__inner {
	width: min(100% - 24px, var(--an-max-wide));
	margin: 0 auto;
	padding: 28px 0 24px;
	display: grid;
	gap: 20px;
	align-items: center;
}

.andnews-section-hero__title {
	margin: 0;
	font-size: clamp(1.9rem, 5vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: #111827;
}

.andnews-section-hero__kicker {
	margin: 10px 0 0;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111827;
}

.andnews-section-hero__lead {
	margin: 10px 0 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #4b5563;
}

.andnews-section-tags {
	margin-top: 18px;
}

.andnews-section-tags__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.andnews-section-tags__list > li {
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.andnews-section-tags__item {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #cfd6df;
	color: #1f2937;
	text-decoration: none !important;
	font-size: 0.92rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.andnews-section-tags__item:hover,
.andnews-section-tags__item.is-active {
	border-color: var(--an-section-accent, var(--an-accent));
	color: var(--an-section-accent, var(--an-accent-dark));
	background: #fff;
}

.andnews-section-hero__art {
	justify-self: center;
	width: min(100%, 340px);
}

.andnews-section-hero__art img {
	width: 100%;
	height: auto;
	display: block;
}

.andnews-main__inner--section {
	width: min(100% - 24px, var(--an-max-wide));
}

@media (min-width: 900px) {
	.andnews-section-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
		gap: 32px;
		padding: 36px 0 32px;
	}

	.andnews-section-hero__art {
		justify-self: end;
		width: min(100%, 400px);
	}
}

/* Article grid: 5 columns × 4 rows on desktop */
.andnews-agrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0 0 24px;
}

.andnews-gcard {
	margin: 0;
	background: transparent;
	min-width: 0;
}

.andnews-gcard__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.andnews-gcard__media {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dfe5ef;
}

.andnews-gcard__media img,
.andnews-gcard__placeholder,
.andnews-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s var(--an-ease);
}

.andnews-gcard__placeholder {
	background:
		linear-gradient(135deg, #c5d0dc 0%, #9aafc0 45%, #6f8fa3 100%);
}

.andnews-gcard__link:hover .andnews-gcard__media img,
.andnews-gcard__link:hover .andnews-gcard__placeholder {
	transform: scale(1.04);
}

.andnews-gcard__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.andnews-gcard__title {
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-gcard__link:hover .andnews-gcard__title {
	color: var(--an-accent);
}

.andnews-gcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 6px;
	font-size: 0.72rem;
	line-height: 1.3;
	color: #6b7280;
	font-weight: 600;
}

.andnews-gcard__sep {
	opacity: 0.55;
}

.andnews-gcard__read {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.andnews-gcard__clock {
	flex-shrink: 0;
	opacity: 0.75;
}

.andnews-gcard__topic {
	color: #4b5563;
}

@media (min-width: 640px) {
	.andnews-agrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px 16px;
	}
}

@media (min-width: 1024px) {
	.andnews-agrid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 28px 18px;
	}

	.andnews-gcard__title {
		font-size: 0.95rem;
	}
}

.andnews-section-spotlight {
	display: grid;
	gap: 12px;
	margin-bottom: 22px;
	animation: an-rise 0.5s var(--an-ease) both;
}

.andnews-section-spotlight__side {
	display: grid;
	gap: 12px;
}

.andnews-feature {
	margin: 0;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(20, 24, 32, 0.04);
	transition: transform 0.25s var(--an-ease), box-shadow 0.25s var(--an-ease);
}

.andnews-feature:hover {
	transform: translateY(-2px);
	box-shadow: var(--an-shadow);
}

.andnews-feature__link {
	display: grid;
	grid-template-columns: 120px 1fr;
	text-decoration: none;
	color: inherit;
	min-height: 110px;
}

.andnews-feature__media {
	background: #dfe5ef;
	min-height: 100%;
}

.andnews-feature__media img,
.andnews-feature__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 110px;
}

.andnews-feature__placeholder {
	background: linear-gradient(135deg, #2a3140, #141820 55%, #1e3a2f);
}

.andnews-feature__body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
}

.andnews-feature__label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--an-accent);
	margin-bottom: 4px;
}

.andnews-feature__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
	font-weight: 750;
}

.andnews-feature__excerpt {
	margin: 6px 0 0;
	font-size: 0.84rem;
	color: var(--an-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-feature__meta {
	margin-top: auto;
	padding-top: 8px;
	font-size: 0.76rem;
	color: var(--an-muted);
}

.andnews-section-list {
	margin-bottom: 8px;
}

.andnews-section-list__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--an-ink);
}

.andnews-section-list__title {
	margin: 0;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	font-weight: 800;
}

.andnews-section-list__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.andnews-row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 12px;
	padding: 12px;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	transition: transform 0.2s var(--an-ease), box-shadow 0.2s var(--an-ease);
}

.andnews-row:hover {
	transform: translateY(-1px);
	box-shadow: var(--an-shadow);
}

.andnews-row__media {
	display: block;
	border-radius: var(--an-radius-sm);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #dfe5ef;
}

.andnews-row__media img,
.andnews-row__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.andnews-row__placeholder {
	background: linear-gradient(135deg, #2a3140, #1e3a2f);
}

.andnews-row__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.andnews-row__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.3;
	font-weight: 750;
	letter-spacing: -0.015em;
}

.andnews-row__title a {
	color: var(--an-ink);
	text-decoration: none;
}

.andnews-row__title a:hover {
	color: var(--an-accent);
}

.andnews-row__excerpt {
	margin: 6px 0 0;
	font-size: 0.86rem;
	color: var(--an-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-row__meta {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.76rem;
	color: var(--an-muted);
}

.andnews-peer-sections {
	margin: 36px 0 8px;
	padding-top: 8px;
}

.andnews-peer-sections__title {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.andnews-peer-sections__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.andnews-peer {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border-radius: var(--an-radius);
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	text-decoration: none;
	color: var(--an-ink);
	min-height: 76px;
	transition: border-color 0.2s, transform 0.2s;
}

.andnews-peer:hover {
	border-color: var(--an-accent);
	transform: translateY(-1px);
	color: var(--an-ink);
}

.andnews-peer__name {
	font-weight: 800;
	letter-spacing: -0.015em;
}

.andnews-peer__count {
	font-size: 0.78rem;
	color: var(--an-muted);
	font-weight: 600;
}

@media (min-width: 768px) {
	.andnews-section-spotlight {
		grid-template-columns: 1.45fr 1fr;
		gap: 16px;
		align-items: stretch;
	}

	.andnews-section-spotlight__side {
		grid-template-rows: 1fr 1fr;
	}

	.andnews-feature__link {
		grid-template-columns: 1fr;
		min-height: 0;
		height: 100%;
	}

	.andnews-feature__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.andnews-feature__media img,
	.andnews-feature__placeholder {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.andnews-row {
		grid-template-columns: 160px 1fr;
		padding: 14px;
	}

	.andnews-row__media {
		aspect-ratio: 16 / 11;
	}

	.andnews-peer-sections__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Feed */
.andnews-feed {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Hero */
.andnews-hero {
	margin: 0;
	border-radius: calc(var(--an-radius) + 2px);
	overflow: hidden;
	background: var(--an-ink);
	box-shadow: var(--an-shadow);
	animation: an-rise 0.55s var(--an-ease) both;
}

.andnews-hero__link {
	display: block;
	color: #fff;
	text-decoration: none;
	position: relative;
}

.andnews-hero__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #1c2230;
}

.andnews-hero__media img,
.andnews-hero__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.andnews-hero__placeholder,
.andnews-card__placeholder {
	display: block;
	background:
		linear-gradient(135deg, #2a3140, #141820 55%, #3a2a20);
}

.andnews-hero__shade {
	position: absolute;
	inset: 0;
	background: var(--an-hero-shade);
}

.andnews-hero__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 16px 16px;
}

.andnews-hero__label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8fd98f;
	margin-bottom: 6px;
}

.andnews-hero__title {
	margin: 0;
	font-family: var(--an-font-serif);
	font-size: clamp(1.25rem, 4.2vw, 1.7rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.andnews-hero__excerpt {
	margin: 8px 0 0;
	font-size: 0.92rem;
	opacity: 0.88;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-hero__meta {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	opacity: 0.8;
}

/* Cards */
.andnews-card {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 12px;
	padding: 12px;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	box-shadow: 0 4px 14px rgba(20, 24, 32, 0.04);
	animation: an-rise 0.5s var(--an-ease) both;
	transition: transform 0.25s var(--an-ease), box-shadow 0.25s var(--an-ease);
}

.andnews-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--an-shadow);
}

.andnews-card__media {
	display: block;
	border-radius: var(--an-radius-sm);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #dfe5ef;
}

.andnews-card__media img,
.andnews-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.andnews-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.andnews-cats {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.andnews-cats a {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--an-accent);
	text-decoration: none;
}

.andnews-card__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
	font-weight: 700;
}

.andnews-card__title a {
	color: var(--an-ink);
	text-decoration: none;
}

.andnews-card__title a:hover {
	color: var(--an-accent);
}

.andnews-card__excerpt {
	margin: 6px 0 0;
	font-size: 0.86rem;
	color: var(--an-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-card__meta {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: var(--an-muted);
}

.andnews-card__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
	display: inline-block;
}

.andnews-feed > .andnews-card:nth-child(2) { animation-delay: 0.04s; }
.andnews-feed > .andnews-card:nth-child(3) { animation-delay: 0.08s; }
.andnews-feed > .andnews-card:nth-child(4) { animation-delay: 0.12s; }
.andnews-feed > .andnews-card:nth-child(5) { animation-delay: 0.16s; }

/* Pagination — screenshot style: green current, plain numbers, …, last, > */
.andnews-pagination,
.andnews-pager {
	margin: 28px 0 12px;
	padding-top: 18px;
	border-top: 1px solid #d7dee6;
}

.andnews-pager__list,
.andnews-pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	justify-content: flex-start;
}

.andnews-pager__item .page-numbers,
.andnews-pagination .page-numbers a,
.andnews-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 32px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: #374151;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 6px;
	line-height: 1;
}

.andnews-pager__item .page-numbers.current,
.andnews-pager__item.is-current .page-numbers,
.andnews-pagination .page-numbers .current {
	min-width: 34px;
	height: 34px;
	background: #3d9c40;
	color: #fff !important;
	border-radius: 6px;
}

.andnews-pager__item .page-numbers:hover:not(.current),
.andnews-pagination .page-numbers a:hover {
	color: #3d9c40;
}

.andnews-pager__item.is-dots .page-numbers,
.andnews-pagination .page-numbers.dots {
	color: #6b7280;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.andnews-pager__item.is-next .page-numbers,
.andnews-pager__item.is-prev .page-numbers {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
	min-width: 28px;
}

.andnews-pager__item.is-prev:empty,
.andnews-pager__item.is-prev .page-numbers:not([href]) {
	display: none;
}

/* Buttons */
.andnews-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 11px;
	background: var(--an-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.92rem;
	border: 1px solid transparent;
	transition: background 0.2s, transform 0.2s;
}

.andnews-btn:hover {
	background: var(--an-accent-dark);
	transform: translateY(-1px);
}

.andnews-btn--sm {
	min-height: 34px;
	padding: 0 12px;
	font-size: 0.8rem;
	border-radius: 9px;
}

.andnews-btn--ghost {
	background: transparent;
	color: var(--an-ink) !important;
	border-color: var(--an-line);
}

.andnews-btn--ghost:hover {
	background: rgba(20, 24, 32, 0.05);
}

/* Apps */
.andnews-apps {
	margin-top: 36px;
	padding: 20px 16px;
	border-radius: calc(var(--an-radius) + 4px);
	background:
		linear-gradient(160deg, #172033 0%, #141820 55%, #1a2a28 100%);
	color: #f4f6fa;
	box-shadow: var(--an-shadow);
	animation: an-rise 0.55s var(--an-ease) both;
}

.andnews-apps__title {
	margin: 0;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.andnews-apps__lead {
	margin: 6px 0 0;
	opacity: 0.75;
	font-size: 0.92rem;
}

.andnews-apps__grid {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.andnews-app {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.andnews-app__icon img,
.andnews-app__icon-fallback {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	object-fit: cover;
}

.andnews-app__icon-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--an-accent), #ff9f1c);
	font-weight: 800;
	font-size: 1.25rem;
}

.andnews-app__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8fd98f;
	margin-bottom: 2px;
}

.andnews-app__name {
	margin: 0;
	font-size: 1.02rem;
}

.andnews-app__desc {
	margin: 4px 0 10px;
	font-size: 0.85rem;
	opacity: 0.75;
}

.andnews-app__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.andnews-apps .andnews-btn--ghost {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.25);
}

/* Article */
.andnews-article__header {
	margin-bottom: 16px;
	animation: an-rise 0.45s var(--an-ease) both;
}

.andnews-article__title {
	margin: 6px 0 0;
	font-family: var(--an-font-serif);
	font-size: clamp(1.7rem, 5vw, 2.4rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.andnews-article__byline {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px 16px;
}

.andnews-article__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--an-muted);
	font-size: 0.88rem;
	white-space: nowrap;
}

/* Editorial author box — static, never a link */
.andnews-author-box {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	pointer-events: none;
	user-select: none;
}

.andnews-author-box__avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #d5dde8;
	background: #e8eef5;
}

.andnews-author-box__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.andnews-author-box__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.andnews-author-box__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #3b6ea5;
	line-height: 1.2;
}

.andnews-author-box__name {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a2744;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.andnews-author-box__role {
	font-size: 0.95rem;
	font-weight: 500;
	color: #3b6ea5;
	line-height: 1.3;
}

.andnews-article__hero {
	margin: 0 0 20px;
	border-radius: var(--an-radius);
	overflow: hidden;
	background: #dfe5ef;
}

.andnews-article__hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.andnews-article__content {
	font-family: var(--an-font-serif);
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--an-ink-soft);
}

.andnews-article__content > *:first-child {
	margin-top: 0;
}

.andnews-article__content h2,
.andnews-article__content h3 {
	font-family: var(--an-font-ui);
	color: var(--an-ink);
	letter-spacing: -0.02em;
	margin-top: 1.6em;
}

.andnews-article__content img {
	border-radius: 12px;
}

.andnews-article__content figure {
	margin: 1.4em 0;
}

.andnews-tags {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--an-line);
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.andnews-tags a {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	text-decoration: none;
	color: var(--an-ink);
	font-family: var(--an-font-ui);
	font-size: 0.82rem;
	font-weight: 600;
}

.andnews-post-nav {
	margin: 28px 0 8px;
	display: grid;
	gap: 10px;
}

.andnews-post-nav__item {
	display: block;
	padding: 14px;
	border-radius: var(--an-radius);
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	text-decoration: none;
	color: var(--an-ink);
}

.andnews-post-nav__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--an-muted);
	margin-bottom: 4px;
}

.andnews-post-nav__title {
	font-weight: 700;
	line-height: 1.3;
}

/* Comments */
.comments-area {
	margin-top: 28px;
	padding: 18px;
	background: var(--an-surface);
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
}

.comment-reply-title,
.comments-title {
	margin-top: 0;
	font-size: 1.15rem;
}

/* Empty */
.andnews-empty {
	padding: 36px 18px;
	text-align: center;
	background: var(--an-surface);
	border: 1px dashed var(--an-line);
	border-radius: var(--an-radius);
	color: var(--an-muted);
}

/* Footer — light 4-column layout (screenshot-2 structure) */
.andnews-site-footer {
	margin-top: auto;
	background: #f0f4f8;
	color: #1f2937;
	padding: 36px 0 28px;
	border-top: 1px solid #e5e7eb;
}

.andnews-site-footer__inner {
	width: min(100% - 24px, var(--an-max-wide));
	margin: 0 auto;
}

.andnews-site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.andnews-site-footer__brand {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.andnews-site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}

.andnews-site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	text-decoration: none;
	transition: transform 0.15s, background 0.15s;
}

.andnews-site-footer__social a:hover {
	background: rgba(17, 24, 39, 0.06);
	transform: translateY(-1px);
}

.andnews-site-footer__rule {
	border: 0;
	border-top: 2px solid #111;
	margin: 18px 0 22px;
}

.andnews-site-footer__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 20px;
}

.andnews-site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.andnews-site-footer__col > ul > li {
	margin: 0 0 10px;
}

.andnews-site-footer__col > ul a {
	color: #111;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.andnews-site-footer__col > ul a:hover {
	color: var(--an-accent);
}

.andnews-site-footer__heading {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
}

.andnews-site-footer__tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.andnews-site-footer__tags a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d1d5db;
	color: #1f2937;
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 600;
}

.andnews-site-footer__tags a:hover {
	border-color: var(--an-accent);
	color: var(--an-accent);
}

.andnews-site-footer__news {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.andnews-site-footer__news li {
	margin: 0;
}

.andnews-site-footer__news a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d1d5db;
	text-decoration: none;
	color: #111;
	transition: border-color 0.15s, color 0.15s;
}

.andnews-site-footer__news a:hover {
	border-color: var(--an-accent);
	color: var(--an-accent);
}

.andnews-site-footer__news-title {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-site-footer__news-meta {
	display: block;
	margin-top: 6px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7280;
}

.andnews-site-footer__news-empty {
	margin: 0;
	font-size: 0.88rem;
	color: #6b7280;
}

.andnews-site-footer__friends {
	margin-top: 28px;
	padding-top: 8px;
}

.andnews-site-footer__copy {
	margin: 28px 0 0;
	font-size: 0.82rem;
	color: #6b7280;
}

.andnews-site-footer__copy a {
	color: inherit;
	text-decoration: none;
}

@media (min-width: 900px) {
	.andnews-site-footer__cols {
		grid-template-columns: 0.9fr 0.9fr 1.3fr 1.1fr;
		gap: 32px;
	}
}

/* ===== Homepage: Top news + Most popular (screenshot 2) ===== */
.andnews-main.andnews-main--home,
.andnews-main.andnews-main--single {
	padding-bottom: 0;
	flex: 0 0 auto;
}

.andnews-main.andnews-main--home {
	padding-top: 20px;
}

.andnews-main--single .andnews-single {
	margin-bottom: 0;
}

.andnews-main--single .comments-area {
	margin-bottom: 0;
}

.andnews-main__inner--home {
	width: min(100% - 24px, var(--an-max-home));
	padding-bottom: 0;
	margin-bottom: 0;
}

.andnews-main--home + .andnews-site-footer,
.andnews-shell > .andnews-site-footer {
	margin-top: 0;
}

.andnews-main--home .andnews-cat-rail:last-of-type {
	padding-bottom: 8px;
}

.andnews-home {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	margin: 0 0 12px;
}

/* Awards promo banner — tight under homepage news */
.andnews-promo {
	margin: 0 0 18px;
	padding: 0;
}

/* Latest news — left intro + 2×4 grid (screenshot 3) */
.andnews-latest {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin: 0 0 28px;
	align-items: start;
}

.andnews-latest__intro {
	max-width: 280px;
}

.andnews-latest__title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #111827;
}

.andnews-latest__title a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.andnews-latest__title a:hover {
	color: var(--an-accent);
}

.andnews-latest__chev {
	font-weight: 400;
	font-size: 1.15em;
	line-height: 1;
	opacity: 0.85;
}

.andnews-latest__lead {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #6b7280;
}

.andnews-latest__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 16px;
}

@media (min-width: 700px) {
	.andnews-latest__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.andnews-latest {
		grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
		gap: 28px 32px;
	}
}

/* Category rails — Business / Land-based (screenshot 2) */
.andnews-cat-rail {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin: 0;
	padding: 32px 0;
	align-items: start;
	width: 100%;
	border-top: 1px solid #c5ced8;
}

.andnews-cat-rail + .andnews-cat-rail {
	border-top: 1px solid #c5ced8;
}

.andnews-latest + .andnews-cat-rail {
	margin-top: 8px;
}

.andnews-cat-rail__intro {
	max-width: 280px;
}

.andnews-cat-rail__title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #111827;
}

.andnews-cat-rail__title a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.andnews-cat-rail__title a:hover {
	color: var(--an-accent);
}

.andnews-cat-rail__chev {
	font-weight: 400;
	font-size: 1.15em;
	line-height: 1;
	opacity: 0.85;
}

.andnews-cat-rail__lead {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #6b7280;
}

.andnews-cat-rail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 16px;
}

@media (min-width: 700px) {
	.andnews-cat-rail__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.andnews-cat-rail {
		grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
		gap: 28px 32px;
	}
}

/* Send us a tip CTA */
.andnews-tip-cta {
	margin: 8px 0 36px;
	border: 1px solid #c5ced8;
	border-radius: 4px;
	background:
		radial-gradient(circle, rgba(148, 163, 184, 0.35) 1px, transparent 1.5px) 0 0 / 14px 14px,
		#f7f9fc;
}

.andnews-tip-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	padding: 28px 32px;
}

.andnews-tip-cta__title {
	margin: 0 0 6px;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #1a2744;
}

.andnews-tip-cta__lead {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
	color: #4b5563;
}

.andnews-tip-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 14px 28px;
	border-radius: 8px;
	background: var(--an-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.2s var(--an-ease), transform 0.2s var(--an-ease);
}

.andnews-tip-cta__btn:hover {
	background: var(--an-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

/* Contact / tip form page */
.andnews-main__inner--contact {
	width: min(100% - 24px, 980px);
	padding-bottom: 48px;
}

.andnews-contact__head {
	margin: 0 0 28px;
	max-width: 640px;
}

.andnews-contact__title {
	margin: 0 0 12px;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111827;
}

.andnews-contact__lead {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #4b5563;
}

.andnews-contact__notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.95rem;
}

.andnews-contact__notice--ok {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.andnews-contact__notice--err {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.andnews-contact__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}

@media (min-width: 900px) {
	.andnews-contact__layout {
		grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
		gap: 40px;
	}
}

.andnews-contact__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.andnews-contact__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 640px) {
	.andnews-contact__row {
		grid-template-columns: 1fr 1fr;
	}
}

.andnews-contact__field input,
.andnews-contact__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #c5ced8;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: #111827;
}

.andnews-contact__field textarea {
	min-height: 180px;
	resize: vertical;
}

.andnews-contact__field input:focus,
.andnews-contact__field textarea:focus {
	outline: 2px solid rgba(61, 156, 64, 0.35);
	border-color: var(--an-accent);
}

.andnews-contact__upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 28px 18px;
	border: 2px dashed #b6c0cc;
	border-radius: 10px;
	background: #f3f6fa;
	cursor: pointer;
	text-align: center;
	position: relative;
}

.andnews-contact__upload input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.andnews-contact__upload-title {
	font-weight: 700;
	color: #374151;
}

.andnews-contact__upload-hint {
	font-size: 0.92rem;
	color: #6b7280;
}

.andnews-contact__upload-hint strong {
	color: var(--an-accent-dark);
}

.andnews-contact__submit {
	align-self: flex-start;
	margin-top: 4px;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--an-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.andnews-contact__submit:hover {
	background: var(--an-accent-dark);
}

.andnews-contact__art img {
	display: block;
	width: min(100%, 360px);
	height: auto;
	margin: 0 auto;
}

.andnews-promo__frame {
	display: block;
	line-height: 0;
	border-radius: 6px;
	overflow: hidden;
	pointer-events: none;
}

.andnews-promo__img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

/* Latest news full page — 5 cols × 4 rows */
.andnews-main__inner--latest {
	width: min(100% - 24px, var(--an-max-home));
}

.andnews-latest-page__head {
	margin: 0 0 22px;
}

.andnews-latest-page__title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #111827;
}

.andnews-latest-page__lead {
	margin: 0;
	max-width: 40rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #6b7280;
}

.andnews-latest-page__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 16px;
	margin: 0 0 28px;
}

@media (min-width: 700px) {
	.andnews-latest-page__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.andnews-main__inner--latest {
		width: min(100% - 40px, var(--an-max-home));
	}

	.andnews-latest-page__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.andnews-home__head {
	margin: 0 0 18px;
}

.andnews-home__title {
	margin: 0;
	font-family: var(--an-font-ui);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #111827;
}

.andnews-home__title--static {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	cursor: default;
	pointer-events: none;
}

.andnews-home__title--aside {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.andnews-home__title a {
	color: inherit;
	text-decoration: none;
}

.andnews-home__title a:hover {
	color: var(--an-accent);
}

/* Screenshot 2 — two large feature cards */
.andnews-home__features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 24px;
	margin: 0 0 28px;
}

.andnews-hfeat {
	margin: 0;
	min-width: 0;
}

.andnews-hfeat__media {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dfe5ef;
	margin-bottom: 14px;
}

.andnews-hfeat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s var(--an-ease);
}

.andnews-hfeat:hover .andnews-hfeat__media img {
	transform: scale(1.03);
}

.andnews-hfeat__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.andnews-hfeat__title {
	margin: 0;
	width: 100%;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

.andnews-hfeat__badge {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 0 0;
	padding: 4px 8px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: #4b5563;
	border-radius: 3px;
	white-space: nowrap;
}

.andnews-hfeat__title-text {
	color: #111827;
	text-decoration: none;
}

.andnews-hfeat__title-text:hover {
	color: var(--an-accent);
}

.andnews-hfeat__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #4b5563;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-hfeat__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: #9ca3af;
}

.andnews-hfeat__sep {
	opacity: 0.7;
}

.andnews-hfeat__read {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Screenshot 3 — three smaller cards */
.andnews-home__triples {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px 18px;
}

.andnews-htrip {
	margin: 0;
	min-width: 0;
}

.andnews-htrip__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.andnews-htrip__media {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dfe5ef;
}

.andnews-htrip__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s var(--an-ease);
}

.andnews-htrip__link:hover .andnews-htrip__media img {
	transform: scale(1.03);
}

.andnews-htrip__title {
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-htrip__link:hover .andnews-htrip__title {
	color: var(--an-accent);
}

.andnews-htrip__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	color: #9ca3af;
}

.andnews-htrip__read {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.andnews-htrip__cat {
	font-size: 0.78rem;
	color: #6b7280;
}

.andnews-empty--slot {
	padding: 24px;
	background: #f3f4f6;
	border-radius: 6px;
}

/* Most popular (far right) */
.andnews-popular__tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid #e5e7eb;
	margin: 0 0 8px;
}

.andnews-popular__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin: 0 0 -1px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.andnews-popular__tab:hover {
	color: #111827;
}

.andnews-popular__tab.is-active {
	color: #111827;
	border-bottom-color: #111827;
}

.andnews-popular__panel[hidden] {
	display: none !important;
}

.andnews-popular__list {
	display: flex;
	flex-direction: column;
}

.andnews-pop {
	margin: 0;
	border-bottom: 1px solid #e5e7eb;
}

.andnews-pop:last-child {
	border-bottom: 0;
}

.andnews-pop__link {
	display: grid;
	grid-template-columns: 1fr 64px;
	gap: 12px;
	align-items: start;
	padding: 14px 0;
	text-decoration: none;
	color: inherit;
}

.andnews-pop__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.andnews-pop__title {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.andnews-pop__link:hover .andnews-pop__title {
	color: var(--an-accent);
}

.andnews-pop__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #9ca3af;
	text-transform: uppercase;
}

.andnews-pop__dot {
	line-height: 1;
}

.andnews-pop__thumb {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	background: #dfe5ef;
	flex-shrink: 0;
}

.andnews-pop__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.andnews-popular__empty {
	margin: 16px 0 0;
	font-size: 0.9rem;
	color: #6b7280;
}

@media (min-width: 700px) {
	.andnews-home__features {
		grid-template-columns: 1fr 1fr;
	}

	.andnews-home__triples {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.andnews-main__inner--home {
		width: min(100% - 40px, var(--an-max-home));
	}

	.andnews-home {
		grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.78fr);
		gap: 36px;
		align-items: start;
	}

}

/* Large screens */
@media (min-width: 768px) {
	.andnews-main {
		padding: 28px 0 64px;
	}

	.andnews-main.andnews-main--home,
	.andnews-main.andnews-main--single {
		padding: 28px 0 0;
	}

	.andnews-main__inner {
		width: min(100% - 40px, var(--an-max-wide));
	}

	.andnews-feed {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.andnews-feed > .andnews-hero {
		grid-column: 1 / -1;
	}

	.andnews-card {
		grid-template-columns: 140px 1fr;
		padding: 14px;
	}

	.andnews-card__media {
		aspect-ratio: 4 / 3;
	}

	.andnews-hero__media {
		aspect-ratio: 21 / 9;
		min-height: 280px;
	}

	.andnews-hero__body {
		padding: 28px 24px 22px;
		max-width: 640px;
	}

	.andnews-apps__grid {
		grid-template-columns: 1fr 1fr;
	}

	.andnews-post-nav {
		grid-template-columns: 1fr 1fr;
	}

	.andnews-main__inner--article {
		width: min(100% - 40px, 760px);
	}
}

@media (min-width: 1100px) {
	.andnews-feed {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.andnews-feed > .andnews-hero {
		grid-column: 1 / -1;
	}

	.andnews-apps__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* Motion */
@keyframes an-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes an-fade-down {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes an-slide-in {
	from { transform: translateX(-16px); opacity: 0.6; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes an-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

body.andnews-nav-open {
	overflow: hidden;
}
