:root {
  --bg: #fff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #4caf50;
  --border: #e2e2e2;
  --max-width: 760px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 20px 64px;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
}

main, header, footer { max-width: var(--max-width); margin: 0 auto; }

header { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; }
header h1 { margin: 0 0 4px; font-size: 28px; }
header .lang-switch { font-size: 14px; color: var(--muted); }
header .lang-switch a { color: var(--accent); text-decoration: none; margin-right: 8px; }
header .lang-switch a.active { font-weight: 600; text-decoration: underline; }

h2 { margin-top: 32px; font-size: 20px; }
h3 { font-size: 16px; color: var(--muted); }
p, li { font-size: 15px; }
ul { padding-left: 22px; }
code { background: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-size: 14px; }

footer { margin-top: 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); padding-top: 16px; }

.callout {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}

[dir="rtl"] { text-align: right; }
[dir="rtl"] ul { padding-right: 22px; padding-left: 0; }
[dir="rtl"] .callout { border-left: 0; border-right: 4px solid #f9a825; }
/* Keep inline LTR runs (emails, code spans, URLs) from re-ordering inside RTL text. */
[dir="rtl"] a, [dir="rtl"] code { unicode-bidi: isolate; }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; }
form input, form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
form button {
  background: var(--accent); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 8px; font-size: 15px; cursor: pointer;
}
