/* MAF #KlangBerlari: shared brand tokens (black, red, white from the MAF Runners logo). */
:root {
  --ink: #0b0b0b;
  --ink-2: #2b2a28;
  --muted: #5f5d58;
  --faint: #8d8a83;
  --line: #e3e1dc;
  --line-2: #efeeea;
  --bg: #f4f3f1;
  --paper: #ffffff;
  --red: #e82024;
  --red-ink: #c4161b;      /* red text on white: 5.3:1 */
  --red-soft: #fdecec;
  --good: #1e7a46;
  --good-soft: #e7f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .05);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: .01em; }
a { color: var(--red-ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(232, 32, 36, .45); outline-offset: 2px; }

/* Black brand bar with a red heartbeat line, echoing the logo. */
.brandbar { background: var(--ink); color: #fff; position: relative; }
.brandbar-inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1180px; margin: 0 auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.brand-text { flex: 1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.brand-name span { color: var(--red); }
.brand-slogan { font-size: 12px; color: #c9c6bf; letter-spacing: .04em; margin-top: 3px; }
.pulse {
  height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpolyline points='0,10 46,10 50,10 54,2 58,13 62,6 65,10 120,10' fill='none' stroke='%23e82024' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/240px 14px repeat-x,
    var(--ink);
}

.lang-toggle {
  border: 1.5px solid #fff; background: transparent; color: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; cursor: pointer; min-height: 36px;
}
.lang-toggle:hover { background: #fff; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px;
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff; transition: transform .05s, background .15s;
}
.btn:hover { background: var(--red-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.wa { background: #1f9d55; }
.btn.wa:hover { background: #17834a; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.linkbtn { background: none; border: 0; color: var(--red-ink); font-weight: 600; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px; min-height: 48px;
  background: #fff; font-size: 16px;
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(11, 11, 11, .08); }
.input.invalid { border-color: var(--bad); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.err { color: var(--bad); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin-top: 1px; }

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); letter-spacing: .02em; }
.badge.late { background: var(--warn-soft); color: var(--warn); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.red { background: var(--red-soft); color: var(--red-ink); }
.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.alert.err { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
