/*
Theme Name: The Monitor Broadsheet
Theme URI: https://dailythemonitor.com
Author: The Monitor Editorial Engineering
Author URI: https://dailythemonitor.com
Description: Institutional-grade broadsheet WordPress theme modeled after SCMP, Financial Times, and Forbes. Configured with SCMP Slate crisp white & Oxford Navy styling by default, engraved cartographic globe masthead, deduplicated 3-column & 4-sector front-page grids, Zero-CLS ad slots (970x90 & 300x250), Executive Summary takeaways, audio briefing reader, and NewsArticle JSON-LD schema.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
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: the-monitor
Tags: news, magazine, two-columns, three-columns, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS — SCMP SLATE DEFAULT + CUSTOMIZER EDITIONS
   ========================================================================== */
:root,
[data-edition="scmp"] {
  --bg-paper: #FFFFFF;
  --bg-surface: #F5F7FA;
  --bg-elevated: #FFFFFF;
  --bg-ad: #F2F5F9;
  --ink-primary: #0F2537;
  --ink-secondary: #2C4154;
  --ink-muted: #5C6F82;
  --brand-crimson: #B81D24;
  --brand-crimson-hover: #96141A;
  --accent-primary: #0F2537;
  --accent-secondary: #B81D24;
  --rule-heavy: #0F2537;
  --rule-hairline: #D8E0E8;
  --rule-subtle: #EBF0F5;
  --special-bg: #0F2537;
  --special-surface: #17344D;
  --special-ink: #FFFFFF;
  --special-muted: #B0C2D4;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container-max: 1320px;
}

[data-edition="ft"] {
  --bg-paper: #FBF9F5;
  --bg-surface: #F4EFE6;
  --bg-elevated: #FFFFFF;
  --bg-ad: #F2EDE4;
  --ink-primary: #141413;
  --ink-secondary: #3D3B37;
  --ink-muted: #6B6760;
  --brand-crimson: #B81D24;
  --brand-crimson-hover: #96141A;
  --accent-primary: #B81D24;
  --accent-secondary: #0D5C63;
  --rule-heavy: #141413;
  --rule-hairline: #DCD5C9;
  --rule-subtle: #EAE4D9;
  --special-bg: #181A1D;
  --special-surface: #22252A;
  --special-ink: #F7F5F0;
  --special-muted: #A9ADB5;
}

[data-edition="night"] {
  --bg-paper: #0E1116;
  --bg-surface: #161B22;
  --bg-elevated: #1C222B;
  --bg-ad: #141920;
  --ink-primary: #F2EFE9;
  --ink-secondary: #C8C3B8;
  --ink-muted: #8E8A82;
  --brand-crimson: #D9383E;
  --brand-crimson-hover: #EF484E;
  --accent-primary: #E09F3E;
  --accent-secondary: #4EA8DE;
  --rule-heavy: #E6E1D6;
  --rule-hairline: #2A313C;
  --rule-subtle: #1F252E;
  --special-bg: #080A0D;
  --special-surface: #13171E;
  --special-ink: #F2EFE9;
  --special-muted: #8E8A82;
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-crimson);
}

.tm-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   3. ZERO-CLS ADVERTISING SLOTS (CORE WEB VITALS PROTECTED)
   ========================================================================== */
