/* PitchWire — International Football News */
:root {
  --pw-navy: #0a1628;
  --pw-navy-mid: #13233d;
  --pw-ink: #121820;
  --pw-paper: #f4f6f8;
  --pw-white: #ffffff;
  --pw-gold: #e8b84a;
  --pw-gold-deep: #c4922a;
  --pw-live: #d62828;
  --pw-muted: #5c6b7a;
  --pw-line: #d9e0e7;
  --pw-turf: #1f6b4a;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--pw-ink);
  background: var(--pw-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pw-gold-deep); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--pw-navy);
}
.pw-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Top bar */
.pw-topbar {
  background: var(--pw-navy);
  color: #c5d0dc;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pw-topbar .pw-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}
.pw-topbar a { color: #c5d0dc; }
.pw-topbar a:hover { color: var(--pw-gold); }
.pw-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.pw-live-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pw-live);
  box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6);
  animation: pw-pulse 1.6s infinite;
}
@keyframes pw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(214, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

/* Header */
.pw-header {
  background: var(--pw-white);
  border-bottom: 1px solid var(--pw-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pw-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.pw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.pw-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.pw-brand-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pw-navy);
  line-height: 1;
}
.pw-brand-text span { color: var(--pw-gold-deep); }
.pw-brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-muted);
  margin-top: 3px;
  font-weight: 600;
}
.pw-search {
  justify-self: center;
  width: min(360px, 100%);
}
.pw-search form {
  display: flex;
  border: 1px solid var(--pw-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--pw-paper);
}
.pw-search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}
.pw-search button {
  border: 0;
  background: var(--pw-navy);
  color: #fff;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.pw-header-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pw-menu-toggle {
  display: none;
  border: 1px solid var(--pw-line);
  background: #fff;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* Nav */
.pw-nav {
  background: var(--pw-navy-mid);
  border-bottom: 3px solid var(--pw-gold);
}
.pw-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.pw-nav-list a {
  display: block;
  color: #e8eef5;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pw-nav-list a:hover,
.pw-nav-list .current-menu-item > a,
.pw-nav-list .current-category-ancestor > a {
  color: var(--pw-gold);
  background: rgba(255,255,255,0.04);
}

/* Trending */
.pw-trending {
  background: var(--pw-white);
  border-bottom: 1px solid var(--pw-line);
  padding: 10px 0;
}
.pw-trending .pw-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
}
.pw-trending-label {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-live);
  font-size: 0.9rem;
}
.pw-chip {
  flex: 0 0 auto;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--pw-line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pw-navy);
  background: var(--pw-paper);
  white-space: nowrap;
}
.pw-chip:hover {
  border-color: var(--pw-gold);
  color: var(--pw-gold-deep);
  background: #fff8e8;
}

/* Layout */
.pw-main {
  padding: 28px 0 64px;
}
.pw-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.pw-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--pw-navy);
  padding-bottom: 8px;
}
.pw-section-head h2 {
  font-size: 1.55rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pw-section-head a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pw-muted);
}
.pw-section-head a:hover { color: var(--pw-gold-deep); }

/* Hero */
.pw-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.pw-hero-feature {
  position: relative;
  display: block;
  min-height: 360px;
  background: var(--pw-navy) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.pw-hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.1) 20%, rgba(10,22,40,0.92) 100%);
}
.pw-hero-feature .pw-hero-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 28px;
}
.pw-cat {
  display: inline-block;
  background: var(--pw-gold);
  color: var(--pw-navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 10px;
}
.pw-cat.is-live { background: var(--pw-live); color: #fff; }
.pw-hero-feature h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  max-width: 18ch;
  margin: 0 0 8px;
}
.pw-hero-feature p {
  margin: 0;
  color: #d5deea;
  max-width: 48ch;
  font-size: 1rem;
}
.pw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--pw-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
}
.pw-hero-feature .pw-meta { color: #b8c4d4; }
.pw-hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pw-card-mini {
  background: var(--pw-white);
  border: 1px solid var(--pw-line);
  display: grid;
  grid-template-rows: 120px auto;
}
.pw-card-mini .thumb {
  background: var(--pw-navy-mid) center/cover no-repeat;
}
.pw-card-mini .body { padding: 12px; }
.pw-card-mini h3 {
  font-size: 1.05rem;
  margin: 0;
}
.pw-card-mini:hover h3 { color: var(--pw-gold-deep); }

/* Feed */
.pw-feed { display: grid; gap: 0; }
.pw-feed-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pw-line);
  background: transparent;
}
.pw-feed-item .thumb {
  background: var(--pw-navy-mid) center/cover no-repeat;
  min-height: 96px;
}
.pw-feed-item h3 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.pw-feed-item p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.92rem;
}
.pw-feed-item:hover h3 { color: var(--pw-gold-deep); }

