/* Treadmill Link — public site. No external fonts or scripts (privacy). */
:root {
  --bg: #0A0F05;
  --surface: #141D05;
  --line: #2E420C;
  --text: #EEF3E6;
  --muted: #A9B59A;
  --brand: #B6F23E;
  --brand-ink: #0A0F05;
  --accent: #22D3EE;
  --warn-bg: #3A2E05;
  --warn-line: #8A6D0F;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FBFDF6;
    --surface: #F1F7E2;
    --line: #D9E6BC;
    --text: #141D05;
    --muted: #4F5E3C;
    --brand: #74A315;
    --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 svg { width: 30px; height: 30px; flex: none; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }

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); }

/* Language: both texts are in the page; the inactive one is hidden. Without JS, Romanian shows. */
html[data-lang="ro"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ro"]:not(html) { display: none !important; }

/* 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; }
  [lang="ro"] td:nth-child(2)::before { content: "De unde: "; font-weight: 600; }
  [lang="ro"] td:nth-child(3)::before { content: "De ce: "; font-weight: 600; }
  [lang="en"] td:nth-child(2)::before { content: "Source: "; font-weight: 600; }
  [lang="en"] td:nth-child(3)::before { content: "Why: "; font-weight: 600; }
}
