/* RC4 application additions: workspace navigation, picker, Knowledge Center. */
html{scroll-behavior:smooth;scroll-padding-top:84px}
#landing section[id]{scroll-margin-top:84px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* workspace accent: Recond keeps the RC3 red, Proton is blue so the active workspace is unmistakable */
body[data-ws="proton"]{--red:#1d4ed8}
body[data-ws="proton"] .nav button.active,body[data-ws="proton"] .bottom-nav button.active{color:#1d4ed8}
body[data-ws="proton"] .bottom-nav button.active{background:#e8efff}
body[data-ws="proton"] input:focus,body[data-ws="proton"] textarea:focus,body[data-ws="proton"] select:focus{outline-color:#1d4ed83a;border-color:#1d4ed8}
.sidebar .mark{background:linear-gradient(135deg,#f59e0b,#ea580c);color:#1a0f00;border-bottom-color:#7c2d12}
.biz-pill{font-weight:800;letter-spacing:.06em;background:#282830}
.biz-pill.recond{background:#be2939}
.biz-pill.proton{background:#1d4ed8}
.biz-tag{margin-left:6px;background:#fff1d6;color:#7a4a00}

/* dropdown groups */
.ws-grp{display:grid;gap:4px;margin-bottom:8px}
.nav .ws-head{justify-content:flex-start;gap:9px;font-size:12px;font-weight:800;letter-spacing:.08em;background:#ffffffb0;border:1px solid #fff;color:#25252d}
.ws-head .dot{width:10px;height:10px;border-radius:50%;background:#be2939;flex:none}
.ws-grp.proton .ws-head .dot{background:#1d4ed8}
.ws-head i{margin-left:auto;font-style:normal;transition:transform .2s}
.ws-head[aria-expanded="true"] i{transform:rotate(180deg)}
.ws-sub{display:grid;gap:3px;padding-left:8px;border-left:2px solid #e3e3ea;margin-left:6px}
.ws-sub[hidden]{display:none}
.ws-sub button{justify-content:flex-start;font-size:12.5px;min-height:40px;padding:8px 10px;text-align:left}
.ws-grp.proton .ws-sub button.active{color:#1d4ed8}
#moreBody .ws-head{background:#fff}
#moreBody .ws-sub button{width:100%}
#moreBody{display:grid;gap:4px}

/* picker */
.picker{max-width:860px;margin:6vh auto 0;display:grid;gap:14px}
.picker h1{font-size:clamp(1.6rem,4.4vw,2.3rem);margin:0}
.picker-grid{display:grid;gap:16px;margin-top:10px}
@media(min-width:720px){.picker-grid{grid-template-columns:1fr 1fr}}
.picker-card{display:grid;gap:8px;text-align:left;justify-content:stretch;align-items:start;padding:24px;border-radius:24px;min-height:190px;background:#fff;border:2px solid #fff;box-shadow:0 10px 40px #24244212;transition:transform .15s,border-color .15s}
.picker-card:hover{transform:translateY(-3px);border-color:#be2939;background:#fff}
.picker-card.proton:hover{border-color:#1d4ed8}
.picker-card .pc-tag{font-size:11px;font-weight:800;letter-spacing:.14em;color:#be2939}
.picker-card.proton .pc-tag{color:#1d4ed8}
.picker-card b{font-size:22px}
.picker-card small{font-size:13.5px;color:#5d5d68;line-height:1.5}
.picker-card em{font-style:normal;font-weight:700;color:#202025;margin-top:6px}
body.picking .bottom-nav{display:none}
body.picking .main{padding-bottom:30px}

/* Knowledge Center */
.kc-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 16px}
.kc-tabs button{flex:1 1 150px}
.kc-text{width:100%;min-height:340px;height:48vh;max-height:70vh;font-size:16px;line-height:1.6;font-family:Arial,sans-serif;resize:vertical;margin:12px 0 8px}
.kc-meta{gap:8px;flex-wrap:wrap}
.kc-actions{gap:8px;margin-top:12px;flex-wrap:wrap}
.kc-actions .primary{min-width:160px}
.kc-msg{min-height:22px;margin:10px 0 0;font-size:13px;color:#5d5d68}
.kc-msg.good{color:#146c43;font-weight:700}
.kc-msg.bad{color:#a62b3b}
.kc-help{margin:8px 0}
.kc-help summary{cursor:pointer;font-size:13px;font-weight:700;padding:8px 0}
.kc-help ul{margin:4px 0 0;padding-left:20px;font-size:13.5px;line-height:1.7;color:#4a4a55}
.badge.green{background:#dff3e6;color:#146c43}
.badge.warn{background:#fff1d6;color:#7a4a00}
.kc-dirty{background:#ffe9b8;color:#6b4200}
.timeline{border-top:1px solid #ececf2;padding:12px 0}
.kc-test pre{min-height:60px}
details>summary{cursor:pointer}
@media(max-width:700px){.kc-text{min-height:300px;height:44vh}.kc-actions button{flex:1 1 45%}.kc-actions .primary{flex:1 1 100%}}

/* never allow horizontal scroll */
html,body{overflow-x:hidden}
