/*
Theme Name: Telex
Theme URI: https://faton.works/wp/telex
Author: Faton
Author URI: https://faton.works
Description: Telex is a high-performance, broadsheet newspaper and modern magazine WordPress theme crafted for digital publications, newsrooms, investigative journalists, editorial blogs, and multimedia magazines. Features 5 distinct homepage architectures, 25+ Elementor editorial widgets, pure vanilla JavaScript (0 jQuery bloat), dark/light mode toggle, live financial & breaking tickers, Schema.org NewsArticle AEO/SEO structured data, and 1-Click demo installer.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telex
Tags: news, blog, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, wide-blocks

Telex WordPress Theme, Copyright (C) 2026 Faton Avdiu
Telex is distributed under the terms of the GNU GPL v2 or later.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Third-Party Resources Bundled:
- TGM-Plugin-Activation (TGMPA)
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
  Copyright 2011 Thomas Griffin, Gary Jones, Juliette Reinders Folmer

- TeX Gyre Termes Font
  License: GUST Font License (GPL compatible)
  License URI: http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt
  Copyright 2006-2026 B. Jackowski and J. M. Nowacki

- Liberation Mono Font
  License: SIL Open Font License, Version 1.1
  License URI: https://openfontlicense.org/open-font-license-official-text/
  Copyright 2012 Red Hat, Inc.
*/

/* -------------------------------------------------------------------------
 * WordPress Core Alignment & Layout Classes
 * ------------------------------------------------------------------------- */
