/* =========================================
   Cricket All Stars — Site Stylesheet
   Aesthetic: Editorial Sports Magazine
   Dark base, gold accents, sharp type
   APPROACH: Mobile-first
   Base = mobile (< 640px)
   sm   = min-width: 640px
   md   = min-width: 900px
   lg   = min-width: 1100px
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg:        #0d0e11;
  --bg2:       #13151a;
  --bg3:       #1b1e26;
  --border:    #252830;
  --gold:      #e8b84b;
  --gold-dim:  #a07c28;
  --green:     #2dcc6f;
  --red:       #e84b4b;
  --text:      #e8e9ed;
  --muted:     #7a7f8e;
  --white:     #ffffff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'DM Sans', sans-serif;
  --radius:    6px;
  --max:       1100px;
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ---- UTILITY ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 900px) {
  .container { padding: 0 1.25rem; }
}

.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--bg);
}
.tag.green { background: var(--green); }
.tag.red   { background: var(--red); }
.tag.muted { background: var(--bg3); color: var(--muted); }

/* Mobile: tighter section padding */
.section     { padding: 3rem 0; }
.section-sm  { padding: 2rem 0; }
.divider     { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

@media (min-width: 900px) {
  .section    { padding: 5rem 0; }
  .section-sm { padding: 3rem 0; }
  .divider    { margin: 3rem 0; }
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,14,17,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}
@media (min-width: 640px) {
  .nav-inner { padding: 0 1.5rem; }
}
@media (min-width: 900px) {
  .nav-inner { height: 60px; padding: 0 1.25rem; }
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .nav-logo { font-size: 1.4rem; }
}
.nav-logo span { color: var(--gold); }

/* Desktop nav links — hidden on mobile, shown at md */
.nav-links {
  display: none;
  list-style: none;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Desktop CTA button — hidden on mobile */
.site-nav .nav-cta {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
@media (min-width: 900px) {
  .site-nav .nav-cta { display: inline-flex; align-items: center; }
}
.site-nav .nav-cta:hover { background: var(--white); transform: translateY(-1px); }

/* Hamburger — visible on mobile, hidden at md */
.nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg3); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
  gap: 0;
  z-index: 99;
}
.nav-links.open li { border-bottom: 1px solid var(--border); }
.nav-links.open li:last-child { border-bottom: none; }
.nav-links.open a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
}
/* Mobile: Close nav when clicking outside handled by JS */
@media (min-width: 900px) {
  .nav-links.open { display: none; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--white); color: var(--bg); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .hero { padding: 5rem 0 4rem; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(232,184,75,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Mobile: single column */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .hero-eyebrow { font-size: 0.75rem; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .hero h1 { margin-bottom: 1.25rem; }
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 100%;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .hero-desc { font-size: 1.05rem; }
}
@media (min-width: 900px) {
  .hero-desc { max-width: 460px; }
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-actions .btn { flex: 1 1 140px; }
@media (min-width: 640px) {
  .hero-actions .btn { flex: none; }
}

/* Hero visual card — hidden on mobile, shown at md */
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-visual {
    display: block;
    position: relative;
  }
}
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.hero-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a2040 0%, #0d1530 50%, #1a0d20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(232,184,75,0.15);
  letter-spacing: 0.05em;
  user-select: none;
}
.hero-card-meta {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.hero-card-meta span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}
.rating-stars { color: var(--gold); font-size: 0.9rem; }

/* ---- STAT STRIP ---- */
.stat-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
@media (min-width: 900px) {
  .stat-strip { padding: 1.5rem 0; }
}
/* Mobile: 2-col grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1;
}
@media (min-width: 640px) {
  .stat-number { font-size: 2rem; }
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ---- SECTION HEADINGS ---- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .section-sub { font-size: 0.875rem; margin-bottom: 0.75rem; }
}

/* ---- FEATURES GRID ---- */
/* Mobile: 1-col */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
@media (min-width: 900px) {
  .feature-card { padding: 1.75rem; }
}
.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
@media (min-width: 900px) {
  .feature-icon { font-size: 2rem; margin-bottom: 1rem; }
}
.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- GAME MODES ---- */
.modes-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 900px) {
  .modes-list { gap: 1rem; margin-top: 2rem; }
}
.mode-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}
@media (min-width: 900px) {
  .mode-item { gap: 1.25rem; padding: 1.25rem 1.5rem; }
}
.mode-item:hover { border-color: var(--gold-dim); }
.mode-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  min-width: 1.75rem;
}
@media (min-width: 640px) {
  .mode-num { font-size: 1.8rem; min-width: 2rem; }
}
.mode-item h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.mode-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ---- TEAMS ---- */
/* Mobile: 1-col */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
}
.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 900px) {
  .team-card { padding: 1.75rem; gap: 1.25rem; }
}
.team-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .team-badge { width: 56px; height: 56px; font-size: 1.5rem; }
}
.team-badge.kkr { background: rgba(100,50,200,0.2); border: 2px solid rgba(100,50,200,0.4); }
.team-badge.lsg { background: rgba(0,180,100,0.2); border: 2px solid rgba(0,180,100,0.4); }
.team-card h3 { font-family: var(--font-ui); font-weight: 600; color: var(--white); margin-bottom: 0.2rem; font-size: 0.95rem; }
.team-card p { font-size: 0.82rem; color: var(--muted); }