.tm-ad-slot {
  background: var(--bg-ad);
  border-top: 1px solid var(--rule-subtle);
  border-bottom: 1px solid var(--rule-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tm-ad-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.tm-ad-leaderboard-wrap {
  padding: 12px 16px;
  min-height: 124px;
}

.tm-ad-leaderboard-inner {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-ad-placeholder-box {
  width: 100%;
  height: 90px;
  border: 1px dashed var(--rule-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.tm-ad-mpu-wrap {
  padding: 14px;
  min-height: 292px;
  border: 1px solid var(--rule-hairline);
  margin-top: 24px;
}

.tm-ad-mpu-inner {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-ad-mpu-inner .tm-ad-placeholder-box {
  width: 300px;
  height: 250px;
}

/* ==========================================================================
   4. INSTITUTIONAL MASTHEAD & UPGRADED LOGO LOCKUP
   ========================================================================== */
.tm-masthead {
  background: var(--bg-paper);
  border-bottom: 2px solid var(--rule-heavy);
}

.tm-utility-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule-hairline);
  padding: 7px 0;
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.tm-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-date-stamp {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-crimson);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(184, 29, 36, 0.16);
}

.tm-utility-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-hairline);
  color: var(--ink-primary);
  padding: 5px 11px;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-icon-btn:hover {
  border-color: var(--ink-primary);
}

.tm-subscribe-btn {
  background: var(--brand-crimson);
  color: #FFFFFF !important;
  padding: 6px 15px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
}

.tm-subscribe-btn:hover {
  background: var(--brand-crimson-hover);
}

/* Brand Centerpiece & Flagship Newspaper Logo */
.tm-brand-row {
  padding: 24px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.tm-brand-left-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.tm-brand-right-note {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tm-brand-center .custom-logo-link img {
  max-height: 68px;
  width: auto;
  margin: 0 auto;
}

.tm-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.tm-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.tm-logo-globe {
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.tm-logo-link:hover .tm-logo-globe {
  transform: rotate(6deg);
}

.tm-logo-divider {
  width: 1px;
  height: 40px;
  background: var(--rule-hairline);
  display: inline-block;
}

.tm-footer-brand .tm-logo-divider {
  background: rgba(255, 255, 255, 0.22);
  height: 32px;
}

.tm-logo-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4.2vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--brand-crimson);
}

.tm-logo-tagline-wrap {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tm-logo-tagline-rule {
  width: 28px;
  height: 1px;
  background: var(--rule-hairline);
  display: inline-block;
}

.tm-footer-brand .tm-logo-tagline-rule {
  background: rgba(255, 255, 255, 0.2);
  width: 18px;
}

.tm-logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Primary Broadsheet Navigation */
.tm-nav-bar {
  border-top: 1px solid var(--rule-heavy);
  background: var(--bg-paper);
  position: sticky;
  top: 0;
  z-index: 90;
}

.tm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 0;
  cursor: pointer;
}

.tm-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.tm-primary-menu > li > a {
  display: block;
  padding: 11px 11px;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-primary);
  border-bottom: 2px solid transparent;
}

.tm-primary-menu > li > a:hover,
.tm-primary-menu > li.current-menu-item > a,
.tm-primary-menu > li.current-category-ancestor > a {
  color: var(--brand-crimson);
  border-bottom-color: var(--brand-crimson);
}

/* Search Drawer */
.tm-search-drawer {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--rule-hairline);
  padding: 16px 0;
}

.tm-search-drawer.is-open {
  display: block;
}

.tm-search-form {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  gap: 8px;
}

.tm-search-input {
  flex: 1;
  padding: 11px 14px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  background: var(--bg-elevated);
  color: var(--ink-primary);
  border: 1px solid var(--rule-heavy);
  border-radius: 2px;
}

.tm-search-submit {
  padding: 11px 22px;
  background: var(--ink-primary);
  color: var(--bg-paper);
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   5. EDITORIAL TYPOGRAPHY COMPONENTS (KICKERS, HEADLINES, BYLINES)
   ========================================================================== */
.tm-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule-hairline);
  padding: 8px 0;
  margin-bottom: 18px;
}

.tm-section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.tm-section-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.tm-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-crimson);
  margin-bottom: 6px;
}

.tm-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tm-meta-sep {
  opacity: 0.45;
}

/* ==========================================================================
   6. FRONT PAGE ASYMMETRIC 3-COLUMN BROADSHEET GRID (SCMP / FT / FORBES)
   ========================================================================== */
.tm-front-hero {
  padding: 28px 0 36px;
  border-bottom: 2px solid var(--rule-heavy);
}

.tm-broadsheet-grid {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

/* Left Column: The Dispatch Wire */
.tm-col-dispatch {
  border-right: 1px solid var(--rule-hairline);
  padding-right: 22px;
}

.tm-dispatch-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-hairline);
}

.tm-dispatch-item:first-of-type {
  padding-top: 0;
}

.tm-dispatch-item:last-of-type {
  border-bottom: none;
}

.tm-dispatch-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-crimson);
  margin-bottom: 4px;
  display: block;
}

.tm-dispatch-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.32;
}

.tm-dispatch-excerpt {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* Center Column: Lead & Secondary Stories */
.tm-lead-story {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-hairline);
}

