/**
 * TNF header/footer chrome (works without theme-specific CSS).
 */

.tnf-shell {
	max-width: 1270px;
	margin: 0 auto;
	padding: 0 12px;
}

.tnf-site-chrome {
	background: #fff;
	color: #111;
}

/* Second header block (Site Editor duplicate template part or cached HTML): hide extras. */
.tnf-site-chrome.tnf-home-news ~ .tnf-site-chrome.tnf-home-news {
	display: none !important;
}

.wp-block-template-part:has(.tnf-site-chrome.tnf-home-news)
	~ .wp-block-template-part:has(.tnf-site-chrome.tnf-home-news) {
	display: none !important;
}

.tnf-top-utility {
	background: #090909;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tnf-top-utility .tnf-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	min-height: 32px;
	padding-top: 5px;
	padding-bottom: 5px;
	box-sizing: border-box;
}

.tnf-top-utility__left,
.tnf-top-utility__right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.tnf-top-utility a {
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
}

.tnf-top-utility__right span {
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
}

.tnf-top-utility a:hover {
	text-decoration: underline;
}

.tnf-masthead {
	padding: 12px 0;
	border-bottom: 1px solid #e8e8e8;
}

.tnf-masthead-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.tnf-brand {
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tnf-brand a {
	color: inherit;
	text-decoration: none;
}

.tnf-masthead-meta {
	font-size: 13px;
	color: #555;
}

.tnf-head-ad {
	min-height: 52px;
	min-width: 200px;
	flex: 1 1 220px;
	max-width: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	border: 1px dashed #ccc;
	font-size: 12px;
	color: #777;
	border-radius: 4px;
}

.tnf-site-chrome .tnf-top-nav {
	background: linear-gradient(180deg, #d42036 0%, #8f1128 100%);
	box-shadow: 0 4px 16px rgba(196, 30, 58, 0.25);
}

.tnf-site-chrome .tnf-top-nav .tnf-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.tnf-site-chrome .tnf-main-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
}

.tnf-site-chrome .tnf-main-menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 12px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	transition: background 0.15s ease;
}

.tnf-site-chrome .tnf-main-menu a:hover,
.tnf-site-chrome .tnf-main-menu a.is-active {
	background: rgba(0, 0, 0, 0.2);
}

/* Breaking ticker: styled in theme tnf-home-news.css (.tnf-home-news .tnf-breaking …). */

/* ----- Footer (reference-style bands) ----- */
.tnf-site-footer {
	margin-top: auto;
	font-family:
		'Noto Sans Devanagari',
		'Hind',
		ui-sans-serif,
		system-ui,
		-apple-system,
		'Segoe UI',
		Roboto,
		'Helvetica Neue',
		Arial,
		sans-serif;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.tnf-footer-views {
	background: #ececee;
	color: #1f1f1f;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tnf-footer-views__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding: 16px 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #2d2d2d;
}

.tnf-footer-views__icon {
	flex-shrink: 0;
	color: #3a3a3a;
}

.tnf-footer-views__count {
	font-weight: 800;
	letter-spacing: 0.02em;
}

.tnf-footer-disclaimer {
	background: linear-gradient(165deg, #1e1f24 0%, #14151a 48%, #0f1014 100%);
	color: #e8e8ea;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tnf-footer-disclaimer__inner {
	max-width: 52rem;
	margin: 0 auto;
	padding: 32px 18px 30px;
	font-size: 15px;
	line-height: 1.75;
	text-align: center;
}

.tnf-footer-disclaimer__inner::before {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	margin: 0 auto 18px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.9), transparent);
}

.tnf-footer-disclaimer__intro {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f0f0f2;
}

.tnf-footer-disclaimer__body {
	margin: 0 auto;
	max-width: 42rem;
	padding: 20px 22px 18px;
	color: #c9c9d1;
	font-weight: 400;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tnf-footer-disclaimer__body p {
	margin: 0 0 0.65em;
}

.tnf-footer-disclaimer__body p:last-child {
	margin-bottom: 0;
}

.tnf-footer-disclaimer__email {
	margin: 20px 0 0;
}

.tnf-footer-disclaimer__email a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.35em 0.85em;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	letter-spacing: 0.02em;
	background: rgba(196, 30, 58, 0.2);
	border: 1px solid rgba(196, 30, 58, 0.45);
	border-radius: 8px;
}