.alignnone {
	margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display: block;
	margin: 24px auto;
	text-align: center;
}
.alignright {
	float: right;
	margin: 0 0 20px 24px;
}
.alignleft {
	float: left;
	margin: 0 24px 20px 0;
}
a img.alignright {
	float: right;
	margin: 0 0 20px 24px;
}
a img.alignnone {
	margin: 5px 20px 20px 0;
}
a img.alignleft {
	float: left;
	margin: 0 24px 20px 0;
}
a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-caption {
	background: transparent;
	border: none;
	max-width: 100%;
	padding: 0;
	text-align: left;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 0 24px 20px 0;
}
.wp-caption.alignright {
	margin: 0 0 20px 24px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 100%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-family: var(--f-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mute, #888);
	line-height: 1.4;
	margin: 10px 0 0;
	padding: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--bg, #f5f2eb);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--fg, #111);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Post Format & Block Styles */
.bypostauthor {
	display: block;
}
.gallery-caption {
	display: block;
}

/* Base WordPress Prose Enhancements */
.prose .wp-block-image,
.prose figure {
	margin: 32px 0;
}
.prose .wp-block-image img {
	height: auto;
	max-width: 100%;
}
.prose .wp-block-quote,
.prose blockquote {
	margin: 32px 0;
	padding-left: 20px;
	border-left: 3px solid var(--accent, #FF3B1D);
	font-style: italic;
}
.prose .wp-block-separator,
.prose hr {
	border: 0;
	border-top: 1px solid var(--line, #e2ded5);
	margin: 40px 0;
}
.prose .has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-family: var(--f-display, serif);
	font-size: 5.6em;
	line-height: 0.8;
	margin: 0.1em 0.15em 0.1em 0;
	text-transform: uppercase;
	color: var(--accent, #FF3B1D);
}

/* Sticky Post Marker */
.sticky-tag {
	display: inline-block;
	background: var(--accent, #FF3B1D);
	color: #fff;
	font-family: var(--f-mono, monospace);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 6px;
	letter-spacing: 0.08em;
	margin-right: 8px;
}

/* ==========================================================================
   Homepage Broadsheet Hero 3-Column Layout Calibration
   ========================================================================== */
.front {
	display: grid !important;
	grid-template-columns: 290px minmax(0, 1fr) 330px !important;
	align-items: stretch;
}
.front > * {
	min-width: 0 !important;
}
.front .lead {
	min-width: 0 !important;
}
.front .wirecol {
	align-self: stretch;
}
@media (max-width: 1320px) {
	.front {
		grid-template-columns: 260px minmax(0, 1fr) 300px !important;
	}
}
@media (max-width: 1060px) {
	.front {
		grid-template-columns: minmax(0, 1fr) 300px !important;
	}
	.front > :first-child {
		grid-column: 1 / -1 !important;
	}
}
@media (max-width: 860px) {
	.front {
		grid-template-columns: 1fr !important;
	}
}

/* -------------------------------------------------------------------------
 * Broadsheet Editorial Media & Card Image Precision Engine
 * Ensures 100% frame coverage with object-fit: cover across all widgets & posts
 * ------------------------------------------------------------------------- */
.ph,
.ph-wrap .ph,
.card .ph,
.telex-mag-grid .ph,
.telex-cat-grid .ph,
figure > .ph,
.rowc__figure.ph {
	position: relative !important;
	overflow: hidden !important;
	display: block !important;
	background: var(--bg2, #f3efe6);
}

.ph img,
.elementor .ph img,
.ph-wrap img,
.elementor .ph-wrap img,
.ph-wrap .ph img,
.card .ph img,
.card .ph-wrap img,
.card--mag-hero .ph img,
.card--mag-companion .ph img,
.card--mag-river-item .ph img,
.card--bento-hero .ph img,
.card--cat-lead .ph img,
.tlx-rn-card__img,
.tlx-rn-card__figure img,
.tlx-lead-primary__img,
.tlx-lead-primary__figure img,
.tlx-spotlight-item__figure img,
.tlx-zigzag-media img,
.tlx-dispatch-media img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

.ph-wrap {
	position: relative !important;
	overflow: hidden !important;
	display: block !important;
	line-height: 0 !important;
	font-size: 0 !important;
}
.ph-wrap a {
	display: block !important;
	line-height: 0 !important;
	width: 100% !important;
}
.ph-wrap .ph {
	margin-bottom: 0 !important;
	width: 100% !important;
}

/* -------------------------------------------------------------------------
 * Broadsheet Sidebar & Widget Perfection
 * ------------------------------------------------------------------------- */
.post-right-rail {
	position: sticky;
	top: 90px;
}
.side--post .widget {
	margin-bottom: 34px;
}
.side--post .widget:last-child {
	margin-bottom: 0;
}

/* Guard against TOC link pollution into sidebar */
.toc-links a {
	display: block;
	font: 700 12.5px/1.35 var(--f-mono);
	padding: 7px 0 7px 12px;
	border-left: 2.5px solid var(--line);
	color: var(--mute);
	text-decoration: none;
	transition: all .25s var(--ease);
}
.toc-links a:hover,
.toc-links a.is-on {
	color: var(--fg);
	border-color: var(--accent);
	padding-left: 18px;
}
.side a,
.widget a,
.post-right-rail .widget a {
	border-left: none;
}
.side a:hover,
.widget a:hover,
.post-right-rail .widget a:hover {
	padding-left: 0;
}
.trending-chip:hover {
	padding: 3px 8px !important;
}

/* Ensure broadsheet typography in ranked stories */
.telex-ranked-title,
.widget_telex_ranked_stories .telex-ranked-title {
	font-family: var(--f-display) !important;
	font-weight: 700 !important;
	font-size: clamp(14.5px, 1.15vw, 16px) !important;
	line-height: 1.26 !important;
	letter-spacing: -0.025em !important;
}
.telex-ranked-title a,
.widget_telex_ranked_stories .telex-ranked-title a {
	font-family: var(--f-display) !important;
	font-weight: 700 !important;
	font-size: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	border-left: none !important;
	padding: 0 !important;
	color: var(--fg) !important;
}
.telex-ranked-title a:hover,
.widget_telex_ranked_stories .telex-ranked-title a:hover {
	color: var(--accent) !important;
	padding-left: 0 !important;
}

/* 5 Homepage Layouts Mega Menu Shots — Always show from top / header */
.mega-homes .ph img,
.mega-homes img,
.mega .ph img {
	object-position: top center !important;
	mix-blend-mode: normal !important;
	filter: none !important;
}
.mega-homes a:hover .ph img,
.mega-homes .ph:hover img {
	transform-origin: top center;
}


