/* Cellgrids Community Q&A */
.cm-wrap{max-width:1040px;margin:0 auto;padding:0 20px 70px}
.cm-hero{text-align:center;padding:34px 12px 18px}
.cm-eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#C9971E;margin-bottom:8px}
.cm-hero h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:46px;line-height:1.05;color:#14233B;margin:0 0 10px}
.cm-hero p{color:#4A566B;font-size:16.5px;max-width:560px;margin:0 auto 18px;line-height:1.6}
.cm-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 24px;font:600 15px 'Inter',sans-serif;cursor:pointer;text-decoration:none;background:#1F7A45;color:#fff;box-shadow:0 8px 20px rgba(31,122,69,.25)}
.cm-btn:hover{background:#14533A}
.cm-btn.ghost{background:#fff;color:#14233B;border:1.5px solid #E3DFD2;box-shadow:none}
.cm-btn.ghost:hover{border-color:#1F7A45;color:#1F7A45}
.cm-btn.sm{padding:8px 16px;font-size:13.5px}
.cm-btn:disabled{opacity:.55;cursor:not-allowed}
.cm-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.cm-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.cm-search{flex:1;min-width:200px;padding:11px 16px;border:1.5px solid #E3DFD2;border-radius:999px;font:14.5px 'Inter',sans-serif;background:#fff}
.cm-search:focus,.cm-in:focus{outline:none;border-color:#1F7A45;box-shadow:0 0 0 3px rgba(31,122,69,.14)}
.cm-sort{display:flex;background:#fff;border:1.5px solid #E3DFD2;border-radius:999px;padding:3px}
.cm-sort button{border:0;background:none;padding:7px 14px;border-radius:999px;font:600 13px 'Inter',sans-serif;color:#4A566B;cursor:pointer}
.cm-sort button.on{background:#1F7A45;color:#fff}
.cm-topics{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.cm-chip{border:1.5px solid #E3DFD2;background:#fff;border-radius:999px;padding:6px 13px;font:600 12.5px 'Inter',sans-serif;color:#4A566B;cursor:pointer}
.cm-chip.on,.cm-chip:hover{border-color:#1F7A45;color:#14533A;background:#F1F8F3}
.cm-card{display:flex;gap:14px;background:#fff;border:1px solid #E3DFD2;border-radius:18px;padding:16px 18px;margin-bottom:12px;box-shadow:0 2px 8px rgba(20,35,59,.04);transition:box-shadow .15s,border-color .15s}
.cm-card:hover{border-color:#1F7A45;box-shadow:0 10px 26px rgba(20,35,59,.08)}
.cm-score{flex:0 0 54px;text-align:center;font-size:12px;color:#8A8F9A}
.cm-score b{display:block;font:700 20px 'Inter',sans-serif;color:#14233B}
.cm-main{min-width:0;flex:1}
.cm-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:23px;line-height:1.2;font-weight:700;margin:0 0 4px}
.cm-title a{color:#14233B;text-decoration:none}.cm-title a:hover{color:#1F7A45}
.cm-snip{margin:0 0 8px;font-size:14.5px;line-height:1.55;color:#4A566B;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:12.5px;color:#8A8F9A}
.cm-tag{background:#EEF5EF;color:#14533A;border-radius:999px;padding:3px 10px;font-weight:600}
.cm-solved{background:#E4F1E8;color:#1F7A45;border-radius:999px;padding:3px 10px;font-weight:700}
.cm-av{width:22px;height:22px;border-radius:50%;object-fit:cover;background:#14533A;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;vertical-align:middle}
.cm-side{position:sticky;top:92px;display:flex;flex-direction:column;gap:14px}
.cm-box{background:#fff;border:1px solid #E3DFD2;border-radius:18px;padding:18px 20px}
.cm-box h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:21px;margin:0 0 8px;color:#14233B}
.cm-box ul{margin:0;padding-left:18px;font-size:13.5px;line-height:1.65;color:#4A566B}
.cm-empty{text-align:center;padding:40px 16px;color:#8A8F9A;background:#fff;border:1px dashed #E3DFD2;border-radius:18px}
.cm-more{display:block;margin:16px auto 0}
/* modal */
.cm-ov{position:fixed;inset:0;background:rgba(20,35,59,.55);z-index:20000;display:none;align-items:center;justify-content:center;padding:18px}
.cm-ov.open{display:flex}
.cm-modal{background:#fff;border-radius:22px;max-width:580px;width:100%;max-height:92vh;overflow:auto;padding:26px 26px 22px;position:relative}
.cm-modal h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:30px;margin:0 0 4px;color:#14233B}
.cm-x{position:absolute;top:14px;right:16px;border:0;background:none;font-size:24px;color:#8A8F9A;cursor:pointer}
.cm-f{margin-top:14px}.cm-f label{display:block;font-weight:600;font-size:13px;margin-bottom:6px;color:#14233B}
.cm-in{width:100%;box-sizing:border-box;padding:12px 14px;border:1.5px solid #E3DFD2;border-radius:12px;font:14.5px 'Inter',sans-serif;background:#fff}
textarea.cm-in{min-height:120px;resize:vertical}
.cm-count{font-size:11.5px;color:#8A8F9A;text-align:right;margin-top:3px}
.cm-msg{font-size:13.5px;margin-top:10px;min-height:18px}
.cm-msg.err{color:#B3261E}.cm-msg.ok{color:#1F7A45}
/* question page */
.cm-q{background:#fff;border:1px solid #E3DFD2;border-radius:20px;padding:24px;box-shadow:0 10px 30px rgba(20,35,59,.06)}
.cm-q h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:36px;line-height:1.12;color:#14233B;margin:8px 0 10px}
.cm-body{font-size:16px;line-height:1.75;color:#26334A;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.cm-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}
.cm-act{border:1.5px solid #E3DFD2;background:#fff;border-radius:999px;padding:7px 14px;font:600 13px 'Inter',sans-serif;color:#4A566B;cursor:pointer}
.cm-act:hover{border-color:#1F7A45;color:#14533A}
.cm-act.on{background:#E4F1E8;border-color:#1F7A45;color:#14533A}
.cm-act.link{border:0;background:none;padding:7px 6px;color:#8A8F9A;font-weight:500}
.cm-h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:28px;color:#14233B;margin:30px 0 12px}
.cm-ans{background:#fff;border:1px solid #E3DFD2;border-radius:18px;padding:18px 20px;margin-bottom:12px}
.cm-ans.best{border-color:#1F7A45;box-shadow:0 0 0 3px rgba(31,122,69,.1)}
.cm-bestflag{display:inline-block;background:#1F7A45;color:#fff;border-radius:999px;padding:3px 11px;font-size:12px;font-weight:700;margin-bottom:8px}
.cm-reply{margin:12px 0 0 18px;padding:10px 0 0 14px;border-left:3px solid #ECE8DC}
.cm-reply .cm-body{font-size:14.5px;line-height:1.6}
.cm-who{display:flex;align-items:center;gap:8px;font-size:13px;color:#8A8F9A;margin-bottom:8px}
.cm-who b{color:#14233B}
.cm-form{background:#F7F4EC;border:1px solid #E3DFD2;border-radius:18px;padding:18px;margin-top:10px}
.cm-login{text-align:center;padding:20px;background:#F7F4EC;border-radius:18px;border:1px solid #E3DFD2}
.cm-crumbs{font-size:13px;color:#8A8F9A;margin:6px 0}
.cm-crumbs a{color:#1F7A45;text-decoration:none}
.cm-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#14233B;color:#fff;padding:11px 20px;border-radius:999px;font-size:14px;z-index:30000;opacity:0;pointer-events:none;transition:opacity .2s}
.cm-toast.on{opacity:1}
@media(max-width:860px){.cm-grid{grid-template-columns:1fr}.cm-side{position:static}.cm-hero h1{font-size:36px}.cm-q h1{font-size:28px}.cm-score{display:none}}

/* ---- neat Quora-style list (v2) ---- */
.cm-wrap{max-width:720px}
.cm-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 0 12px}
.cm-head h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:34px;line-height:1;color:#14233B;margin:0}
.cm-head .cm-search{flex:0 1 240px;min-width:0;padding:9px 16px;font-size:14px}
.cm-compose{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;background:#fff;border:1px solid #E3DFD2;border-radius:14px;padding:12px 14px;margin-bottom:14px;cursor:pointer;text-align:left;font-family:'Inter',sans-serif}
.cm-compose:hover{border-color:#1F7A45}
.cm-compose-av{flex:0 0 34px;height:34px;border-radius:50%;background:#14533A;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;overflow:hidden}
.cm-compose-av img{width:100%;height:100%;object-fit:cover}
.cm-compose-txt{flex:1;color:#8A8F9A;font-size:15px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-compose-btn{background:#1F7A45;color:#fff;border-radius:999px;padding:7px 18px;font-weight:600;font-size:13.5px}
#cmList{background:#fff;border:1px solid #E3DFD2;border-radius:14px;overflow:hidden}
#cmList .cm-empty{border:0;border-radius:0;background:none}
#cmList .cm-card{display:block;border:0;border-bottom:1px solid #ECE8DC;border-radius:0;margin:0;box-shadow:none;padding:16px 18px}
#cmList .cm-card:last-child{border-bottom:0}
#cmList .cm-card:hover{background:#FBFAF6;box-shadow:none}
#cmList .cm-title{font:600 18px/1.35 'Inter',sans-serif;margin:6px 0 4px}
#cmList .cm-title a{color:#14233B}
#cmList .cm-snip{font-size:14px;margin:0 0 8px}
.cm-top{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#8A8F9A}
.cm-top b{color:#14233B;font-weight:600}
.cm-top .dot{opacity:.6}
.cm-foot{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#8A8F9A;align-items:center}
.cm-tag{background:#F1F4F0;font-size:12px}
@media(max-width:560px){.cm-head h1{font-size:28px}.cm-head .cm-search{flex-basis:140px}.cm-compose-txt{font-size:14px}}

/* Quora-like spacing */
body{background:#F5F3EC}
.cm-wrap{max-width:700px;padding-bottom:80px}
.cm-head{padding:18px 4px 10px}
.cm-head h1{font-size:26px;font-family:'Inter',sans-serif;font-weight:700;letter-spacing:-.01em}
.cm-compose{border-radius:12px;padding:14px 16px;box-shadow:0 1px 2px rgba(20,35,59,.05)}
.cm-compose-txt{background:#F5F3EC;border:1px solid #E3DFD2;border-radius:999px;padding:9px 16px;color:#8A8F9A}
#cmList{background:none;border:0;border-radius:0;overflow:visible}
#cmList .cm-card{background:#fff;border:1px solid #E3DFD2;border-radius:12px;margin-bottom:12px;padding:18px 20px;box-shadow:0 1px 2px rgba(20,35,59,.05)}
#cmList .cm-card:last-child{border-bottom:1px solid #E3DFD2}
#cmList .cm-card:hover{background:#fff;border-color:#CFCAB9}
#cmList .cm-title{font-size:17.5px;font-weight:700;margin:10px 0 6px}
#cmList .cm-snip{font-size:15px;line-height:1.55;-webkit-line-clamp:3;margin:0 0 12px}
#cmList .cm-empty{background:#fff;border:1px solid #E3DFD2;border-radius:12px}
.cm-av{width:36px;height:36px;font-size:14px}
.cm-top{gap:10px}.cm-top b{font-size:14px}
.cm-compose:focus{outline:none}.cm-compose:focus-visible{outline:2px solid #1F7A45}
@media(max-width:560px){.cm-compose-btn{display:none}}

.cm-wrap{max-width:860px}
#cmList .cm-snip{-webkit-line-clamp:5;margin-bottom:6px}
.cm-readmore{display:inline-block;font-size:13.5px;font-weight:600;color:#1F7A45;text-decoration:none;margin-bottom:10px}
.cm-readmore:hover{text-decoration:underline}
#cmList .cm-card{padding:20px 24px}

/* question page navigation */
.cm-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 14px}
.cm-sform{flex:0 1 240px;margin:0}
.cm-sform .cm-search{width:100%;box-sizing:border-box;padding:9px 16px;font-size:14px;min-width:0}
.cm-morelist{background:#fff;border:1px solid #E3DFD2;border-radius:12px;overflow:hidden}
.cm-morerow{display:block;padding:14px 18px;border-bottom:1px solid #ECE8DC;text-decoration:none}
.cm-morerow:last-child{border-bottom:0}
.cm-morerow:hover{background:#FBFAF6}
.cm-moret{display:block;font:600 16px/1.35 'Inter',sans-serif;color:#14233B;margin-bottom:5px}
.cm-moremeta{font-size:12.5px;color:#8A8F9A}
.cm-seeall{font-weight:600;color:#1F7A45;text-decoration:none}
.cm-seeall:hover{text-decoration:underline}

.cm-topbar{flex-wrap:nowrap!important}.cm-topbar .cm-btn{white-space:nowrap}.cm-sform .cm-search{min-width:0!important;flex:none}

/* share menu */
.cm-share{position:absolute;z-index:25000;width:200px;background:#fff;border:1px solid #E3DFD2;border-radius:12px;box-shadow:0 14px 34px rgba(20,35,59,.18);padding:6px;display:flex;flex-direction:column}
.cm-share-h{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8A8F9A;padding:6px 10px 4px}
.cm-share a,.cm-share button{display:block;text-align:left;border:0;background:none;padding:9px 10px;border-radius:8px;font:600 14px 'Inter',sans-serif;color:#14233B;text-decoration:none;cursor:pointer}
.cm-share a:hover,.cm-share button:hover{background:#F1F8F3;color:#14533A}
.cm-sharebtn{margin-left:auto;border:0;background:none;font:600 12.5px 'Inter',sans-serif;color:#4A566B;cursor:pointer;padding:4px 8px;border-radius:999px}
.cm-sharebtn:hover{background:#F1F8F3;color:#14533A}

/* share sheet */
.cm-shsheet{max-width:420px;text-align:center}
.cm-shsheet h2{font-size:26px;margin:0 0 18px}
.cm-shgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 8px}
.cm-shitem{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;text-decoration:none;color:#14233B;font:600 13px 'Inter',sans-serif;cursor:pointer;padding:0}
.cm-sh-ic{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(20,35,59,.16);transition:transform .15s}
.cm-shitem:hover .cm-sh-ic{transform:translateY(-3px)}
@media(max-width:560px){.cm-shov{align-items:flex-end;padding:0}.cm-shsheet{max-width:none;border-radius:22px 22px 0 0;padding-bottom:28px}}
/* feed: full text, pill actions */
#cmList .cm-snip{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;font-size:15px;line-height:1.65;color:#26334A;margin:0 0 12px}
.cm-feedacts{margin-top:12px;padding-top:12px;border-top:1px solid #F0EDE3}
.cm-feedacts .cm-act{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.cm-feedacts .cm-act.on{background:#E4F1E8;border-color:#1F7A45;color:#14533A}
.cm-ic{flex:none}
.cm-act .cm-ic{margin-right:0}
.cm-foot{margin-bottom:0}

/* feed preview: a fixed-height box, scroll inside it or click Read more */
#cmList .cm-snip{max-height:136px;overflow-y:auto;overflow-x:hidden;padding-right:8px;margin:0 0 6px;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#CFCAB9 transparent}
#cmList .cm-snip::-webkit-scrollbar{width:6px}
#cmList .cm-snip::-webkit-scrollbar-thumb{background:#CFCAB9;border-radius:6px}

/* inline expand in the feed */
#cmList .cm-card.open .cm-snip{max-height:none;overflow:visible}
.cm-feedacts{flex-wrap:wrap}
.cm-exp{margin-top:14px;padding-top:14px;border-top:1px solid #F0EDE3}
.cm-exp-top{text-align:right;margin-bottom:8px}
.cm-openpage{font-size:12.5px;font-weight:600;color:#8A8F9A;text-decoration:none}
.cm-openpage:hover{color:#1F7A45}
.cm-noans{text-align:center;color:#8A8F9A;padding:14px;background:#FBFAF6;border:1px dashed #E3DFD2;border-radius:12px;margin-bottom:12px}
.cm-exp .cm-ans{margin-bottom:10px}
.cm-exp .cm-form{margin-top:10px}
.cm-less{margin-top:14px}
.cm-readmore span{pointer-events:none}

.cm-ext{color:#1F7A45;text-decoration:underline;word-break:break-all}
.cm-ext:hover{color:#16603a}

.cm-ansbtn{color:#1F7A45;border-color:#BFDCC9}
