/* style.css — «باحة التدريب». Phone first, right to left, large touch targets (min 52px). */
:root {
  --green: #1f4d2b;
  --green-2: #2f6b3c;
  --gold: #d99a2b;
  --cream: #fbf6ec;
  --ink: #22261f;
  --muted: #6b6a60;
  --line: #e4dccb;
  --yellow: #ffd400;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.top {
  position: sticky; top: 0; z-index: 2000; /* above the map and its controls */
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 6px 12px;
  background: var(--green); color: #fff;
}
.brand { font-weight: 700; font-size: 18px; }
.progress { font-size: 15px; opacity: .9; }
.back {
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: inherit; font-size: 16px;
}
main { max-width: 560px; margin: 0 auto; }
.band { width: 100%; aspect-ratio: 16 / 9; background: #c9a46a; overflow: hidden; }
.band video { width: 100%; height: 100%; object-fit: cover; display: block; }
.body { padding: 16px; }
.body.tight { padding-bottom: 6px; }
h1 { font-size: 26px; line-height: 1.35; margin: 4px 0 8px; color: var(--green); }
h2 { font-size: 22px; line-height: 1.4; margin: 4px 0 8px; color: var(--green); }
p { margin: 0 0 10px; }
.lead { font-size: 20px; color: var(--muted); }
button, .btn { font: inherit; cursor: pointer; }
.primary, .secondary, .share {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; margin-top: 12px; padding: 10px 16px;
  border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 19px;
}
.primary { background: var(--green); color: #fff; border: 0; }
.primary:active { background: var(--green-2); }
.primary:disabled { background: #a9b5a6; }
.secondary { background: #fff; color: var(--green); border: 2px solid var(--green); font-size: 16px; font-weight: 600; }
.share { background: #fff; color: var(--green); border: 2px solid var(--gold); }
.row { display: flex; gap: 10px; }
.row .secondary { margin-top: 10px; }
.tag {
  display: inline-block; margin: 2px 0 10px; padding: 2px 12px; border-radius: 999px;
  background: #fff3d6; color: #8a5a00; border: 1px solid var(--gold); font-size: 15px; font-weight: 700;
}
.form label { display: block; margin-bottom: 10px; font-size: 16px; color: var(--muted); }
.form input {
  display: block; width: 100%; min-height: 50px; margin-top: 4px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit;
}
.map { width: 100%; height: 56vh; min-height: 300px; max-height: 520px; background: #c9b48e; }
.stats { display: flex; justify-content: space-between; font-weight: 700; color: var(--green); }
.note { margin-top: 14px; padding: 12px; border-radius: 12px; background: #fff3d6; border: 1px solid var(--gold); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 4px; }
.choice {
  min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  color: var(--ink); font-size: 20px; font-weight: 700;
}
.choice.picked { border-color: var(--green); background: #e7f1e4; color: var(--green); }
.card { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.hint { font-weight: 700; color: var(--green); }
.frow { padding: 8px 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow .name { font-weight: 700; color: var(--green); }
.frow .vals { display: flex; justify-content: space-between; color: var(--muted); font-size: 16px; }
.frow .vals b { color: var(--ink); }
.alert {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: #fff1e6; border: 2px solid #e8590c; color: #7a2e00; font-size: 16px; font-weight: 600;
}
.total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--line); font-weight: 700; color: var(--green); }
/* Labels, corner dots and the notice spot drawn over Google's map (see HtmlMark in app.js). */
.mark { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.mark.flabel {
  direction: rtl; white-space: nowrap; padding: 2px 8px; border-radius: 8px;
  background: rgba(255,255,255,.92); color: var(--green); font-size: 13px; font-weight: 700;
}
.mark.dot { width: 14px; height: 14px; border-radius: 50%; background: #ffd400; border: 2px solid var(--green); }
.mark.spot { width: 30px; height: 30px; border-radius: 50%; background: rgba(232,89,12,.45); border: 3px solid #e8590c; }
/* Keep scrolled-to blocks clear of the sticky top bar (56px). */
#reading, #outsideNote { scroll-margin-top: 66px; }
