/*
 * TMB Content-Page Design System v1.0 — Canonical "Brand Red"
 * Author: Julie (UX/Product Design) — 2026-06-02
 * Applied by Jack — 2026-06-03
 *
 * Rule: RED is the FRAME, WHITE is the WORD. Gold (#c8a55a / #e8c87a) killed entirely.
 *
 * Scope: all 9 public content pages (guide, faq, about, rules, first-steps,
 *        screenshots, past-winners, browser-mafia-game, mafia-game-alternatives).
 * Load condition: module=content only (template.tpl).
 */

/* ── Color tokens ──────────────────────────────────────────────────────────── */
:root {
  --tmb-red:         #E0322F;  /* canonical brand accent: eyebrows, H2 rule, links */
  --tmb-red-deep:    #8b0000;  /* CTA gradient start / card left-bar */
  --tmb-red-bright:  #c0392b;  /* CTA gradient end */
  --tmb-card:        #1a1a1a;
  --tmb-card-2:      #141414;  /* nested sub-card */
  --tmb-border:      rgba(255,255,255,.08);  /* neutral — replaces gold #3a2a10 */
  --tmb-heading:     #f2f2f2;  /* near-white headings */
  --tmb-text:        #cccccc;
  --tmb-text-mute:   #888888;  /* captions, breadcrumb */
}

/* ── Shared content wrapper ────────────────────────────────────────────────── */
.tmb-content {
  font-family: 'Oswald', 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  color: var(--tmb-text);
  padding-bottom: 48px;
}
.tmb-content * { box-sizing: border-box; }

/* ── Hero: red eyebrow + WHITE H1 + centered red rule ─────────────────────── */
.tmb-hero {
  text-align: center;
  padding: 30px 0 8px;
}
.tmb-eyebrow {
  display: inline-block;
  color: var(--tmb-red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.tmb-h1 {
  color: var(--tmb-heading);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.15;
}
.tmb-hero-rule {
  width: 56px;
  height: 3px;
  background: var(--tmb-red);
  margin: 14px auto 6px;
  border: 0;
}
.tmb-hero-sub {
  color: #aaa;
  font-size: 14px;
  margin: 6px 0 0;
}

/* ── Card: neutral border + 3px deep-red left bar ─────────────────────────── */
.tmb-card {
  background: var(--tmb-card);
  border: 1px solid var(--tmb-border);
  border-left: 3px solid var(--tmb-red-deep);
  border-radius: 6px;
  padding: 24px 30px;
  margin: 18px 0;
}

/* ── Section H2: WHITE heading + 40px red underline rule (the keystone) ───── */
.tmb-h2 {
  color: var(--tmb-heading);
  font-weight: 600;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.tmb-h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--tmb-red);
}

/* ── H3 (sub-heading) ──────────────────────────────────────────────────────── */
.tmb-h3 {
  color: var(--tmb-heading);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
}

/* ── Card body copy ────────────────────────────────────────────────────────── */
.tmb-card p {
  color: var(--tmb-text);
  line-height: 1.8;
  margin: 0 0 10px;
}
.tmb-card p:last-child { margin-bottom: 0; }

/* ── Links ─────────────────────────────────────────────────────────────────── */
.tmb-link {
  color: var(--tmb-red);
  text-decoration: none;
}
.tmb-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Timeline: red rail, white year ───────────────────────────────────────── */
.tmb-timeline {
  border-left: 3px solid var(--tmb-red);
  padding-left: 20px;
}
.tmb-timeline-item { margin-bottom: 16px; }
.tmb-timeline-item:last-child { margin-bottom: 0; }
.tmb-year {
  color: var(--tmb-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
}
.tmb-timeline-item p { margin: 4px 0 0; }

/* ── Feature grid (2-up) ───────────────────────────────────────────────────── */
.tmb-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tmb-feature h3 {
  color: var(--tmb-heading);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}
.tmb-feature p {
  color: var(--tmb-text);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ── Primary CTA — red gradient (existing brand pattern, standardized) ─────── */
.tmb-cta-wrap {
  text-align: center;
  padding: 28px 0 4px;
}
.tmb-cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--tmb-red-deep), var(--tmb-red-bright));
  color: #fff !important;
  padding: 15px 42px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  font-family: 'Oswald', 'Roboto Condensed', Arial, sans-serif;
}
.tmb-cta-primary:hover {
  color: #fff !important;
  text-decoration: none;
  filter: brightness(1.08);
}

/* ── Secondary CTA — ghost/outline, red border ─────────────────────────────── */
.tmb-cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--tmb-red);
  border: 1px solid var(--tmb-red);
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: 'Oswald', 'Roboto Condensed', Arial, sans-serif;
}
.tmb-cta-secondary:hover {
  background: rgba(224,50,47,.12);
  color: #fff;
  text-decoration: none;
}

/* ── CTA reassurance line ──────────────────────────────────────────────────── */
.tmb-cta-reassure {
  color: var(--tmb-text-mute);
  font-size: 12px;
  margin-top: 10px;
}

/* ── FAQ accordion (faq.php) ───────────────────────────────────────────────── */
.tmb-faq details {
  background: var(--tmb-card);
  border: 1px solid var(--tmb-border);
  border-left: 3px solid var(--tmb-red-deep);
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 0;
}
.tmb-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  color: var(--tmb-heading);
  font-weight: 700;
  font-size: 15px;
  position: relative;
}
.tmb-faq summary::-webkit-details-marker { display: none; }
.tmb-faq summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 14px;
  color: var(--tmb-red);
  font-weight: 700;
  font-size: 18px;
}
.tmb-faq details[open] summary::after { content: '\2212'; }
.tmb-faq details[open] summary { color: var(--tmb-red); }
.tmb-faq .tmb-faq-body {
  padding: 0 18px 16px;
  color: #ccc;
  line-height: 1.75;
  font-size: 14px;
}
.tmb-faq .tmb-faq-body a { color: var(--tmb-red); text-decoration: none; }

/* ── First-steps: numbered step-cards ─────────────────────────────────────── */
.tmb-steps { margin-top: 8px; }
.tmb-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--tmb-card);
  border: 1px solid var(--tmb-border);
  border-left: 3px solid var(--tmb-red-deep);
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.tmb-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tmb-red-deep), var(--tmb-red-bright));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
  font-family: 'Oswald', 'Roboto Condensed', Arial, sans-serif;
}
.tmb-step-body {
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
  padding-top: 5px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tmb-h1   { font-size: 24px; letter-spacing: 1px; }
  .tmb-h2   { font-size: 18px; }
  .tmb-card { padding: 18px 16px; }
  .tmb-grid2 { grid-template-columns: 1fr; gap: 14px; }
  .tmb-cta-secondary { margin-left: 0; margin-top: 12px; }
}