.tm-lead-media {
  margin-bottom: 16px;
  background: var(--bg-surface);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tm-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tm-lead-story:hover .tm-lead-media img {
  transform: scale(1.015);
}

.tm-lead-headline {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.tm-lead-deck {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.tm-secondary-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-hairline);
}

.tm-secondary-card:first-child {
  border-right: 1px solid var(--rule-hairline);
  padding-right: 22px;
}

.tm-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 12px;
}

.tm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-secondary-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.tm-secondary-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.tm-tertiary-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 20px;
}

.tm-tertiary-card:not(:last-child) {
  border-right: 1px solid var(--rule-hairline);
  padding-right: 18px;
}

.tm-tertiary-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Right Column: Opinion & Analysis + Monogram Avatar + 300x250 MPU Ad */
.tm-col-opinion {
  border-left: 1px solid var(--rule-hairline);
  padding-left: 22px;
}

.tm-opinion-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-hairline);
  align-items: flex-start;
}

.tm-opinion-card:first-of-type {
  padding-top: 0;
}

.tm-opinion-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule-hairline);
}

.tm-author-monogram {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-hairline);
}

.tm-opinion-author {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-crimson);
  margin-bottom: 3px;
}

.tm-opinion-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
}

.tm-oped-callout {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border-left: 3px solid var(--brand-crimson);
}

.tm-oped-callout h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tm-oped-callout p {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.tm-oped-callout a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-crimson);
  text-transform: uppercase;
}

/* ==========================================================================
   7. SPECIAL REPORTS & INVESTIGATIONS (OXFORD NAVY BROADSHEET BAND)
   ========================================================================== */
.tm-special-band {
  background: var(--special-bg);
  color: var(--special-ink);
  padding: 40px 0;
  margin: 0;
}

.tm-special-band .tm-section-header {
  border-top-color: var(--special-ink);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.tm-special-band .tm-section-title {
  color: var(--special-ink);
}

.tm-special-band .tm-section-sub {
  color: var(--special-muted);
}

.tm-special-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tm-special-card {
  background: var(--special-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.tm-special-card .tm-card-media {
  margin-bottom: 0;
}

.tm-special-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tm-special-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--special-ink);
}

.tm-special-card a:hover .tm-special-title {
  color: #F3B65F;
}

.tm-special-band .tm-meta {
  color: var(--special-muted);
}

/* ==========================================================================
   8. 4-COLUMN SECTOR INTELLIGENCE DESKS
   ========================================================================== */
.tm-sectors-section {
  padding: 38px 0;
  border-bottom: 2px solid var(--rule-heavy);
}

.tm-sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tm-sector-col:not(:last-child) {
  border-right: 1px solid var(--rule-hairline);
  padding-right: 24px;
}

.tm-sector-lead-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.28;
}

.tm-sector-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-hairline);
}

.tm-sector-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-subtle);
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.35;
}

.tm-sector-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   9. CHRONOLOGICAL WIRE STREAM & ARCHIVE LISTING
   ========================================================================== */
.tm-stream-section {
  padding: 38px 0 56px;
}

.tm-stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.tm-stream-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-hairline);
  align-items: start;
}

.tm-stream-row:first-child {
  padding-top: 0;
}

.tm-stream-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
}

.tm-stream-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.tm-stream-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-surface);
}

.tm-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pagination */
.tm-pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tm-pagination .page-numbers {
  padding: 8px 13px;
  border: 1px solid var(--rule-hairline);
  background: var(--bg-elevated);
}

.tm-pagination .page-numbers.current {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
  font-weight: 700;
}

/* ==========================================================================
   10. SINGLE LONGFORM ARTICLE VIEW (SCMP / FT / FORBES READER EXPERIENCE)
   ========================================================================== */
.tm-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-crimson);
  z-index: 9999;
  transition: width 0.08s linear;
}

.tm-article-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.tm-article-header {
  max-width: 820px;
  margin: 0 auto 28px;
  border-bottom: 1px solid var(--rule-hairline);
  padding-bottom: 22px;
}

.tm-article-title {
  margin: 6px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tm-article-deck {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.tm-article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-subtle);
}

.tm-author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-author-chip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.tm-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.tm-article-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.tm-share-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-share-btn {
  padding: 6px 11px;
  border: 1px solid var(--rule-hairline);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 2px;
}

