/* BCIL Country Rapporteur Portal (shared by the public portal and the team dashboard panel). Builds on team hub app.css. */

/* status pills */
.pill.s-submitted{background:var(--bluesoft);color:var(--blue)}
.pill.s-in_review{background:var(--ambersoft);color:var(--amber)}
.pill.s-major{background:#FCE6D6;color:#8A3B00}
.pill.s-minor{background:var(--goldsoft);color:var(--goldt)}
.pill.s-revised{background:#E8E4F5;color:#4A3A86}
.pill.s-accepted{background:var(--mint);color:var(--gd)}
.pill.s-rejected{background:var(--redsoft);color:var(--red)}
.pill.a-pending{background:var(--ambersoft);color:var(--amber)}
.pill.a-active{background:var(--mint);color:var(--gd)}
.pill.a-rejected{background:var(--redsoft);color:var(--red)}
.pill.a-suspended{background:var(--line2);color:var(--muted)}

/* public portal shell */
.crp-body{background:var(--mist)}
.crp-top{background:var(--gd);color:#fff;border-bottom:3px solid var(--gold)}
.crp-top-in{max-width:1100px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:14px}
.crp-top .brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:0}
.crp-top .brand b{font-family:var(--serif);font-weight:400;font-size:17px;line-height:1.2;display:block}
.crp-top .brand small{display:block;color:rgba(255,255,255,.65);font-size:12px}
.crp-top .sp{flex:1}
.crp-top .who{text-align:right;line-height:1.25;font-size:14px}
.crp-top .who small{display:block;color:rgba(255,255,255,.6);font-size:12px}
.crp-top .iconbtn{color:#D5E3DA}
.crp-top .iconbtn:hover{background:rgba(255,255,255,.1)}
.crp-nav{background:var(--paper);border-bottom:1px solid var(--line)}
.crp-nav-in{max-width:1100px;margin:0 auto;padding:0 20px;display:flex;gap:4px;overflow-x:auto}
.crp-nav a{display:inline-flex;align-items:center;gap:8px;padding:13px 4px;margin-right:22px;color:var(--muted);font-weight:600;text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}
.crp-nav a svg{width:17px;height:17px}
.crp-nav a.on{color:var(--g);border-color:var(--g)}
.crp-wrap{max-width:1100px;margin:0 auto;padding:26px 20px 60px}
.crp-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.crp-h h1{font-size:28px;line-height:1.2}
.crp-h p{margin:4px 0 0;color:var(--muted)}
.crp-foot{max-width:1100px;margin:0 auto;padding:0 20px 30px;color:var(--faint);font-size:13px}

/* summary chips */
.crp-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:20px}
.crp-sum button{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:14px 16px;text-align:left;cursor:pointer}
.crp-sum button:hover{border-color:#B9C7BE}
.crp-sum button.on{border-color:var(--g);box-shadow:0 0 0 2px rgba(12,90,53,.12)}
.crp-sum b{display:block;font-family:var(--serif);font-weight:400;font-size:26px;line-height:1.1}
.crp-sum span{font-size:13px;color:var(--muted);font-weight:600}

/* boxes */
.crp-note{border-radius:10px;padding:14px 16px;margin-bottom:18px;border:1px solid var(--line);background:var(--paper)}
.crp-note b{display:block;margin-bottom:2px}
.crp-note.info{background:var(--bluesoft);border-color:#C9D9EA}
.crp-note.warn{background:#FCF1E6;border-color:#EBCFAE}
.crp-note.good{background:var(--mint);border-color:#BFD9C8}
.crp-note.bad{background:var(--redsoft);border-color:#E9C3BF}
.crp-note p{margin:4px 0 0}

/* file picker */
.crp-drop{display:flex;align-items:center;gap:14px;border:1.5px dashed #B9C7BE;border-radius:10px;padding:16px;background:#FAFCFB;cursor:pointer;position:relative}
.crp-drop:hover,.crp-drop.over{border-color:var(--g);background:var(--mint)}
.crp-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.crp-drop .ico{width:42px;height:42px;border-radius:8px;background:var(--paper);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--g);flex:none}
.crp-drop .ico svg{width:22px;height:22px}
.crp-drop b{display:block;font-size:14.5px}
.crp-drop small{color:var(--muted)}
.crp-drop.has{border-style:solid;border-color:var(--g);background:var(--paper)}
.crp-drop.bad{border-color:var(--red);background:var(--redsoft)}
.crp-prog{height:8px;border-radius:4px;background:var(--line2);overflow:hidden;margin-top:12px}
.crp-prog i{display:block;height:100%;width:0;background:var(--g);transition:width .2s}

/* files */
.crp-files{list-style:none;margin:0;padding:0}
.crp-files li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line2)}
.crp-files li:last-child{border-bottom:0}
.crp-files .ico{width:36px;height:36px;border-radius:8px;background:var(--bluesoft);color:var(--blue);display:flex;align-items:center;justify-content:center;flex:none}
.crp-files .ico.rv{background:#FCE6D6;color:#8A3B00}
.crp-files .ico svg{width:18px;height:18px}
.crp-files .m{flex:1;min-width:0}
.crp-files .m b{display:block;font-size:14.5px}
.crp-files .m small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* timeline */
.crp-tl{list-style:none;margin:0;padding:0 0 0 4px}
.crp-tl li{position:relative;padding:0 0 18px 26px}
.crp-tl li:before{content:"";position:absolute;left:5px;top:6px;bottom:-6px;width:2px;background:var(--line2)}
.crp-tl li:last-child:before{display:none}
.crp-tl li:after{content:"";position:absolute;left:0;top:4px;width:12px;height:12px;border-radius:50%;background:var(--paper);border:2px solid var(--g)}
.crp-tl li.int:after{border-color:var(--gold);border-style:dashed}
.crp-tl .h{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:14px}
.crp-tl .h small{color:var(--faint)}
.crp-tl .msg{white-space:pre-wrap;word-wrap:break-word;background:var(--mist);border-radius:8px;padding:10px 12px;margin-top:8px;font-size:14.5px}
.crp-tl li.int .msg{background:#FBF6E7}
.crp-tl .fl{margin-top:8px}

/* layout */
.crp-cols{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.crp-cols .stack>.panel{margin-bottom:16px}
.crp-meta{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;font-size:14px;margin:0}
.crp-meta dt{color:var(--muted)}
.crp-meta dd{margin:0;word-wrap:break-word}
.crp-abs{white-space:pre-wrap;word-wrap:break-word;font-size:14.5px;margin:0}
.crp-title{font-size:24px;line-height:1.25;margin:6px 0 8px}
.crp-ref{font-size:13px;color:var(--muted);font-weight:600;letter-spacing:.02em}
.crp-back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14px;margin-bottom:12px;background:none;border:0;cursor:pointer;padding:0}
.crp-back svg{width:16px;height:16px}
.crp-back:hover{color:var(--g)}
.crp-steps{display:flex;gap:6px;margin:4px 0 0;padding:0;list-style:none;flex-wrap:wrap}
.crp-steps li{font-size:12.5px;font-weight:700;color:var(--faint);display:flex;align-items:center;gap:6px}
.crp-steps li:not(:last-child):after{content:"";width:18px;height:2px;background:var(--line)}
.crp-steps li.on{color:var(--g)}
.crp-steps li.on:not(:last-child):after{background:var(--g)}
.crp-ttl{font-weight:600;font-size:14.5px}
.crp-ttl small{display:block;font-weight:400;color:var(--muted);font-size:13px}
.crp-tablewrap{overflow-x:auto}
.crp-count{color:var(--muted);font-size:13px;margin-left:auto}
.crp-hint{font-size:13px;color:var(--muted);margin:6px 0 0}
.crp-req{color:var(--red)}
.crp-access td,.crp-access th{padding-left:16px!important;padding-right:16px!important}
.crp-access input{accent-color:var(--g);width:17px;height:17px}

@media (max-width:900px){
.crp-cols{grid-template-columns:1fr}
.crp-top .who{display:none}
.crp-h h1{font-size:24px}
}
@media (max-width:640px){
.crp-meta{grid-template-columns:1fr;gap:2px}
.crp-meta dd{margin-bottom:8px}
.crp-wrap{padding:18px 14px 50px}
table.t.crp-rs thead{display:none}
table.t.crp-rs tr{display:block;border-bottom:1px solid var(--line2);padding:10px 0}
table.t.crp-rs td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 16px}
table.t.crp-rs td:before{content:attr(data-l);color:var(--muted);font-size:13px;font-weight:600}
table.t.crp-rs td.crp-ttl{display:block}
table.t.crp-rs td.crp-ttl:before{display:none}
}
/* stage pills */
.pill.g-proposal{background:#EEF2F7;color:#3B4E66;border:1px solid #D6DFEA}
.pill.g-full{background:#E9F3EC;color:#0C5A35;border:1px solid #C7DFCF}

/* profile photo, publication choice, help (Nov 2026) */
.crp-photo{display:flex;gap:14px;align-items:center}
.crp-ph{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#DDE9E1;display:flex;align-items:center;justify-content:center;color:#0C5A35;flex:none}
.crp-ph img{width:100%;height:100%;object-fit:cover}
.crp-ph svg{width:34px;height:34px}
.crp-phbtn{position:relative;overflow:hidden;cursor:pointer}
.crp-phbtn input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.crp-photo .crp-hint{display:block;margin-top:6px}
.crp-hint.bad{color:#b42318}
.crp-radio{display:flex;flex-direction:column;gap:8px}
.crp-radio label{display:flex;gap:10px;align-items:flex-start;border:1px solid #D8E1DB;border-radius:8px;padding:10px 12px;cursor:pointer;background:#fff}
.crp-radio label:has(input:checked){border-color:#0C5A35;background:#F1F5F2}
.crp-radio input{margin-top:4px}
.crp-radio b{display:block;font-size:14.5px}
.crp-radio .crp-hint{display:block;margin-top:2px}
.crp-faq details{border:1px solid #D8E1DB;border-radius:8px;margin-bottom:8px;background:#fff}
.crp-faq summary{cursor:pointer;padding:12px 14px;font-weight:700}
.crp-faq details>div{padding:0 14px 12px;color:#55645B}
.crp-faq details>div p{margin:0 0 8px}

/* first-login photo gate */
body.crp-locked{overflow:hidden}
.crp-gate{position:fixed;inset:0;z-index:9999;background:rgba(8,63,37,.72);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}
.crp-gate-box{background:#fff;border-radius:12px;max-width:520px;width:100%;padding:28px 28px 24px;box-shadow:0 20px 60px rgba(0,0,0,.35);border-top:4px solid var(--gold);margin:auto}
.crp-gate-box h2{font-family:var(--serif);font-weight:400;font-size:24px;margin:0 0 8px;color:var(--gd)}
.crp-gate-box .muted{margin:0 0 14px;line-height:1.55}
.crp-gate-list{margin:0 0 18px;padding-left:20px;line-height:1.6;font-size:14px}
.crp-gate-list li{margin-bottom:4px}
.crp-gate .crp-photo{margin-bottom:6px}
.crp-gate-act{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.crp-gate-act .btn.primary{flex:1;min-width:200px}
.crp-gate-act .btn[disabled]{opacity:.55;cursor:not-allowed}