.tnf-footer-disclaimer__email a:hover {
	background: rgba(196, 30, 58, 0.32);
	text-decoration: none;
}

.tnf-footer-bar {
	background: #0a0a0b;
	color: #fff;
}

.tnf-footer-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	padding: 16px 16px 18px;
}

.tnf-footer-bar__copy {
	margin: 0;
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.2rem;
	flex: 1 1 220px;
	font-size: 12px;
	line-height: 1.65;
	color: #a8abb4;
	min-width: 0;
	letter-spacing: 0.03em;
	white-space: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tnf-footer-bar__copy::-webkit-scrollbar {
	display: none;
}

.tnf-footer-bar__sep {
	color: #666;
	flex-shrink: 0;
}

.tnf-footer-bar__credits {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15em 0.4em;
	margin: 0;
	padding: 0.42em 0.8em 0.42em 0.72em;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #f2f4f8;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	line-height: 1.35;
	vertical-align: middle;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	flex-shrink: 0;
}

.tnf-footer-bar__heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ff4f6d;
	flex-shrink: 0;
	margin: 0 0.04em;
	font-size: 1.05em;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.tnf-footer-bar__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	align-content: center;
	row-gap: 10px;
	column-gap: 0;
	flex: 0 1 auto;
	max-width: 100%;
}

