/**
 * Skin: cosmetic layer on top of layout.css (India Today–style polish).
 * Grey canvas + white cards, card left menu, brand breaking band, ad boxes,
 * section headers, type, Top News thumbs, top strip, dark footer,
 * hover/focus, compact header, opinion quote, phone chips, rhythm.
 */

:root {
	--pv-canvas: #f1f1ee;
	--pv-card: var(--wp--preset--color--base);
	--pv-card-border: #e3e3de;
	--pv-card-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 2px 8px rgb(0 0 0 / 0.03);
	--pv-radius: 6px;
	--pv-pad: var(--wp--preset--spacing--50);
	--pv-rhythm: var(--wp--preset--spacing--60);
	--pv-footer-bg: #17191d;
	--pv-footer-ink: #d4d4cf;
	--pv-footer-muted: #92928d;
	--pv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="dark"] {
	--pv-canvas: #0c0d0f;
	--pv-card: #17181b;
	--pv-card-border: #2a2b30;
	--pv-card-shadow: none;
	--pv-footer-bg: #08090a;

	/* Logo maroon is too dark on a dark page: lift it for contrast (≈5:1 on cards). */
	--wp--preset--color--brand: #e0584c;
	--wp--preset--color--brand-dark: #c4473c;
}

/* ---------- 1. Grey canvas + white cards (pages using the column layout) ---------- */
@media (min-width: 1024px) {
	body:has(.pv-layout) {
		background: var(--pv-canvas);
	}

	.pv-layout__main,
	.pv-layout--2col .pv-layout__main {
		padding: var(--pv-pad);
		background: var(--pv-card);
		border: 1px solid var(--pv-card-border);
		border-radius: var(--pv-radius);
		box-shadow: var(--pv-card-shadow);
	}

	.pv-top-news,
	.pv-home-side .pv-most-read {
		padding: 0.25rem var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
		background: var(--pv-card);
		border: 1px solid var(--pv-card-border);
		border-radius: var(--pv-radius);
		box-shadow: var(--pv-card-shadow);
	}

	.pv-top-news {
		border-top: 3px solid var(--pv-logo-blue);
	}

	.pv-home-side .pv-most-read {
		border-top: 3px solid var(--wp--preset--color--brand);
	}
}

/* ---------- 2. Left menu: card, icon circles, red pill, collapsible ---------- */
@media (min-width: 1024px) {
	.pv-layout__nav .pv-side-nav {
		padding: 0.5rem;
		background: var(--pv-card);
		border: 1px solid var(--pv-card-border);
		border-radius: var(--pv-radius);
		box-shadow: var(--pv-card-shadow);
	}
}

.pv-side-nav .pv-menu {
	border-top: 0;
}

.pv-side-nav .pv-menu li {
	position: relative;
	border-bottom: 0;
}

.pv-side-nav .pv-menu > li + li {
	margin-top: 2px;
}

.pv-side-nav .pv-menu a {
	padding: 0.4rem 2.25rem 0.4rem 0.4rem;
	border-radius: 999px;
}

.pv-side-nav .pv-menu a::before {
	display: none;
}

.pv-side-nav .pv-menu > li > a > .pv-menu-icon {
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	padding: 7px;
	color: var(--wp--preset--color--ink-soft);
	background: var(--wp--preset--color--surface);
	border-radius: 50%;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pv-side-nav .pv-menu a:hover,
.pv-side-nav .pv-menu a:focus-visible {
	background: var(--wp--preset--color--surface);
}

.pv-side-nav .pv-menu > li > a:hover > .pv-menu-icon {
	color: var(--wp--preset--color--on-brand);
	background: var(--wp--preset--color--brand);
}

/* Current page: red pill. */
.pv-side-nav .pv-menu .current-menu-item > a {
	color: var(--wp--preset--color--on-brand);
	background: var(--wp--preset--color--brand);
}

.pv-side-nav .pv-menu .current-menu-item > a > .pv-menu-icon {
	color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--base);
}

.pv-side-nav .sub-menu {
	margin-left: 1.15rem;
	padding: 0.15rem 0 0.35rem 0.75rem;
	border-left: 1px solid var(--wp--preset--color--line);
}

