/*
Theme Name: The Realty Standard
Theme URI: https://realtystandard.in
Author: The Realty Standard
Description: Lightweight, fast, editorial news theme for realtystandard.in built to the Realty Standard build specification. Elementor-compatible (full-width canvas), CMS-driven data ticker, NewsArticle/Breadcrumb/Organization schema, sitemap-ready, social-share ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: realty-standard
*/

/* ==========================================================================
   THE REALTY STANDARD — Design tokens (spec §1). One accent: OXBLOOD.
   ========================================================================== */
:root {
  --ink: #111110;
  --oxblood: #8A1E26;
  --oxblood-light: #BE444A;
  --white: #FFFFFF;
  --paper: #FCFBF9;
  --grey: #5A5854;
  --grey-light: #8E8C88;
  --hair: #E2E0DC;
  --block: #EDEBE7;
  --up: #1A6E4A;
  --down: #A62E28;
  --serif: "Zilla Slab", "Century Schoolbook", Georgia, serif;
  --sans: "Poppins", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1440px;
  --gutter: 48px;
  --measure: 680px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--oxblood); }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }
::selection { background: var(--oxblood); color: var(--white); }
.alignwide { max-width: 1200px; margin-inline: auto; }
.alignfull { max-width: none; }
.screen-reader-text, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 12px 20px; z-index: 200; font-family: var(--sans); font-size: 14px; }
.skip-link:focus { left: 0; }

/* Type roles (spec §2) */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
.kicker { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oxblood); }
.kicker--onDark { color: var(--oxblood-light); }
.meta, .byline { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-light); }
.nav-link { font-family: var(--sans); font-weight: 400; font-size: 19px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--grey); }
.standfirst { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--grey); line-height: 1.4; }

/* Logo image (extracted wordmark) */
.trs-logo--img { display: inline-flex; align-items: center; flex: 0 0 auto; }
.trs-logo--img img { width: auto; height: 46px; display: block; }
.trs-logo--footer img { height: 42px; }
.trs-lang { flex: 0 0 auto; }
.trs-lang .trp-language-switcher { font-family: var(--sans); }
.trs-lang .trp-language-switcher a, .trs-lang .trp-language-switcher span { font-size: 13px !important; letter-spacing: 0.08em; }
.trs-header__tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.trs-lang--drawer { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--hair); }
@media (max-width: 767px) { .trs-logo--img img { height: 38px; } .trs-logo--footer img { height: 36px; } }

/* Language switcher (compact) */
.trs-lang .trp-language-switcher { min-width: 0 !important; }
.trs-lang .trp-language-switcher a, .trs-lang .trp-language-switcher span { font-size: 12px !important; padding: 4px 6px !important; }
.trs-lang .trp-language-switcher img { width: 16px !important; height: auto !important; }
@media (max-width: 1023px) {
  .trs-header__tools .trs-lang { display: none; }  /* drawer me hai */
}
/* TranslatePress floating switcher — mobile par hide (switcher drawer me hai) */
@media (max-width: 767px) {
  .trp-language-switcher.trp-floater-ls, 
  #trp-floater-ls,
  .trp-floater-ls-parent,
  .trp-floater-ls-centered,
  div[id^="trp_floater"], 
  .trp-floater {
    display: none !important;
  }
}

/* Header (spec §3: flex, lockup fixed, nav shrinks, reflows around) */
.trs-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 2px solid var(--hair); }
.trs-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.trs-logo { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.trs-logo__icon { width: 56px; height: 56px; flex: 0 0 auto; background: var(--oxblood); border-radius: 10px; display: grid; place-items: center; }
.trs-logo__icon svg { width: 32px; height: 32px; }
.trs-logo__icon--onDark { background: var(--oxblood-light); }
.trs-logo__text { display: flex; flex-direction: column; line-height: 1; }
.trs-logo__the { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--oxblood); }
.trs-logo__word { font-family: var(--serif); font-weight: 700; line-height: 1.05; color: var(--ink); }
.trs-logo__word .dot { color: var(--oxblood); }
.trs-logo--default .trs-logo__word { font-size: 50px; }
.trs-logo--compact .trs-logo__word { font-size: 34px; }
.trs-nav { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; flex-wrap: nowrap; }
.trs-nav .nav-link { font-size: 15.5px; letter-spacing: 0.14em; white-space: nowrap; }
.trs-nav .nav-link:hover { color: var(--oxblood); }
.trs-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.trs-burger span { display: block; width: 30px; height: 3px; background: var(--ink); margin: 6px 0; }
@media (max-width: 1023px) {
  .trs-nav { display: none; }
  .trs-burger { display: block; }
}
.trs-drawer { display: none; background: var(--white); border-bottom: 2px solid var(--hair); padding: 16px var(--gutter) 28px; }
.trs-drawer.is-open { display: block; }
.trs-drawer .nav-link { display: block; padding: 12px 0; border-bottom: 2px solid var(--hair); }
@media (max-width: 767px) { .trs-header__inner { min-height: 64px; } .trs-drawer { padding: 12px 30px 22px; } }

