/* Shared stylesheet for the Matatu Champion SEO cluster pages
   (/matatu_champion, /matatu-rules, /how-to-play-matatu, ...).
   Same design language as the landing page: dark felt + gold + cream. */

:root {
  --felt-1: #06382b;
  --felt-2: #0a4d3a;
  --felt-3: #04241b;
  --gold: #f2c94c;
  --gold-deep: #a16207;
  --teal: #22d3c8;
  --cream: #fdf6e3;
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-ar: 213 / 239;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

img { -webkit-user-drag: none; user-select: none; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(160deg, var(--felt-2), var(--felt-1) 60%, var(--felt-3));
  color: var(--cream);
  padding: 14px 20px;
}
.site-header .bar {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--cream);
}
.brand img { width: 30px; border-radius: 6px; }
.brand .accent { color: var(--gold); }
.site-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .9rem; }
.site-nav a { color: rgba(253,246,227,0.8); text-decoration: none; padding: 4px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

/* ── Page hero strip ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(34,211,200,0.14), transparent 55%),
    linear-gradient(165deg, var(--felt-2) 0%, var(--felt-1) 50%, var(--felt-3) 100%);
  color: var(--cream);
  padding: clamp(44px, 8vh, 84px) 20px clamp(48px, 8vh, 90px);
}
.page-hero .inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.crumbs { font-size: .82rem; color: rgba(253,246,227,0.6); margin-bottom: 16px; }
.crumbs a { color: rgba(253,246,227,0.75); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-hero h1 {
  font-size: clamp(1.9rem, 5.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 720px;
}
.page-hero h1 .accent {
  background: linear-gradient(120deg, var(--gold), #fff2c2 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lede {
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: rgba(253,246,227,0.85);
  max-width: 640px;
  margin: 0;
  line-height: 1.7;
}
.page-hero .lede strong { color: var(--gold); font-weight: 600; }

/* small decorative card fan in the hero corner */
.hero-cards {
  position: absolute;
  right: clamp(-30px, 2vw, 60px);
  bottom: -26px;
  display: flex;
  pointer-events: none;
  opacity: .9;
}
.hero-cards img {
  width: clamp(64px, 8vw, 104px);
  aspect-ratio: var(--card-ar);
  border-radius: 8%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.hero-cards img:nth-child(1) { transform: rotate(-12deg) translateY(10px); }
.hero-cards img:nth-child(2) { transform: rotate(-2deg); z-index: 1; }
.hero-cards img:nth-child(3) { transform: rotate(9deg) translateY(12px); }
@media (max-width: 720px) { .hero-cards { display: none; } }

/* ── Article body ───────────────────────────────────────────────── */
.article { max-width: 1000px; margin: 0 auto; padding: clamp(34px, 6vh, 60px) 20px; }
.article h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 700;
  color: #064e3b;
  margin: 2.2em 0 .6em;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.12rem; font-weight: 600; margin: 1.6em 0 .5em; }
.article p, .article li { font-size: 1.02rem; line-height: 1.75; color: #374151; }
.article p strong, .article li strong { color: var(--ink); }
.article ul, .article ol { padding-left: 1.3em; }
.article a { color: #0e7490; }

/* card + caption inline illustration */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px);
  justify-content: center;
  margin: 26px 0;
}
.card-fig { display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(84px, 11vw, 116px); }
.card-fig img {
  width: 100%;
  aspect-ratio: var(--card-ar);
  border-radius: 8%;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.card-fig figcaption {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

/* fact/tip callout */
.callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; }

/* rules-style table */
.rule-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.rule-table th { background: #064e3b; color: #fff; text-align: left; font-weight: 600; font-size: .92rem; padding: 12px 16px; }
.rule-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: .96rem; color: #374151; vertical-align: top; }
.rule-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rule-table-wrap { overflow-x: auto; }

/* ── Cluster links ("keep reading") ─────────────────────────────── */
.cluster { background: #fff; border-top: 1px solid var(--border); padding: clamp(36px, 6vh, 60px) 20px; }
.cluster .inner { max-width: 1000px; margin: 0 auto; }
.cluster h2 { font-size: 1.4rem; font-weight: 700; color: #064e3b; margin: 0 0 18px; }
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cluster-grid a {
  display: block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cluster-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.07); }
.cluster-grid a .t { display: block; font-weight: 600; margin-bottom: 4px; color: #064e3b; }
.cluster-grid a .d { display: block; font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ── CTA band / footer (same as landing) ────────────────────────── */
.cta-band {
  background:
    radial-gradient(ellipse at 50% 130%, rgba(242,201,76,0.16), transparent 60%),
    linear-gradient(135deg, #064e3b, #0a5c46 60%, #0e7490);
  color: #fff;
  text-align: center;
  padding: clamp(46px, 8vh, 80px) 20px;
}
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 26px; font-weight: 300; max-width: 540px; }
.play-badge { display: inline-block; line-height: 0; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.4)); transition: transform .18s ease; }
.play-badge:hover { transform: translateY(-3px) scale(1.02); }
.play-badge img { height: clamp(54px, 7vh, 68px); width: auto; }

.site-footer {
  background: var(--felt-3);
  color: rgba(253,246,227,0.6);
  text-align: center;
  padding: 28px 20px 34px;
  font-size: .88rem;
}
.site-footer a { color: rgba(253,246,227,0.75); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold); }
.site-footer .links { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer .gp-note { font-size: .78rem; opacity: .6; margin-top: 8px; }
