/*
Theme Name: Whiril Flagship
Theme URI: https://whiril.com
Author: Whiril Media Inc.
Author URI: https://whiril.com
Description: High-authority institutional digital media and business news theme for Whiril Media Inc. Features the signature v6 asymmetric 3-column hero grid (Latest Wire, 16:9 Lead Cover Story, Numbered Executive Trending), modular multi-layout category hubs, anti-blur 16:9 image locks, and CLS-safe ad slots.
Version: 7.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: whiril-flagship
*/

:root {
  --wf-bg: #ffffff;
  --wf-surface: #f8fafc;
  --wf-surface-alt: #f1f5f9;
  --wf-dark: #0f172a;
  --wf-dark-card: #1e293b;
  --wf-ink: #0f172a;
  --wf-ink-secondary: #334155;
  --wf-muted: #64748b;
  --wf-border: #e2e8f0;
  --wf-border-strong: #cbd5e1;
  --wf-accent: #1d4ed8;
  --wf-accent-hover: #1e40af;
  --wf-crimson: #b91c1c;
  --wf-gold: #b45309;
  --wf-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --wf-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wf-container: 1320px;
  --wf-radius: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wf-bg);
  color: var(--wf-ink);
  font-family: var(--wf-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.wf-container {
  width: 100%;
  max-width: var(--wf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. BULLETPROOF 16:9 ANTI-BLUR THUMBNAIL CONTAINER
   ========================================================================== */
.wf-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172a;
  border-radius: var(--wf-radius);
}

.wf-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

a:hover .wf-thumb img,
.wf-card:hover .wf-thumb img,
.wf-hero-lead:hover .wf-thumb img {
  transform: scale(1.03);
}

.wf-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--wf-font-serif);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   2. TOP UTILITY BAR, MASTHEAD & CLS-SAFE AD SLOTS
   ========================================================================== */
.wf-topbar {
  background-color: var(--wf-dark);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 12px;
}

.wf-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wf-edition-pill {
  background: var(--wf-crimson);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.wf-topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wf-topbar-links a:hover {
  color: #ffffff;
}

/* Masthead */
.wf-masthead {
  background: #ffffff;
  border-bottom: 1px solid var(--wf-border);
  padding: 16px 0;
}

.wf-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wf-brand .custom-logo-link img,
.wf-brand img.custom-logo {
  max-height: 46px;
  width: auto;
  display: block;
}

.wf-brand-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-monogram {
  width: 42px;
  height: 42px;
  background: var(--wf-dark);
  color: #ffffff;
  font-family: var(--wf-font-serif);
  font-weight: 900;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: -0.03em;
}

.wf-wordmark-group {
  display: flex;
  flex-direction: column;
}

.wf-wordmark {
  font-family: var(--wf-font-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--wf-dark);
}

.wf-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wf-muted);
  margin-top: 3px;
}

.wf-masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wf-btn-subscribe {
  background: var(--wf-dark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 4px;
}

.wf-btn-subscribe:hover {
  background: var(--wf-accent);
  color: #ffffff;
}

.wf-search-toggle,
.wf-mobile-toggle {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  color: var(--wf-ink);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wf-mobile-toggle {
  display: none;
}

/* CLS-Safe Ad Slot Containers */
.wf-ad-band {
  background: var(--wf-surface);
  border-bottom: 1px solid var(--wf-border);
  padding: 12px 0;
}

.wf-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.wf-ad-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 5px;
  display: block;
}

.wf-ad-leaderboard {
  min-height: 90px;
  max-width: 970px;
}

.wf-ad-billboard {
  margin: 28px auto;
  padding: 14px;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  min-height: 106px;
}

.wf-ad-sidebar {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 12px;
  min-height: 270px;
  margin-bottom: 24px;
}

/* Primary Navigation */
.wf-nav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--wf-dark);
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-bar .wf-nav-bar {
  top: 32px;
}

.wf-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wf-nav-list::-webkit-scrollbar {
  display: none;
}

.wf-nav-list > li > a {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wf-ink);
  white-space: nowrap;
}

.wf-nav-list > li > a:hover,
.wf-nav-list > li.current-menu-item > a {
  color: var(--wf-accent);
}

/* Search Drawer */
.wf-search-bar {
  display: none;
  background: var(--wf-surface);
  border-bottom: 1px solid var(--wf-border);
  padding: 14px 0;
}

.wf-search-bar.is-open {
  display: block;
}

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

.wf-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--wf-border-strong);
  border-radius: 4px;
  font-family: var(--wf-font-sans);
  font-size: 14px;
}

.wf-search-form button {
  background: var(--wf-dark);
  color: #ffffff;
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ==========================================================================
   3. V6 SIGNATURE ASYMMETRIC 3-COLUMN HERO GRID
   ========================================================================== */
.wf-hero-section {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--wf-border);
}

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