/* Ticker (spec §6) */
.trs-ticker { background: var(--paper); border-bottom: 2px solid var(--hair); height: 62px; display: flex; align-items: stretch; overflow: hidden; }
.trs-ticker__inner { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; animation: trs-scroll 40s linear infinite; }
.trs-ticker:hover .trs-ticker__inner { animation-play-state: paused; }
@keyframes trs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trs-ticker__item { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
.trs-ticker__label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.trs-ticker__value { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.trs-ticker__change--up { color: var(--up); }
.trs-ticker__change--down { color: var(--down); }
.trs-ticker__change--flat { color: var(--grey-light); }
.trs-ticker__sep { color: var(--hair); }
@media (max-width: 767px) { .trs-ticker { overflow-x: auto; } .trs-ticker__inner { animation: none; padding: 0 18px; } }

/* Date bar + masthead */
.trs-datebar { border-bottom: 2px solid var(--hair); }
.trs-datebar__inner { max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.trs-datebar .meta { color: var(--grey); }
.trs-datebar__right { display: flex; align-items: center; gap: 14px; }
.trs-rss { color: var(--oxblood); display: inline-flex; align-items: center; }
.trs-rss:hover { color: var(--ink); }
.trs-masthead { background: var(--ink); color: var(--white); padding: 72px 0 56px; text-align: center; }
.trs-masthead .trs-logo { flex-direction: column; align-items: center; gap: 22px; display: inline-flex; }
.trs-masthead .trs-logo__icon { width: 72px; height: 72px; border-radius: 14px; }
.trs-masthead .trs-logo__icon svg { width: 40px; height: 40px; }
.trs-masthead .trs-logo__word { color: var(--white); font-size: 76px; }
.trs-masthead .trs-logo__the { color: var(--oxblood-light); font-size: 18px; }
.trs-masthead .dot { color: var(--oxblood-light) !important; }
.trs-masthead__tagline { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--grey-light); margin-top: 18px; }
.trs-masthead__rule { width: 260px; height: 3px; background: var(--oxblood-light); margin: 20px auto 0; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 767px) { .container { padding: 0 18px; } }

/* Homepage sections */
.trs-lead { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; padding: 64px 0; align-items: start; border-bottom: 3px solid var(--ink); }
.trs-lead__headline { font-size: 44px; }
.trs-lead .standfirst { margin-top: 22px; }
.trs-lead__byline { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.trs-lead__avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; overflow: hidden; }
.trs-lead__photo { background: transparent; aspect-ratio: 4 / 3; overflow: hidden; }
.trs-lead__photo img { width: 100%; height: 100%; object-fit: cover; }
.trs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0; border-bottom: 2px solid var(--ink); }
.trs-card__photo { display: block; background: transparent; aspect-ratio: 3 / 2; margin-bottom: 16px; overflow: hidden; }
.trs-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.trs-card__headline { font-size: 22px; line-height: 1.25; }
.trs-card__headline a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trs-card .meta { margin-top: 10px; }
.trs-two-col { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; padding: 48px 0; border-bottom: 2px solid var(--ink); align-items: start; }
.trs-mostread__title, .trs-sectiontitle { font-size: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.trs-mostread__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.trs-mostread__num { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; color: var(--oxblood); flex: 0 0 24px; }
.trs-mostread__body { min-width: 0; flex: 1 1 auto; }
.trs-mostread__views { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.trs-views { display: inline-flex; align-items: center; gap: 5px; }
.trs-views svg { opacity: .7; }
.trs-mostread__headline { font-size: 16.5px; line-height: 1.35; margin: 0; }
/* Sidebar lists & categories — titles fixed line-clamps (2 lines for popular/watch, 3 lines for categories) */
.trs-mostread__headline a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trs-watchitem__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trs-secblock__headline a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trs-secblock__item h4 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trs-sidestack__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trs-secblock__item h4 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; }
/* Single post headline — h1 base color */
h1.trs-article__headline, h1.trs-article__headline a { color: var(--ink); }
.trs-ad { background: var(--block); display: grid; place-items: center; color: var(--grey-light); font-family: var(--sans); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.trs-ad--rail { aspect-ratio: 5 / 3; }
.trs-datamodule { background: var(--paper); border: 2px solid var(--hair); padding: 40px; margin: 56px 0; }
.trs-datamodule__title { font-size: 25px; }
.trs-datamodule__source { margin-top: 8px; }
.trs-datamodule__chart .bar { fill: var(--ink); }
.trs-datamodule__chart .bar--first { fill: var(--chart-first, var(--oxblood)); }
.trs-datamodule__chart .barlabel { font-family: var(--sans); font-size: 13px; fill: var(--grey); }

/* Newsletter (the only oxblood background) */
.trs-newsletter { background: var(--oxblood); color: var(--white); padding: 64px 0; text-align: center; }
.trs-newsletter h2 { font-size: 34px; }
.trs-newsletter p { font-family: var(--sans); font-size: 16px; color: var(--white); opacity: .92; max-width: 640px; margin: 14px auto 0; }
.trs-newsletter form { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; margin-inline: auto; }
.trs-newsletter input { flex: 1; padding: 16px 18px; font-family: var(--sans); font-size: 16px; border: 0; background: var(--white); color: var(--ink); }
.trs-newsletter button { padding: 16px 28px; border: 0; cursor: pointer; background: var(--ink); color: var(--white); font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }

/* Article (spec template 2) */
@media (max-width: 767px) {
  .trs-article__grid { padding-bottom: 48px; }
}
.trs-article__head { max-width: 1240px; margin: 0 auto; padding: 36px 0 0; }
.trs-article__headline { font-size: 40px; line-height: 1.16; color: var(--ink); margin: 10px 0 14px; }
.trs-article .standfirst { margin-top: 16px; font-size: 22px; color: var(--grey); line-height: 1.45; }
.trs-article__bylinerow { max-width: 1240px; margin: 20px auto 0; padding: 0 0 18px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.trs-article__share { display: flex; gap: 10px; flex-wrap: wrap; }
.trs-sharebtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; background: var(--white); color: var(--ink); transition: border-color .2s, color .2s; }
.trs-sharebtn:hover { border-color: var(--oxblood); color: var(--oxblood); }
.trs-hero { max-width: 1240px; margin: 24px auto 0; padding: 0; }
.trs-hero__img { background: var(--block); aspect-ratio: 16 / 9; overflow: hidden; }
.trs-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.trs-hero figcaption { margin-top: 8px; font-size: 13px; color: var(--grey-light); }
.trs-article__body { max-width: 820px; margin: 36px 0 0; font-size: 20px; line-height: 1.75; color: #1e1e1d; }
.trs-article__body p { margin: 0 0 24px; }
.trs-article__body h2 { font-size: 28px; margin: 36px 0 16px; color: var(--ink); }
.trs-article__body a { text-decoration: underline; text-decoration-color: var(--oxblood); text-underline-offset: 4px; }
.trs-pullquote { border-left: 6px solid var(--oxblood); padding: 4px 0 4px 24px; margin: 36px 0; font-size: 28px; font-weight: 700; line-height: 1.35; font-style: normal; color: var(--ink); }
.trs-article__body blockquote { border-left: 6px solid var(--oxblood); padding: 4px 0 4px 24px; margin: 36px 0; font-size: 28px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.trs-tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trs-tag { font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border: 2px solid var(--hair); padding: 8px 14px; color: var(--grey); }
.trs-tag:hover { border-color: var(--oxblood); color: var(--oxblood); }
.trs-authorbox { max-width: 920px; margin: 56px auto 0; padding: 40px; background: var(--paper); border: 2px solid var(--hair); display: flex; gap: 28px; }
.trs-authorbox__avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--block); overflow: hidden; flex: 0 0 auto; }
.trs-authorbox__avatar img { width: 100%; height: 100%; object-fit: cover; }
.trs-authorbox__name { font-size: 29px; }
.trs-authorbox p { margin: 12px 0 0; font-size: 20px; }
.trs-morefrom { max-width: var(--container); margin: 64px auto 0; padding: 0 var(--gutter) 64px; border-bottom: 3px solid var(--ink); }
@media (max-width: 767px) { .trs-morefrom { padding: 0 18px 48px; } }
.trs-homesection { margin-bottom: 56px; }
.trs-homesection + .trs-homesection { margin-top: 0; }
.trs-cards--tight + * { clear: both; }

/* Section/author/list/archive */
.trs-section__head { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 0; }
/* Archive double-pad fix (container already gives gutter) */
.trs-section__head { padding-left: 0; padding-right: 0; }
.trs-section__title { font-size: 52px; display: inline-block; border-left: 12px solid var(--oxblood); padding-left: 24px; }
.trs-section__desc { color: var(--grey); font-size: 24px; max-width: 720px; margin-top: 18px; }
.trs-section__lead { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; padding: 44px 0; border-bottom: 3px solid var(--ink); align-items: center; }
.trs-articlelist__item { display: grid; grid-template-columns: 1fr 280px; gap: 36px; padding: 32px 0; border-bottom: 2px solid var(--hair); align-items: center; }
.trs-articlelist__thumb { background: var(--block); aspect-ratio: 16 / 10; overflow: hidden; }
.trs-articlelist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.trs-pagination { display: flex; gap: 10px; justify-content: center; padding: 40px 0 64px; flex-wrap: wrap; }
.trs-pagination .page-numbers { font-family: var(--sans); font-size: 15px; min-width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--hair); padding: 0 12px; }
.trs-pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.trs-pagination a.page-numbers:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* Author hero */
.trs-author-hero { background: var(--paper); border-bottom: 2px solid var(--hair); padding: 64px 0; }
.trs-author-hero__grid { display: flex; gap: 36px; align-items: center; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.trs-author-hero__avatar { width: 140px; height: 140px; border-radius: 50%; background: var(--block); overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; }
.trs-author-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.trs-author-hero__name { font-size: 54px; }
.trs-author-hero__bio { color: var(--grey); max-width: 720px; margin-top: 14px; font-size: 22px; }
@media (max-width: 767px) { .trs-author-hero__grid { padding: 0 18px; flex-direction: column; text-align: center; } }

/* Static pages */
.trs-static { max-width: 800px; margin: 0 auto; padding: 48px 24px 72px; }
.trs-static h1 { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1.18; color: var(--ink); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.trs-static h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.3; color: var(--ink); margin: 36px 0 14px; }
.trs-static h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); margin: 28px 0 12px; }
.trs-static p, .trs-static li { font-size: 19px; line-height: 1.75; color: #222220; margin-bottom: 20px; }
.trs-static ul { list-style: disc; padding-left: 24px; margin-bottom: 24px; }
.trs-static ol { list-style: decimal; padding-left: 24px; margin-bottom: 24px; }
.trs-static a { text-decoration: underline; text-decoration-color: var(--oxblood); text-underline-offset: 4px; }
.trs-static a:hover { color: var(--oxblood); }

/* Forms + buttons */
.trs-field { margin-bottom: 20px; }
.trs-field label { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.trs-field input, .trs-field textarea, .trs-field select { width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 16px; border: 2px solid var(--hair); background: var(--white); color: var(--ink); }
.trs-field input:focus, .trs-field textarea:focus { border-color: var(--oxblood); outline: none; }
.trs-btn, .wp-block-button__link, button[type=submit] { display: inline-block; background: var(--oxblood); color: var(--white); border: 0; cursor: pointer; font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; padding: 16px 30px; transition: background 0.2s; }
.trs-btn:hover, .wp-block-button__link:hover { background: var(--ink); color: var(--white); }

/* 404 */
.trs-404 { text-align: center; padding: 110px 30px 130px; }
.trs-404 h1 { font-size: 60px; }
.trs-404 p { color: var(--grey); font-size: 24px; }

/* Footer (ink bg, accent = oxblood-light) */
.trs-footer { background: var(--ink); color: var(--white); padding: 72px 0 0; }
.trs-footer a:hover { color: var(--oxblood-light); }
.trs-footer__grid { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.trs-footer .trs-logo--compact .trs-logo__word { color: var(--white); }
.trs-footer .trs-logo__the { color: var(--oxblood-light); }
.trs-footer .dot { color: var(--oxblood-light) !important; }
.trs-footer__tagline { font-family: var(--sans); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-light); margin-top: 16px; }
.trs-footer h4 { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 18px; }
.trs-footer li { margin-bottom: 12px; font-family: var(--sans); font-size: 15px; }
.trs-footer__bottom { border-top: 2px solid rgba(226,224,220,.18); }
.trs-footer__bottom-inner { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: var(--grey-light); }

/* Responsive */
@media (max-width: 1023px) {
  .trs-lead { grid-template-columns: 1fr; gap: 32px; }
  .trs-lead__headline { font-size: 46px; }
  .trs-cards { grid-template-columns: 1fr; }
  .trs-two-col { grid-template-columns: 1fr; }
  .trs-section__lead { grid-template-columns: 1fr; }
  .trs-articlelist__item { grid-template-columns: 1fr; }
  .trs-authorbox { flex-direction: column; }
}
@media (max-width: 767px) {
  .trs-lead__headline { font-size: 38px; }
  .trs-article__headline { font-size: 40px; }
  .trs-card__headline { font-size: 24px; }
  .standfirst { font-size: 20px; }
  .kicker { font-size: 16px; }
  .trs-article__body { font-size: 24px; }
  .trs-article__body blockquote, .trs-pullquote { font-size: 30px; }
  .trs-section__title { font-size: 34px; }
  .trs-author-hero__name { font-size: 38px; }
  .trs-masthead .trs-logo__word { font-size: 38px; }
  .trs-newsletter h2 { font-size: 26px; }
  .trs-404 h1 { font-size: 42px; }
  .trs-static h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .trs-ticker__inner { animation: none; }
}

/* Elementor compatibility: let Elementor pages run full width with theme header/footer */
body.elementor-page .container { max-width: none; padding: 0; }
.elementor-kit h1, .elementor-kit h2, .elementor-kit h3 { font-family: var(--serif); }
body.elementor-page .trs-content { padding: 0; }

/* ==========================================================================
   ELEMENTOR NATIVE TEMPLATES — helpers (granular shortcodes ke saath)
   ========================================================================== */
/* 3px ink rule (sections ke beech) — [trs_sep] */
.trs-sep { border: 0; border-top: 3px solid var(--ink); margin: 0; }
/* [trs_el_row] — mobile par columns stack ho jaate hain */
@media (max-width: 1023px) { .trs-el-row { grid-template-columns: 1fr !important; } }
/* Elementor me standalone heading widgets par theme title style — CSS Classes
   field me ye class type karo: */
.el-homesection-title { font-size: 26px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin: 0 0 26px; }
@media (max-width: 767px) { .el-homesection-title { font-size: 22px; } }
/* Elementor card/lead blocks ke andar native Heading widget link colors */
.trs-leadpost a:hover, .trs-card a:hover, .trs-sidestack__item a:hover { color: var(--oxblood); }
/* Elementor widget default gap control (kit defaults ki jagah theme jaisa tight) */
.el-gap-none .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* -----------------------------------------------------------------------
 * Elementor NATIVE templates v5 — composite widgets (ORIGINAL template
 * markup) use karte hain, isliye base theme CSS hi sab layout karti hai.
 * Sections sirf theme ka container replicate karti hain: max-width
 * var(--container) + var(--gutter) — responsive theme breakpoints se hi.
 * ----------------------------------------------------------------------- */
main.container > .elementor-section.elementor-section-boxed:not(.trs-el-static):not(.trs-el-404) > .elementor-container { max-width: var(--container); padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
/* Article head spacing (original .trs-article__head padding-top) */
.elementor-element.el-art-head > .elementor-container { padding-top: 44px; }
/* Archive head (original .trs-section__head padding-top) */
.elementor-element.el-sec-head-top > .elementor-container { padding-top: 56px; }
/* Static pages — 680px column (original .trs-static jaisa) */
.elementor-element.trs-el-static > .elementor-container { max-width: 680px; margin: 0 auto; padding: 64px 30px 80px; }
.elementor-element.trs-el-static h1 { font-size: 46px; margin: 0 0 22px; }
@media (max-width: 767px) { .elementor-element.trs-el-static h1 { font-size: 28px; } }
/* 404 — center, original .trs-404 look (native widgets) */
.elementor-element.trs-el-404 { text-align: center; }
.elementor-element.trs-el-404 > .elementor-container { max-width: var(--container); margin: 0 auto; padding: 110px var(--gutter) 130px; }
.elementor-element.trs-el-404 h1.elementor-heading-title { font-size: 60px; }
.elementor-element.trs-el-404 .elementor-widget-text-editor { color: var(--grey); font-size: 24px; }
.elementor-element.trs-el-404 .elementor-button { background: var(--oxblood); color: var(--white); border-radius: 0; font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; padding: 16px 30px; }
.elementor-element.trs-el-404 .elementor-button:hover { background: var(--ink); color: var(--white); }
@media (max-width: 1023px) { .elementor-element.trs-el-404 h1.elementor-heading-title { font-size: 42px; } }
.el-gap-sm .elementor-widget:not(:last-child) { margin-bottom: 12px; }
.el-gap-md .elementor-widget:not(:last-child) { margin-bottom: 24px; }

/* ==========================================================================
   V2 — TRENDING STRIP (Marquee / Slider)
   ========================================================================== */
.trs-trending {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.trs-trending__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 44px;
  overflow: hidden;
}
.trs-trending__label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood-light);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  z-index: 2;
  padding-right: 12px;
}
.trs-trending__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oxblood-light);
  animation: trs-pulse 2s infinite;
}
@keyframes trs-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(0.85); } }