/* ---- DOWNLOAD STEPS ---- */
.steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 900px) {
  .steps { gap: 1.25rem; margin-top: 2rem; }
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
@media (min-width: 900px) {
  .step { gap: 1.25rem; padding: 1.25rem 1.5rem; }
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .step-num { width: 36px; height: 36px; font-size: 1.1rem; }
}
.step h3 { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; color: var(--white); margin-bottom: 0.2rem; }
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ---- REQUIREMENTS TABLE — scrollable on mobile ---- */
.req-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  border-radius: var(--radius);
}
.req-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
/* Sidebar tables are always narrow — no min-width needed */
.sidebar-box .req-table { min-width: 0; width: 100%; }
@media (min-width: 640px) {
  .req-table { font-size: 0.9rem; }
}
.req-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: var(--bg3);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
@media (min-width: 640px) {
  .req-table th { padding: 0.75rem 1rem; font-size: 0.75rem; }
}
.req-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
@media (min-width: 640px) {
  .req-table td { padding: 0.85rem 1rem; }
}
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--muted); }
.req-table tr:hover td { background: rgba(232,184,75,0.03); }

/* ---- PROS CONS ---- */
/* Mobile: 1-col */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .pros-cons { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
}
.pros-box, .cons-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
@media (min-width: 900px) {
  .pros-box, .cons-box { padding: 1.5rem; }
}
.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }
.pros-box h3 { color: var(--green); font-family: var(--font-ui); font-weight: 600; margin-bottom: 0.85rem; font-size: 0.95rem; }
.cons-box h3 { color: var(--red); font-family: var(--font-ui); font-weight: 600; margin-bottom: 0.85rem; font-size: 0.95rem; }
.pros-cons ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.pros-cons li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.55;
}
.pros-cons li::before { flex-shrink: 0; margin-top: 0.1rem; }
.pros-box li::before { content: '✓'; color: var(--green); }
.cons-box li::before { content: '✗'; color: var(--red); }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .faq-list { margin-top: 2rem; }
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--transition);
  min-height: 56px;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .faq-question { font-size: 0.95rem; padding: 1.25rem 1.5rem; }
}
.faq-question:hover { background: var(--bg3); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}
@media (min-width: 640px) {
  .faq-answer { padding: 0 1.5rem 1.25rem; font-size: 0.9rem; }
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-question { background: var(--bg3); }

/* ---- BLOG CARDS ---- */
/* Mobile: 1-col */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
}
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a2040, #0d1530);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
@media (min-width: 640px) {
  .blog-thumb { font-size: 2.5rem; }
}
.blog-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .blog-body { padding: 1.25rem; }
}
.blog-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (min-width: 640px) {
  .blog-meta { font-size: 0.75rem; margin-bottom: 0.6rem; }
}
.blog-card h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}
@media (min-width: 640px) {
  .blog-card h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
}
.blog-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.85rem; }
.blog-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  min-height: 36px;
}
.blog-link:hover { color: var(--white); }

