/* khiar — components for the learning pages (learn, artists, timeline,
   glossary, quiz, compare, teach, reading). Plain blocks built on the same
   tokens as the rest of the site; nothing here loads an image. */

/* ---------- hub cards (learn.html) ---------- */
.hub-grid{display:flex;flex-wrap:wrap;gap:20px}
.hub-card{flex:1 1 300px;min-width:0;display:flex;gap:16px;align-items:flex-start;background:var(--surface);border-radius:22px;
  box-shadow:0 0 0 1px var(--line);padding:26px 24px;text-decoration:none;color:var(--ink);cursor:pointer;
  transition:transform .28s var(--ease),box-shadow .28s var(--ease)}
.hub-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--line),var(--shadow-2)}
.hub-card .ic{flex:0 0 46px;width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',Georgia,serif;font-size:20px;font-weight:600;color:var(--accent-d);transition:transform .3s var(--pop)}
.hub-card:hover .ic{transform:rotate(-5deg) scale(1.07)}
.hub-card .ic.a{background:var(--lav)}.hub-card .ic.b{background:var(--blush)}.hub-card .ic.c{background:var(--sage)}
.hub-card .ic.d{background:var(--butter)}.hub-card .ic.e{background:var(--sky)}
.hub-card h3{font-size:22px;font-weight:600;margin-bottom:6px}
.hub-card p{font-size:15.5px;line-height:1.6;color:var(--muted)}
.hub-card .go{display:block;margin-top:12px;font-size:14px;font-weight:600;color:var(--accent)}
.hub-card .go::after{content:" \2192";transition:transform .3s var(--ease);display:inline-block}
.hub-card:hover .go::after{transform:translateX(4px)}

/* ---------- filter bar ---------- */
.filterbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.filterbar .n{font-size:14px;color:var(--muted)}

/* ---------- people (artists.html) ---------- */
.people{display:flex;flex-wrap:wrap;gap:20px}
.person{flex:1 1 300px;min-width:0;background:var(--surface);border-radius:22px;box-shadow:0 0 0 1px var(--line);
  padding:24px;display:flex;flex-direction:column;gap:10px;transition:transform .28s var(--ease),box-shadow .28s var(--ease)}
.person:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--line),var(--shadow-2)}
.person .mono{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;color:var(--accent-d);background:var(--tint,var(--lav))}
.person h3{font-size:23px;font-weight:600;line-height:1.2}
.person .meta{font-size:13.5px;color:var(--muted);font-weight:500}
.person p{font-size:15.5px;line-height:1.65;color:var(--ink-2)}
.person .mvn{align-self:flex-start;font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;background:var(--tint,var(--lav));color:var(--accent-d)}
.person:nth-child(4n+2) .mono,.person:nth-child(4n+2) .mvn{--tint:var(--blush)}
.person:nth-child(4n+3) .mono,.person:nth-child(4n+3) .mvn{--tint:var(--sage)}
.person:nth-child(4n) .mono,.person:nth-child(4n) .mvn{--tint:var(--butter)}

/* ---------- timeline ---------- */
.tl{display:flex;flex-direction:column;gap:8px;position:relative;padding-left:26px}
.tl::before{content:"";position:absolute;left:7px;top:10px;bottom:10px;width:2px;background:linear-gradient(180deg,var(--accent),var(--sage))}
.tl-row{position:relative;background:var(--surface);border-radius:22px;box-shadow:0 0 0 1px var(--line);padding:26px 28px;
  display:flex;flex-wrap:wrap;gap:22px;transition:transform .28s var(--ease),box-shadow .28s var(--ease)}
