/* Loto Pro — public site (copy of Treadmill Link's, Loto colours). No external fonts or scripts (privacy). */
:root {
  --bg: #030712;
  --surface: #111827;
  --line: #1F2937;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --brand: #FFC233;
  --brand-ink: #1A1200;
  --accent: #22D3EE;
  --warn-bg: #3A2E05;
  --warn-line: #8A6D0F;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFDF7;
    --surface: #FFF6DD;
    --line: #EADBB0;
    --text: #111827;
    --muted: #4B5563;
    --brand: #9A6A00;
    --brand-ink: #FFFFFF;
    --accent: #0E7490;
    --warn-bg: #FFF6D6;
    --warn-line: #D9B13B;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top {
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.logo img { width: 30px; height: 30px; flex: none; border-radius: 8px; }

main { padding: 32px 0 48px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 16px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 20px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
}
.draft {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: var(--muted); }

/* Narrow screens: data tables become stacked cards (no sideways scrolling). */
@media (max-width: 560px) {
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td + td { color: var(--muted); font-size: 14px; }
  td:nth-child(2)::before { content: "De unde: "; font-weight: 600; }
  td:nth-child(3)::before { content: "De ce: "; font-weight: 600; }
}

.age { display: inline-block; font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 6px; background: #7F1D1D; color: #FECACA; margin-right: 6px; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 18px 0; }
