/* The teacher card drawn by card.js (IKR-144): the app's sand card, the same in both schemes. Shared by the teacher
   page and the admin. Needs the fonts Bricolage Grotesque and Readex Pro (teach.css declares them), and --br / --ar. */
.kc-home, .kb, .kc-page, .compact { --br: "Bricolage Grotesque", -apple-system, system-ui, sans-serif; --ar: "Readex Pro", "Bricolage Grotesque", system-ui, sans-serif; --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
/* ---------- The teacher card (card.js): the app's sand card, the same in both schemes ---------- */
.kc-home { --cf: var(--br); }
.kc-home[dir="rtl"] { --cf: var(--ar); }
.kc-home, .kb { background: #E8DCC4; color: #1F3D2B; font-family: var(--br); box-shadow: 0 26px 40px -24px rgba(0,0,0,.45); }
.kc-home .ar, .kb .ar { font-family: var(--ar); }
.kc-home[dir="rtl"] { font-family: var(--ar); }
.kc-home { border-radius: 30px; padding: 20px 20px 18px; }
.kc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kc-who { min-width: 0; }
.kc-st { display: flex; align-items: center; gap: 6px; color: #2F6B3A; font: 650 15px/1 var(--cf); margin: 4px 0 8px; }
.kc-st svg { width: 17px; height: 17px; flex: none; }
.kc-nm { font: 750 21px/1.12 var(--cf); letter-spacing: -.015em; font-variation-settings: "wdth" 94; overflow-wrap: anywhere; }
.kc-nm.ph, .kc-home .ph-t, .kb .ph-t { color: rgba(31,61,43,.38); }
.kc-meta { display: flex; align-items: center; gap: 7px; font: 500 15px/1.3 var(--cf); margin: 16px 0 12px; flex-wrap: wrap; }
.kc-home hr { border: 0; border-top: 1.5px solid rgba(31,61,43,.18); margin: 0 0 12px; }
.kc-hl { font: 450 15px/1.35 var(--cf); margin: 0 0 8px; }
.kc-hl b { font-weight: 700; }
.kc-hl.ph { color: rgba(31,61,43,.38); border: 1.5px dashed rgba(31,61,43,.25); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.kc-call { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1F3D2B; color: #F4EEDF; border-radius: 32px; height: 64px; padding: 0 7px; padding-inline-start: 20px; margin-top: 14px; font: 700 17px/1 var(--cf); white-space: nowrap; overflow: hidden; }
.kc-call > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.kc-call .up { font: 600 13px var(--cf); white-space: nowrap; opacity: .9; margin-inline-start: auto; }
.kc-call .end { width: 50px; height: 50px; border-radius: 50%; background: #E8DCC4; color: #1F3D2B; display: grid; place-items: center; flex: none; }
.kc-call .end svg { width: 22px; height: 22px; }
.portrait { flex: none; border-radius: 50%; border: 2px solid #9DAE8C; padding: 5px; display: block; }
.portrait > * { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; object-position: top; }
.portrait .add { background: rgba(31,61,43,.07); color: rgba(31,61,43,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 650 12px/1.2 var(--ui); text-align: center; border: 1.5px dashed rgba(31,61,43,.3); padding: 4px; }
.portrait .add svg { width: 22px; height: 22px; display: block; margin: 0 auto 3px; }
/* The Details view: the app's teacher page (IKR-160, teacher-page-chosen.md) on the app's forest. Card B is the sand
   card; the sections below use the forest palette of the mock-up (surface #274636, text #F4EEDF, gold #D9C08A). */
.kb { border-radius: 30px; padding: 20px; }
.kb-top { display: flex; gap: 16px; align-items: center; }
.kb-words { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kb .kc-st { margin: 0; font-size: 14px; }
.kb .kc-nm { font: 750 25px/1.08 var(--cf); letter-spacing: -.02em; font-variation-settings: "wdth" 92; }
.kb-from { font: 450 15px/1.3 var(--cf); color: #46574D; }
.kb .kc-tag { margin: 0; font-size: 13.5px; color: #46574D; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-facts { display: flex; margin: 18px 0 0; padding: 12px 0; border-top: 1px solid rgba(31,61,43,.18); border-bottom: 1px solid rgba(31,61,43,.18); }
.kb-fact { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-inline: 10px; min-width: 0; }
.kb-fact:first-child { padding-inline-start: 2px; }
.kb-fact + .kb-fact { border-inline-start: 1px solid rgba(31,61,43,.18); }
.kb-fact b { font: 750 24px/1.1 var(--cf); letter-spacing: -.02em; }
.kb-fact span { font: 550 12.5px/1.25 var(--cf); color: #46574D; }
.kb-creds { margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.kb-cred { font: 450 14.5px/1.35 var(--cf); min-height: 24px; }
.kb-cred b { font-weight: 700; }
.kb-cred span { color: #46574D; }
.kb .kc-hl.ph { margin: 0; }
.kb .kc-call { margin-top: 16px; white-space: normal; }
/* The label wraps rather than being cut ("up to 12 mi…"); the length stays on one line beside it. */
.kb .kc-call > span:first-child { line-height: 1.15; overflow-wrap: anywhere; text-overflow: clip; }
.kb .kc-call .up { flex: none; }

.kc-page { --pt: #F4EEDF; --pt2: #CAD3C7; --pt3: #B0BEB3; --ps: #274636; --pdeep: #16301F; --pline: #345744; --gold: #D9C08A; color: var(--pt); font-family: var(--br); --cf: var(--br); }
.kc-page[dir="rtl"] { font-family: var(--ar); --cf: var(--ar); }
.kc-page .ar { font-family: var(--ar); }
.kp-title { font: 700 15px/1.3 var(--cf); color: var(--pt); margin: 28px 4px 10px; letter-spacing: -.005em; }
/* Ijazahs: the scans side by side; more than two scroll sideways. */
.kp-certs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px 2px; }
.kp-certs::-webkit-scrollbar { display: none; }
.kp-cert { width: 150px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.kp-scan { display: block; height: 195px; border-radius: 16px; overflow: hidden; background: #F2ECDF; margin-bottom: 6px; box-shadow: 0 0 0 1px var(--pline); }
.kp-scan img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.kp-cert .t { font: 650 14.5px/1.25 var(--cf); overflow-wrap: anywhere; }
.kp-cert .s { font: 450 12.5px/1.3 var(--cf); color: var(--pt2); }
/* The chain: one gold line, the page's only gold. */
.kp-chain { background: var(--ps); border-radius: 22px; padding: 10px 16px; }
.kp-link { position: relative; min-height: 34px; display: flex; align-items: center; padding: 6px 0; padding-inline-start: 26px; font: 450 15px/1.3 var(--cf); }
.kp-link b { font-weight: 700; }
.kp-link em { color: var(--pt2); }
.kp-link::before { content: ""; position: absolute; inset-inline-start: 6px; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.kp-link.first::before { top: 50%; }
.kp-link.last::before { bottom: 50%; }
.kp-link.fold::before { background: repeating-linear-gradient(180deg, var(--gold) 0 4px, transparent 4px 8px); }
.kp-link.dot::after, .kp-link.ring::after { content: ""; position: absolute; inset-inline-start: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold); }
.kp-link.ring::after { inset-inline-start: 0; width: 14px; height: 14px; margin-top: -7px; background: var(--ps); box-shadow: inset 0 0 0 2.5px var(--gold); }
/* Qualifications: bold claims, no box or icons. */
.kp-spec { display: flex; flex-direction: column; gap: 14px; margin: 0 4px; font: 700 17px/1.3 var(--cf); overflow-wrap: anywhere; }
.kp-q { display: flex; flex-direction: column; gap: 2px; }
.kp-spec.labelled .kp-q { flex-direction: row; gap: 12px; align-items: baseline; }
.kp-ql { width: 92px; flex: none; font: 700 13px/1.3 var(--cf); color: var(--pt2); }
.kp-qc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kp-qd { font: 450 15px/1.4 var(--cf); color: var(--pt2); }
/* Lessons: a flag tile per language (the flag is decoration), then whom they teach. */
.kp-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.kp-tile { display: inline-flex; align-items: center; gap: 8px; background: var(--ps); border-radius: 14px; padding: 12px; font: 650 15px/1 var(--cf); }
.kp-tile .fl { font-size: 22px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.kp-for { font: 450 15px/1.4 var(--cf); color: var(--pt2); margin: 12px 4px 0; }
/* About: four lines, then More. */
.kp-about { margin: 0 4px; }
.kp-about p { font: 450 15px/1.5 var(--cf); margin: 0; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kp-about.open p { display: block; }
.kp-more { background: none; border: 0; padding: 6px 0 0; color: var(--pt); font: 650 15px var(--cf); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kp-about.open .kp-more, .kp-about.fits .kp-more { display: none; }
/* In every lesson. */
.kp-every { display: flex; flex-direction: column; gap: 10px; margin: 0 4px; }
.kp-every p { display: flex; gap: 12px; align-items: flex-start; margin: 0; font: 450 14.5px/1.4 var(--cf); color: var(--pt2); }
.kp-every svg { width: 20px; height: 20px; flex: none; color: var(--pt3); margin-top: 1px; }
a.kp-cert { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.kp-cert:active { opacity: .8; }
.portrait .ini { display: grid; place-items: center; background: #D9CFBB; color: #1F3D2B; font: 700 34px/1 var(--cf); letter-spacing: .02em; }
/* The facts line sits under the name, beside the photo, as the app's call card does since 26 Nov (8b3ee4d8). */
.kc-who .kc-meta { margin: 8px 0 0; font-weight: 450; color: rgba(31,61,43,.72); }
.kc-home .kc-top + hr { margin-top: 14px; }
.kc-page[dir="rtl"] .kb { font-family: var(--ar); }
.kc-page .nw { white-space: nowrap; }
