/* kliklink.my — subpages, share and branch mini-sites */
.kl-sp-editor{min-width:0}
.kl-sp-heading,.kl-sp-details-head,.kl-sp-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}
.kl-sp-heading h3,.kl-sp-details-head h3{font-size:15px;margin:0 0 6px}
.kl-sp-layout{display:grid;grid-template-columns:minmax(180px,.76fr) minmax(0,1.4fr);gap:14px;margin-top:21px}
.kl-sp-list{display:flex;flex-direction:column;gap:9px;min-width:0}
.kl-sp-row{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e5dcfa;border-radius:11px;background:white;cursor:pointer;padding:12px;text-align:left;color:#3e216f;min-width:0}
.kl-sp-row.active{border-color:#8f5cf6;background:#f9f6ff;box-shadow:0 0 0 1px #8f5cf633}
.kl-sp-row-icon{width:27px;height:27px;border-radius:8px;background:#f0e9ff;display:grid;place-items:center;flex-shrink:0}
.kl-sp-row-icon svg{width:15px;height:15px}
.kl-sp-row-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;overflow:hidden}
.kl-sp-row-text strong{font-size:12px;line-height:1.2}
.kl-sp-row-text small{font-size:10px;color:#887ba0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kl-sp-badge{font-size:10px;font-weight:700;padding:5px 8px;white-space:nowrap;border-radius:999px;background:#eef0f4;color:#77808b;flex-shrink:0}
.kl-sp-badge.published{background:#e5f7ec;color:#207e45}
.kl-sp-details{min-width:0;border:1px solid #eae3f9;border-radius:13px;background:#fff;padding:15px}
.kl-sp-details-head{align-items:start;flex-wrap:wrap}
.kl-sp-details-head small{color:#7766a0;overflow-wrap:anywhere;font-size:10px}
.kl-sp-btnrow{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.kl-sp-btnrow .btn{font-size:11px}
.kl-sp-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 22px}
.kl-sp-info-grid>div{background:#faf7ff;border-radius:10px;padding:12px;overflow-wrap:anywhere}
.kl-sp-info-grid strong{font-size:11px}
.kl-sp-info-grid p{font-size:11px;line-height:1.65;color:#6e6582;margin:7px 0 0}
.kl-sp-link-list{display:flex;flex-direction:column;gap:5px}
.kl-sp-link-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #eee9f7;min-width:0}
.kl-sp-link-row>div{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}
.kl-sp-link-row strong{font-size:11px}
.kl-sp-link-row small{font-size:10px;color:#8e83a3}
.kl-sp-link-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#f3eaff;color:#7c3ced}
.kl-sp-link-row .btn{padding:6px 9px}
.kl-sp-empty{padding:20px;border:1px dashed #d8cbea;border-radius:12px;color:#8b819b;font-size:12px;line-height:1.6}
.kl-sp-overlay{position:fixed;inset:0;background:#21103a84;z-index:200;display:flex;align-items:center;justify-content:center;padding:18px}
.kl-sp-dialog{max-width:720px;width:100%;max-height:calc(100vh - 36px);overflow-y:auto;background:#fff;border-radius:17px;box-shadow:0 22px 70px #1f0d4b4d;padding:25px}
.kl-sp-modal-head h3{font-size:17px}
.kl-sp-editor-form .field textarea{width:100%}
.kl-sp-dialog .notice{margin:15px 0}
.kl-sp-dialog .editor-actions{margin-top:17px}
/* Reusable public navigation shown on main profile and subpages */
.kl-sp-public-nav{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:45px;margin:0 auto 21px;position:relative;color:#4e4846}
.kl-sp-nav-btn{display:grid;place-items:center;width:37px;height:37px;flex:0 0 auto;border:0;border-radius:50%;color:inherit;background:#ffffffac;cursor:pointer;transition:background-color .15s ease}
.kl-sp-nav-btn:hover{background:white}
.kl-sp-nav-menu{position:absolute;z-index:50;top:43px;left:0;min-width:min(280px,85vw);max-width:85vw;padding:8px;border:1px solid #eadfea;background:white;border-radius:12px;box-shadow:0 12px 30px #1d083d25}
.kl-sp-nav-menu[hidden]{display:none}
.kl-sp-nav-menu a{display:block;font-size:13px;padding:11px 12px;color:#322a39;text-decoration:none;border-radius:8px}
.kl-sp-nav-menu a:hover{background:#f3eff9}
.public-card .kl-sp-public-nav{margin-bottom:10px}
.kl-sp-public{min-height:100vh;color:var(--sp-text,#322a2d);font-family:Poppins,Inter,Arial,sans-serif;padding:24px 18px 42px}
.kl-sp-public-container{width:100%;max-width:650px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:0}
.kl-sp-public-container .kl-sp-public-nav{margin-bottom:28px}
.kl-sp-public-brand{height:115px;width:115px;border-radius:50%;background:white;display:grid;place-items:center;overflow:hidden;margin:0 auto 23px}
.kl-sp-public-brand img{max-height:70%;max-width:70%;width:auto;height:auto;object-fit:contain}
.kl-sp-public-brand span{font-size:36px;font-weight:700}
.kl-sp-public h1{font-size:26px;font-weight:600;line-height:1.25;text-align:center;letter-spacing:-.035em;margin:0 0 17px}
.kl-sp-public-subtitle{font-size:14px;text-align:center;margin:-6px 0 23px;opacity:.8}
.kl-sp-top-social{display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap;margin:6px 0 26px}
.kl-sp-social-icon{color:#191919;text-decoration:none;display:grid;place-items:center}
.kl-sp-social-icon svg{height:27px;width:27px;stroke-width:2.3}
.kl-sp-contact-card{width:100%;text-align:center;padding:32px 22px;background:#fff7;border-radius:24px;margin:5px auto 22px;line-height:1.65}
.kl-sp-contact-card p{font-size:clamp(15px,2.3vw,21px);margin:0 0 23px;overflow-wrap:anywhere}
.kl-sp-contact-card p:last-child{margin-bottom:0}
.kl-sp-description{font-size:13px;text-align:center;line-height:1.6;margin:0 auto 20px;max-width:530px}
.kl-sp-public-button{width:100%;position:relative;min-height:66px;background:var(--sp-color,#7c3ced);display:flex;align-items:center;justify-content:center;padding:14px 55px;gap:10px;margin:0 0 13px;color:#fff;border-radius:999px;text-decoration:none;text-align:center;box-sizing:border-box}
.kl-sp-public-button:hover{filter:brightness(.96)}
.kl-sp-public-button>svg{height:34px;width:34px;position:absolute;left:21px;stroke-width:2.1}
.kl-sp-public-button span{display:flex;flex-direction:column;gap:3px}
.kl-sp-public-button strong{font-weight:500;font-size:15px;line-height:1.3}
.kl-sp-public-button small{font-size:11px;line-height:1.4}
.kl-sp-home-link{margin:28px auto 20px;text-align:center;color:var(--sp-text,#3e216f);opacity:.78;font-size:12px}
.kl-sp-powered{font-size:11px;text-align:center;opacity:.5;margin:10px auto 20px}
.kl-sp-demo-flag{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);padding:8px 13px;border:1px solid #d8c8f3;border-radius:999px;background:white;color:#5a388a;font-size:11px;box-shadow:0 6px 24px #20074224;z-index:80;white-space:nowrap}
.kl-sp-copy-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:999;background:#301955;color:white;padding:12px 18px;border-radius:10px;box-shadow:0 7px 22px #0002;font-size:13px}
.kl-sp-notfound{text-align:center;padding:80px 20px}
.kl-sp-notfound p{margin:20px 0}
@media(max-width:900px){.kl-sp-layout{grid-template-columns:minmax(0,1fr)}.kl-sp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.kl-sp-dialog{padding:20px}}
@media(max-width:560px){.kl-sp-list,.kl-sp-info-grid{grid-template-columns:1fr}.kl-sp-heading{align-items:start;flex-direction:column}.kl-sp-public{padding:14px 17px 34px}.kl-sp-public-brand{width:98px;height:98px}.kl-sp-public h1{font-size:23px}.kl-sp-contact-card{border-radius:18px;padding:24px 16px}.kl-sp-contact-card p{font-size:16px}.kl-sp-public-button{min-height:58px;padding:11px 45px}.kl-sp-public-button>svg{width:27px;height:27px;left:17px}.kl-sp-public-button strong{font-size:13px}.kl-sp-top-social{gap:19px}}