.pv-side-nav .sub-menu a {
	padding: 0.3rem 0.6rem;
}

.pv-side-nav .pv-collapsed > .sub-menu {
	display: none;
}

.pv-sub-toggle {
	position: absolute;
	top: 0.35rem;
	right: 0.25rem;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	color: var(--wp--preset--color--muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.pv-sub-toggle:hover {
	color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--surface);
}

.pv-sub-toggle svg {
	transition: transform 0.2s var(--pv-ease);
}

.pv-collapsed > .pv-sub-toggle svg {
	transform: rotate(-90deg);
}

/* ---------- 3 + 8. Top News: category label, thumbnails ---------- */
.pv-top-news__kicker {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--brand);
}

.pv-top-news__item:not(.pv-top-news__item--lead) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 80px;
	gap: 0.75rem;
	align-items: start;
}

.pv-top-news__item:not(.pv-top-news__item--lead) .pv-top-news__img {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	border-radius: 4px;
}

.pv-top-news__item:not(.pv-top-news__item--lead) .pv-top-news__img img {
	aspect-ratio: 1;
}

.pv-top-news__item--lead .pv-top-news__img {
	border-radius: 4px;
}

/* ---------- 4. Breaking news band: brand colours, same look as the menu ---------- */
/* White card like the left menu; label = red pill (like the current menu item). */
.pv-ticker-band {
	padding-top: var(--wp--preset--spacing--40);
}

.pv-ticker {
	align-items: center;
	padding: 0.35rem;
	color: var(--wp--preset--color--ink);
	background: var(--pv-card);
	border: 1px solid var(--pv-card-border);
	border-radius: 999px;
	box-shadow: var(--pv-card-shadow);
}

.pv-ticker__label {
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.85rem;
	color: var(--wp--preset--color--on-brand);
	background: var(--wp--preset--color--brand);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.08em;
}

/* Live dot inside the pill. */
.pv-ticker__label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0 rgb(255 255 255 / 0.7);
	animation: pv-live 1.6s ease-out infinite;
}