.trs-trending__track {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.trs-trending__items {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
  white-space: nowrap;
  animation: trs-trending-slide 35s linear infinite;
  padding-right: 32px;
}
.trs-trending:hover .trs-trending__items {
  animation-play-state: paused;
}
@keyframes trs-trending-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.trs-trending__item {
  font-family: var(--sans);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: color 0.2s ease;
}
.trs-trending__item::after {
  content: "•";
  color: var(--oxblood-light);
  opacity: 0.6;
}
.trs-trending__item:last-child::after {
  content: "•";
}
.trs-trending__item:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  .trs-trending__inner { padding: 0 var(--gutter); gap: 12px; height: 40px; }
  .trs-trending__item { font-size: 12px; gap: 10px; }
}

/* ==========================================================================
   V2 — HERO GRID (big lead + side stack)
   ========================================================================== */
.trs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  padding: 44px 0 48px;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}
.trs-hero-grid__lead {
  min-width: 0;
}
.trs-hero-grid__photo {
  display: block;
  aspect-ratio: 16 / 9.5;
  background: transparent;
  overflow: hidden;
  margin-bottom: 20px;
}
.trs-hero-grid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.trs-hero-grid__photo:hover img {
  transform: scale(1.02);
}
.trs-hero-grid__lead .trs-lead__headline {
  font-size: 40px;
  line-height: 1.15;
  color: var(--ink);
}
.trs-hero-grid__lead .trs-lead__headline a {
  color: var(--ink);
}
.trs-hero-grid__lead .trs-lead__headline a:hover {
  color: var(--oxblood);
}
.trs-hero-grid__stack {
  min-width: 0;
  border-left: 2px solid var(--hair);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
}
.trs-sidestack__item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: center;
}
.trs-sidestack__item:first-child { padding-top: 0; }
.trs-sidestack__item:last-child { border-bottom: 0; padding-bottom: 0; }
.trs-sidestack__thumb {
  aspect-ratio: 16 / 10;
  background: transparent;
  overflow: hidden;
  display: block;
}
.trs-sidestack__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trs-sidestack__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 4px;
}
.trs-sidestack__title a {
  color: var(--ink);
}
.trs-sidestack__title a:hover {
  color: var(--oxblood);
}
.trs-sidestack__item .meta { margin-top: 4px; }