/* ---- VERDICT BOX ---- */
.verdict-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
@media (min-width: 900px) {
  .verdict-box { padding: 2rem; margin: 2rem 0; }
}
.verdict-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
@media (min-width: 640px) {
  .verdict-box h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
}
.verdict-box p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ---- SCORE BAR ---- */
.score-bars { display: flex; flex-direction: column; gap: 0.65rem; margin: 1.25rem 0; }
@media (min-width: 640px) {
  .score-bars { gap: 0.75rem; margin: 1.5rem 0; }
}
.score-row { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-ui); font-size: 0.82rem; }
@media (min-width: 640px) {
  .score-row { gap: 1rem; font-size: 0.85rem; }
}
.score-label { width: 90px; color: var(--muted); flex-shrink: 0; }
@media (min-width: 640px) {
  .score-label { width: 120px; }
}
.score-track { flex: 1; background: var(--bg3); border-radius: 999px; height: 6px; overflow: hidden; }
.score-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.score-val { width: 2.25rem; text-align: right; color: var(--white); font-weight: 600; }

/* ---- ARTICLE BODY ---- */
.article-body {
  min-width: 0;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: var(--white);
  margin: 2rem 0 0.85rem;
  letter-spacing: 0.02em;
}
.article-body h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 1.5rem 0 0.65rem;
}
@media (min-width: 640px) {
  .article-body h2 { margin: 2.5rem 0 1rem; }
  .article-body h3 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; }
}
.article-body p { color: var(--muted); margin-bottom: 1.1rem; font-size: 0.93rem; line-height: 1.8; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 640px) {
  .article-body p { font-size: 0.97rem; margin-bottom: 1.25rem; }
}
.article-body ul, .article-body ol {
  color: var(--muted);
  padding-left: 1.35rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}
@media (min-width: 640px) {
  .article-body ul, .article-body ol { padding-left: 1.5rem; font-size: 0.95rem; margin-bottom: 1.25rem; }
}
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--gold); }
.article-body a:hover { color: var(--white); }

/* Mobile: single column article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
}

.article-sidebar { position: static; }
@media (min-width: 900px) {
  .article-sidebar { position: sticky; top: 80px; }
}

.sidebar-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .sidebar-box { padding: 1.5rem; margin-bottom: 1.5rem; }
}
.sidebar-box h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  .sidebar-box h4 { font-size: 0.75rem; margin-bottom: 1rem; }
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
@media (min-width: 640px) {
  .toc-list { gap: 0.5rem; }
}
.toc-list a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  padding: 4px 0 4px 0.75rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  min-height: 36px;
  line-height: 1.35;
}
@media (min-width: 640px) {
  .toc-list a { font-size: 0.85rem; }
}
.toc-list a:hover { color: var(--gold); border-left-color: var(--gold); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.75rem 0;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .breadcrumb { font-size: 0.8rem; padding: 1rem 0; gap: 0.5rem; }
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--border); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}
@media (min-width: 640px) {
  .page-hero { padding: 2.5rem 0 2rem; }
}
@media (min-width: 900px) {
  .page-hero { padding: 3rem 0 2.5rem; }
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
@media (min-width: 640px) {
  .page-hero h1 { margin-bottom: 0.75rem; }
}
.page-hero p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.65;
}
@media (min-width: 640px) {
  .page-hero p { font-size: 1rem; max-width: 600px; }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.25rem;
}
@media (min-width: 900px) {
  .site-footer { padding: 3rem 0 1.5rem; }
}

/* Mobile: 2-col footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
}
/* Brand spans full width on mobile */
.footer-brand {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .footer-brand { grid-column: auto; }
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.65rem;
  max-width: 280px;
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
@media (min-width: 640px) {
  .footer-col h4 { font-size: 0.75rem; margin-bottom: 0.75rem; }
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
@media (min-width: 640px) {
  .footer-col ul { gap: 0.5rem; }
}
.footer-col li a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
  display: inline-block;
  padding: 2px 0;
  min-height: 32px;
  line-height: 1.7;
}
.footer-col li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}
@media (min-width: 900px) {
  .footer-bottom { padding-top: 1.5rem; }
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-disclaimer {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.6;
  max-width: 100%;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .footer-disclaimer {
    max-width: 420px;
    text-align: right;
  }
}

/* ---- TOUCH TARGETS — ensure all interactive items meet 44px ---- */
button, [role="button"], input[type="submit"] {
  touch-action: manipulation;
}
