
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --red: #e0202e;
  --white: #f5f5f5;
  --gray: #9a9a9a;
  --border: #262626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
a { color: inherit; }
header {
  background: #000;
  border-bottom: 4px solid var(--red);
  padding: 22px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}
header a.brand-link { display: flex; align-items: center; gap: 16px; text-decoration: none; }
header img.logo { height: 52px; width: auto; display: block; }
header .tagline {
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-left: 2px solid var(--red);
  padding-left: 16px;
}

.header-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.header-filters a {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--gray); text-decoration: none; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border);
}
.header-filters a:hover { color: var(--white); border-color: var(--gray); }
.header-filters a.active { color: #fff; background: var(--red); border-color: var(--red); }

/* Mobile hamburger menu -- hidden checkbox drives a CSS-only dropdown, no JS. */
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

@media (max-width: 760px) {
  header .tagline { display: none; }
  .nav-toggle-btn { display: flex; }
  .header-filters {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #000;
    border-bottom: 4px solid var(--red);
    padding: 10px 5vw 20px;
    gap: 6px;
    z-index: 30;
  }
  .header-filters a { padding: 13px 16px; border-radius: 6px; text-align: left; }
  .nav-toggle-checkbox:checked ~ .header-filters { display: flex; }
  .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

main { padding: 32px 5vw 80px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); background: var(--bg-card-hover); border-color: var(--red); }
.card-thumb { width: 100%; height: 180px; object-fit: cover; background: #1c1c1c; display: block; }
.card-thumb-fallback {
  object-fit: contain;
  padding: 34px 44px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 11px; color: var(--gray); margin-bottom: 10px; letter-spacing: 0.3px; }
.card-category { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.card-dot { margin: 0 6px; }
.card-title { font-size: 18px; line-height: 1.3; margin: 0 0 10px; font-weight: 800; color: var(--white); }
.card-excerpt { font-size: 14px; color: var(--gray); line-height: 1.5; margin: 0 0 16px; flex: 1; }
.card-link { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 2px solid var(--red); padding-bottom: 3px; align-self: flex-start; }
footer { padding: 56px 5vw 0; border-top: 1px solid var(--border); color: var(--gray); font-size: 13px; line-height: 1.7; background: var(--bg-card); }
footer strong { color: var(--white); }
footer a { color: var(--gray); text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 40px; }
.footer-logo { height: 40px; width: auto; }
.footer-tagline { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); }
.footer-columns {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding-bottom: 40px; border-top: 1px solid var(--border); padding-top: 40px;
}
.footer-col h4 {
  margin: 0 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--white);
}
.footer-col a { display: block; margin-bottom: 10px; font-size: 13px; }
.footer-col p { margin: 0 0 10px; font-size: 13px; color: var(--gray); }
.footer-col .footer-contact-email { color: var(--red); font-weight: 700; }
.footer-col .footer-contact-email:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0 28px; }
.footer-source-note { margin: 0 0 16px; font-size: 12px; color: var(--gray); max-width: 720px; }
.footer-copy {
  margin: 0; font-size: 11px; color: #6b6b6b; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-copy { justify-content: center; text-align: center; }
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; }
.pagination a, .pagination span {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 18px; border-radius: 6px; text-decoration: none;
}
.pagination a { color: var(--white); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .disabled { color: #4a4a4a; border: 1px solid var(--border); opacity: 0.5; }
.pagination .page-count { color: var(--gray); border: none; text-transform: none; letter-spacing: 0; font-weight: 400; }
.page-jump {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.page-jump select {
  background: var(--bg-card); color: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 14px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.page-jump select:hover { border-color: var(--red); }
.page-jump select:focus { outline: none; border-color: var(--red); }

@media (max-width: 600px) {
  .pagination { flex-wrap: wrap; row-gap: 14px; column-gap: 10px; }
  .pagination a, .pagination .page-count { font-size: 12px; padding: 10px 14px; }
  .page-jump {
    order: 99;
    flex-basis: 100%;
    justify-content: center;
  }
  .page-jump select {
    flex: 0 1 240px;
    padding: 13px 16px;
    font-size: 15px;
  }
}

/* Article page */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 48px 5vw 80px; }
.back-link { display: inline-block; font-size: 13px; color: var(--gray); text-decoration: none; margin-bottom: 24px; }
.back-link:hover { color: var(--white); }
.article-meta { font-size: 12px; color: var(--gray); margin-bottom: 14px; letter-spacing: 0.3px; }
.article-title { font-size: 32px; line-height: 1.25; font-weight: 800; margin: 0 0 24px; color: var(--white); }
.article-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 28px; border: 1px solid var(--border); }
.article-hero-fallback {
  object-fit: contain;
  padding: 48px 60px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}
.article-summary { font-size: 17px; line-height: 1.7; color: #e6e6e6; margin-bottom: 32px; }
.outbound-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 6px;
  letter-spacing: 0.3px;
}
.outbound-cta:hover { background: #c81a27; }
.outbound-note { font-size: 12px; color: var(--gray); margin-top: 14px; }
.comments-wrap { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-heading { font-size: 20px; font-weight: 800; margin: 0 0 20px; color: var(--white); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #101010; border-top: 1px solid var(--border);
  padding: 16px 5vw; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 13px; color: var(--gray); line-height: 1.5; flex: 1; min-width: 240px; }
.cookie-banner-inner a { color: var(--red); font-weight: 700; text-decoration: none; }
.cookie-banner-inner a:hover { text-decoration: underline; }
.cookie-banner-btn {
  background: var(--red); color: #fff; border: none; border-radius: 6px;
  font-weight: 700; font-size: 13px; padding: 11px 26px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.cookie-banner-btn:hover { background: #c81a27; }

/* Legal pages (Privacy Policy, Terms of Service) */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 48px 5vw 80px; }
.legal-wrap h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; color: var(--white); }
.legal-wrap .legal-updated { font-size: 12px; color: var(--gray); margin-bottom: 36px; letter-spacing: 0.3px; }
.legal-wrap h2 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; color: var(--white); }
.legal-wrap p { font-size: 15px; line-height: 1.7; color: #e6e6e6; margin: 0 0 16px; }
.legal-wrap a { color: var(--red); text-decoration: none; font-weight: 700; }
.legal-wrap a:hover { text-decoration: underline; }