/* ==========================================================================
   V2 — HOME GRID + SECTION BLOCKS + SIDEBAR
   ========================================================================== */
.trs-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  padding: 44px 0 8px;
  align-items: start;
}
.trs-home-main {
  min-width: 0;
}
.trs-homesection {
  margin-bottom: 48px;
}
.trs-homesection__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.trs-homesection__title a {
  color: var(--ink);
}
.trs-homesection__title a:hover {
  color: var(--oxblood);
}
.trs-cards--tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  border: 0;
}
.trs-card__headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.trs-card__headline a {
  color: var(--ink);
}
.trs-card__headline a:hover {
  color: var(--oxblood);
}
.trs-secblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.trs-secblock__first {
  min-width: 0;
}
.trs-secblock__photo {
  display: block;
  aspect-ratio: 16/10;
  background: transparent;
  overflow: hidden;
  margin-bottom: 14px;
}
.trs-secblock__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trs-secblock__headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.trs-secblock__headline a {
  color: var(--ink);
}
.trs-secblock__headline a:hover {
  color: var(--oxblood);
}
.trs-secblock__list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--hair);
  padding-left: 28px;
}
.trs-secblock__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.trs-secblock__item:first-child { padding-top: 0; }
.trs-secblock__item:last-child { border-bottom: 0; padding-bottom: 0; }
.trs-secblock__item h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink);
}
.trs-secblock__item h4 a {
  color: var(--ink);
}
.trs-secblock__item h4 a:hover {
  color: var(--oxblood);
}
.trs-secblock__item .meta { margin-top: 4px; }