/* Shared Section & Rail Headers */
.wf-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--wf-dark);
  border-bottom: 1px solid var(--wf-border);
  padding: 8px 0;
  margin-bottom: 16px;
}

.wf-rail-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wf-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.wf-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wf-crimson);
  display: inline-block;
}

.wf-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wf-accent);
  margin-bottom: 6px;
}

.wf-kicker-crimson {
  color: var(--wf-crimson);
}

.wf-meta {
  font-size: 12px;
  color: var(--wf-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Left Rail: Latest Wire */
.wf-wire-rail {
  border-right: 1px solid var(--wf-border);
  padding-right: 22px;
}

.wf-wire-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--wf-border);
}

.wf-wire-item:first-of-type {
  padding-top: 0;
}

.wf-wire-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.wf-wire-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--wf-crimson);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.wf-wire-title {
  font-family: var(--wf-font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--wf-ink);
  margin: 0;
}

.wf-wire-title a:hover {
  color: var(--wf-accent);
}

/* Center Stage: Forbes-Style Lead Cover Story */
.wf-hero-center {
  min-width: 0;
}

.wf-hero-lead {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--wf-border);
  margin-bottom: 22px;
}

.wf-hero-lead .wf-thumb {
  margin-bottom: 16px;
}

.wf-hero-lead-title {
  font-family: var(--wf-font-serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--wf-dark);
}

.wf-hero-lead-title a:hover {
  color: var(--wf-accent);
}

.wf-hero-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--wf-ink-secondary);
  margin: 0 0 12px;
}

/* Center Sub-Features (2-column below cover story) */
.wf-hero-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wf-subcard .wf-thumb {
  margin-bottom: 10px;
}

.wf-subcard-title {
  font-family: var(--wf-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 6px;
}

.wf-subcard-title a:hover {
  color: var(--wf-accent);
}

/* Right Rail: Numbered Executive Trending */
.wf-trending-rail {
  border-left: 1px solid var(--wf-border);
  padding-left: 22px;
}

.wf-trending-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.wf-trending-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wf-border);
  align-items: start;
}

.wf-trending-item:first-child {
  padding-top: 0;
}

.wf-trending-item:last-child {
  border-bottom: none;
}

.wf-trending-num {
  font-family: var(--wf-font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.wf-trending-item:hover .wf-trending-num {
  color: var(--wf-accent);
}

.wf-trending-title {
  font-family: var(--wf-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 4px;
}

.wf-trending-title a:hover {
  color: var(--wf-accent);
}

/* ==========================================================================
   4. MODULAR CATEGORY HUBS (V6 MULTI-LAYOUT ARCHITECTURE)
   ========================================================================== */
.wf-hub-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--wf-border);
}

.wf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 3px solid var(--wf-dark);
  padding-top: 10px;
  margin-bottom: 22px;
  gap: 16px;
}

.wf-section-title {
  font-family: var(--wf-font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--wf-dark);
}

.wf-section-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wf-accent);
  white-space: nowrap;
}

.wf-section-more:hover {
  color: var(--wf-dark);
}

/* Hub Layout A: Asymmetric Split (Business & Economy) */
.wf-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.wf-split-lead .wf-thumb {
  margin-bottom: 14px;
}

.wf-split-lead-title {
  font-family: var(--wf-font-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 10px;
}

.wf-split-lead-title a:hover {
  color: var(--wf-accent);
}

.wf-split-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-compact-row {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wf-border);
  align-items: start;
}

.wf-compact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wf-compact-title {
  font-family: var(--wf-font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 5px;
}

.wf-compact-title a:hover {
  color: var(--wf-accent);
}

/* Hub Layout B: 3-Column Editorial Grid (Global Policy & Markets) */
.wf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wf-card .wf-thumb {
  margin-bottom: 12px;
}

.wf-card-title {
  font-family: var(--wf-font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--wf-dark);
}

.wf-card-title a:hover {
  color: var(--wf-accent);
}

.wf-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wf-ink-secondary);
  margin: 0 0 10px;
}

/* Hub Layout C: Dark Executive Dispatch Band (Technology & AI) */
.wf-dark-band {
  background: var(--wf-dark);
  color: #f8fafc;
  padding: 40px 0;
}

.wf-dark-band .wf-section-head {
  border-top-color: #38bdf8;
}

.wf-dark-band .wf-section-title {
  color: #ffffff;
}

.wf-dark-band .wf-section-more {
  color: #38bdf8;
}

.wf-dark-band .wf-kicker {
  color: #38bdf8;
}

.wf-dark-band .wf-meta {
  color: #94a3b8;
}

