/* Feature Specification — Phase 2 (igen-sme/phase2.php). Existing site palette only:
   navy #0e1b3d / #0b1b3f, blue #2563eb / #3b82f6 / #93c5fd, light text #cdd8ee / #a3b3d3, orange #f97316.
   The one new colour is the spec's red for a liked heart (UX-03a). */

/* ---------- Header bell + notification centre (UX-05) ---------- */
.igh-bell{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;margin:0 6px 0 0;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:transparent;color:#fff;cursor:pointer;vertical-align:middle}
.igh-bell:hover{border-color:#fff}
.igh-bell:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.igh-bell__n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f97316;color:#fff;font:600 11px/18px 'IBM Plex Sans',Arial,sans-serif;text-align:center}
.igh-bell__n[hidden]{display:none}
.igh-visitor{display:inline-flex;align-items:center;gap:6px}
.igh-notes{position:fixed;z-index:100001;width:min(380px,calc(100vw - 16px));max-height:min(70vh,560px);overflow:auto;background:#fff;color:#0b1b3f;border:1px solid #dbe5f3;border-radius:6px;box-shadow:0 12px 32px rgba(11,27,63,.22);font-family:'IBM Plex Sans','Helvetica Neue',Arial,sans-serif;font-size:14px}
.igh-notes__head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:#fff;border-bottom:1px solid #dbe5f3}
.igh-notes__head strong{font-size:15px}
.igh-notes__head button{background:none;border:0;padding:4px 6px;color:#2563eb;font-family:inherit;font-weight:500;font-size:13px;line-height:1.2;cursor:pointer}
.igh-notes__head button:disabled{color:#a3b3d3;cursor:default}
.igh-notes__head button:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
.igh-notes__list{list-style:none;margin:0;padding:4px 0}
.igh-notes__g{padding:10px 14px 4px;font-size:11.5px;font-weight:600;letter-spacing:.32px;text-transform:uppercase;color:#5b6b8f}
.igh-notes__list a{display:flex;flex-direction:column;gap:2px;padding:10px 14px;color:#0b1b3f;text-decoration:none;border-left:3px solid transparent}
.igh-notes__list a:hover,.igh-notes__list a:focus-visible{background:#eef3fb;outline:none}
.igh-notes__list a.is-unread{border-left-color:#2563eb;background:#f5f8fe}
.igh-notes__list time{font-size:12px;color:#5b6b8f}
.igh-notes__empty,.igh-notes__note{margin:0;padding:16px 14px;color:#5b6b8f}
.igh-notes__prefs{padding:12px 14px 16px}
.igh-notes__prefs fieldset{border:0;margin:0 0 12px;padding:0}
.igh-notes__prefs legend{font-weight:600;margin-bottom:6px}
.igh-notes__prefs label{display:flex;gap:8px;align-items:center;padding:4px 0}
.igh-notes__sel{flex-direction:column;align-items:stretch!important;gap:4px!important}
.igh-notes__sel select{padding:8px;border:1px solid #dbe5f3;border-radius:6px;font:inherit}
.igh-notes__save{margin-top:10px;width:100%;padding:10px;border:0;border-radius:6px;background:#2563eb;color:#fff;font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;cursor:pointer}

/* ---------- Profile: Follow next to the name (UX-04) ---------- */
.igp2 .p2-namerow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.igp2 .p2-namerow h1{margin-bottom:6px!important}
.igp2 .p2-hfollow{flex:none;white-space:nowrap}
.igp2 .p2-hfollow.on{opacity:.9}

/* ---------- Reaction bar (UX-03a) ---------- */
.igp2 .p2-react{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.igp2 .p2-react__b{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.22);border-radius:6px;background:transparent;color:#cdd8ee;font-family:inherit;font-weight:500;font-size:13.5px;line-height:1.2;cursor:pointer}
.igp2 .p2-react__b:hover{border-color:rgba(255,255,255,.5);color:#fff}
.igp2 .p2-react__b:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.igp2 .p2-react__b b{font-weight:600;color:#fff}
.igp2 .p2-react__b.is-on{color:#fff;border-color:rgba(239,68,68,.6)}
.igp2 .p2-react__b.is-on svg{fill:#ef4444;stroke:#ef4444}
.igp2 .p2-react__b[hidden]{display:none}
.igp2 .p2-react__f{font-size:13px;color:#a3b3d3}

/* ---------- Trust card: self-declared items carry no tick (UX-11) ---------- */
body.igen-p2-single .igp2.igp2.igp2 .p2-card .vgrid--self span{background:transparent!important;border:1px solid rgba(255,255,255,.2);color:#a3b3d3!important}

/* ---------- Profile wall (UX-03a) ---------- */
.igp2 .p2-wall__compose{margin-bottom:14px}
.igp2 .p2-wf .fl{display:flex;flex-direction:column;gap:6px;margin:0}
.igp2 .p2-wf .fl span{font-size:13px;color:#a3b3d3}
.igp2 .p2-wf textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.06);color:#fff;font:inherit;resize:vertical}
.igp2 .p2-wf textarea:focus{outline:2px solid #93c5fd;outline-offset:1px}
.igp2 .p2-wf__f{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.igp2 .p2-wf__f small{color:#a3b3d3}
.igp2 .p2-wf__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px dashed rgba(255,255,255,.2);border-radius:6px;color:#cdd8ee}
.igp2 .p2-wl,.igp2 .p2-wc__r{list-style:none;margin:0;padding:0}
.igp2 .p2-wc{display:flex;gap:12px;padding:14px 0;border-top:1px solid rgba(255,255,255,.1)}
.igp2 .p2-wl>.p2-wc:first-child{border-top:0;padding-top:0}
.igp2 .p2-wc--reply{padding:12px 0 0;border-top:0}
.igp2 .p2-wc__r{margin-top:6px;padding-left:4px;border-left:2px solid rgba(255,255,255,.12)}
.igp2 .p2-wc__r .p2-wc{padding-left:12px}
.igp2 .p2-wc__av{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(59,130,246,.25);color:#fff;font-size:13px;font-weight:600}
.igp2 .p2-wc__b{flex:1;min-width:0}
.igp2 .p2-wc__h{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px}
.igp2 .p2-wc__h b{color:#fff}
.igp2 .p2-wc__h time{font-size:12px;color:#a3b3d3}
.igp2 .p2-wc__h em{font-style:normal;font-size:11.5px;color:#f97316}
.igp2 .p2-wc__sme{font-size:11px;font-weight:600;padding:1px 6px;border-radius:6px;background:#2563eb;color:#fff}
.igp2 .p2-wc p{margin:4px 0 0;color:#cdd8ee;overflow-wrap:anywhere;white-space:pre-line}
.igp2 .p2-wc__a{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px}
.igp2 .p2-wc__a button{background:none;border:0;padding:2px 0;color:#93c5fd;font-family:inherit;font-weight:500;font-size:12.5px;line-height:1.2;cursor:pointer}
.igp2 .p2-wc__a button:hover{text-decoration:underline}
.igp2 .p2-wc__a button:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.igp2 .p2-wc.is-hidden>.p2-wc__b>p{opacity:.55}
.igp2 .p2-wf--reply{margin-top:10px}
.igp2 .p2-wall__more{margin-top:12px}

/* ---------- Sign-in modal + follow settings ---------- */
.igp2 #igx-modal .fl{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.igp2 #igx-modal .fl input,.igp2 #igx-modal .fl select{padding:10px 12px;border:1px solid #dbe5f3;border-radius:6px;font:inherit}
.igp2 .igx-tabs{display:flex;gap:4px;margin:0 0 14px;border-bottom:1px solid #dbe5f3}
.igp2 .igx-tabs button{flex:1;padding:10px;border:0;border-bottom:2px solid transparent;background:none;font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;color:#5b6b8f;cursor:pointer}
.igp2 .igx-tabs button[aria-selected="true"]{color:#0b1b3f;border-bottom-color:#2563eb}
.igp2 .igx-consent{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;font-size:13px;line-height:1.45;color:#2c3e66}
.igp2 .igx-err{margin:0 0 10px;font-size:13px;color:#c2410c}
.igp2 .igx-radio{border:0;margin:0 0 12px;padding:0}
.igp2 .igx-radio label{display:grid;grid-template-columns:auto 1fr;gap:0 8px;padding:8px 0;align-items:start}
.igp2 .igx-radio small{grid-column:2;color:#5b6b8f}
.igp2 .igx-row{display:flex;justify-content:space-between;gap:8px}
@media (max-width:640px){.igp2 .p2-react__b{flex:1 1 auto;justify-content:center}}