/* Sidebar */
.pw-side { display: grid; gap: 22px; }
.pw-widget {
  background: var(--pw-white);
  border: 1px solid var(--pw-line);
  padding: 16px;
}
.pw-widget h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 4px solid var(--pw-gold);
  padding-left: 10px;
  margin-bottom: 14px;
}
.pw-popular { counter-reset: pop; }
.pw-popular li {
  counter-increment: pop;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pw-line);
}
.pw-popular li:last-child { border-bottom: 0; }
.pw-popular li::before {
  content: counter(pop, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pw-gold-deep);
  line-height: 1.1;
}
.pw-popular a {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.2;
}
.pw-standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.pw-standings th,
.pw-standings td {
  text-align: left;
  padding: 7px 4px;
  border-bottom: 1px solid var(--pw-line);
}
.pw-standings th {
  color: var(--pw-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pw-standings td:nth-child(n+3) { text-align: center; font-variant-numeric: tabular-nums; }
.pw-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--pw-line);
  font-size: 0.9rem;
  font-weight: 650;
}
.pw-match-row:last-child { border-bottom: 0; }
.pw-match-row .score {
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: var(--pw-navy);
  color: #fff;
  padding: 4px 10px;
  min-width: 58px;
  text-align: center;
}
.pw-match-row .home { text-align: right; }
.pw-match-meta {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--pw-muted);
  font-weight: 600;
  text-align: center;
  margin-top: -4px;
}

/* Category bands */
.pw-band {
  margin-top: 36px;
}
.pw-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pw-band-card {
  background: var(--pw-white);
  border: 1px solid var(--pw-line);
  display: grid;
  grid-template-rows: 140px auto;
}
.pw-band-card .thumb {
  background: var(--pw-navy-mid) center/cover no-repeat;
}
.pw-band-card .body { padding: 12px 14px 16px; }
.pw-band-card h3 { font-size: 1.15rem; margin: 0; }
.pw-band-card:hover h3 { color: var(--pw-gold-deep); }

/* Article */
.pw-article {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}
.pw-article-header { margin-bottom: 22px; }
.pw-article-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 20ch;
}
.pw-article-dek {
  font-size: 1.15rem;
  color: var(--pw-muted);
  margin: 10px 0 0;
  max-width: 48ch;
}
.pw-article-hero {
  margin: 0 0 24px;
  background: var(--pw-navy-mid);
}
.pw-article-hero img { width: 100%; }
.pw-content {
  font-size: 1.05rem;
  line-height: 1.7;
}
.pw-content p { margin: 0 0 1.15em; }
.pw-content h2, .pw-content h3 {
  margin-top: 1.4em;
}
.pw-content a { color: var(--pw-turf); border-bottom: 1px solid color-mix(in srgb, var(--pw-turf) 35%, transparent); }
.pw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pw-line);
}
.pw-tags a {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--pw-navy);
  color: #fff;
  border-radius: 999px;
}
.pw-tags a:hover { background: var(--pw-gold-deep); color: #fff; }

/* Archive */
.pw-page-title {
  margin-bottom: 22px;
}
.pw-page-title h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pw-page-title p { color: var(--pw-muted); margin: 6px 0 0; max-width: 52ch; }

/* Footer */
.pw-footer {
  background: var(--pw-navy);
  color: #b7c3d3;
  padding: 48px 0 28px;
  margin-top: 24px;
}
.pw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.pw-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.pw-footer a { color: #b7c3d3; }
.pw-footer a:hover { color: var(--pw-gold); }
.pw-footer li { margin: 0 0 8px; }
.pw-footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.pw-footer-brand span { color: var(--pw-gold); }
.pw-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8fa0b3;
}

/* Empty / fallback thumb */
.pw-thumb-fallback {
  background:
    linear-gradient(135deg, rgba(232,184,74,0.18), transparent 45%),
    linear-gradient(160deg, var(--pw-navy) 0%, var(--pw-navy-mid) 100%);
}

@media (max-width: 960px) {
  .pw-home-grid,
  .pw-article { grid-template-columns: 1fr; }
  .pw-hero-secondary,
  .pw-band-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-footer-grid { grid-template-columns: 1fr 1fr; }
  .pw-header-row { grid-template-columns: 1fr auto; }
  .pw-search { display: none; }
}
@media (max-width: 640px) {
  .pw-hero-secondary,
  .pw-band-grid,
  .pw-footer-grid { grid-template-columns: 1fr; }
  .pw-feed-item { grid-template-columns: 96px 1fr; gap: 12px; }
  .pw-menu-toggle { display: inline-block; }
  .pw-nav-list {
    display: none;
    flex-direction: column;
  }
  .pw-nav.is-open .pw-nav-list { display: flex; }
  .pw-hero-feature { min-height: 300px; }
  .pw-brand-text { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-live-pill::before { animation: none; }
  html { scroll-behavior: auto; }
}