.tnf-footer-bar__nav a {
	color: #f5f5f5;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
	font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tnf-footer-bar__pipe {
	display: inline-block;
	color: #6a6e78;
	font-weight: 400;
	font-size: 11px;
	padding: 0 0.35rem;
	user-select: none;
	flex-shrink: 0;
}

.tnf-footer-bar__nav a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tnf-footer-backtop {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.tnf-footer-backtop:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 700px) {
	.tnf-footer-disclaimer__inner {
		padding: 22px 14px 20px;
		font-size: 13px;
		text-align: left;
	}

	.tnf-footer-disclaimer__body {
		padding: 16px 14px 14px;
		text-align: left;
	}

	.tnf-footer-disclaimer__intro {
		text-align: center;
	}

	.tnf-footer-disclaimer__email {
		text-align: center;
	}

	.tnf-footer-bar__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.tnf-footer-bar__nav {
		justify-content: flex-start;
		row-gap: 8px;
	}

	.tnf-footer-bar__nav a {
		font-size: 10px;
		letter-spacing: 0.06em;
	}

	.tnf-footer-bar__pipe {
		font-size: 10px;
		padding: 0 0.25rem;
	}

	.tnf-footer-backtop {
		align-self: flex-end;
	}
}

@media (max-width: 900px) {
	.tnf-site-chrome {
		position: relative;
		z-index: 40;
	}

	.tnf-top-utility .tnf-shell {
		min-height: 32px;
		gap: 6px 10px;
		padding-top: 2px;
		padding-bottom: 2px;
	}

	.tnf-top-utility__left {
		gap: 6px 10px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		scrollbar-width: none;
	}

	.tnf-top-utility__left::-webkit-scrollbar {
		display: none;
	}

	.tnf-top-utility__right {
		font-size: 11px;
		opacity: 0.9;
	}

	.tnf-masthead {
		padding: 8px 0;
	}

	.tnf-masthead-inner {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.tnf-brand {
		font-size: 1.2rem;
		line-height: 1.12;
	}

	.tnf-masthead-meta {
		display: none;
	}

	.tnf-head-ad {
		display: none;
	}

	.tnf-site-chrome .tnf-top-nav {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.tnf-site-chrome .tnf-top-nav .tnf-shell {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 0 8px;
		min-height: 38px;
	}

	.tnf-site-chrome .tnf-nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
		height: 34px;
		padding: 0 10px;
		border: 1px solid rgba(255, 255, 255, 0.55);
		border-radius: 8px;
		background: rgba(0, 0, 0, 0.18);
		color: #fff;
		font-size: 11px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}

	.tnf-site-chrome .tnf-nav-quicklink {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 34px;
		padding: 0 12px;
		border: 1px solid rgba(255, 255, 255, 0.55);
		border-radius: 8px;
		background: rgba(0, 0, 0, 0.18);
		color: #fff;
		font-size: 11px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		text-decoration: none;
	}

	.tnf-site-chrome .tnf-nav-quicklink:hover {
		background: rgba(0, 0, 0, 0.3);
	}

	.tnf-site-chrome .tnf-nav-toggle__icon {
		position: relative;
		width: 14px;
		height: 2px;
		background: currentColor;
		border-radius: 99px;
	}

	.tnf-site-chrome .tnf-nav-toggle__icon::before,
	.tnf-site-chrome .tnf-nav-toggle__icon::after {
		content: '';
		position: absolute;
		left: 0;
		width: 14px;
		height: 2px;
		background: currentColor;
		border-radius: 99px;
	}

	.tnf-site-chrome .tnf-nav-toggle__icon::before {
		top: -5px;
	}

	.tnf-site-chrome .tnf-nav-toggle__icon::after {
		top: 5px;
	}

	.tnf-site-chrome .tnf-top-nav.is-menu-open .tnf-nav-toggle__icon {
		background: transparent;
	}

	.tnf-site-chrome .tnf-top-nav.is-menu-open .tnf-nav-toggle__icon::before {
		top: 0;
		transform: rotate(45deg);
	}

	.tnf-site-chrome .tnf-top-nav.is-menu-open .tnf-nav-toggle__icon::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.tnf-site-chrome .tnf-main-menu {
		display: none;
		position: absolute;
		top: calc(100% + 6px);
		left: 8px;
		right: 8px;
		z-index: 60;
		flex-direction: column;
		background: #fff;
		border-radius: 10px;
		border: 1px solid #e4e4e8;
		box-shadow: 0 16px 32px rgba(10, 10, 18, 0.24);
		overflow: hidden;
		max-height: min(68vh, 420px);
		overflow-y: auto;
		pointer-events: none;
	}

	.tnf-site-chrome .tnf-top-nav.is-menu-open .tnf-main-menu {
		display: flex;
		pointer-events: auto;
	}

	.tnf-site-chrome .tnf-main-menu a {
		padding: 11px 12px;
		font-size: 12px;
		flex: none;
		color: #191a1f;
		border-bottom: 1px solid #efeff3;
		text-transform: none;
		letter-spacing: 0;
	}

	.tnf-site-chrome .tnf-main-menu a:last-child {
		border-bottom: 0;
	}

	.tnf-site-chrome .tnf-main-menu a:hover,
	.tnf-site-chrome .tnf-main-menu a.is-active {
		background: #f3f4f8;
		color: #c41e3a;
	}

	.tnf-footer-views__inner {
		font-size: 13px;
		padding: 10px 12px;
	}

	.tnf-footer-disclaimer__inner {
		padding: 14px 12px;
		font-size: 12px;
		line-height: 1.5;
	}

	.tnf-footer-bar__inner {
		padding: 10px 12px 12px;
		gap: 10px;
	}

	.tnf-footer-bar__copy {
		font-size: 11px;
	}
}

@media (min-width: 901px) {
	.tnf-site-chrome .tnf-nav-toggle {
		display: none;
	}

	.tnf-site-chrome .tnf-nav-quicklink {
		display: none;
	}
}

/* ----- Focus & reduced motion (keyboard / accessibility) ----- */
@media (prefers-reduced-motion: reduce) {
	.tnf-site-chrome .tnf-main-menu a,
	.tnf-footer-backtop,
	.tnf-top-utility a,
	.tnf-footer-bar__nav a,
	.tnf-brand a {
		transition: none !important;
	}
}

.tnf-top-utility a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

.tnf-brand a:focus-visible {
	outline: 2px solid #c41e3a;
	outline-offset: 2px;
	border-radius: 2px;
}

.tnf-site-chrome .tnf-main-menu a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.tnf-site-chrome .tnf-nav-toggle:focus-visible,
.tnf-site-chrome .tnf-nav-quicklink:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.tnf-site-chrome .tnf-main-menu a:focus-visible {
		outline-color: #c41e3a;
	}
}

.tnf-footer-disclaimer__email a:focus-visible,
.tnf-footer-bar__nav a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

.tnf-footer-backtop:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
