/* ---------- the Speciality Hub (js/speciality.js, 11 Oct 2026): every rule is scoped to its own sp classes, so no
   approved screen changes. The shelves, covers and book pages reuse the library's (css/parent.css). ---------- */

/* the first visit: one card that says what the hub is, with Choose your speciality */
.sphero{margin-top:22px;padding:26px 22px 22px;display:flex;flex-direction:column;align-items:center;text-align:center}
.sphero-ic{width:64px;height:64px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 1px 2px rgba(12,12,12,.05),0 6px 16px rgba(19,83,51,.14)}
.sphero b{margin-top:14px;font-size:20px;line-height:26px;font-weight:700;color:var(--ink)}
.sphero p{margin:6px 0 18px;font-size:15px;line-height:22px;color:var(--sub);max-width:340px}

/* a speciality in the hub */
.spcards{display:flex;flex-direction:column;gap:10px}
.spcard{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;text-align:start;color:var(--ink);transition:transform .12s}
.spcard:active{transform:scale(.985)}
.spcard-ic,.sphd-ic{flex:none;width:48px;height:48px;border-radius:16px;background:var(--green-soft);display:grid;place-items:center}
.spcard-t{flex:1;min-width:0;display:flex;flex-direction:column}
.spcard-t b{font-size:17px;line-height:23px;font-weight:700;overflow-wrap:anywhere}
.spcard-t span{font-size:14px;line-height:19px;color:var(--sub);margin-top:1px}
.spcard-t .spcard-n{color:var(--green);font-weight:600;margin-top:4px}
.spcard > svg{flex:none}
[dir="rtl"] .spcard > svg{transform:scaleX(-1)}

/* a speciality's own page: its heading, AX suggestions, then each section's shelf */
.sphd{display:flex;align-items:center;gap:14px;margin-top:6px}
.sphd-ic{width:56px;height:56px;border-radius:18px}
.sphd-t{flex:1;min-width:0}
.sphd-t .h1{margin-top:0;font-size:26px;line-height:32px;overflow-wrap:anywhere}
.spsugbtn{display:flex;align-items:center;gap:14px;width:100%;margin-top:20px;padding:16px 18px;text-align:start;color:var(--ink);background:var(--gold-soft);transition:transform .12s}
.spsugbtn:active{transform:scale(.985)}
.spsug-ic{flex:none;width:46px;height:46px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 1px 2px rgba(12,12,12,.05),0 4px 12px rgba(140,122,20,.16)}
.spsug-t{flex:1;min-width:0;display:flex;flex-direction:column}
.spsug-t b{font-size:17px;line-height:23px;font-weight:700;color:var(--gold-ink)}
.spsug-t span{font-size:14px;line-height:19px;color:var(--sub);margin-top:2px}
[dir="rtl"] .spsugbtn > svg{transform:scaleX(-1)}
.splab{display:flex;align-items:center;gap:8px;margin-inline-end:4px}
.splab > span:first-child{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.splab-n{flex:none;min-width:24px;height:22px;padding:0 7px;border-radius:11px;background:var(--green-soft);color:var(--green);font-size:13px;line-height:22px;font-weight:700;text-align:center}
.splab-m{flex:none;margin-inline-start:auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.splab-m:active{background:var(--row)}
.spshelf{margin-top:10px}

/* a suggestion's cover: the real one over the drawn one once it has come */
.spcov .spimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:#fff}
.spcov.big .spimg,.spcov.sm2 .spimg{border-radius:inherit}
.spwait{display:flex;align-items:center;gap:12px;margin-top:22px;padding:16px 18px;font-size:15.5px;line-height:22px;color:var(--sub)}

/* choosing a speciality: each field a drop down (the Test Bank drop down's look) */
.spfold .thasm-wrap .row .t.wrap{white-space:normal}
/* a section with no books yet: one slim bar */
.spaddrow{display:flex;align-items:center;gap:12px;width:100%;height:56px;padding:0 18px;border-radius:18px;background:var(--green-soft);border:1.5px solid rgba(19,83,51,.18);color:var(--green);font-size:16px;font-weight:600;text-align:start;transition:transform .12s}
.spaddrow:active{transform:scale(.985)}
.spaddrow-ic{flex:none;width:32px;height:32px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 1px 2px rgba(12,12,12,.05),0 3px 8px rgba(19,83,51,.12)}
.spaddrow em{margin-inline-start:auto;font-style:normal;font-size:13.5px;font-weight:500;color:var(--sub)}
.sphd + .libnote{margin-top:12px}