/* Sidebar widgets */
.trs-sidebar {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.trs-widget {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 24px;
  box-sizing: border-box;
}
.trs-widget__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--oxblood);
  margin-bottom: 16px;
}
.trs-mostread__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.trs-mostread__item:first-child { padding-top: 0; }
.trs-mostread__item:last-child { border-bottom: 0; padding-bottom: 0; }
.trs-mostread__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--oxblood);
  flex: 0 0 24px;
}
.trs-mostread__body {
  min-width: 0;
  flex: 1 1 auto;
}
.trs-mostread__headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.trs-mostread__headline a {
  color: var(--ink);
}
.trs-mostread__headline a:hover {
  color: var(--oxblood);
}
.trs-watchitem {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.trs-watchitem:first-child { padding-top: 0; }
.trs-watchitem:last-child { border-bottom: 0; padding-bottom: 0; }
.trs-watchitem__thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--block);
  overflow: hidden;
  display: block;
}
.trs-watchitem__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trs-watchitem__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--oxblood);
  color: #fff;
}
.trs-watchitem__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  display: block;
}
.trs-watchitem:hover .trs-watchitem__title {
  color: var(--oxblood);
}
.trs-ad--box {
  aspect-ratio: 6/5;
  margin-bottom: 0;
  border: 1px solid var(--hair);
}
.trs-widget--news {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.trs-widget--news .trs-widget__title {
  color: var(--white);
  border-color: var(--oxblood-light);
}
.trs-widget__text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  margin: 0 0 14px;
}
.trs-widget--news form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trs-widget--news input {
  padding: 12px 14px;
  border: 0;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.trs-widget--news button {
  background: var(--oxblood-light);
  color: var(--white);
  border: 0;
  padding: 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.trs-widget--news button:hover {
  background: var(--white);
  color: var(--ink);
}
.trs-widget--custom { background: var(--white); }

/* ==========================================================================
   V2 — ARTICLE: layout grid, breadcrumb, See Also, video, related
   ========================================================================== */
.trs-crumbs { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-light); padding: 26px 0 0; }
.trs-crumbs a:hover { color: var(--oxblood); }
.trs-crumbs span { margin: 0 8px; color: var(--hair); }
.trs-crumbs em { font-style: normal; color: var(--grey); text-transform: none; letter-spacing: 0; }

.trs-article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 0 0 64px; align-items: start; }
.trs-article__main { min-width: 0; max-width: none; }

