/*tvfb*//* Al-Hikam al-Ata'iyya — loaded after site.css, qudoori.css and tuhfa.css. Prose hikam (lines, not hemistichs) and the introduction. */
.hk-h { white-space: normal; line-height: 2.1; text-align: justify; text-align-last: start; overflow-wrap: break-word; }
.tf-slide-p.hk-h { text-align: start; }
.ap-card-preview.ar { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hk-aya { color: var(--accent, inherit); }
.hk-h2 { display: flex; justify-content: space-between; align-items: baseline; grid-gap: 1rem; gap: 1rem; margin: 2rem 0 1rem; font-size: 1.25rem; }
.hk-h2 .ar { font-family: var(--font-display, inherit); font-size: 1.5rem; }
.hk-group { border: 1px solid var(--border, #d9d2c3); border-radius: 12px; background: var(--surface, transparent); margin-bottom: .75rem; }
.hk-group > summary { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; grid-gap: 1rem; gap: 1rem; padding: .75rem 1rem; cursor: pointer; list-style: none; font-weight: 600; }
.hk-group > summary::-webkit-details-marker { display: none; }
.hk-group > summary .ar { font-size: 1.35rem; font-family: var(--font-display, inherit); }
.hk-group[open] > summary { border-bottom: 1px solid var(--border, #d9d2c3); }
.hk-sec { padding: .5rem 1rem 1rem; scroll-margin-top: 80px; }
.hk-sec-t { margin: .8rem 0 .3rem; font-family: var(--font-display, inherit); font-size: 1.3rem; color: var(--accent, inherit); }
.hk-intro-p p { margin: .2rem 0 .5rem; font-family: var(--font-display, inherit); font-size: 1.12rem; line-height: 2.1; text-align: justify; overflow-wrap: break-word; }
.hk-src > summary { display: inline-block; cursor: pointer; list-style: none; font-size: .78rem; color: var(--muted, #6b6558); padding: 0 .6rem; border: 1px solid var(--border, #d9d2c3); border-radius: 999px; }
.hk-src > summary::-webkit-details-marker { display: none; }
.hk-src > span { display: block; margin-top: .3rem; font-size: .85rem; line-height: 1.7; color: var(--muted, #6b6558); }
.hk-prev { white-space: normal; }
@media (max-width: 600px) {
  .hk-sec { -webkit-padding-start: .6rem; -webkit-padding-end: .6rem; padding-inline: .6rem; }
  .hk-intro-p p { font-size: 1.05rem; }
}

/* tvfb: flex gap fallback (html.no-flexgap set by compat.js) */
.no-flexgap .hk-h2 > * + * { -webkit-margin-start: 1rem; }
.no-flexgap .hk-group > summary > * + * { -webkit-margin-start: 1rem; }
