/* Sirran story: an ink-and-parchment zakat ledger page with a restrained nisab-gold accent,
   a four-cell equation strip, a ruled four-step guide, side-by-side scholarly positions,
   a responsive comparison table, and sharp 4px ledger frames. Chromium 67 safe CSS only. */
@font-face {
  font-family: 'SR Body';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'SR Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-sirran {
  --head: 'SR Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'SR Body', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #1A2033;
  --bar: rgba(10, 13, 20, .94);
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .17);
  --text: #EEF1F7;
  --text-2: #B7C1D4;
  --muted: #919DB3;
  --accent: #D4AD3E;
  --accent-ink: #140F03;
  --accent-soft: rgba(212, 173, 62, .13);
  --sr-slate: #9FB0BF;
  --sr-terracotta: #DF7B5E;
  --live: #34D399;
}

@media (prefers-color-scheme: light) {
  body.page-sirran {
    --bg: #0A0D14;
    --surface: #121726;
    --raised: #1A2033;
    --bar: rgba(10, 13, 20, .94);
    --hair: rgba(255, 255, 255, .09);
    --hair-2: rgba(255, 255, 255, .17);
    --text: #EEF1F7;
    --text-2: #B7C1D4;
    --muted: #919DB3;
    --live: #34D399;
  }
}

/* Frame and reading column */
.page-sirran main { padding-bottom: 52px; }
.page-sirran main .wrap { max-width: 820px; }
.page-sirran main > .wrap:first-child { padding-top: 40px; }
.page-sirran .crumb { margin: 0 0 28px; font-size: 14px; }
.page-sirran .crumb a { color: var(--muted); text-decoration: none; }
.page-sirran .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-sirran .crumb a:hover { color: var(--accent); }
.page-sirran .story-app { margin-bottom: 36px; }
.page-sirran main strong { color: var(--text); font-weight: 600; }
.page-sirran main p:not(.crumb) a:not(.btn),
.page-sirran main li a {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.page-sirran main p:not(.crumb) a:not(.btn):hover,
.page-sirran main li a:hover { color: var(--accent); }

/* Hero and equation strip */
.sr-hero {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--hair-2);
}
.sr-eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sr-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}
.sr-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}
.sr-formula {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
}
.sr-formula li {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.sr-formula strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--head);
  font-size: 15px;
  color: var(--text);
}
.sr-formula li:last-child {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.sr-formula li:last-child strong { color: var(--accent); }

/* Sections and headings */
.sr-sec { padding-top: 40px; }
.sr-sec h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.24;
}
.sr-sec h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.sr-sec p {
  margin: 0 0 18px;
  color: var(--text-2);
  line-height: 1.66;
}

/* Ledger step sequence */
.sr-steps {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  counter-reset: srstep;
  border-left: 2px solid var(--hair-2);
}
.sr-steps li {
  position: relative;
  counter-increment: srstep;
  margin: 0 0 16px 18px;
  padding: 16px 18px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}
.sr-steps li:last-child { margin-bottom: 0; }
.sr-steps li:before {
  content: "0" counter(srstep);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 36px;
  height: 28px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 13px/26px var(--head);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sr-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 17px;
}

/* Side-by-side scholarly quotes */
.sr-split {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  margin: 20px 0 24px;
}
.sr-quote-card {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.sr-quote-card.sr-quote-alt { border-left-color: var(--sr-slate); }
.sr-quote-label {
  margin: 0 0 8px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sr-quote-alt .sr-quote-label { color: var(--sr-slate); }
.sr-quote-card blockquote {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
}
.sr-quote-card cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* Ruled ledger table */
.sr-table-wrap {
  margin: 20px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 4px;
}
.sr-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
}
.sr-table caption {
  padding: 12px 14px;
  text-align: left;
  font: 600 14px/1.4 var(--head);
  color: var(--text);
  background: var(--accent-soft);
  border-bottom: 2px solid var(--accent);
}
.sr-table th,
.sr-table td {
  padding: 11px 14px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}
.sr-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sr-table tbody th {
  color: var(--text);
  font-weight: 600;
}
.sr-table td { color: var(--text-2); }

/* Bullet lists (app features & limits) */
.sr-list,
.sr-limits ul {
  list-style: none;
  margin: 12px 0 22px;
  padding: 0;
}
.sr-list li,
.sr-limits li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}
.sr-list li:last-child,
.sr-limits li:last-child { margin-bottom: 0; }
.sr-list li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* Screenshots: two side by side, then one solo */
.sr-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  margin: 26px auto 28px;
  max-width: 270px;
}
.sr-pair figure { margin: 0; text-align: center; }
.sr-solo {
  margin: 26px auto 28px;
  max-width: 270px;
  text-align: center;
}
.sr-pair img,
.sr-solo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--hair-2);
}
.sr-pair figcaption,
.sr-solo figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--muted);
  text-align: left;
}

/* Honest limits and what was not checked */
.sr-limits {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--sr-terracotta);
  border-radius: 4px;
}
.sr-limits h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--text);
}
.sr-limits h3 {
  margin: 22px 0 12px;
  font-size: 18px;
  color: var(--sr-terracotta);
}
.sr-limits p {
  margin: 0 0 16px;
  color: var(--text-2);
}
.sr-limits li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: .65em;
  width: 7px;
  height: 7px;
  background: var(--sr-terracotta);
}

/* Closing row */
.sr-end { margin: 38px 0 8px; }
.sr-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-sirran .sr-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .sr-table { min-width: 0; font-size: 13px; }
  .sr-table caption { padding: 10px 8px; font-size: 13px; }
  .sr-table th,
  .sr-table td { min-width: 0; padding: 8px 6px; }
  .sr-table thead th { font-size: 11px; }
  .sr-table tbody th { white-space: nowrap; }
  .sr-steps { border-left: 0; }
  .sr-steps li { margin-left: 0; padding: 14px 14px 14px 58px; }
  .sr-steps li:before { left: 12px; top: 14px; }
  .sr-limits { padding: 20px 18px; }
}

@media (min-width: 640px) {
  .sr-formula {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
  }
  .sr-split {
    grid-template-columns: 1fr 1fr;
    grid-gap: 16px;
  }
  .sr-pair {
    grid-template-columns: 270px 270px;
    max-width: 572px;
    grid-gap: 32px;
  }
}

@media (min-width: 900px) {
  .page-sirran main > .wrap:first-child { padding-top: 64px; }
  .sr-hero { padding-bottom: 40px; }
  .sr-hero h1 { font-size: 42px; }
  .sr-lead { font-size: 20px; }
  .sr-sec { padding-top: 56px; }
  .sr-sec h2 { font-size: 28px; }
  .sr-limits { padding: 28px 26px; }
}
