:root {
  --bg: #f7f3ea;
  --surface: #ffffff;
  --text: #17203a;
  --muted: #5b6378;
  --line: #e4dccb;
  --accent: #9a6a12;
  --accent-soft: #f4ce80;
  --night: #0a1636;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1636;
    --surface: #111f45;
    --text: #eef1f8;
    --muted: #aab3c9;
    --line: #22325e;
    --accent: #f4ce80;
    --accent-soft: #f4ce80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header.site a.home { color: var(--text); text-decoration: none; font-weight: 600; }
header.site nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); }
main { padding: 32px 0 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.hero { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 6px 24px rgba(10, 22, 54, 0.25); }
.hero .ar { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; font-style: normal; font-size: 1.4rem; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.card h2, .card h3 { margin-top: 0; }
.apps { display: grid; gap: 14px; }
.app { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.app img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app strong { display: block; font-size: 1.1rem; }
.badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--night); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 12px; }
.grid2 .card { margin: 0; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 4px; }
footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (max-width: 520px) {
  h1 { font-size: 1.6rem; }
  .hero { flex-direction: column; align-items: flex-start; }
  header.site .wrap { flex-direction: column; align-items: flex-start; }
}