.trs-video { margin: 40px auto 0; }
.trs-video iframe, .trs-video video { width: 100%; aspect-ratio: 16/9; height: auto; display: block; background: var(--ink); }

/* See Also inline box (injected between paragraphs) */
.trs-seealso { background: var(--paper); border-left: 6px solid var(--oxblood); padding: 20px 24px; margin: 34px 0; }
.trs-seealso__kicker { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--oxblood); margin: 0 0 6px; }
.trs-seealso__title { font-size: 20px; line-height: 1.3; margin: 0; }
.trs-seealso__title a { display: inline; }
.trs-seealso__title a:hover { color: var(--oxblood); }
.trs-seealso__arrow { display: inline-block; transition: transform .2s ease; }
.trs-seealso__title a:hover .trs-seealso__arrow { transform: translateX(5px); }

/* Related posts */
.trs-related { margin-top: 54px; padding-top: 8px; border-top: 3px solid var(--ink); }
.trs-related__title { font-size: 24px; padding: 14px 0 12px; border-bottom: 3px solid var(--ink); margin-bottom: 24px; }
.trs-cards--related { grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0; border: 0; }

/* Video card play badge */
.trs-card--video .trs-card__photo { position: relative; }
.trs-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--oxblood);
  pointer-events: none;
}

