/* Feature Specification — Phase 3 (igen-sme/phase3.php). Existing palette only. Base = light (SME Studio);
   inside a profile (.igp2) posts and the composer use the profile's dark card style. */

/* ---------- Composer ---------- */
.p3-comp{display:flex;flex-direction:column;gap:12px}
.p3-comp .fl{display:flex;flex-direction:column;gap:6px;margin:0}
.p3-comp .fl span{font-size:13px;font-weight:500}
.p3-comp .fl small{font-size:12px;opacity:.8}
.p3-comp input,.p3-comp textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #dbe5f3;border-radius:6px;font:inherit;background:#fff;color:#0b1b3f}
.p3-comp textarea{resize:vertical}
.p3-comp input:focus,.p3-comp textarea:focus{outline:2px solid #2563eb;outline-offset:1px}
.p3-types{display:flex;flex-wrap:wrap;gap:6px}
.p3-types button{padding:7px 14px;border:1px solid #dbe5f3;border-radius:6px;background:#fff;color:#0b1b3f;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
.p3-types button[aria-pressed="true"]{background:#2563eb;border-color:#2563eb;color:#fff}
.p3-types button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.p3-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.p3-img-pick{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.p3-img-pick img{width:120px;height:72px;object-fit:cover;border-radius:6px}
.p3-img-pick button{background:none;border:0;color:#2563eb;font-family:inherit;cursor:pointer;padding:0}
.p3-note{margin:0;opacity:.85}
.p3-acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.p3-preview{border-top:1px dashed #dbe5f3;padding-top:12px}

/* ---------- Posts ---------- */
.p3-post{display:flex;flex-direction:column;gap:10px;padding:16px;margin:0 0 12px;border:1px solid #dbe5f3;border-radius:6px;background:#fff;color:#0b1b3f}
.p3-post.is-target{outline:2px solid #f97316;outline-offset:2px}
.p3-post header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12.5px}
.p3-type{font-weight:600;letter-spacing:.32px;text-transform:uppercase;font-size:11.5px;color:#2563eb}
.p3-post time{opacity:.75}
.p3-st{padding:1px 8px;border-radius:6px;font-size:11.5px;font-weight:600;background:#eef3fb;color:#1e3a8a}
.p3-st--pending{background:#fff1e6;color:#c2410c}
.p3-reason{margin:0;font-size:13px;color:#c2410c}
.p3-post h3{margin:0;font-size:18px;line-height:1.35}
.p3-body{white-space:pre-line;overflow-wrap:anywhere;line-height:1.6}
.p3-body.is-clamped{max-height:9.6em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
.p3-more{align-self:flex-start;background:none;border:0;padding:0;color:#2563eb;font-family:inherit;font-weight:600;cursor:pointer}
.p3-ev{margin:0}
.p3-yt{position:relative;display:block;max-width:560px;border-radius:6px;overflow:hidden;text-decoration:none}
.p3-yt img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.p3-yt span{position:absolute;left:10px;bottom:10px;padding:6px 10px;border-radius:6px;background:rgba(11,27,63,.85);color:#fff;font-size:13px;font-weight:600}
.p3-img{display:block;max-width:100%;max-height:420px;object-fit:cover;border-radius:6px}
.p3-link{align-self:flex-start;color:#2563eb;overflow-wrap:anywhere}
.p3-post footer{display:flex;flex-wrap:wrap;gap:6px}
.p3-post footer button{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dbe5f3;border-radius:6px;background:transparent;color:inherit;font-family:inherit;font-size:13px;cursor:pointer}
.p3-post footer button.is-on{color:#ef4444;border-color:rgba(239,68,68,.5)}
.p3-post footer button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.p3-cm{border-top:1px solid #dbe5f3;padding-top:10px}
.p3-cl{list-style:none;margin:0 0 10px;padding:0}
.p3-cl li{padding:8px 0;border-bottom:1px solid #eef3fb}
.p3-cl li p{margin:4px 0;white-space:pre-line;overflow-wrap:anywhere}
.p3-cl li time{font-size:12px;opacity:.75}
.p3-cl li button{background:none;border:0;padding:0 10px 0 0;color:#2563eb;font-family:inherit;font-size:12.5px;cursor:pointer}
.p3-cf{display:flex;flex-direction:column;gap:8px}
.p3-cf textarea{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #dbe5f3;border-radius:6px;font:inherit}
.p3-cf button{align-self:flex-end}
.p3-share{display:flex;flex-wrap:wrap;gap:8px}
.p3-share a,.p3-share button{padding:6px 10px;border:1px solid #dbe5f3;border-radius:6px;background:transparent;color:#2563eb;text-decoration:none;font-family:inherit;font-size:13px;cursor:pointer}
.p3-mine-h{margin:20px 0 10px}

/* ---------- Activity filters ---------- */
.igp2 .p2-feedf{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.igp2 .p2-feedf button{padding:6px 12px;border:1px solid #dbe5f3;border-radius:6px;background:#fff;color:#0b1b3f;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
.igp2 .p2-feedf button.on{background:#0e1b3d;border-color:#0e1b3d;color:#fff}
.igp2 .p2-feedf button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.igp2 .p2-compose{margin:0 0 14px}

/* ---------- Inside a profile: dark cards like the rest of the page ---------- */
.igp2 .p3-post,.igp2 .p2-compose{background:#0e1b3d;border-color:rgba(255,255,255,.08);color:#e6ecf8;box-shadow:0 6px 18px rgba(11,27,63,.22)}
.igp2 .p2-compose{padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:6px}
.igp2 .p3-post h3,.igp2 .p3-ev b{color:#fff}
.igp2 .p3-type{color:#93c5fd}
.igp2 .p3-st{background:rgba(255,255,255,.1);color:#cdd8ee}
.igp2 .p3-st--pending{background:rgba(249,115,22,.18);color:#fed7aa}
.igp2 .p3-reason{color:#fed7aa}
.igp2 .p3-body,.igp2 .p3-cl li p{color:#cdd8ee}
.igp2 .p3-more,.igp2 .p3-link,.igp2 .p3-cl li button,.igp2 .p3-share a,.igp2 .p3-share button,.igp2 .p3-img-pick button{color:#93c5fd}
.igp2 .p3-post footer button,.igp2 .p3-share a,.igp2 .p3-share button{border-color:rgba(255,255,255,.2);color:#cdd8ee}
.igp2 .p3-post footer button.is-on{color:#ef4444;border-color:rgba(239,68,68,.6)}
.igp2 .p3-cm,.igp2 .p3-preview{border-color:rgba(255,255,255,.12)}
.igp2 .p3-cl li{border-color:rgba(255,255,255,.08)}
.igp2 .p3-comp .fl span{color:#cdd8ee}
.igp2 .p3-comp input,.igp2 .p3-comp textarea,.igp2 .p3-cf textarea{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);color:#fff}
.igp2 .p3-types button{background:transparent;border-color:rgba(255,255,255,.22);color:#cdd8ee}
.igp2 .p3-types button[aria-pressed="true"]{background:#2563eb;border-color:#2563eb;color:#fff}
.igp2 .p3-note{color:#a3b3d3}

/* ---------- Case studies, speaking topics ---------- */
.igp2 .p2-cases,.igp2 .p2-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.igp2 .p2-case h3,.igp2 .p2-topic h3{margin:4px 0 8px;font-size:17px;line-height:1.35}
.igp2 .p2-case__k{font-size:11.5px;font-weight:600;letter-spacing:.32px;text-transform:uppercase;color:#93c5fd}
.igp2 .p2-case__r{margin:0 0 10px}
.igp2 .p2-case details summary{cursor:pointer;color:#93c5fd;font-weight:600}
.igp2 .p2-case h4{margin:12px 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.32px;color:#a3b3d3}
.igp2 .p2-case details p{margin:0;white-space:pre-line}
.igp2 .p2-topic{display:flex;flex-direction:column}
.igp2 .p2-topic p{flex:1;margin:0 0 10px}
.igp2 .p2-topic__f{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}

/* ---------- UX-09 YouTube thumbnails on talk cards ---------- */
.igp2 .p2-th__img{display:block;margin:-2px 0 8px;border-radius:6px;overflow:hidden;aspect-ratio:16/9}
.igp2 .p2-th__img img{display:block;width:100%;height:100%;object-fit:cover}

/* ---------- Builder: version history ---------- */
.ib-history{list-style:none;margin:0;padding:0}
.ib-history li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #dbe5f3}
.ib-history small{display:block;opacity:.75}

@media (max-width:640px){.p3-row{grid-template-columns:1fr}.p3-acts{justify-content:stretch}.p3-acts .btn{flex:1 1 auto}}
@media (prefers-reduced-motion:reduce){.p3-post{scroll-behavior:auto}}
