/* Ratings Prime calculator 2.0 (Oct 2026): figure + one smart panel. Loads after calc5.css and overrides its layout. */
.rpc6{padding:76px 24px 40px}
.rpc6 .rpc-in{max-width:1240px}
.rpc6 .rpc-head{display:grid;grid-template-columns:auto minmax(0,1fr);justify-content:space-between;gap:16px 32px;align-items:end;margin-bottom:18px}
.rpc6 .rpc-eyebrow{margin-bottom:8px}
.rpc6 .rpc-h1{font-size:clamp(30px,3.2vw,44px);white-space:nowrap}
.rpc6 .rpc-sub{font-size:16px;margin-top:8px;max-width:52ch}
.rpc6 .rpc-steps{margin:0;display:flex;gap:8px;justify-content:flex-end}
.rpc6 .rpc-steps li{padding:9px 12px;border-radius:12px;font-size:13px;gap:9px;align-items:center;background:#fff}
.rpc6 .rpc-steps li b{width:24px;height:24px;line-height:24px;font-size:12px}
.rpc6 .rpc-steps li br{display:none}

/* grid: figure | panel, conditions under the figure */
.rpc6 .rpc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px);grid-template-areas:'stage res' 'conds res';gap:18px 20px;align-items:start}
.rpc6 .rpc-stagewrap{grid-area:stage;padding:14px 14px 10px;border-radius:22px;background:#F3F1EC;border:1px solid var(--line);box-shadow:none}
.rpc6 .rpc-conds{grid-area:conds;position:static;max-height:none;padding:18px 20px 16px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:none;overflow:visible}
.rpc6 .rpc-results{grid-area:res;position:sticky;top:72px;max-height:calc(100vh - 92px);overflow:hidden;display:flex;flex-direction:column;padding:16px 20px 20px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 24px 48px -32px rgba(22,58,45,.35);min-height:640px}
.rpc6 .rpc-results>.rt-pane{overflow:auto;scrollbar-width:thin;min-height:0}

/* figure */
.rpc6 .explorer-heading{display:none}
.rpc6 .stage-ctrls{margin:0 0 10px}
.rpc6 .sb-stage{height:600px;border-radius:16px}
.rpc6 .explorer-footer{padding:10px 2px 0}
.rpc6 .explorer-footer p{font-size:13px;margin-bottom:8px}
.rpc6 .art-note{display:none}
/* traced regions: the real body part lights up */
.rpc6 .region-hit{fill:transparent;stroke:transparent;stroke-width:2.5;stroke-linejoin:round;transition:fill .18s,stroke .18s}
.rpc6 .body-region:hover .region-hit,.rpc6 .body-region:focus-visible .region-hit{fill:rgba(22,58,45,.20);stroke:rgba(22,58,45,.85)}
.rpc6 .body-region.selected .region-hit{fill:rgba(22,58,45,.30);stroke:#163A2D;stroke-width:3}
.rpc6 .body-region.rated .region-hit{fill:rgba(183,146,71,.16);stroke:rgba(183,146,71,.8)}
.rpc6 .body-region.rated:hover .region-hit{fill:rgba(183,146,71,.28)}
.rpc6 .body-region.ear .region-hit{stroke-width:1.5}
.rpc6 .region-dot{opacity:0;transition:opacity .2s}
.rpc6 .body-region.rated .region-dot{opacity:1;fill:#B79247;stroke:#fff;stroke-width:2}
.rpc6 .body-regions.has-selection .body-region:not(.selected):hover:not(:focus-visible) .region-hit{fill:rgba(22,58,45,.10);stroke:rgba(22,58,45,.4)}

/* conditions as chips */
.rpc6 .cc-head{margin-bottom:10px}
.rpc6 .cc-head h2{font-size:18px}
.rpc6 .cc-list{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;overflow:visible;min-height:0;flex:none}
.rpc6 .cc-item{margin:0;padding:6px 6px 6px 10px;border-radius:999px;gap:8px;background:var(--ivory);border-color:var(--line)}
.rpc6 .cc-item .ci{width:26px;height:26px}
.rpc6 .cc-main{padding:0;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.rpc6 .cc-name{font-size:14px;font-weight:600;white-space:nowrap}
.rpc6 .cc-meta{font-size:11px}
.rpc6 .cc-meta .cat{display:none}
.rpc6 .cc-pct select{min-width:62px;height:32px;border-radius:999px}
.rpc6 .cc-x{width:30px;height:30px}
.rpc6 .cc-empty{width:100%;border:1px dashed #D6DDD5;border-radius:14px;padding:14px;text-align:center;font-size:14px;color:var(--ink2);list-style:none}
.rpc6 .cc-browse{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:12px 0 0;font-size:13.5px;color:var(--ink2)}
.rpc6 .cc-browse .cc-add{display:inline-flex;align-items:center;gap:6px;margin:0;width:auto;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font:600 13.5px var(--sans);color:var(--green);cursor:pointer}
.rpc6 .cc-browse .cc-add svg{width:16px;height:16px}
.rpc6 .cc-browse #ccBrowse{border:0;background:0;padding:0;font:inherit;color:var(--green);text-decoration:underline;cursor:pointer}
.rpc6 .wi-note{margin:0 0 10px}

/* panel */
.rpc6 .rpc-mode{width:100%;margin:0 0 12px;border-radius:12px}
.rpc6 .rpc-mode button{flex:1;padding:9px 10px;font-size:14px;border-radius:9px}
.rpc6 .sb-search{margin:0 0 14px}
.rpc6 .sb-search input{height:44px}
.rpc6 .rt-tabs{margin-bottom:8px}
.rpc6 .rt-big{font-size:clamp(56px,5vw,76px);margin:2px 0 10px}

/* the dossier slides over the panel instead of appearing under the figure */
.rpc6 .sb-dossier{position:absolute;inset:0;margin:0;max-height:none;border:0;border-radius:22px;background:#fff;box-shadow:none;display:flex;flex-direction:column;transform:translateX(24px);opacity:0;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s;z-index:5;pointer-events:none}
.rpc6 .sb-dossier.open{transform:none;opacity:1;pointer-events:auto}
.rpc6 .sb-dossier::before{display:none}
.rpc6 .dos-head{padding:16px 16px 8px 20px}
.rpc6 .dos-body{padding:4px 20px 18px;overflow:auto;flex:1;overscroll-behavior:contain}
.rpc6 .dos-title{font:700 20px/1.25 var(--serif)}

/* mini rating bar (phones only) */
.rpc-mini{display:none}

/* tools below */
.rpc6 .rpc-tools{margin-top:18px}

@media(max-width:1100px){
  .rpc6 .rpc-grid{grid-template-columns:minmax(0,1fr) minmax(320px,380px)}
  .rpc6 .sb-stage{height:560px}
  .rpc6 .rpc-head{grid-template-columns:1fr}
  .rpc6 .rpc-steps{flex-wrap:wrap}
}
@media(max-width:760px){
  .rpc6{padding:72px 14px 32px}
  .rpc6 .rpc-head{margin-bottom:12px;gap:10px}
  .rpc6 .rpc-h1{font-size:clamp(28px,7.5vw,36px);white-space:normal}
  .rpc6 .rpc-sub{font-size:14.5px;margin-top:6px}
  .rpc6 .rpc-steps{display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px}
  .rpc6 .rpc-steps::-webkit-scrollbar{display:none}
  .rpc6 .rpc-steps li{flex:none;padding:7px 10px;font-size:12.5px;white-space:nowrap}
  .rpc6 .rpc-steps li strong::after{content:''}
  .rpc6 .rpc-grid{display:flex;flex-direction:column;gap:12px}
  .rpc6 .rpc-grid>section{width:100%}
  .rpc6 .rpc-stagewrap{order:0;padding:12px 10px 8px}
  .rpc6 .rpc-conds{order:1}
  .rpc6 .rpc-results{order:2;position:static;max-height:none;min-height:0;overflow:visible}
  .rpc6 .sb-stage{height:min(70vh,560px)}
  .rpc6 .sb-dossier{position:fixed;left:0;right:0;top:auto;bottom:0;max-height:70vh;border-radius:22px 22px 0 0;transform:translateY(40px);box-shadow:0 -12px 40px rgba(29,34,31,.18);z-index:1001}
  .rpc6 .sb-dossier::before{content:'';display:block;width:40px;height:5px;border-radius:5px;background:#E2DED5;margin:8px auto 0}
  .rpc6 .dos-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .rpc6 .rt-big{font-size:60px}
  .rpc-mini{position:fixed;left:12px;right:12px;bottom:12px;z-index:900;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:14px;background:#163A2D;color:#fff;text-decoration:none;font:500 13px var(--sans);box-shadow:0 12px 30px rgba(0,0,0,.25);transition:transform .25s,opacity .25s}
  .rpc-mini b{font:700 16px var(--sans);color:#fff}
  .rpc-mini i{font-style:normal;color:#D6BA76;font-weight:600}
  .rpc-mini[hidden]{display:none}
  body.dos-open .rpc-mini{display:none}
  body.dos-open .chat-btn{display:none!important}
}
@media(prefers-reduced-motion:reduce){.rpc6 .sb-dossier,.rpc6 .region-hit,.rpc-mini{transition:none!important}}

/* calculator page, lower sections: sentence case like the rest of the redesign */
.rpc6 h1,.rpc6 h2,.rpc6 h3,.calc6-page .sec h2,.calc6-page .sec h3,.calc6-page .cta-sec h2,.calc6-page .edu-section h2{text-transform:none;letter-spacing:0}
.rpc6 #bodyReset{display:none}
.rpc6 .dos-foot{margin:14px 0 0;font-size:13px;line-height:1.5;color:var(--ink2)}
.rpc6 .dos-foot button{border:0;background:0;padding:0;font:inherit;color:var(--green);text-decoration:underline;cursor:pointer}
