/* كتبي (student/books.js) in the navy design: the mushaf the reading room opens first as its own card, then his books as
   rows in a card, each with a cover in its section's colour (--sp and the rows' look from shelf.css); what the sheikh
   sent under «من الشيخ» with his word in a soft box. Then the book view's poem on the phone. */
.bk-browse { gap: 22px; }
.bk-group { gap: 12px; }
.bk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px; }
.bk-h h2 { margin: 0; font-size: var(--text-lg); font-weight: 700; line-height: 1.35; }
.bk-h small { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }

/* a book's cover: its section's colour, a spine, a book drawn in gold */
.bk-list a.sf-book::before, .bk-mushaf .sf-book::before { content: ""; position: absolute; inset-inline-start: 14px; border-radius: 4px 8px 8px 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4E7C8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3.5 5v13.5c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5zM12 6.5V20'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--sp) 70%, #FFFFFF), var(--sp));
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .18), 0 6px 12px -8px rgba(16, 27, 58, .5); }

/* the mushaf: a large cover, a gold frame and medallion */
.bk-mushaf .sf-books { display: block; }
.bk-mushaf .sf-book { position: relative; min-height: 163px; justify-content: center; gap: 5px; padding: 14px; padding-inline-start: 122px; border-radius: 20px; }
.bk-mushaf .sf-book::before { top: 14px; width: 92px; height: 135px; border-radius: 6px 10px 10px 6px;
  background: radial-gradient(circle, transparent 0 11px, #E9C77D 11.5px 13px, transparent 13.5px), linear-gradient(160deg, color-mix(in srgb, var(--sp) 78%, #FFFFFF), var(--sp));
  box-shadow: inset 0 0 0 7px var(--sp), inset 0 0 0 8.5px #E9C77D, inset -5px 0 0 rgba(0, 0, 0, .2), 0 10px 22px -12px rgba(16, 27, 58, .45); }
.bk-mushaf .sf-book b { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.bk-mushaf .sf-book small { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.sf-book .chip.bk-first { order: -1; margin: 0 0 2px; }

/* his books as rows in one card */
.card.bk-card { gap: 0; padding: 0; overflow: hidden; }
.bk-list.sf-books { display: flex; flex-direction: column; gap: 0; }
.bk-list > li + li { border-top: 1px solid var(--line); }
.bk-list .sf-book { position: relative; height: auto; min-height: 80px; justify-content: center; gap: 2px; padding: 13px 16px; padding-inline-start: 68px; border-radius: 0; background: none; box-shadow: none; transition: background-color 150ms ease-out; }
.bk-list a.sf-book { padding-inline-end: 40px; }
.bk-list a.sf-book::before { top: 50%; width: 40px; height: 54px; margin-top: -27px; }
.bk-list a.sf-book::after { content: ""; position: absolute; top: 50%; inset-inline-end: 14px; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7AFC4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.bk-list .sf-book b { font-size: var(--text-base); font-weight: 700; line-height: 1.45; }
.bk-list .sf-book small { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.bk-list a.sf-book:hover { box-shadow: none; }
.bk-list a.sf-book:active { background: var(--navy-wash); }
.bk-sub { margin: 0; padding: 12px 16px 2px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-3); }
.card.bk-card > .bk-more { width: 100%; min-height: 52px; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-weight: 700; color: var(--brand); }
.bk-list .sf-at, .bk-mushaf .sf-at { display: inline-flex; align-items: center; height: 28px; margin-top: 6px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; line-height: 1; }
.sf-book .chip { align-self: flex-start; margin-top: 4px; }   /* «تسمّعها أثناء القراءة» */

/* what the sheikh sent: his word, the date; a file opens by its button */
.bk-sent a.sf-book::before { top: 14px; margin-top: 0; }
.bk-sent a.sf-book::after { top: 30px; margin-top: 0; }
.bk-sent div.sf-book::before { content: ""; position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: var(--radius-md);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E") center / 19px no-repeat var(--brand-soft); }
.bk-sent .sf-book { justify-content: flex-start; }
.bk-list .sf-said { display: block; margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--fill); font-size: var(--text-md); line-height: 1.55; color: var(--ink); }
.bk-list .sf-said small { display: block; margin-bottom: 2px; font-size: var(--text-xs); font-weight: 700; line-height: 1.2; color: var(--ink-3); }
.bk-open.btn { align-self: flex-start; height: 36px; margin-top: 8px; padding: 0 14px; background: var(--brand-soft); box-shadow: none; color: var(--brand); font-size: 13.5px; }
.bk-audio { width: 100%; margin-top: 8px; }
.bk-none { padding: 16px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); line-height: 1.6; }

@media (hover: hover) and (pointer: fine) { .bk-list a.sf-book:hover { background: var(--navy-wash); } }

/* a poem in the book view (lib/mutoon.js) on the phone: the halves stack; sheikh/library.css has the laptop version */
.mt { display: flex; flex-direction: column; }
.mt-head h2 { margin: 0; font-family: var(--quran); font-size: var(--text-xl); font-weight: 700; line-height: 1.6; color: var(--brand); }
.mt-head p { margin: 2px 0 0; font-size: var(--text-md); color: var(--ink-2); }
.mt-head a { color: var(--brand); }
.mt-head .mt-partial { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber); }
.mt-lines { display: flex; flex-direction: column; margin-top: 10px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.mt-ch { margin: 14px 0 4px; padding: 6px 10px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); font-family: var(--quran); font-size: var(--text-lg); font-weight: 700; line-height: 1.6; text-align: center; }
.mt-line { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-family: var(--quran); font-size: var(--text-xl); line-height: 1.8; }
.mt-line:last-child { border-bottom: 0; }
.mt-a { grid-column: 2; padding-inline-start: 24px; }
.mt-n { min-width: 30px; font-family: var(--ui); font-size: var(--text-sm); color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.mt-here { animation: mt-here 2.4s ease-out; }
@keyframes mt-here { from { background: var(--gold); } to { background: transparent; } }
.mt-line:focus { outline: none; }
.mt-wait { margin: 12px 0; font-size: var(--text-base); color: var(--ink-2); }
.mt-err { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--danger); }
.mt-err p { margin: 0; }

/* «الختمة القرآنية» (student/listen.js): the card first in «كتبي», the sheikh's word under its title, his next session's
   surah as the main button, then a search and the 114 surahs as an index that scrolls in the card; the player is a sheet */
.ls-card.card { gap: 12px; padding: 16px; }
.ls-head { display: flex; align-items: center; gap: 12px; }
.ls-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-navy); }
.ls-head b { display: block; font-size: var(--text-lg); font-weight: 800; }
.ls-head small { display: block; font-size: 13.5px; color: var(--ink-3); }
.ls-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--gold); color: var(--gold-ink); font-size: var(--text-base); font-weight: 700; line-height: 1.5; }
.ls-note svg { flex: none; }
.btn.ls-go { height: auto; min-height: 56px; justify-content: flex-start; gap: 12px; padding: 8px 16px; border-radius: var(--radius-lg); text-align: start; }
.ls-go span { display: flex; flex-direction: column; font-size: var(--text-base); font-weight: 700; }
.ls-go small { font-size: 13px; font-weight: 500; opacity: .82; }
.ls-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink-3); }
.ls-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); }
.ls-list { list-style: none; margin: 0 -16px -16px; padding: 0; max-height: min(420px, 55dvh); overflow-y: auto; border-top: 1px solid var(--line); }
.ls-list > li + li { border-top: 1px solid var(--line); }
.ls-row { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border: 0; background: none; color: var(--ink); text-align: start; }
.ls-row b { flex: 1; font-size: var(--text-base); font-weight: 700; }
.ls-row > svg { flex: none; color: var(--navy-2); }
.ls-row:active { background: var(--navy-wash); }
.ls-row.ls-mine { background: var(--navy-wash); }
.ls-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.ls-none { padding: 18px 16px; color: var(--ink-3); text-align: center; }
@media (hover: hover) and (pointer: fine) { .ls-row:hover { background: var(--navy-wash); } }
/* the player */
.ls-sheet.sheet { width: min(720px, 100%); gap: 14px; }
.ls-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ls-top p { margin: 2px 0 0; font-size: var(--text-md); }
.ls-x { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); }
.ls-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0B1534; }
.ls-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ls-steps { display: flex; justify-content: space-between; gap: 8px; }
.ls-step.btn { min-height: 44px; padding: 0 14px; font-size: var(--text-md); }
