/* Teacher prompt library (/prompts). Uses the tokens from pages.css. */
.p-wrap{max-width:1100px;margin:0 auto;padding:0 16px}
body{overflow-x:hidden}
.p-hero{background:radial-gradient(900px 340px at 85% -10%,rgba(242,196,107,.35),transparent),linear-gradient(135deg,var(--brand),#5E1F31);color:#fff;padding:42px 0 64px}
.p-hero-in{display:grid;grid-template-columns:1.25fr 1fr;gap:30px;align-items:center}
.p-kicker{display:inline-block;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:5px 14px;font-size:14px;font-weight:600;margin-bottom:12px}
.p-hero h1{font-family:var(--head);font-weight:800;font-size:clamp(28px,5vw,46px);line-height:1.3;margin:0 0 12px}
.p-hero h1 em{font-style:normal;color:#F2C46B}
.p-hero p{font-size:17px;opacity:.92;margin:0 0 18px;max-width:560px}
.p-steps{display:flex;flex-wrap:wrap;gap:8px}
.p-steps span{background:rgba(255,255,255,.12);border-radius:999px;padding:6px 14px 6px 10px;font-size:14px;display:inline-flex;align-items:center;gap:8px}
.p-steps b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#F2C46B;color:#5E1F31;font-size:13px}
.p-hero-card{position:relative;background:#1B2233;border-radius:22px;padding:18px 20px;box-shadow:0 24px 60px rgba(0,0,0,.3);font-family:"IBM Plex Sans Arabic",monospace;transform:rotate(-2deg)}
.p-hero-card .dot-row{display:flex;gap:6px;margin-bottom:12px}.p-hero-card .dot-row i{width:10px;height:10px;border-radius:50%;background:#E0483E}.p-hero-card .dot-row i:nth-child(2){background:#F2C46B}.p-hero-card .dot-row i:nth-child(3){background:#3E9A55}
.p-hero-card p{margin:0 0 8px;font-size:14.5px;opacity:0;animation:ptype .6s forwards}
.p-hero-card .l1{color:#F2C46B;animation-delay:.2s}.p-hero-card .l2{color:#9CCFF0;animation-delay:.8s}.p-hero-card .l3{color:#C9F2D3;animation-delay:1.4s}.p-hero-card .l4{color:#F7B6C7;animation-delay:2s}
.p-hero-card .spark{position:absolute;top:-16px;inset-inline-end:-12px;font-size:34px;animation:pfloat 3s ease-in-out infinite}
@keyframes ptype{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes pfloat{50%{transform:translateY(-8px) rotate(8deg)}}
.p-builder{display:grid;grid-template-columns:400px 1fr;gap:18px;margin:-36px 0 30px;position:relative}
.p-form,.p-out{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 14px 40px rgba(27,34,51,.07)}
.p-form h2{font-family:var(--head);font-size:16px;margin:6px 0 10px;color:var(--brand)}
.p-form label{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:600;margin-bottom:10px;color:var(--muted)}
.p-form select,.p-form textarea{font:inherit;font-size:15px;font-weight:500;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:9px 12px;width:100%}
.p-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.p-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.p-kind{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:start;font:inherit;background:var(--bg);border:2px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;color:var(--ink);transition:border-color .12s,transform .12s}
.p-kind:hover{transform:translateY(-1px);border-color:var(--brand)}
.p-kind[aria-checked="true"]{border-color:var(--brand);background:var(--brand-soft)}
.p-kind i{font-style:normal;font-size:20px}.p-kind b{font-size:14px}.p-kind small{font-size:12px;color:var(--muted);line-height:1.5}
.p-out{display:flex;flex-direction:column;gap:12px;min-width:0}
.p-out-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.p-out-h b{font-family:var(--head);font-size:18px;display:block}.p-out-h small{color:var(--muted);font-size:13px}
.p-acts{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-weight:700;font-size:15px;border:0;border-radius:999px;padding:10px 18px;cursor:pointer;text-decoration:none;background:var(--brand);color:#fff}
.btn.ghost{background:var(--surface);color:var(--brand);border:1.5px solid var(--brand)}
.btn.ok{background:var(--teal)}
.p-spec{display:flex;flex-wrap:wrap;gap:6px}
.p-spec span{font-size:12.5px;font-weight:600;border-radius:999px;padding:4px 10px;background:var(--teal-soft);color:var(--teal)}
.p-spec span.g{background:#FFF1D6;color:#8A5A00}.p-spec span.b{background:var(--brand-soft);color:var(--brand)}
.p-prompt{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;font-size:14.5px;line-height:1.95;background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:16px;max-height:560px;overflow:auto}
.p-prompt mark{background:#FFF1D6;color:inherit;border-radius:4px;padding:0 2px}
.p-tip{margin:0;font-size:13.5px;color:var(--muted)}
.p-h2{font-family:var(--head);font-size:22px;margin:10px 0 14px;display:flex;align-items:center;gap:10px}
.p-h2::before{content:"";width:5px;height:22px;border-radius:3px;background:#F2C46B}
.p-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:40px}
.p-cards div{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}
.p-cards i{font-style:normal;font-size:26px;display:block;margin-bottom:6px}.p-cards b{display:block;font-family:var(--head);margin-bottom:4px}.p-cards span{font-size:14px;color:var(--muted);line-height:1.75}
@media (max-width:900px){.p-hero-in,.p-builder{grid-template-columns:1fr}.p-hero-card{display:none}.p-cards{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.p-cards,.p-kinds{grid-template-columns:1fr}.p-row{grid-template-columns:1fr}}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}.p-hero-card p{opacity:1}}
