/* RC39 — clear navigation and investment guidance */
.rb-investment-hub{max-width:1180px;margin:24px auto;padding:24px;border:1px solid #dce6e5;border-radius:22px;background:#fff;box-shadow:0 12px 32px #123a3210;color:#17352f;scroll-margin-top:100px}
.rb-investment-hub header{display:flex;justify-content:space-between;gap:16px;align-items:start}.rb-investment-hub h2{font-size:clamp(22px,3vw,30px);line-height:1.2;margin:5px 0 8px;color:#163b33}.rb-investment-hub p{margin:0;line-height:1.6;color:#536760}.rb-hub-eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;color:#087e65;text-transform:uppercase}.rb-hub-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.rb-hub-links a{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #dce6e5;background:#f6faf9;border-radius:14px;text-decoration:none;color:#173b33;min-height:100px}.rb-hub-links strong{font-size:16px}.rb-hub-links span{font-size:13px;line-height:1.5;color:#536760}.rb-hub-links a:hover{border-color:#078269;background:#edf8f3}.rb-hub-assistant{padding:18px;background:#ecf7f2;border:1px solid #cce7da;border-radius:16px}.rb-hub-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.rb-hub-buttons button{appearance:none;border:1px solid #0a8067;background:#fff;color:#14604d;border-radius:10px;min-height:46px;padding:11px 16px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:normal}.rb-hub-buttons button:first-child{background:#087e65;color:white}.rb-investment-hub a:focus-visible,.rb-investment-hub button:focus-visible{outline:3px solid #e0ae44;outline-offset:3px}.rb-hub-status{font-size:13px;margin-top:12px!important}body.home-page .rb-home-hero{background:linear-gradient(125deg,#f4faf7,#e9f2ef);padding-top:44px;padding-bottom:44px}body.home-page .rb-home-hero h1{font-size:clamp(34px,4.5vw,58px);line-height:1.08;letter-spacing:-.035em}body.home-page .rb-home-hero-grid{gap:32px;min-height:0}body.home-page .rb-home-hero-visual{border-radius:22px}body.tool-page .tool-hero{background:linear-gradient(145deg,#f2f8f5,#e7f0ed);padding-top:28px}body.tool-page .tool-2026-hero-copy h1{color:#163b33;font-size:clamp(30px,4vw,46px);line-height:1.15}body.tool-page .tool-2026-hero-copy p{color:#536760}body.tool-page .tool-2026-eyebrow{color:#087e65}body.tool-page .tool-2026-market-status{color:#215c4d;background:#fff;border:1px solid #cce1d9}body.tool-page .tool-card,body.tool-page .roi-dashboard{border-radius:20px;box-shadow:0 12px 30px #143b3210;border:1px solid #dce6e5}body.tool-page .input-group input:not([type=range]),body.tool-page .input-group select{min-height:48px;font-size:16px;border-radius:10px}body.tool-page #analyze-btn{min-height:50px;white-space:normal}body.tool-page .rb-investment-hub{max-width:1120px;margin:22px auto}.rb-hub-links a{scroll-margin-top:100px}
@media(max-width:760px){.rb-investment-hub{margin:16px 12px;padding:18px;border-radius:18px}.rb-hub-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}.rb-hub-links a{padding:13px;min-height:110px}.rb-investment-hub header{display:block}.rb-hub-buttons{display:grid;grid-template-columns:1fr;width:100%}.rb-hub-buttons button{width:100%;min-height:48px}body.tool-page .rb-investment-hub{margin:16px 12px}body.home-page .rb-home-hero{padding-top:28px;padding-bottom:28px}body.home-page .rb-home-hero-grid{gap:22px}.rb-hub-assistant{padding:14px}body.tool-page .simulator-grid{gap:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Match the specificity of the existing production theme. */
body.home-page section.hero.rb-home-hero{background:linear-gradient(125deg,#f4faf7,#e9f2ef)!important}
body.tool-page .tool-hero>.hero-bg{display:none!important}
body.tool-page .rb-investment-hub{position:relative;z-index:3}
body.tool-page .tool-hero{padding-top:28px!important}
body.tool-page .simulator-left .tool-card,body.tool-page .roi-dashboard{border-color:#dce6e5!important;box-shadow:0 12px 30px #143b3210!important}
@media(max-width:760px){.rb-hub-links a{min-height:88px}.rb-hub-links strong{font-size:14px}.rb-hub-links span{font-size:12px}}

/* Keep solid surfaces behind content, including Safari page captures. */
body.tool-page .tool-hero{background:linear-gradient(145deg,#f2f8f5,#e7f0ed)!important;background-attachment:scroll!important}
body.home-page .rb-home-experience{background:#f5faf7!important}
@media(max-width:760px){
 body.home-page .rb-home-experience,body.tool-page .tool-hero{isolation:isolate}
 body.home-page .rb-home-experience .rb-home-experience-heading{position:relative;background:#f5faf7}
 body.home-page .rb-investment-hub,body.tool-page .rb-investment-hub{padding:15px}
 .rb-hub-links{margin:12px 0}.rb-hub-assistant{padding:12px}
}

/* Align input/result cards without the legacy vertical offsets. */
body.tool-page .simulator-grid{align-items:start!important}
body.tool-page .simulator-left,body.tool-page .simulator-right{align-self:start!important;top:auto!important;transform:none!important}
body.tool-page .simulator-left .tool-card,body.tool-page .simulator-right .roi-dashboard{margin-top:0!important;height:auto!important}
body.home-page .rb-home-experience{padding-top:30px!important}
@media(max-width:760px){.rb-investment-hub h2{font-size:21px}.rb-hub-links a{min-height:74px}.rb-investment-hub header p{font-size:13px}}

body.tool-page .simulator-container{margin-bottom:0!important}
body.tool-page .tool-hero{padding-bottom:28px!important}
body.tool-page #results{margin-top:24px!important}
body.tool-page #rb-simulation-summary{scroll-margin-top:100px}

/* RC80: keep the simulator inputs in view; guidance remains available by keyboard. */
.rb-tool-guidance{max-width:1120px;margin:20px auto;border:1px solid #dce6e5;border-radius:16px;background:#fff;box-shadow:0 8px 24px #143b3208}
.rb-tool-guidance>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;cursor:pointer;color:#163b33;list-style:none;min-height:64px}
.rb-tool-guidance>summary::-webkit-details-marker{display:none}
.rb-tool-guidance>summary::after{content:'+';font-size:22px;color:#087e65}
.rb-tool-guidance[open]>summary::after{content:'−'}
.rb-tool-guidance>summary span{margin-left:auto;color:#536760;font-size:13px}
.rb-tool-guidance>summary:focus-visible{outline:3px solid #087e65;outline-offset:3px}
body.tool-page .rb-tool-guidance .rb-investment-hub{margin:0;box-shadow:none;border:0;border-top:1px solid #dce6e5;border-radius:0 0 16px 16px}
@media(max-width:760px){.rb-tool-guidance{margin:16px 12px}.rb-tool-guidance>summary{flex-wrap:wrap;padding:16px;gap:8px}.rb-tool-guidance>summary strong{font-size:14px}.rb-tool-guidance>summary span{margin-left:0}.rb-tool-guidance>summary::after{margin-left:auto}}

/* RC143 dashboard workspace, retained with shared guidance styles. */
.rb-investment-workspace{--rb-ink:#142c36;--rb-green:#047857;--rb-line:#dce7e5;color:var(--rb-ink);min-width:0}
.rb-investment-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);gap:28px;align-items:center;padding:28px;border:1px solid var(--rb-line);border-radius:20px;background:linear-gradient(120deg,#eefaf5,#fff 75%);margin-bottom:20px}
.rb-workspace-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:var(--rb-green)}
.rb-investment-hero h2{font-size:clamp(25px,3vw,36px);line-height:1.15;margin:10px 0 12px;letter-spacing:-.8px}
.rb-investment-hero p,.rb-workspace-explainer{font-size:14px;line-height:1.65;color:#52666e;max-width:760px}
.rb-workspace-actions{display:grid;gap:10px}.rb-workspace-actions .pro-report-only{margin:0!important}
.rb-workspace-actions button{width:100%!important;min-height:46px;border-radius:11px;padding:12px 16px;cursor:pointer;font-weight:750;font-size:14px;white-space:normal;font-family:inherit}
.rb-workspace-report{background:#047857!important;color:#fff!important;border:1px solid #047857!important;box-shadow:0 5px 12px #0478571c}
.rb-workspace-secondary{background:#fff;color:#145846;border:1px solid #a8cebf}.rb-workspace-actions small{font-size:12px;line-height:1.5;color:#52666e}
.rb-workspace-tabs{display:flex;gap:6px;padding:5px;background:#eef3f2;border:1px solid var(--rb-line);border-radius:13px;width:fit-content;margin-bottom:18px;max-width:100%}
.rb-workspace-tabs button{border:0;background:transparent;color:#52666e;font-weight:750;font-size:14px;padding:12px 20px;border-radius:9px;cursor:pointer}
.rb-workspace-tabs button[aria-selected=true]{background:#fff;color:#047857;box-shadow:0 2px 6px #142c3612}
.rb-workspace-panel[hidden]{display:none!important}.rb-workspace-panel{min-width:0}.rb-workspace-explainer{margin:0 0 18px}
.rb-workspace-advanced{border:1px solid var(--rb-line);border-radius:15px;padding:0 18px;margin-top:24px;background:#fff;min-width:0}
.rb-workspace-advanced>summary{padding:18px 0;cursor:pointer;font-size:15px;font-weight:750;color:#314d55}.rb-workspace-advanced[open]>summary{margin-bottom:12px;border-bottom:1px solid var(--rb-line)}
.rb-workspace-panel #portfolio-performance h2{font-size:24px!important}.rb-workspace-panel #portfolio-performance>div>div>p{font-size:14px!important}
.rb-workspace-panel #portfolio-performance{padding:20px;background:#fff;border:1px solid var(--rb-line);box-shadow:none}
.rb-workspace-panel #portfolio-performance .portfolio-grid{width:100%}
.rb-workspace-panel #portfolio-performance .portfolio-stat{min-height:0;padding:18px 12px;background:#f5faf8;box-shadow:none;transform:none;border:1px solid var(--rb-line)}
.rb-workspace-panel #portfolio-performance .portfolio-stat>div{display:none!important}
.rb-workspace-panel #portfolio-performance .portfolio-stat>span{font-size:26px;font-weight:800;color:#047857}
.rb-workspace-panel #portfolio-performance .portfolio-stat>p{margin-bottom:0;font-size:13px}
.rb-workspace-panel button{font-family:inherit}
.rb-workspace-panel .portfolio-capital-basis-note{font-size:12px!important}.rb-workspace-panel .portfolio-grid{margin:12px 0;gap:12px}
.rb-workspace-panel .analysis-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start;gap:16px}
.rb-workspace-panel .analysis-grid>.analysis-card{padding:20px;border:1px solid var(--rb-line);box-shadow:0 3px 12px #142c3607}
.rb-scenario-status{font-size:12px;font-weight:750;color:#047857;background:#eefaf5;padding:7px 10px;border-radius:8px;margin-bottom:12px;line-height:1.5}
.rb-scenario-details{margin-top:12px;border-top:1px solid var(--rb-line);padding-top:10px}.rb-scenario-details>summary{cursor:pointer;font-size:13px;font-weight:700;color:#52666e;padding:7px 0}
.rb-scenario-report{display:block;width:100%;margin-top:16px;min-height:44px;background:#047857!important;color:white!important;border:0!important;border-radius:9px!important;font-weight:750!important}
.rb-investment-workspace button:focus-visible,.rb-investment-workspace summary:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:720px){.rb-investment-hero{grid-template-columns:1fr;padding:20px;gap:18px}.rb-workspace-tabs{width:100%}.rb-workspace-tabs button{flex:1;padding:11px 8px;font-size:13px}.rb-workspace-advanced{padding:0 12px}.rb-workspace-panel .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-workspace-panel .portfolio-stat{padding:14px 10px!important}.rb-investment-hero h2{font-size:27px}}

/* RC145: explicit colors on the owned-property information surface. */
body.home-page .rb-owned-home{color:#17352f;max-width:1120px;line-height:1.65}
body.home-page .rb-owned-home h2{color:#163b33;font-size:clamp(24px,3vw,32px);line-height:1.25;margin:8px 0 12px}
body.home-page .rb-owned-home p{color:#435c52;margin:0 0 20px}
body.home-page .rb-owned-home .rb-hub-eyebrow{color:#087e65}
body.home-page .rb-owned-home .btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;white-space:normal;text-align:center;line-height:1.5;box-sizing:border-box}
.rb-investment-hub,.rb-investment-hub *{box-sizing:border-box}
.rb-investment-hub .rb-hub-links a{min-width:0;overflow-wrap:anywhere}
.rb-investment-hub .rb-hub-assistant>strong{color:#17352f}
@media(max-width:760px){body.home-page .rb-owned-home{margin:16px 12px!important;padding:20px!important}body.home-page .rb-owned-home .btn{width:100%}}
@media(max-width:359px){.rb-hub-links{grid-template-columns:1fr}}

/* Long verified property names remain readable on narrow portfolio cards. */
.rb-workspace-panel .portfolio-manager__item-head h3{overflow-wrap:anywhere;min-width:0}
