/*
Theme Name: WAF2
Theme URI: https://wearefootball.net
Author: WAF
Description: Official theme for We Are Football - all the football news, one place.
Version: 1.2.0
Text Domain: waf
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --red:        #EC321D;
  --black:      #111111;
  --white:      #FFFFFF;
  --off-white:  #F5F0E8;
  --light-bg:   #F7F7F7;
  --border:     #E8E8E8;
  --text-muted: #888888;
  --dark-bg:    #111418;
  --dark-border: #2a2a2a;
  --teal:       #036E82;
  --orange:     #E3662C;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Exception: custom logo must never be constrained by max-width:100% */
.site-logo img { max-width: none !important; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.t-eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.t-section-label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

/* =============================================
   TOP ACCENT STRIPE
   ============================================= */
.site-accent-stripe {
  height: 3px;
  background: var(--red);
}

/* =============================================
   HEADER
   ============================================= */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo container */
.site-logo {
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Target WordPress custom_logo output:
   the_custom_logo() wraps in <figure> > <a> > <img>
   We force height and let width scale naturally */
.site-logo figure,
.site-logo .wp-block-site-logo {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-logo figure a,
.site-logo .wp-block-site-logo a,
.site-logo a {
  display: block;
  line-height: 1;
}

/* THE CRITICAL RULE: lock the image to 46px tall, auto width */
.site-logo figure img,
.site-logo .wp-block-site-logo img,
.site-logo img,
.site-logo svg {
  height: 46px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* Primary Nav */
#primary-nav {
  flex: 1;
}
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
#primary-nav ul li a {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  padding: 8px 14px;
  display: block;
  position: relative;
  transition: color 0.15s;
}
#primary-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.15s;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item a { color: var(--red); }
#primary-nav ul li.current-menu-item a::after { transform: scaleX(1); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 28px 56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}

/* =============================================
   SIDEBAR – LATEST NEWS
   ============================================= */
.sidebar {
  min-width: 0;
}

.sidebar-heading {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 14px;
}

.latest-list {
  display: flex;
  flex-direction: column;
}

.latest-item {
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.latest-item:last-child {
  border-bottom: 1px solid var(--border);
}

.latest-item-top {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 5px;
}

.latest-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 5px;
}

.latest-headline {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--black);
  transition: color 0.15s;
}
.latest-item:hover .latest-headline { color: var(--red); }

.latest-meta {
  display: flex;
  justify-content: space-between;
  padding-left: 16px;
}

.latest-source {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
}

.latest-time {
  font-size: 11px;
  color: var(--text-muted);
}

.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--black);
  padding: 11px 16px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: background 0.15s, color 0.15s;
}
.view-all-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content { min-width: 0; }

/* =============================================
   HERO CARD
   ============================================= */
.hero-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 380px;
  margin-bottom: 18px;
  display: block;
}

.hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient: heavy black left, fades to transparent right */
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.70) 40%,
    rgba(0,0,0,0.20) 70%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-card-body {
  position: relative;
  z-index: 2;
  padding: 36px 36px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 520px;
}

.hero-eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-deck {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-source {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.hero-sep {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

.hero-time {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.70);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.15s, border-color 0.15s;
}
.hero-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Carousel dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CCCCCC;
  border: none;
  padding: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.hero-dot.is-active { background: var(--red); }

/* =============================================
   TRENDING + SOURCES ROW
   ============================================= */
.trending-sources-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* =============================================
   SECTION LABEL (shared)
   ============================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.section-label svg {
  flex-shrink: 0;
}

/* =============================================
   TRENDING GRID
   ============================================= */
.trending-wrap { flex: 1; min-width: 0; }

.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.story-card { display: block; cursor: pointer; }

.story-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  background: #DDDDDD;
  display: block;
  margin-bottom: 10px;
}

.story-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  background: #DDDDDD;
  margin-bottom: 10px;
}