/* ==========================================================================
   V2 RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .trs-hero-grid, .trs-home-grid { grid-template-columns: 1fr; gap: 44px; }
  .trs-hero-grid__stack { border-left: 0; padding-left: 0; border-top: 2px solid var(--hair); padding-top: 8px; }
  .trs-article__grid { grid-template-columns: 1fr; gap: 44px; }
  .trs-article__main { margin: 0 auto; }
  .trs-sidebar { margin: 0 auto; width: 100%; }
}
/* Mobile typography — device ke hisaab se sab text */
@media (max-width: 1023px) {
  .trs-lead__headline, .trs-hero-grid__lead .trs-lead__headline { font-size: 34px; }
  .trs-article__headline { font-size: 34px; }
  .trs-section__title { font-size: 38px; }
  .trs-section__lead h2 { font-size: 34px !important; }
  .trs-lead .standfirst { font-size: 21px; }
  .trs-drawer .nav-link { font-size: 16px; }
  .trs-mostread__headline { font-size: 16px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .trs-header__inner { gap: 12px; }
  .trs-logo { gap: 10px; }
  .trs-logo--default .trs-logo__word { font-size: 28px; }
  .trs-logo__the { font-size: 12px; }
  /* Date bar chhota */
  .trs-datebar__inner { padding: 6px 30px; }
  .trs-datebar .meta { font-size: 10px; letter-spacing: 0.12em; }
  .trs-datebar__right .meta { display: none; }
  /* Drawer menu text */
  .trs-drawer { padding: 10px 30px 20px; }
  .trs-drawer .nav-link { font-size: 15px; padding: 11px 0; }
  /* Headings */
  .trs-static h1 { font-size: 28px; }
  .trs-lead__headline, .trs-hero-grid__lead .trs-lead__headline { font-size: 24px; }
  .trs-article__headline { font-size: 23px; }
  .trs-section__title { font-size: 26px; border-left-width: 8px; padding-left: 14px; }
  .trs-section__lead h2 { font-size: 23px !important; }
  .standfirst { font-size: 16.5px; }
  .trs-section__desc { font-size: 16.5px; }
  .trs-content { font-size: 16.5px; }
  .trs-lead__byline .byline { font-size: 12px; letter-spacing: 0.12em; }
  /* Newsletter form fully responsive */
  .trs-newsletter { padding: 42px 20px; }
  .trs-newsletter h2 { font-size: 22px; }
  .trs-newsletter p { font-size: 14.5px; }
  .trs-newsletter form { flex-direction: column; padding: 0 6px; }
  .trs-newsletter input { min-width: 0; width: 100%; box-sizing: border-box; }
  .trs-newsletter button { width: 100%; }
  .trs-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .trs-hero-grid { padding: 30px 0 36px; }
  .trs-hero-grid__lead .trs-lead__headline { font-size: 24px; }
  .trs-lead__headline { font-size: 24px; }
  .trs-article__headline { font-size: 23px; }
  .trs-section__lead h2 { font-size: 23px !important; }
  .trs-sidestack__item { grid-template-columns: 104px 1fr; gap: 14px; }
  .trs-sidestack__title { font-size: 17px; }
  .trs-secblock { grid-template-columns: 1fr; gap: 26px; }
  .trs-secblock__list { border-left: 0; padding-left: 0; border-top: 2px solid var(--hair); padding-top: 6px; }
  .trs-homesection__title { font-size: 22px; }
  .trs-card__headline { font-size: 20px; }
  .trs-cards--tight, .trs-cards--related { grid-template-columns: 1fr; }
  .trs-seealso { padding: 16px 18px; margin: 28px 0; }
  .trs-seealso__title { font-size: 18px; }
  .trs-related__title { font-size: 20px; }
  .trs-widget { padding: 20px 18px 22px; }
}
@media (max-width: 479px) {
  .trs-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .trs-logo--img img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .trs-trending__label::before { animation: none; }
  .trs-hero-grid__photo img { transition: none; }
}

/* ---- Mobile padding refinement: single + archives ---- */
@media (max-width: 767px) {
  .trs-masthead { padding: 44px 0 34px; }
  .trs-hero-grid { padding: 22px 0 26px; }
  .trs-article { padding-top: 22px; padding-bottom: 28px; }
  .trs-article__head { padding-bottom: 18px; }
  .trs-article__share { margin: 16px 0 18px; }
  .trs-seealso { padding: 16px; }
  .trs-related { padding: 8px 0 30px; }
  .trs-morefrom { padding: 0 18px 36px; }
  .trs-author-box { padding: 16px; }
  .trs-hero { margin-bottom: 16px; }
  .trs-crumbs { padding: 10px 0 6px; }
}

/* Hide TranslatePress floating switcher on mobile (header switcher already present) */
@media (max-width: 767px) {
  .trp-floating-switcher { display: none !important; }
}

/* Tablet: reduce gutter so content breathes between mobile and desktop */
@media (min-width: 768px) and (max-width: 1024px) {
  :root { --gutter: 40px; }
}