@keyframes pv-live {
	70% {
		box-shadow: 0 0 0 6px rgb(255 255 255 / 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgb(255 255 255 / 0);
	}
}

.pv-ticker__item {
	padding: 0.35rem 1.25rem;
}

.pv-ticker__item a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.pv-ticker__item a:hover,
.pv-ticker__item a:focus-visible {
	color: var(--wp--preset--color--brand);
}

.pv-ticker__item::before {
	background: var(--wp--preset--color--brand);
}

@media (prefers-reduced-motion: reduce) {
	.pv-ticker__label::before {
		animation: none;
	}
}

/* ---------- 5. Ad boxes: grey frame, capped heights ---------- */
.pv-ad__slot:has(img) {
	padding: 0.5rem;
	background: var(--wp--preset--color--surface);
	border-radius: 4px;
}

.pv-ad__slot img {
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	object-fit: contain;
}

/* Scanned notices: readable box, not a full-page poster. */
.pv-ad--home .pv-ad__slot img {
	max-height: 340px;
}

.pv-ad--side .pv-ad__slot img {
	max-height: 600px;
}

@media (max-width: 1023px) {
	.pv-ad .pv-ad__slot img {
		max-height: 70vh;
	}
}

.pv-ad-row {
	border-top: 0;
	border-bottom: 0;
	padding: 0;
}

/* ---------- 6. Section headers: red underline segment + "More" pill ---------- */
.pv-section-title {
	position: relative;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 0.9375rem !important;
	letter-spacing: 0.04em;
}

.pv-section-title::before {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 3px;
	background: var(--wp--preset--color--brand);
}

.pv-section-title::after {
	display: none;
}

.pv-section-title .pv-catsec__more {
	margin-left: auto;
	padding: 0.2rem 0.75rem;
	font-size: 0.6875rem;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pv-section-title .pv-catsec__more:hover,
.pv-section-title .pv-catsec__more:focus-visible {
	color: var(--wp--preset--color--on-brand) !important;
	background: var(--wp--preset--color--brand);
}

/* ---------- 7. Headline type ---------- */
h1,
h2,
h3,
.pv-catsec__title,
.pv-catsec__item-title,
.pv-top-news__link {
	letter-spacing: -0.01em;
}

.pv-catsec__title {
	line-height: 1.2;
}

@media (min-width: 1024px) {
	.pv-layout__main .pv-catsec__lead .pv-catsec__title {
		font-size: 1.5rem;
	}
}

.pv-catsec__item-title,
.pv-top-news__link {
	line-height: 1.3;
}

/* ---------- 9. Desktop top strip: date · weather | social ---------- */
.pv-topstrip {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	background: var(--pv-canvas);
	border-bottom: 1px solid var(--pv-card-border);
}

.pv-topstrip__inner {
	min-height: 34px;
}

.pv-topstrip__inner > *,
.pv-topstrip__meta > * {
	margin: 0 !important;
}

.pv-topstrip__meta {
	gap: 0.75rem;
}

.pv-topstrip__meta > * + *::before {
	content: "|";
	margin-right: 0.75rem;
	color: var(--wp--preset--color--line);
}

.pv-topstrip .pv-social a {
	width: 26px;
	height: 26px;
}

.pv-topstrip .pv-social svg {
	width: 14px;
	height: 14px;
}

/* ---------- 10. Dark footer ---------- */
.pv-footer {
	color: var(--pv-footer-ink);
	background: var(--pv-footer-bg) !important;
	border-top: 3px solid var(--wp--preset--color--brand);
}

.pv-footer a {
	color: var(--pv-footer-ink);
	text-decoration: none;
}

.pv-footer a:hover,
.pv-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pv-footer .pv-section-title {
	color: #fff;
	border-bottom-color: rgb(255 255 255 / 0.12);
}

.pv-footer .has-muted-color,
.pv-footer .wp-block-site-tagline {
	color: var(--pv-footer-muted) !important;
}

.pv-footer .wp-block-separator {
	border-color: rgb(255 255 255 / 0.12);
	opacity: 1;
}

.pv-footer .wp-block-site-logo img {
	padding: 8px 12px;
	background: #fff;
	border-radius: 4px;
}

.pv-footer .pv-social a {
	color: var(--pv-footer-ink);
	background: rgb(255 255 255 / 0.08);
}

.pv-footer .pv-social a:hover {
	color: #fff;
	background: var(--wp--preset--color--brand);
}

/* ---------- 11. Hover + focus ---------- */
.pv-catsec__title a,
.pv-catsec__item-title a,
.pv-top-news__link,
.pv-most-read__list a,
.pv-opinion__title a,
.pv-layout .wp-block-post-title a {
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.pv-catsec__title a:hover,
.pv-catsec__item-title a:hover,
.pv-top-news__link:hover,
.pv-most-read__list a:hover,
.pv-opinion__title a:hover,
.pv-layout .wp-block-post-title a:hover {
	color: var(--wp--preset--color--brand);
	text-decoration-line: underline;
}

:where(button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

/* ---------- 12. Logo bar compacts after scrolling (no layout shift) ---------- */
/* Height lost by the bar is given back as margin: total flow height stays the same. */
.pv-bar {
	margin-bottom: 0;
	transition: margin-bottom 0.25s var(--pv-ease);
}

.pv-bar__inner {
	transition: min-height 0.25s var(--pv-ease);
}

.pv-bar__logo img {
	transition: width 0.25s var(--pv-ease);
}

html.pv-bar-compact .pv-bar {
	margin-bottom: 20px;
}

html.pv-bar-compact .pv-bar__inner {
	min-height: calc(var(--pv-bar-h) - 20px);
}

html.pv-bar-compact .pv-bar__logo img {
	width: 170px;
}

/* ---------- 13. Opinion: quote mark ---------- */
.pv-opinion {
	position: relative;
	overflow: hidden;
	border-radius: var(--pv-radius);
}

.pv-opinion::after {
	content: "\275D";
	position: absolute;
	top: -0.5rem;
	right: 1rem;
	font-family: var(--wp--preset--font-family--headline);
	font-size: 7rem;
	line-height: 1;
	color: var(--wp--preset--color--brand);
	opacity: 0.08;
	pointer-events: none;
}

.pv-opinion > * {
	position: relative;
	z-index: 1;
}

/* ---------- 15. Even vertical rhythm in the middle column ---------- */
.pv-layout__main .pv-catsec,
.pv-layout__main .pv-opinion,
.pv-layout__main .pv-ad-row {
	margin-top: var(--pv-rhythm);
}

.pv-layout__main .pv-catsecs > .pv-catsec:first-child {
	margin-top: 0;
}

.pv-layout__main .pv-ad-row + .pv-catsec {
	padding-top: var(--pv-rhythm);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ---------- Ad captions + Ad Archive ---------- */
.pv-ad__caption {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.35;
	text-align: center;
	color: var(--wp--preset--color--muted);
}

.pv-ad-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
	gap: var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pv-ad-archive__item {
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.pv-ad-archive__media {
	display: grid;
	place-items: center;
	height: 260px;
	padding: 0.5rem;
	background: var(--wp--preset--color--surface);
	border-radius: 4px;
	color: var(--wp--preset--color--muted);
}

.pv-ad-archive__media a {
	display: contents;
}

.pv-ad-archive__media img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 244px;
	object-fit: contain;
}

.pv-ad-archive__item p {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.pv-ad-archive__title {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-weight: 600;
}

.pv-ad-archive__status {
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.pv-ad-archive__status.is-live {
	color: var(--pv-logo-blue);
}

.pv-ad-archive__item .pv-ad-archive__dates {
	color: var(--wp--preset--color--muted);
}

.pv-ad-archive__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--60);
}

.pv-ad-archive__pages .current {
	font-weight: 700;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.pv-bar,
	.pv-bar__inner,
	.pv-bar__logo img,
	.pv-sub-toggle svg {
		transition: none;
	}
}

/* ---------- 16. Language switcher: English | বাংলা ---------- */
.pv-topstrip__actions {
	gap: 0.75rem;
}

.pv-topstrip__actions > * {
	margin: 0 !important;
}

.pv-lang__list {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 2px;
	list-style: none;
	background: var(--pv-card);
	border: 1px solid var(--pv-card-border);
	border-radius: 999px;
}

.pv-lang__link {
	display: block;
	padding: 0.15rem 0.7rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	color: var(--wp--preset--color--ink-soft);
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.pv-lang__link[lang="bn"] {
	font-size: 0.8125rem; /* Bangla script reads small at the same size. */
}

.pv-lang__link:hover,
.pv-lang__link:focus-visible {
	color: var(--wp--preset--color--brand);
}

.pv-lang__link[aria-current="true"] {
	color: var(--wp--preset--color--on-brand);
	background: var(--wp--preset--color--brand);
}

/* ---------- 17. Header links: pill hover like the left menu ---------- */
.pv-bar__menu .pv-menu {
	gap: 0.35rem;
}

.pv-bar__menu .pv-menu a {
	padding: 0.5rem 1rem;
	border-bottom: 0;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-bar__menu .pv-menu a:hover,
.pv-bar__menu .pv-menu a:focus-visible {
	color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--surface);
	box-shadow: inset 0 0 0 1px var(--pv-card-border);
}

/* Section you are in: solid red pill, white text + icon. */
.pv-bar__menu .pv-menu .current-menu-item > a,
.pv-bar__menu .pv-menu .current-menu-ancestor > a {
	color: var(--wp--preset--color--on-brand);
	background: var(--wp--preset--color--brand);
	box-shadow: none;
}

.pv-bar__menu .pv-menu .current-menu-item > a > .pv-menu-icon,
.pv-bar__menu .pv-menu .current-menu-ancestor > a > .pv-menu-icon {
	color: currentColor;
}

/* ---------- 18. Text-only middle column (first sections on the homepage) ---------- */
.pv-catsec__middle--text > article {
	padding-bottom: 0.8rem;
}

.pv-catsec__middle--text > article + article {
	padding-top: 0.8rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.pv-catsec__middle--text .pv-catsec__item-title {
	margin: 0;
	font-size: 1.0625rem;
}

.pv-catsec__snippet {
	display: -webkit-box;
	margin: 0.3rem 0 0.35rem;
	overflow: hidden;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--ink-soft);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.pv-catsec__middle--text .pv-catsec__time {
	font-weight: 700;
	color: var(--wp--preset--color--brand);
}