.story-card-headline {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.story-card:hover .story-card-headline { color: var(--red); }

.story-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-source {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
}

.story-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   BROWSE BY SOURCE PANEL
   ============================================= */
.sources-panel {
  width: 210px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.source-item:hover { opacity: 0.7; }

.source-favicon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

/* Fallback letter badge */
.source-badge {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 10px;
  color: var(--white);
  background: var(--black);
}

.source-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
}

.view-all-sources {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
  transition: opacity 0.15s;
}
.view-all-sources:hover { opacity: 0.75; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark-bg);
}

.footer-stripe {
  height: 3px;
  background: var(--red);
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.4;
}

.footer-stats {
  display: flex;
  gap: 36px;
  flex: 1;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-stat-icon {
  color: var(--red);
  flex-shrink: 0;
}
.footer-stat-icon svg { width: 20px; height: 20px; }

.footer-stat-text {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.4;
  opacity: 0.85;
}

.footer-subscribe {}

.footer-subscribe-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-form {
  display: flex;
}

.footer-email-input {
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  border: none;
  background: rgba(255,255,255,0.10);
  color: var(--white);
  width: 200px;
  outline: none;
}
.footer-email-input::placeholder { color: rgba(255,255,255,0.35); }

.footer-sub-btn {
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.footer-sub-btn:hover { background: #c72415; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 16px 28px;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
  }
  .sidebar { display: none; }
  .trending-sources-row { flex-direction: column; }
  .sources-panel { width: 100%; }
}

@media (max-width: 640px) {
  .header-inner { gap: 16px; padding: 0 16px; }
  #primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-card { height: 280px; }
  .hero-headline { font-size: 26px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 24px; }
  .footer-stats { flex-direction: column; gap: 16px; }
  .footer-email-input { width: 150px; }
}

/* =============================================
   FOOTER LOGO (circle badge)
   ============================================= */
.footer-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.footer-logo svg,
.footer-logo-img {
  height: 48px !important;
  width: 48px !important;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* =============================================
   FOOTER BOTTOM STRIPE
   Replicates the 3-line stripe from the logo:
   1 thick black + 2 red lines
   ============================================= */
.footer-bottom-stripe {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.footer-bottom-stripe span {
  display: block;
  width: 100%;
}

.fbs-black {
  height: 5px;
  background: #1a1a1a;
}

.fbs-red {
  height: 3px;
  background: #EC321D;
}

/* =============================================
   SINGLE STORY PAGE
   Two-column: main content + sidebar
   Mirrors homepage .page-wrap grid
   ============================================= */

.single-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 28px 56px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── Main column ── */
.single-main {
  min-width: 0;
}

.single-breadcrumb {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.single-breadcrumb a { color: #888; text-decoration: none; }
.single-breadcrumb a:hover { color: #EC321D; }
.single-breadcrumb span:not(:last-child) { color: #ccc; }

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.single-source {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EC321D;
}
.single-sep { color: #ccc; }
.single-time { font-size: 12px; color: #888; }
.single-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}

.single-headline {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.08;
  color: #111;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.single-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
  display: block;
}

.single-excerpt {
  font-size: 18px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 32px;
  font-weight: 400;
}

.single-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EC321D;
  color: #fff;
  padding: 14px 26px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 48px;
}
.single-cta:hover { background: #c72415; color: #fff; }

/* ── Related stories ── */
.single-related { margin-top: 8px; }

.single-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  padding-bottom: 10px;
  border-bottom: 2px solid #EC321D;
  margin-bottom: 16px;
}

.single-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.related-item:hover .related-headline { color: #EC321D; }

.related-thumb {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.related-thumb--placeholder {
  background: #f0f0f0;
}

.related-body { flex: 1; min-width: 0; }

.related-headline {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #111;
  margin-bottom: 6px;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #888;
}

/* ── Sidebar column ── */
.single-sidebar {
  min-width: 0;
  position: sticky;
  top: 80px; /* clears fixed header */
}

.sidebar-widget {
  margin-bottom: 32px;
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  padding-bottom: 10px;
  border-bottom: 2px solid #EC321D;
  margin-bottom: 14px;
}

/* WordPress widget title (when widgets added via admin) */
.single-sidebar .widget-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  padding-bottom: 10px;
  border-bottom: 2px solid #EC321D;
  margin: 0 0 14px;
}

/* ── Latest news list (default sidebar) ── */
.sidebar-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-latest-item {
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-latest-item:last-child { border-bottom: none; }

.sidebar-latest-item a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
.sidebar-latest-item a:hover .sidebar-latest-title { color: #EC321D; }

.sidebar-latest-dot {
  width: 6px;
  height: 6px;
  background: #EC321D;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.sidebar-latest-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  color: #111;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-latest-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #888;
}

.sidebar-view-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #EC321D;
  text-decoration: none;
}
.sidebar-view-all:hover { text-decoration: underline; }

/* ── Browse by source (default sidebar) ── */
.sidebar-sources-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}
.sidebar-source-item:last-child { border-bottom: none; }
.sidebar-source-item:hover .sidebar-source-label { color: #EC321D; }

.sidebar-source-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-source-label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  transition: color 0.15s;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .single-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
    gap: 32px;
  }
  .single-sidebar {
    position: static;
    border-top: 2px solid #f0f0f0;
    padding-top: 32px;
  }
}

@media (max-width: 640px) {
  .single-headline { font-size: 24px; }
  .single-excerpt  { font-size: 16px; }
}

/* =============================================
   SOURCE ARCHIVE PAGE
   /source/{slug}/ — stories from one source
   ============================================= */

.source-archive-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 56px;
}

/* ── Header ── */
.source-archive-header {
  padding: 28px 0 24px;
  border-bottom: 2px solid #EC321D;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.source-archive-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.source-archive-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.source-archive-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
  color: #111;
  margin: 0 0 4px;
}

.source-archive-count {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.source-archive-breadcrumb {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.source-archive-breadcrumb a { color: #888; text-decoration: none; }
.source-archive-breadcrumb a:hover { color: #EC321D; }
.source-archive-breadcrumb span:not(:last-child) { color: #ccc; }

/* ── Body grid (main + sidebar) ── */
.source-archive-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.source-archive-main { min-width: 0; }

/* ── Story card list ── */
.source-story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.source-story-card {
  border-bottom: 1px solid #f0f0f0;
}
.source-story-card:first-child { border-top: 1px solid #f0f0f0; }

.source-story-card__inner {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.source-story-card__inner:hover .source-story-card__title { color: #EC321D; }

.source-story-card__thumb {
  width: 140px;
  height: 94px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.source-story-card__thumb--placeholder {
  border-radius: 4px;
}

.source-story-card__body { flex: 1; min-width: 0; }

.source-story-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.source-story-card__badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
}

.source-story-card__time {
  font-size: 11px;
  color: #888;
}

.source-story-card__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  color: #111;
  margin: 0 0 8px;
  transition: color 0.15s;
}

.source-story-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ── */
.source-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.source-page-btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EC321D;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #EC321D;
  transition: background 0.15s, color 0.15s;
}
.source-page-btn:hover { background: #EC321D; color: #fff; }

.source-page-info {
  font-size: 12px;
  color: #888;
}

/* ── Empty state ── */
.source-archive-empty {
  padding: 48px 0;
  text-align: center;
  color: #666;
}
.source-archive-empty p { margin-bottom: 8px; font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .source-archive-wrap { padding: 0 16px 40px; }
  .source-archive-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .single-sidebar {
    position: static;
    border-top: 2px solid #f0f0f0;
    padding-top: 32px;
  }
  .source-story-card__thumb { width: 100px; height: 70px; }
}

@media (max-width: 640px) {
  .source-archive-header { flex-direction: column; align-items: flex-start; }
  .source-story-card__thumb { display: none; }
  .source-story-card__title { font-size: 15px; }
}


/* =============================================
   HOMEPAGE REDESIGN — WAF2
   ============================================= */

/* ── Overall layout ── */
.waf-home {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 28px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}

.waf-sidebar { min-width: 0; }
.waf-main-col { min-width: 0; }

/* ── Remove hero dots ── */
.hero-dots { display: none !important; }

/* ── Section headers ── */
.waf-home-section {
  margin-bottom: 40px;
}

.waf-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.waf-home-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.waf-home-see-all {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EC321D;
  text-decoration: none;
  transition: opacity 0.15s;
}
.waf-home-see-all:hover { opacity: 0.7; }

/* ── WAF Originals grid ── */
.waf-originals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.waf-original-card {
  display: block;
  background: #111418;
  color: #fff;
  padding: 16px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
  border-left: 3px solid #EC321D;
}

.waf-original-card:hover { background: #1c2026; }

.waf-original-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #EC321D;
  display: block;
  margin-bottom: 8px;
}

.waf-original-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.waf-original-time {
  font-size: 11px;
  color: #666;
}

/* ── World Cup strip ── */
.waf-wc-section .waf-home-section-head {
  border-bottom-color: #C8960A;
}

.waf-wc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.waf-wc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  transition: border-color 0.15s;
}
.waf-wc-card:hover { border-color: #C8960A; }
.waf-wc-card:hover .waf-wc-card-title { color: #C8960A; }

.waf-wc-card-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #1a1510;
}
.waf-wc-card-img--empty { background: linear-gradient(135deg, #1a1510, #C8960A22); }

.waf-wc-card-body { padding: 10px 12px 12px; }

.waf-wc-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin-bottom: 6px;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.waf-wc-card-meta {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Footballer Hub pills ── */
.waf-hub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waf-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F7F7F7;
  border: 1px solid #E8E8E8;
  padding: 8px 14px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
  border-radius: 2px;
}
.waf-hub-pill:hover { border-color: #EC321D; background: #fff; }
.waf-hub-pill:hover .waf-hub-pill-name { color: #EC321D; }

.waf-hub-pill-name { font-weight: 700; }
.waf-hub-pill-club { font-size: 11px; color: #888; }
.waf-hub-pill-pos {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 2px 6px;
  border-radius: 2px;
}
.waf-hub-pill-count { font-size: 11px; color: #888; }

/* ── Nav: World Cup highlight ── */
#primary-nav ul li.nav-wc a {
  color: #C8960A;
  font-weight: 700;
}
#primary-nav ul li.nav-wc a:hover { color: #EC321D; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .waf-originals-grid { grid-template-columns: repeat(2, 1fr); }
  .waf-wc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .waf-home {
    grid-template-columns: 1fr;
    padding: 20px 16px 48px;
  }
  .waf-sidebar { display: none; }
  .waf-originals-grid { grid-template-columns: repeat(2, 1fr); }
  .waf-wc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .waf-originals-grid { grid-template-columns: 1fr; }
  .waf-wc-grid { grid-template-columns: 1fr; }
}

/* ── Native editorial content (Technical Area etc.) ── */
.single-content {
  margin-bottom: 48px;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #111111;
}
.single-content p { margin-bottom: 20px; color: #111111; }
.single-content ol {
  list-style: none;
  counter-reset: waf-counter;
  padding: 0; margin: 0;
}
.single-content ol li {
  counter-increment: waf-counter;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #E8E8E8;
  color: #111111;
  font-size: 18px;
  line-height: 1.6;
  transition: color 0.15s;
}
.single-content ol li:first-child { border-top: 1px solid #E8E8E8; }
.single-content ol li::before {
  content: counter(waf-counter);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #111111;
  min-width: 32px;
  text-align: right;
  line-height: 1;
  transition: color 0.15s;
}
.single-content ol li:hover { color: #EC321D; }
.single-content ol li:hover::before { color: #EC321D; }
.single-content ol li a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.single-content ol li a:hover { color: #EC321D; }
