/* ---------- ayah library ---------- */
.actions { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.actions button { font-size: 11.5px; padding: 9px 2px; }
.lib-groups { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 2px 16px; border-bottom: 1px solid var(--line); }
.lib-groups::-webkit-scrollbar { display: none; }
.lib-groups button { flex: none; padding: 8px 10px 10px; font-size: 14.5px; color: var(--ink-3); border-bottom: 2.5px solid transparent; }
.lib-groups button.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--gold); }
.lib-book { font-size: 12.5px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.tafsir hr { border: 0; border-top: 1px dashed var(--line); margin: 1em 0; }
.stack { margin-bottom: 16px; }
.stack h4, .sayings h4 { font-family: "Amiri", serif; font-size: 17px; color: var(--accent); margin: 4px 0 6px; }
.sayings h4 small { font-family: "Naskh", serif; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.sayings blockquote { position: relative; margin: 0 0 10px; padding: 10px 12px; padding-inline-start: 40px; background: var(--paper-2); border-radius: 12px; border-inline-start: 3px solid var(--gold-2); }
.sayings .n { position: absolute; inset-inline-start: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.takhrij { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.words { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.word-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.word-row:last-child { border-bottom: 0; }
.word-row .q { font-size: 21px; }

/* a dot on «أسباب النزول» / «المعاني» when this ayah has them */
.actions button { position: relative; }
.actions button.has::after { content: ""; position: absolute; top: 7px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--note); box-shadow: 0 0 0 2px var(--paper-2); }
.asbab-more { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); }
.asbab-more .hint { margin: 0 0 8px; }
