/* ============================================================
   MATCH DAY NEWS - Global Styles
   Author: Match Day News Editorial Team
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --c-navy: #0f1e35;
  --c-navy-2: #16294a;
  --c-navy-3: #22375c;
  --c-red: #e6323c;
  --c-red-dark: #c4232d;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f7;
  --surface: #ffffff;
  --text: #1a2433;
  --text-strong: #0f1e35;
  --muted: #5a6675;
  --muted-2: #8a94a3;
  --border: #e4e8ee;
  --border-strong: #cfd6e0;

  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #0b1728;
  --footer-text: #c3ccda;
  --footer-head: #ffffff;

  --shadow-sm: 0 1px 2px rgba(15, 30, 53, 0.06), 0 1px 3px rgba(15, 30, 53, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 30, 53, 0.1);
  --shadow-lg: 0 12px 32px rgba(15, 30, 53, 0.16);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --header-h: 66px;
  --ticker-h: 40px;

  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0d1522;
  --bg-soft: #111b2c;
  --bg-soft-2: #152136;
  --surface: #131e31;
  --text: #e4eaf3;
  --text-strong: #ffffff;
  --muted: #9aa6b8;
  --muted-2: #77849a;
  --border: #22304a;
  --border-strong: #31415f;
  --header-bg: rgba(13, 21, 34, 0.95);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: var(--c-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-red-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.35em;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 2px 0;
}

:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--c-red);
  color: #fff;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 1.55rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: var(--c-red);
  flex: 0 0 auto;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-red);
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--c-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 2000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(230, 50, 60, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-solid {
  color: #fff;
  background: var(--c-red);
}

.badge-navy {
  color: #fff;
  background: var(--c-navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--c-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-red);
  border-color: var(--c-red);
}

.btn-outline:hover {
  background: var(--c-red);
  color: #fff;
}

.btn-navy {
  background: var(--c-navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--c-navy-2);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-img {
  display: block;
  width: 196px;
  height: 42px;
}

.logo-dark-theme {
  display: none;
}

[data-theme="dark"] .logo-light-theme {
  display: none;
}

[data-theme="dark"] .logo-dark-theme {
  display: block;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.primary-nav a:hover {
  color: var(--c-red);
  background: var(--bg-soft);
}

.primary-nav a.is-active {
  color: var(--c-red);
}

.primary-nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--c-red);
  margin-top: 3px;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.icon-btn:hover {
  border-color: var(--c-red);
  color: var(--c-red);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block;
}

.nav-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--c-navy);
  color: #fff;
  border-bottom: 2px solid var(--c-red);
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-label svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  animation: ticker-pulse 1.2s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 45s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-track a {
  color: #dbe3ef;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.ticker-track a:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 28px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 22px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 53, 0) 30%, rgba(15, 30, 53, 0.88) 100%);
  z-index: 1;
}

.hero-main .hero-body {
  position: relative;
  z-index: 2;
  padding: 34px;
  width: 100%;
}

.hero-main .hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-main .hero-title a {
  color: #fff;
}

.hero-main .hero-title a:hover {
  color: #ffd9db;
}

.hero-main .hero-excerpt {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.hero-meta .avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.hero-side-item:hover {
  border-color: var(--c-red);
  box-shadow: var(--shadow-md);
}

.hero-side-item img {
  width: 128px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
}

.hero-side-item .badge {
  margin-bottom: 6px;
}

.hero-side-item h2 {
  font-size: 0.98rem;
  margin: 0 0 6px;
  line-height: 1.35;
}

.hero-side-item h2 a {
  color: var(--text-strong);
}

.hero-side-item h2 a:hover {
  color: var(--c-red);
}

.hero-side-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft-2);
}

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

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.card-title {
  font-size: 1.08rem;
  margin: 10px 0 8px;
  line-height: 1.35;
}

.card-title a {
  color: var(--text-strong);
}

.card-title a:hover {
  color: var(--c-red);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.card-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* Featured card (analysis/editorial) */
.card-featured-analysis {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card-featured-analysis:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-featured-analysis .card-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
}

.card-featured-analysis .card-body {
  padding: 26px;
}

.card-featured-analysis .card-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

/* Compact card */
.compact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
}

.compact-card:hover {
  border-color: var(--c-red);
  background: var(--bg-soft);
}

.compact-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.compact-card .compact-title {
  font-size: 0.9rem;
  margin: 0 0 4px;
  line-height: 1.35;
}

.compact-card .compact-title a {
  color: var(--text-strong);
}

.compact-card .compact-title a:hover {
  color: var(--c-red);
}

.compact-card .compact-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Trending card */
.trending-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.trending-card:last-child {
  border-bottom: 0;
}

.trending-rank {
  font-size: 2.3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--border-strong);
  line-height: 1;
}

[data-theme="dark"] .trending-rank {
  -webkit-text-stroke-color: #3a4b6d;
}

.trending-card:hover .trending-rank {
  -webkit-text-stroke-color: var(--c-red);
}

.trending-body .badge {
  margin-bottom: 6px;
}

