/* GambleFiHub risk notes: collapsible card on project pages + /projects/<slug>/risks/ subpages */
.project-research .gx-risks{padding:0;overflow:hidden;border-color:#5a4a3a;background:linear-gradient(140deg,#262433,#1c2235)}
.gx-rk>summary{display:flex;align-items:center;gap:14px;padding:18px 24px;cursor:pointer;list-style:none;min-height:44px}
.gx-rk>summary::-webkit-details-marker{display:none}
.gx-rk>summary::after{content:"";flex:none;width:9px;height:9px;margin:0 6px 4px auto;border-right:2px solid #ffbd59;border-bottom:2px solid #ffbd59;transform:rotate(45deg);transition:transform .2s}
.gx-rk[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
.gx-rk>summary:hover h2{color:#ffd28f}
.gx-rk>summary:focus-visible{outline:2px solid #ffbd59;outline-offset:-4px;border-radius:14px}
.gx-rk-ico{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffbd591a;border:1px solid #ffbd5966;color:#ffbd59;font-weight:800;font-size:.95rem}
.gx-rk-t{display:flex;flex-direction:column;min-width:0}
.project-research .gx-rk h2{margin:0;font-size:1.2rem;line-height:1.25}
.gx-rk-sub{color:#adb9cd;font-size:.8rem;line-height:1.4;margin-top:2px}
.gx-rk-body{padding:4px 24px 20px;border-top:1px solid #ffffff12}
.gx-rk-list{list-style:none;margin:12px 0 0;padding:0}
.gx-rk-list li{position:relative;padding:9px 0 9px 20px;color:#d0d7e3;font-size:.9375rem;line-height:1.6;border-top:1px solid #ffffff0d;overflow-wrap:anywhere}
.gx-rk-list li:first-child{border-top:0}
.gx-rk-list li::before{content:"";position:absolute;left:2px;top:18px;width:7px;height:7px;border-radius:50%;background:#ffbd59}
.gx-rk-k{color:#e3d4f1;font-weight:700}
.gx-rk-more{margin:12px 0 0!important}
.gx-rk-more a,.rk-page a.rk-a,.rk-page .rk-src a,.rk-page .rk-back a,.rk-page .rk-gl a{color:#ffbd59;text-decoration:underline;text-underline-offset:3px;font-weight:600}
/* subpage */
.rk-page .rk-head{margin:6px 0 18px}
.rk-page .rk-head h1{font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.2;margin:0 0 12px}
.rk-page .rk-lead{color:#d0d7e3;font-size:1rem;line-height:1.65;max-width:78ch}
.rk-page .rk-glance{margin:22px 0}
.rk-page .rk-glance h2{margin-bottom:6px}
.rk-page .rk-sec{margin-top:20px}
.rk-page .rk-sec h2{display:flex;align-items:center;gap:10px}
.rk-page .rk-n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffffff12;color:#c6acde;font-size:.8rem;font-weight:700}
.rk-items{list-style:none;margin:0;padding:0}
.rk-items li{padding:12px 0;border-top:1px solid #ffffff12}
.rk-items li:first-child{border-top:0;padding-top:0}
.project-research .rk-items p{margin:0;max-width:none}
.rk-tag{display:inline-block;margin-right:8px;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:2px}
.rk-tag-f{color:#ffbd59;background:#ffbd5917}
.rk-tag-n{color:#b9bcc6;background:#ffffff12}
.project-research .rk-items .rk-src{margin-top:4px;color:#adb9cd;font-size:.8rem;line-height:1.5}
.project-research .rk-gl{margin-top:12px;color:#adb9cd;font-size:.8rem}
.rk-page .rk-caveats ul{margin:0;padding-left:1.15em;color:#d0d7e3;font-size:.9rem;line-height:1.6}
.rk-page .rk-caveats li{margin:.35em 0}
.rk-page .rk-back{margin:24px 0 0;font-size:.95rem}
.rk-page .breadcrumb .rk-sep{margin:0 .45em;color:#8e8aa3}
@media (max-width:700px){
.gx-rk>summary{padding:16px 18px;gap:12px}
.gx-rk-body{padding:4px 18px 16px}
.project-research .gx-rk h2{font-size:1.1rem}
}
.rk-page .rk-related ul{margin:8px 0 0;padding-left:20px;display:grid;gap:8px}
.rk-page .rk-related li{line-height:1.55}
.rk-page .rk-related a{color:#ffbd59;text-decoration:underline;text-underline-offset:3px;font-weight:600}