.wf-dispatch-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.wf-dispatch-lead-title {
  font-family: var(--wf-font-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin: 12px 0 10px;
}

.wf-dispatch-lead-title a:hover {
  color: #38bdf8;
}

.wf-dispatch-lead-excerpt {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0 0 12px;
}

.wf-dispatch-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-dispatch-card {
  background: var(--wf-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--wf-radius);
  padding: 16px 18px;
}

.wf-dispatch-card-title {
  font-family: var(--wf-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  color: #ffffff;
  margin: 0 0 6px;
}

.wf-dispatch-card-title a:hover {
  color: #38bdf8;
}

/* Hub Layout D: Latest Stream + Sticky Sidebar */
.wf-stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.wf-stream-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--wf-border);
  align-items: start;
}

.wf-stream-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wf-stream-title {
  font-family: var(--wf-font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 8px;
}

.wf-stream-title a:hover {
  color: var(--wf-accent);
}

.wf-sticky-rail {
  position: sticky;
  top: 64px;
}

.wf-box-card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-top: 3px solid var(--wf-dark);
  border-radius: var(--wf-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.wf-box-title {
  font-family: var(--wf-font-serif);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
}

.wf-box-desc {
  font-size: 13.5px;
  color: var(--wf-ink-secondary);
  margin: 0 0 14px;
}

.wf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf-newsletter-form input[type="email"] {
  padding: 10px 12px;
  border: 1px solid var(--wf-border-strong);
  border-radius: 4px;
  font-size: 13.5px;
}

.wf-newsletter-form button {
  background: var(--wf-dark);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.wf-newsletter-form button:hover {
  background: var(--wf-accent);
}

/* ==========================================================================
   5. SINGLE POST, ARCHIVE & PAGE TEMPLATES
   ========================================================================== */
.wf-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 32px 0 48px;
  align-items: start;
}

.wf-article-header {
  margin-bottom: 22px;
}

.wf-article-title {
  font-family: var(--wf-font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 6px 0 14px;
}

.wf-article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--wf-border);
  border-bottom: 1px solid var(--wf-border);
  font-size: 13px;
  color: var(--wf-muted);
}

.wf-article-featured {
  margin: 22px 0 26px;
}

.wf-article-caption {
  font-size: 12px;
  color: var(--wf-muted);
  margin-top: 8px;
}

.wf-entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: #1e293b;
}

.wf-entry-content h2,
.wf-entry-content h3 {
  font-family: var(--wf-font-serif);
  color: var(--wf-dark);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.wf-entry-content p {
  margin: 0 0 1.25em;
}

.wf-entry-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--wf-accent);
  background: var(--wf-surface);
  font-family: var(--wf-font-serif);
  font-size: 19px;
}

.wf-pagination {
  margin-top: 28px;
  display: flex;
  gap: 8px;
}

.wf-pagination .page-numbers {
  padding: 8px 13px;
  border: 1px solid var(--wf-border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.wf-pagination .page-numbers.current {
  background: var(--wf-dark);
  color: #ffffff;
  border-color: var(--wf-dark);
}

/* ==========================================================================
   6. INSTITUTIONAL FOOTER
   ========================================================================== */
.wf-footer {
  background: var(--wf-dark);
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 24px;
}

.wf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wf-footer-brand {
  font-family: var(--wf-font-serif);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.wf-footer-about {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 14px;
}

.wf-footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
}

.wf-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.wf-footer-links a:hover {
  color: #ffffff;
}

.wf-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1140px) {
  .wf-hero-grid {
    grid-template-columns: 1fr 300px;
  }
  .wf-wire-rail {
    grid-column: 1 / -1;
    order: 3;
    border-right: none;
    border-top: 1px solid var(--wf-border);
    padding-right: 0;
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .wf-wire-rail .wf-rail-header {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .wf-wire-item {
    border-bottom: none;
    padding: 0;
  }
}

@media (max-width: 920px) {
  .wf-hero-grid,
  .wf-split-grid,
  .wf-dispatch-grid,
  .wf-stream-layout,
  .wf-article-layout {
    grid-template-columns: 1fr;
  }
  .wf-trending-rail {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--wf-border);
    padding-top: 20px;
  }
  .wf-grid-3,
  .wf-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wf-mobile-toggle {
    display: inline-flex;
  }
  .wf-nav-bar {
    display: none;
  }
  .wf-nav-bar.is-open {
    display: block;
  }
  .wf-nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  .wf-nav-list > li > a {
    padding: 10px 20px;
    border-bottom: 1px solid var(--wf-border);
  }
}

@media (max-width: 640px) {
  .wf-wire-rail,
  .wf-hero-subgrid,
  .wf-grid-3,
  .wf-footer-grid {
    grid-template-columns: 1fr;
  }
  .wf-stream-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wf-compact-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .wf-topbar-links,
  .wf-btn-subscribe {
    display: none;
  }
}