.tm-share-btn:hover {
  border-color: var(--ink-primary);
}

/* Audio Briefing Player */
.tm-audio-bar {
  max-width: 820px;
  margin: 0 auto 26px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--rule-hairline);
  border-left: 4px solid var(--brand-crimson);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tm-audio-play-btn {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border: none;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-audio-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-secondary);
}

/* Executive Summary Box */
.tm-takeaways-box {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-top: 2px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule-hairline);
}

.tm-takeaways-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-crimson);
}

.tm-takeaways-list {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-primary);
}

.tm-takeaways-list li {
  margin-bottom: 6px;
}

/* Featured Photojournalism */
.tm-article-figure {
  max-width: 920px;
  margin: 0 auto 32px;
}

.tm-article-figure img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.tm-article-caption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule-subtle);
  padding-bottom: 8px;
}

/* Longform Body Typography + Sticky Sidebar */
.tm-article-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 68ch) 300px;
  gap: 44px;
  justify-content: center;
  align-items: start;
}

.tm-article-aside {
  position: sticky;
  top: 64px;
}

.tm-entry-content {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.76;
  color: var(--ink-primary);
}

.tm-entry-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.82;
  padding-top: 4px;
  padding-right: 12px;
  font-weight: 900;
  color: var(--brand-crimson);
}

.tm-entry-content h2,
.tm-entry-content h3 {
  font-family: var(--font-display);
  margin: 2rem 0 0.8rem;
  line-height: 1.22;
}

.tm-entry-content blockquote {
  margin: 2rem 0;
  padding: 16px 24px;
  border-left: 3px solid var(--brand-crimson);
  background: var(--bg-surface);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.5;
}

.tm-article-tags {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-article-tags a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--rule-hairline);
  text-transform: uppercase;
}

.tm-related-band {
  max-width: 1120px;
  margin: 48px auto 0;
  padding-top: 24px;
}

.tm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   11. INSTITUTIONAL FOOTER (INVERTED WHITE LOGO)
   ========================================================================== */
.tm-footer {
  background: #121417;
  color: #E8E5DF;
  padding: 48px 0 28px;
  border-top: 4px solid var(--brand-crimson);
}

.tm-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-footer-brand .tm-logo-wordmark {
  color: #FFFFFF;
  font-size: 2.05rem;
}

.tm-footer-brand .tm-logo-tagline {
  color: #A0A5AE;
}

.tm-footer-desc {
  margin: 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #AEB3BC;
  max-width: 340px;
}

.tm-footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.tm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-footer-links li {
  margin-bottom: 9px;
  font-size: 0.86rem;
  color: #C4C8D0;
}

.tm-footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.tm-newsletter-box {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tm-newsletter-box input {
  flex: 1;
  padding: 9px 12px;
  background: #1E2228;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.84rem;
}

.tm-newsletter-box button {
  padding: 9px 14px;
  background: var(--brand-crimson);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  cursor: pointer;
}

.tm-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8E939D;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1160px) {
  .tm-broadsheet-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .tm-col-dispatch {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    border-top: 2px solid var(--rule-heavy);
    padding-top: 20px;
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .tm-col-dispatch .tm-section-header {
    grid-column: 1 / -1;
  }
  .tm-special-grid,
  .tm-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-sector-col:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
  .tm-article-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tm-article-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .tm-brand-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tm-brand-left-note,
  .tm-brand-right-note {
    display: none;
  }
  .tm-broadsheet-grid,
  .tm-stream-layout,
  .tm-footer-top {
    grid-template-columns: 1fr;
  }
  .tm-col-opinion {
    border-left: none;
    padding-left: 0;
  }
  .tm-mobile-toggle {
    display: block;
  }
  .tm-primary-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }
  .tm-primary-menu.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .tm-secondary-pair,
  .tm-tertiary-trio,
  .tm-special-grid,
  .tm-sectors-grid,
  .tm-related-grid,
  .tm-col-dispatch {
    grid-template-columns: 1fr;
  }
  .tm-secondary-card:first-child,
  .tm-tertiary-card:not(:last-child),
  .tm-sector-col:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }
  .tm-stream-row {
    grid-template-columns: 1fr;
  }
  .tm-stream-thumb {
    order: -1;
  }
}
