/* ============================================================
   LottoIQ — Blog (index + posts)
   Built on tokens.css + site-nav.css (shared nav/footer).
   ============================================================ */

main.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

/* ---------- Post list ---------- */
.post-list-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin: 0 0 8px;
}
.post-list-header p { color: var(--text-muted); max-width: 560px; line-height: 1.6; margin: 0; }

.post-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.post-card a {
  display: flex;
  gap: 18px;
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s ease;
}
.post-card a:hover, .post-card a:focus-visible { border-color: var(--gold-bd); }
.post-card-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.post-card-body h2 {
  font-family: var(--font-display);
  margin: 4px 0 6px;
  font-size: 1.1rem;
  color: var(--text);
}
.post-category {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin: 0;
}
.post-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 6px; }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }

@media (max-width: 600px) {
  .post-card a { flex-direction: column; }
  .post-card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---------- Single post ---------- */
.post-back a { color: var(--text-muted); font-size: 0.9rem; }
.post-back a:hover { color: var(--gold); }

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.25;
  margin: 8px 0 6px;
}
.post-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  display: block;
}
.post-body { max-width: 700px; line-height: 1.7; }
.post-body h2 { font-family: var(--font-display); color: var(--text); margin-top: 2em; }
.post-body h3 { font-family: var(--font-display); color: var(--text); }
.post-body p, .post-body li { color: var(--text-muted); }
.post-body strong { color: var(--text); }
.post-body a { color: var(--gold); border-bottom: 1px solid var(--gold-bd); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--navy-3); padding: 8px 12px; text-align: left; }
.post-body code { font-family: var(--font-mono); background: var(--navy-2); padding: 1px 5px; border-radius: 4px; }

.honest-part {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--navy-2);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.honest-part h2 { margin-top: 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.honest-part p { color: var(--text-muted); line-height: 1.65; }

.post-disclaimer {
  margin-top: 30px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Disclaimer line above the footer ---------- */
.trust-line {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}
.trust-line a { color: var(--gold); }
