:root {
  --ink: #101f35;
  --muted: #3d4c63;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --gold: #c4aa79;
  --gold-ink: #6b4e22;
  --leaf: #1b5b59;
  --line: #e4dccb;
  --red: #9d2c2c;
  --red-soft: #f8e8e4;
  --amber: #7a4e00;
  --amber-soft: #fbf0dc;
  --sage-soft: #e5f0ec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
h1:focus, h2:focus, h1:focus-visible, h2:focus-visible { outline: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: #fff;
  padding: 8px 12px;
  z-index: 6;
}
.skip:focus { top: 8px; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(246, 241, 231, 0.96);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 48px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: 18px; }
.brand small { color: var(--muted); font-size: 13px; font-weight: 600; }
.sos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
main { max-width: 480px; margin: 0 auto; padding: 18px 16px 120px; }
h1, h2, .art-num, .btn, .choice b {
  font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
}
h1 { font-size: 30px; line-height: 1.28; margin: 4px 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0 0 8px; }
.section-title { margin: 22px 0 8px; }
.eyebrow { margin: 0; color: var(--leaf); font-size: 14px; font-weight: 700; }
.lead { margin: 0 0 16px; color: var(--muted); }
.trust, .note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.center { text-align: center; }
.text-link { color: var(--leaf); font-weight: 700; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.btn.red { background: var(--red); }
.choices, .tasks, .card, .link-card, .art-row, .fact, .lvl li { background: var(--paper); }
.choices { display: grid; gap: 10px; }
.choice, .link-card, .art-row, .task {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  text-decoration: none;
}
.choice {
  grid-template-columns: 72px 1fr;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
}
.choice img, .link-card img { width: 72px; height: 72px; }
.choice b, .link-card b, .art-row b { display: block; font-size: 18px; line-height: 1.35; }
.choice span span, .link-card span span, .when, .task small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.choice.urgent, .link-card.urgent { border-color: #e3b2aa; background: var(--red-soft); }
.choice.urgent b, .link-card.urgent b { color: var(--red); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-copy { display: block; }
.hero h1 { font-size: 34px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.mini a {
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.mini img { width: 100%; height: auto; }
.mini .n { display: block; margin: 4px 0; color: var(--leaf); font-size: 12px; }
.link-card, .art-row { grid-template-columns: 64px 1fr; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; }
.art-row img { width: 64px; height: 64px; }
.art-row .num { color: var(--leaf); font-size: 13px; }
.art-row.warn { background: #fff8f6; border-color: #e7c4be; }
.dayhero { padding: 20px; border-radius: 24px; background: var(--ink); color: #fff; }
.dayhero h1, .dayhero p { color: #fff; }
.dayhero .eyebrow { color: #d7c39a; }
.dayhero p { margin: 0; color: #d5dbe6; font-size: 15px; }
.bar { height: 8px; margin-top: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.bar i { display: block; height: 100%; background: #d7c39a; }
.bar-label { margin-top: 8px; color: #efe6d4; font-size: 13px; font-weight: 700; }
.slot { margin-top: 18px; }
.tasks { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.task { grid-template-columns: 52px 1fr auto; padding: 12px; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task img { width: 52px; height: 52px; }
.task a { text-decoration: none; font-weight: 700; }
.tick {
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.tick.on { background: var(--leaf); border-color: var(--leaf); }
.tick.on::after {
  content: "";
  display: block;
  width: 12px;
  height: 7px;
  margin: 12px auto 0;
  border: 3px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
.dots { display: flex; gap: 6px; }
.dots .tick { width: 36px; height: 36px; border-radius: 50%; }
.normal, .card, .life { margin-top: 16px; padding: 16px; border-radius: 20px; }
.normal { background: var(--sage-soft); }
.normal h2, .life h2 { color: var(--leaf); }
.normal ul, .plain { margin: 0; padding-inline-start: 18px; }
.card { border: 1px solid var(--line); }
.chip { display: inline-flex; margin-inline-end: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.dr { background: var(--sage-soft); color: var(--leaf); }
.chip.gap { background: var(--amber-soft); color: var(--amber); }
.chip.ov { background: #f6ead8; color: var(--gold-ink); }
.part { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.article .art-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.article .art-hero img { width: 112px; height: 112px; }
.art-num { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }
.article h1 { font-size: 26px; margin: 0; }
.facts { display: grid; gap: 10px; margin-top: 14px; }
.fact { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.fact b { display: block; margin-bottom: 4px; color: var(--leaf); }
.fact p, .why { margin: 0; }
.how ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; }
.how li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.how li::before { content: counter(step, arabic-indic); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sage-soft); color: var(--leaf); font-weight: 800; }
.stop { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--red-soft); color: #6e221c; font-weight: 700; }
.stop.orange { background: var(--amber-soft); color: var(--amber); }
.why { margin-top: 12px; color: var(--muted); }
.strip { margin: 14px 0 0; }
.scroll { overflow: visible; border-radius: 18px; }
.strip img { width: 100%; max-width: 100%; height: auto; display: block; }
.strip figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flag-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
}
.flag-call img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.lvl { margin-top: 14px; padding: 14px; border: 2px solid; border-radius: 20px; }
.lvl h2 { font-size: 22px; }
.lvl ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lvl li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; font-weight: 650; }
.lvl li img { width: 48px; height: 48px; }
.lvl.red { border-color: var(--red); background: var(--red-soft); }
.lvl.red h2 { color: var(--red); }
.lvl.orange { border-color: #d9a24a; background: var(--amber-soft); }
.lvl.orange h2 { color: var(--amber); }
.lvl.green { border-color: #9cc9b6; background: var(--sage-soft); }
.lvl.green h2 { color: var(--leaf); }
.field, form label, fieldset { display: grid; gap: 6px; margin-top: 12px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}
.scale button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.check input { width: 24px; height: 24px; }
.summary { white-space: pre-wrap; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font: inherit; }
.shop-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.shop-row:first-child { border-top: 0; }
.shop-row a { color: var(--leaf); font-weight: 800; text-decoration: none; }
.shop-row em { color: var(--muted); font-size: 13px; font-style: normal; }
.faq { margin-top: 16px; }
.faq p { margin: 10px 0; }
.tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.tabs svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--leaf); background: var(--sage-soft); }
.print-wrap { margin: 0 auto; }
.sheet {
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
}
.sheet h1 { margin: 0; color: #111; font-size: 20px; }
.sheet h2 { margin: 8px 0 4px; color: var(--leaf); font-size: 13px; }
.sh-head, .sh-foot, .sh-sub { display: flex; justify-content: space-between; gap: 8px; }
.sh-head { align-items: flex-end; padding-bottom: 4px; border-bottom: 2.5px solid var(--ink); }
.sh-head p, .sh-foot, .sh-sub { margin: 4px 0; color: #444; font-size: 11px; }
.sh-flag-row, .sh-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sh-art, .sh-flag-row section, .sh-grid { min-width: 0; }
.sh-art b, .sh-art i, .chk td { overflow-wrap: anywhere; }
.sh-flag-row section { padding: 6px 8px; border: 1.5px solid var(--red); border-radius: 8px; background: #fdf1ef; }
.sh-flag-row .orange { border-color: #d9a24a; background: #fdf6e8; }
.sh-flag-row ul, .sh-flags ul { margin: 4px 0 0; padding-inline-start: 14px; }
.sh-art { display: grid; grid-template-columns: 28px 1fr; gap: 4px; align-items: start; padding: 3px; border: 1px solid #e6e0d4; border-radius: 6px; }
.sh-art img { width: 28px; height: 28px; }
.sh-art p { margin: 0; }
.sh-art b { display: block; font-size: 11px; }
.sh-art i { color: #444; font-size: 10px; font-style: normal; }
.sh-art.key { border-color: var(--leaf); background: #f3f8f6; }
.sh-grid.tiny { grid-template-columns: 1fr 1fr; }
.chk { width: 100%; border-collapse: collapse; margin-top: 4px; display: block; overflow-x: auto; }
.chk th, .chk td { border: 1px solid #cfc6b4; padding: 2px 3px; text-align: center; font-size: 10px; }
.chk td:first-child, .chk th:first-child { text-align: right; }
.chk td.slot { background: #f3efe6; font-weight: 700; text-align: right; }
.sh-call { margin: 8px 0; color: var(--red); font-size: 32px; font-weight: 800; }
.sh-flags { margin-top: 8px; padding: 8px; border: 2px solid var(--red); border-radius: 10px; }
.sh-flags.orange { border-color: #d9a24a; }
.sh-flags.green { border-color: #9cc9b6; }
@media (max-width: 380px) {
  h1, .hero h1 { font-size: 28px; }
  .choice { grid-template-columns: 60px 1fr; }
  .choice img { width: 60px; height: 60px; }
  .mini { gap: 6px; }
}
@media print {
  @page { size: A4; margin: 8mm 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  .no-print, .top, .tabs, .skip { display: none !important; position: static !important; }
  main { max-width: none; margin: 0; padding: 0; }
  main > *:not(.print-wrap) { display: none !important; }
  .sheet, .sheet * { position: static !important; }
  .sheet { width: auto; padding: 0; font-size: 8pt; line-height: 1.25; }
  .sheet h1 { font-size: 15pt; }
  .sheet h2 { font-size: 9.5pt; margin: 4pt 0 2pt; }
  .sh-flag-row, .sh-grid { grid-template-columns: 1fr 1fr; gap: 3pt; }
  .sh-grid.tiny { grid-template-columns: 1fr 1fr 1fr; }
  .chk { display: table; overflow: visible; }
  .sh-art { padding: 2pt; }
  .sh-art img { width: 18pt; height: 18pt; }
  .sh-art { break-inside: avoid; }
  .chk th, .chk td { font-size: 7.4pt; padding: 1px 2px; }
}
