/* The rakat pages, one per prayer (how-many-rakats-in-*.html), each under
   its prayer's sky (prayer-times.css). The table matches the rakat chart
   page's. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The five prayers, as pills */
.rk-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.rk-nav a { font-size: 14px; font-weight: 800; color: var(--ink-dim); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.rk-nav a:hover { text-decoration: none; border-color: var(--line-strong); }
.rk-nav a[aria-current="page"] { color: var(--button-ink); background: var(--button); border-color: var(--button); }

/* The answer, first */
.doc .rk-answer { margin: 10px 0 0; padding: 16px 18px; font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--gold-dim); border-left: 4px solid var(--amber); border-radius: 0 16px 16px 0; }
.doc .rk-answer strong { font-weight: 900; }

/* The table */
.rakat-wrap { overflow-x: auto; margin: 20px 0 8px; }
table.rakat { width: 100%; min-width: 440px; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
table.rakat thead th { font-size: 13.5px; font-weight: 800; color: var(--ink-faint); text-align: center; padding: 0 6px 4px; }
table.rakat th[scope="row"] { background: var(--raised); text-align: left; padding: 12px 10px 12px 16px; border-radius: 14px 0 0 14px; font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
table.rakat td { background: var(--raised); padding: 12px 10px; text-align: center; font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
table.rakat td:last-child { border-radius: 0 14px 14px 0; }
table.rakat td.fard { color: var(--button-ink); background: var(--button); }
table.rakat td.none { color: var(--ink-faint); font-weight: 600; }
@media (max-width: 560px) { table.rakat { min-width: 0; } table.rakat td { font-size: 15px; padding: 10px 6px; } table.rakat th[scope="row"] { font-size: 13px; padding-left: 10px; white-space: normal; } table.rakat thead th { font-size: 12px; } }

/* The order to pray in */
.rk-order { list-style: none; counter-reset: rk; margin: 12px 0 0; padding: 0 !important; display: grid; gap: 8px; }
.doc .rk-order li { counter-increment: rk; margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 11px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; font-weight: 800; color: var(--ink); }
.rk-order li::before { content: counter(rk); flex: none; width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; align-self: center; border-radius: 50%; font-size: 13px; color: var(--button-ink); background: var(--button); }
.doc .rk-order li.opt { font-weight: 700; color: var(--ink-dim); background: transparent; border-style: dashed; }
.rk-order li.opt::before { color: var(--ink); background: var(--gold-dim); }
.rk-order li span { font-size: 13.5px; font-weight: 700; color: var(--ink-faint); }

.doc .rk-more { margin-top: 22px; }