.tl-row:hover{transform:translateX(3px);box-shadow:0 0 0 1px var(--line),var(--shadow-2)}
.tl-row::before{content:"";position:absolute;left:-26px;top:34px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--accent)}
.tl-row .l{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:8px}
.tl-row .yrs{font-size:13.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.tl-row h3{font-size:27px;font-weight:600}
.tl-row .where{font-size:14px;color:var(--muted)}
.tl-row .turn{font-size:16.5px;line-height:1.7;color:var(--ink-2);margin-top:4px}
.tl-row .then{font-size:15px;line-height:1.6;color:var(--muted);border-left:2px solid var(--line);padding-left:14px;margin-top:6px}
.tl-row .r{flex:0 1 220px;min-width:0;display:flex;flex-direction:column;gap:12px;justify-content:center}
.tl-row .strip{display:flex;gap:6px;height:96px;align-items:flex-end;background:var(--surface-2);border-radius:16px;padding:10px}
.tl-row .strip i{flex:1 1 0;border-radius:8px 8px 0 0}

/* ---------- glossary ---------- */
.letter-h{font-family:'Fraunces',Georgia,serif;font-size:34px;font-weight:600;color:var(--accent);
  border-bottom:1px solid var(--line);padding-bottom:8px;margin-top:10px}
.gl-grid{display:flex;flex-wrap:wrap;gap:16px}
.gl-grid .term{flex:1 1 320px;min-width:0}

/* ---------- quiz ---------- */
.qz{background:var(--surface);border-radius:26px;box-shadow:0 0 0 1px var(--line),var(--shadow);padding:32px;display:flex;flex-direction:column;gap:22px}
.qz .top{display:flex;flex-wrap:wrap;gap:14px;align-items:baseline;justify-content:space-between}
.qz .step-n{font-size:14px;color:var(--muted)}
.qz .bar{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.qz .bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),#6B79D6);border-radius:999px;transition:width .45s var(--ease)}
.qz h3{font-size:clamp(22px,3vw,30px);line-height:1.25;font-weight:600}
.qz-opts{display:flex;flex-direction:column;gap:12px}
.opt{display:flex;align-items:center;gap:14px;text-align:left;font-family:inherit;font-size:16.5px;color:var(--ink);
  background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:16px 18px;cursor:pointer;min-height:56px;
  transition:background .2s var(--ease),border-color .2s var(--ease),transform .2s var(--ease)}
.opt:hover:not(.done){background:#fff;transform:translateX(3px);border-color:var(--line-2)}
.opt i{flex:0 0 26px;width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-2);display:flex;
  align-items:center;justify-content:center;font-style:normal;font-size:13px;font-weight:600;color:var(--muted);transition:all .25s var(--ease)}
.opt.right{border-color:var(--accent);background:var(--accent-l)}
.opt.right i{background:var(--accent);color:#fff;box-shadow:none}
.opt.wrong{border-color:#D89A8A;background:var(--blush)}
.opt.wrong i{background:#C9806C;color:#fff;box-shadow:none}
.opt.done{cursor:default}
.qz .fb{font-size:16px;line-height:1.7;color:var(--ink-2);background:var(--surface-2);border-radius:16px;padding:18px 20px;
  animation:fbIn .35s var(--ease) both}
.qz .fb b{color:var(--accent-d)}
@keyframes fbIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.qz .acts{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.score{font-family:'Fraunces',Georgia,serif;font-size:clamp(40px,7vw,72px);line-height:1;color:var(--accent)}

/* ---------- compare ---------- */
.cmp2{display:flex;flex-wrap:wrap;gap:22px}
.cmp2 .side{flex:1 1 340px;min-width:0;background:var(--surface);border-radius:24px;box-shadow:0 0 0 1px var(--line);padding:28px;display:flex;flex-direction:column;gap:16px}
.cmp2 select{font-family:inherit;font-size:17px;font-weight:600;color:var(--ink);background:var(--bg);border:1px solid var(--line-2);border-radius:14px;padding:13px 16px;width:100%;min-height:52px}
.cmp2 .strip{display:flex;gap:8px;height:110px;align-items:flex-end;background:var(--surface-2);border-radius:18px;padding:12px}
.cmp2 .strip i{flex:1 1 0;border-radius:10px 10px 0 0;transition:height .4s var(--ease)}
.cmp2 h3{font-size:clamp(26px,3.4vw,34px);line-height:1.15}
.cmp2 .yrs{font-size:14px;color:var(--muted)}
.cmp2 .bl{font-size:16.5px;line-height:1.7;color:var(--ink-2)}
.dl{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.dl .r{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:15.5px}
.dl .r span:first-child{color:var(--muted)}
.dl .r span:last-child{font-weight:600;text-align:right}

/* ---------- lessons (teach.html) ---------- */
.lessons{display:flex;flex-direction:column;gap:20px}
.lesson{background:var(--surface);border-radius:24px;box-shadow:0 0 0 1px var(--line);padding:30px;display:flex;flex-direction:column;gap:16px}
.lesson .lhead{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;justify-content:space-between}
.lesson h3{font-size:clamp(24px,3.2vw,32px);line-height:1.15}
.lesson .tags{display:flex;flex-wrap:wrap;gap:8px}
.lesson .tag{font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;background:var(--lav);color:var(--accent-d)}
.lesson .tag.b{background:var(--blush)}.lesson .tag.c{background:var(--sage)}.lesson .tag.d{background:var(--butter)}
.lesson ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px}
.lesson ol li{font-size:16px;line-height:1.7;color:var(--ink-2)}
.lesson .ask{font-size:15.5px;line-height:1.7;background:var(--surface-2);border-radius:16px;padding:16px 18px;color:var(--ink-2)}
.lesson .ask b{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}

/* ---------- reading lists ---------- */
.books{display:flex;flex-wrap:wrap;gap:20px}
.book{flex:1 1 320px;min-width:0;background:var(--surface);border-radius:22px;box-shadow:0 0 0 1px var(--line);padding:26px;display:flex;flex-direction:column;gap:8px}
.book .t{font-family:'Fraunces',Georgia,serif;font-size:23px;font-weight:600;line-height:1.2}
.book .a{font-size:14.5px;color:var(--muted)}
.book p{font-size:15.5px;line-height:1.65;color:var(--ink-2)}
.places{display:flex;flex-wrap:wrap;gap:16px}
.place{flex:1 1 260px;min-width:0;background:var(--surface);border-radius:20px;box-shadow:0 0 0 1px var(--line);padding:22px 24px;display:flex;flex-direction:column;gap:6px}
.place b{font-family:'Fraunces',Georgia,serif;font-size:20px;font-weight:600}
.place span{font-size:13.5px;color:var(--accent);font-weight:600}
.place p{font-size:15px;line-height:1.6;color:var(--muted)}

/* ---------- jump chips ---------- */
.jump{display:flex;flex-wrap:wrap;gap:8px}
.jump a{font-size:14px;font-weight:500;text-decoration:none;color:var(--ink);background:var(--surface);border-radius:999px;
  padding:9px 16px;box-shadow:0 0 0 1px var(--line);transition:background .2s var(--ease),transform .2s var(--ease)}
.jump a:hover{background:var(--accent-l);transform:translateY(-2px)}

/* ---------- glossary tools ---------- */
.gl-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:16px}
.gl-field{position:relative;display:flex;align-items:center;gap:10px;flex:1 1 340px;min-width:0;background:var(--surface);
  border:1px solid var(--line-2);border-radius:999px;padding:6px 8px 6px 18px;box-shadow:var(--shadow);
  transition:box-shadow .25s var(--ease),border-color .25s var(--ease)}
.gl-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-l)}
.gl-field .sic{color:var(--muted);font-size:16px}
.gl-field input{flex:1 1 auto;min-width:0;border:none;background:transparent;font-family:inherit;font-size:16px;color:var(--ink);padding:10px 0;min-height:40px}
.gl-field input:focus{outline:none}
.gl-clear{border:none;background:var(--surface-2);color:var(--muted);width:32px;height:32px;border-radius:50%;cursor:pointer;
  font-size:13px;line-height:1;flex:0 0 32px;transition:background .2s var(--ease),color .2s var(--ease)}
.gl-clear:hover{background:var(--blush);color:var(--ink)}

/* ---------- contact form ---------- */
.hp{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;opacity:0}
.field .hint{font-size:13px;color:var(--muted);margin-top:5px}
.field .counter{font-size:13px;color:var(--muted);margin-top:6px;text-align:right}
.field.bad input,.field.bad textarea,.field.bad select{border-color:#C9806C;background:var(--blush)}
.note.ok{color:#2F6B4F;font-weight:600}
.note.err{color:#A24B36;font-weight:600}
.sent{background:var(--surface);border-radius:28px;box-shadow:0 0 0 1px var(--line),var(--shadow);padding:36px;display:flex;flex-direction:column;gap:12px}
.sent b{font-family:'Fraunces',Georgia,serif;font-size:26px;font-weight:600}
.sent p{font-size:16px;line-height:1.7;color:var(--ink-2)}
.sent .btn{align-self:flex-start;margin-top:6px}
.spin{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;
  margin-right:8px;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}

@media (max-width:640px){
  .qz{padding:24px 20px}
  .lesson,.tl-row,.person,.book{padding:22px 20px}
  .tl{padding-left:20px}
  .tl-row::before{left:-20px;width:13px;height:13px}
  .hub-card{padding:22px 20px}
  .cmp2 .side{padding:22px 20px}
  .sent{padding:26px 22px}
  .gl-tools{margin-bottom:12px}
}
