/* dawaistock.com: the app's colors (dawaiStock-app packages/design_system app_palette.dart), light and dark.
   System fonts only: nothing is loaded from anywhere else. */
:root {
  --page: #f5f7fa;      /* slate25 */
  --surface: #ffffff;
  --brand: #0e9384;     /* teal600 */
  --brand-dark: #107569;/* teal700 */
  --tint: #f0fdf9;      /* teal50 */
  --ink: #0f172a;       /* slate900 */
  --ink-muted: #5b6b7f; /* slate500 */
  --line: #e3e8ef;      /* slate100 */
  --draft: #fef0c7;
  --draft-line: #dc6803;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1014;      /* ink950 */
    --surface: #131a20;   /* ink900 */
    --brand: #2ed3b7;     /* teal400 */
    --brand-dark: #5fe9d0;/* teal300 */
    --tint: #0a2926;      /* teal950 */
    --ink: #e6edf3;       /* ink100 */
    --ink-muted: #94a3b8; /* slate400 */
    --line: #2a3640;      /* ink800 */
    --draft: #4e1d09;
    --draft-line: #f79009;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
:lang(ar) body, body:lang(ar) { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }
/* An English body inside an Arabic page keeps the Latin font. */
.content:lang(en) { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.top, main, footer { max-width: 44rem; margin: 0 auto; padding-inline: 1rem; }

.top { padding-block: 0.75rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 800; font-size: 1.2rem; text-decoration: none;
}
.brand img { display: block; border-radius: 9px; }

main { padding-bottom: 2rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; }

a { color: var(--brand-dark); text-underline-offset: 0.15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

p, ul, ol { margin: 0 0 0.9rem; }
ul, ol { padding-inline-start: 1.4rem; }
li { margin-bottom: 0.35rem; }

.notice {
  background: var(--tint); border-inline-start: 4px solid var(--brand);
  border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.95rem;
}
.notice-draft { background: var(--draft); border-color: var(--draft-line); font-weight: 700; }
.updated { color: var(--ink-muted); font-size: 0.95rem; }
mark.todo { background: #ffe08a; color: #0f172a; padding: 0 0.25rem; border-radius: 4px; font-weight: 700; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.1rem; margin: 1rem 0;
}

/* Help page: one tappable question per row. */
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  margin: 0.6rem 0; padding: 0 1rem;
}
summary {
  cursor: pointer; font-weight: 700; padding: 0.85rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details > :last-child { padding-bottom: 0.9rem; margin-bottom: 0; }

.hero { text-align: center; margin: 0.5rem 0 0; }
.hero img { border-radius: 26px; height: auto; }
.page-home .content h1 { text-align: center; margin-top: 0.75rem; }
.lead { font-size: 1.15rem; text-align: center; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.5rem 0; padding: 0; }
.buttons a {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none;
  padding: 0.7rem 1.2rem; border-radius: 999px; min-height: 44px;
}
@media (prefers-color-scheme: dark) { .buttons a { color: #0a2926; } }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0.5rem 0 1rem; }
th, td { text-align: start; vertical-align: top; padding: 0.5rem; border-bottom: 1px solid var(--line); }
th { background: var(--tint); }
.table-wrap { overflow-x: auto; }

footer { border-top: 1px solid var(--line); padding-block: 1.25rem 2rem; font-size: 0.95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.6rem 0; }
footer nav a { display: inline-block; padding-block: 0.3rem; }
footer a[aria-current] { color: var(--ink); font-weight: 800; text-decoration: none; }
.small { color: var(--ink-muted); font-size: 0.9rem; }

@media (min-width: 40rem) {
  h1 { font-size: 2.1rem; }
}