.trending-title {
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.35;
}

.trending-title a {
  color: var(--text-strong);
}

.trending-title a:hover {
  color: var(--c-red);
}

/* ============================================================
   MATCH DAY CENTER
   ============================================================ */
.match-center {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  color: #fff;
}

.match-center .section-title {
  color: #fff;
}

.match-center .section-title::before {
  background: #fff;
}

.match-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.match-tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 0;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.match-tab:hover {
  color: #fff;
}

.match-tab.is-active {
  background: var(--c-red);
  color: #fff;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.match-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(4px);
  transition: border-color var(--transition), background-color var(--transition);
}

.match-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.match-top .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.match-status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.match-status.upcoming {
  background: rgba(255, 255, 255, 0.12);
  color: #dbe3ef;
}

.match-status.live {
  background: var(--c-red);
  color: #fff;
  animation: ticker-pulse 1.4s ease-in-out infinite;
}

.match-status.completed {
  background: rgba(74, 108, 247, 0.35);
  color: #fff;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.match-team {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-align: center;
}

.match-vs {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-red);
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.match-score {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.match-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  text-align: center;
}

.match-info strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Score card (match reports section) */
.score-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.score-card:hover {
  box-shadow: var(--shadow-md);
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-team {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 0.95rem;
}

.score-value {
  font-weight: 800;
  color: var(--c-red);
  font-size: 1rem;
}

.score-divider {
  height: 1px;
  background: var(--border);
}

.score-foot {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ============================================================
   ADVERTISEMENT PLACEHOLDERS
   ============================================================ */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 90px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted-2);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
}

.ad-container span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ad-container span::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--muted-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.5;
}

.ad-leaderboard {
  min-height: 120px;
}

.ad-rect {
  min-height: 250px;
  max-width: 320px;
  margin: 0 auto;
}

.ad-sidebar {
  min-height: 250px;
}

.ad-article {
  min-height: 110px;
  margin: 28px 0;
}

.ad-footer {
  min-height: 90px;
}

/* PubVibe ad slots injected before paragraphs and headings */
[data-pubvibe-size] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 26px 0;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}

[data-pubvibe-size="300x250"] {
  min-height: 250px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

[data-pubvibe-size="728x90"] {
  min-height: 90px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  color: #fff;
  padding: 60px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.newsletter h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

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

.newsletter-row {
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.newsletter-privacy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.form-msg {
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-msg.success {
  color: #58d68d;
}

.form-msg.error {
  color: #ffb3b7;
}

/* ============================================================
   FORMS (contact, search)
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(230, 50, 60, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 18px;
}

/* Search page */
.search-hero {
  padding: 36px 0 8px;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 18px 0 0;
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
}

.search-box input:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(230, 50, 60, 0.15);
}

.search-result-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--muted-2);
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* ============================================================
   PAGE HEADER (category / author / static pages)
   ============================================================ */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.page-header .page-desc {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.02rem;
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--c-red);
}

.breadcrumb .sep {
  color: var(--muted-2);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-strong);
  font-weight: 700;
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more-wrap {
  text-align: center;
  margin-top: 30px;
}

/* ============================================================
   SITEMAP PAGE
   ============================================================ */
.sitemap-group {
  margin-bottom: 34px;
}

.sitemap-group h2 {
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-list a {
  color: var(--text);
  font-weight: 500;
}

.sitemap-list a:hover {
  color: var(--c-red);
}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-card {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 4px solid var(--bg-soft-2);
}

.author-card h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.author-card .author-role {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.author-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.author-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
}

.author-social a:hover {
  color: #fff;
  background: var(--c-navy);
  border-color: var(--c-navy);
}

.author-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   STATIC / LEGAL PAGES
   ============================================================ */
.prose-page {
  max-width: 800px;
  padding-bottom: 60px;
}

.prose-page h2 {
  font-size: 1.35rem;
  margin-top: 1.6em;
}

.prose-page h3 {
  font-size: 1.1rem;
}

.prose-page ul,
.prose-page ol {
  margin-bottom: 1.2em;
}

.prose-page li {
  margin-bottom: 0.5em;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .logo-img {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color var(--transition);
}

.footer-social a:hover {
  background: var(--c-red);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-col h3 {
  color: var(--footer-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--footer-text);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--footer-text);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(150%);
  transition: transform 0.4s ease;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
  min-width: 240px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.cookie-btn-accept {
  background: var(--c-red);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--c-red-dark);
}

.cookie-btn-manage {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.cookie-btn-manage:hover {
  border-color: var(--c-red);
  color: var(--c-red);
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(15, 30, 53, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-preferences.is-open {
  display: flex;
}

.cookie-preferences .pref-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.cookie-preferences .pref-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cookie-preferences .pref-panel p {
  color: var(--muted);
  font-size: 0.9rem;
}

.pref-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.pref-option label {
  font-weight: 600;
  font-size: 0.92rem;
}

.pref-option small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

/* toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}

.switch input:checked + .slider {
  background: var(--c-red);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 0;
  background: var(--c-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--c-red);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   REVEAL ANIMATION (subtle)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
