/* The Screen News: brand layer on top of ColorMag. Colours come from the logo. */
:root {
	--tsn-black: #0b0b0f;
	--tsn-ink: #16161d;
	--tsn-cream: #fbf1e6;
	--tsn-purple: #a100ff;
	--tsn-pink: #ff2e8a;
	--tsn-orange: #ff8a1f;
	--tsn-accent: #e0187a;
	--tsn-grad: linear-gradient(90deg, #a100ff 0%, #ff2e8a 55%, #ff8a1f 100%);
	--tsn-text: #1b1b22;
	--tsn-muted: #6b6b76;
	--tsn-line: #e9e9ef;
	--tsn-soft: #f6f5f8;
	--tsn-radius: 8px;
	--tsn-font: "Noto Sans Gurmukhi", "Mukta Mahee", "Raavi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.tsn,
body.tsn button,
body.tsn input,
body.tsn select,
body.tsn textarea,
body.tsn .cm-site-title,
body.tsn h1, body.tsn h2, body.tsn h3, body.tsn h4, body.tsn h5, body.tsn h6 {
	font-family: var(--tsn-font);
}
body.tsn { color: var(--tsn-text); line-height: 1.75; }
body.tsn a { color: inherit; }
body.tsn a:hover { color: var(--tsn-accent); }

.tsn-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Top bar */
.tsn-topbar { background: var(--tsn-black); color: var(--tsn-cream); font-size: 13px; line-height: 1; }
.tsn-topbar .tsn-wrap { min-height: 36px; }
.tsn-topbar a.tsn-yt { display: inline-flex; align-items: center; gap: 6px; color: var(--tsn-cream); text-decoration: none; font-weight: 600; }
.tsn-topbar a.tsn-yt:hover { color: #fff; }
.tsn-topbar .tsn-ico { color: #ff0033; }

/* Header */
body.tsn #cm-masthead .cm-header-main-row { background: var(--tsn-black); }
body.tsn #cm-masthead .cm-header-main-row .cm-site-title a,
body.tsn #cm-masthead .cm-header-main-row .cm-site-description { color: var(--tsn-cream); }
body.tsn #cm-masthead .custom-logo { max-height: 76px; width: auto; height: auto; }
body.tsn.tsn-has-logo .cm-site-title,
body.tsn.tsn-has-logo .cm-site-description {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
body.tsn #cm-masthead .cm-header-bottom-row,
body.tsn #cm-masthead .cm-primary-nav { background: var(--tsn-ink); }
body.tsn #cm-masthead .cm-header-bottom-row { border-bottom: 3px solid transparent; border-image: var(--tsn-grad) 1; }
body.tsn .cm-primary-nav a { color: var(--tsn-cream); font-weight: 600; }
body.tsn .cm-primary-nav li.current-menu-item > a,
body.tsn .cm-primary-nav li.current-menu-ancestor > a,
body.tsn .cm-primary-nav li:hover > a { background: var(--tsn-grad); color: #fff; }
body.tsn .cm-primary-nav .sub-menu { background: var(--tsn-ink); }
body.tsn .cm-menu-toggle, body.tsn .cm-mobile-nav-container { color: var(--tsn-cream); }

/* Breaking-news ticker */
body.tsn #cm-masthead .cm-header-top-row { background: var(--tsn-soft); border-bottom: 1px solid var(--tsn-line); }
body.tsn .breaking-news-latest,
body.tsn .cm-ticker-title,
body.tsn .breaking-news strong { background: var(--tsn-grad); color: #fff; padding: 2px 10px; border-radius: 4px; font-weight: 700; }
body.tsn .newsticker a { color: var(--tsn-text); }
body.tsn .breaking-news-latest { font-size: 0; }
body.tsn .breaking-news-latest::before { content: "ਤਾਜ਼ਾ ਖ਼ਬਰਾਂ"; font-size: 14px; }

/* Footer */
body.tsn #cm-footer a { color: var(--tsn-cream); }
body.tsn #cm-footer a:hover { color: var(--tsn-orange); }
body.tsn #cm-footer .widget-title,
body.tsn #cm-footer .widget-title span,
body.tsn #cm-footer h3 { background: none; color: var(--tsn-cream); border-bottom: 3px solid transparent; border-image: var(--tsn-grad) 1; }
body.tsn #cm-footer img { max-width: 220px; height: auto; }

/* Buttons, badges, links */
.tsn-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none !important; line-height: 1.2; }
.tsn-btn-yt { background: #ff0033; color: #fff !important; }
.tsn-btn-yt:hover { background: #d9002b; }
.tsn-badge { display: inline-block; background: var(--tsn-grad); color: #fff !important; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px; text-decoration: none; margin-bottom: 6px; }
body.tsn .cm-post-categories a, body.tsn .cm-entry-button, body.tsn .wp-block-button__link { background: var(--tsn-grad) !important; color: #fff !important; border: 0; }

/* Homepage */
.tsn-home { padding: 8px 0 24px; }
.tsn-empty { background: var(--tsn-black); color: var(--tsn-cream); border-radius: var(--tsn-radius); padding: 40px 24px; text-align: center; margin-bottom: 24px; }
.tsn-empty h2 { color: var(--tsn-cream); margin: 0 0 8px; }
.tsn-card { position: relative; }
.tsn-card .tsn-thumb { display: block; overflow: hidden; border-radius: var(--tsn-radius); background: var(--tsn-soft); }
.tsn-card .tsn-img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .3s; }
.tsn-card:hover .tsn-img { transform: scale(1.03); }
.tsn-title { margin: 4px 0 6px; line-height: 1.45; font-weight: 700; }
.tsn-title a { text-decoration: none; }
.tsn-ex { color: var(--tsn-muted); margin: 0 0 6px; font-size: 15px; }
.tsn-meta, .tsn-meta time, .tsn-list time { color: var(--tsn-muted); font-size: 13px; }

.tsn-hero { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
.tsn-lead .tsn-title { font-size: 26px; }
.tsn-lead .tsn-body { padding-top: 10px; }
.tsn-hero-side { display: grid; gap: 14px; }
.tsn-side { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.tsn-side .tsn-title { font-size: 16px; }
.tsn-side .tsn-badge { font-size: 11px; margin-bottom: 2px; }

.tsn-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.tsn-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 22px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 3px solid transparent; border-image: var(--tsn-grad) 1; }
.tsn-h a { text-decoration: none; }
.tsn-more { font-size: 14px; font-weight: 600; color: var(--tsn-accent) !important; white-space: nowrap; }
.tsn-section { margin-bottom: 32px; }
.tsn-sec-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tsn-big .tsn-title { font-size: 20px; }
.tsn-small { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.tsn-small .tsn-title { font-size: 15px; }
.tsn-small .tsn-badge { display: none; }

.tsn-box { background: var(--tsn-soft); border-radius: var(--tsn-radius); padding: 16px; margin-bottom: 20px; }
.tsn-box .tsn-h { font-size: 18px; }
.tsn-list { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: tsn; }
.tsn-list li { padding: 8px 0; border-bottom: 1px solid var(--tsn-line); line-height: 1.5; }
.tsn-list li:last-child { border-bottom: 0; }
.tsn-list a { text-decoration: none; font-weight: 600; display: block; }
ol.tsn-list li { counter-increment: tsn; display: grid; grid-template-columns: 28px 1fr; }
ol.tsn-list li::before { content: counter(tsn); font-weight: 800; font-size: 20px; background: var(--tsn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tsn-sub-box { background: var(--tsn-black); color: var(--tsn-cream); }
.tsn-sub-box .tsn-h { color: var(--tsn-cream); }

/* Videos */
.tsn-vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tsn-video { display: block; text-decoration: none !important; }
.tsn-vthumb { position: relative; display: block; border-radius: var(--tsn-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.tsn-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsn-vthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tsn-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 38px; margin: -19px 0 0 -27px; background: #ff0033; border-radius: 10px; }
.tsn-play::after { content: ""; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.tsn-vtitle { display: block; font-weight: 700; margin-top: 8px; line-height: 1.45; font-size: 15px; }
.tsn-video time { color: var(--tsn-muted); font-size: 12px; }
.tsn-center { text-align: center; margin-top: 18px; }
.tsn-note { color: var(--tsn-muted); }

/* Footer band */
.tsn-band { background: var(--tsn-black); color: var(--tsn-cream); padding: 22px 0; border-top: 3px solid transparent; border-image: var(--tsn-grad) 1; }
.tsn-band p { margin: 0; }

/* Story page */
.tsn-story-foot { margin-top: 24px; }
.tsn-embed { margin: 20px 0; }
.tsn-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.tsn-correction { background: #fff6e8; border-left: 4px solid var(--tsn-orange); padding: 12px 14px; border-radius: 4px; margin: 16px 0; }
.tsn-source, .tsn-times { color: var(--tsn-muted); font-size: 14px; margin: 6px 0; }
.tsn-editor-note { background: #ffeef6; border: 2px dashed var(--tsn-accent); padding: 12px; border-radius: 6px; }
body.tsn .wp-caption-text, body.tsn figcaption { color: var(--tsn-muted); font-size: 13px; }

/* Larger screens */
@media (min-width: 700px) {
	.tsn-sec-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, auto); }
	.tsn-sec-grid .tsn-big { grid-row: 1 / span 3; }
	.tsn-vgrid { grid-template-columns: repeat(4, 1fr); }
	.tsn-side { grid-template-columns: 140px 1fr; }
}
@media (min-width: 992px) {
	.tsn-hero { grid-template-columns: 1.6fr 1fr; }
	.tsn-lead .tsn-title { font-size: 32px; }
	.tsn-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.tsn-aside { position: sticky; top: 16px; align-self: start; }
}
@media (max-width: 600px) {
	body.tsn #cm-masthead .custom-logo { max-height: 48px; }
	.tsn-lead .tsn-title { font-size: 22px; }
	.tsn-topbar { font-size: 12px; }
	.tsn-band .tsn-wrap { justify-content: center; text-align: center; }
}
