/* BFG-X Home entry controls, 2026-11-02.
   Only affects the genuine Home workspace; other pages are unchanged. */
.app-shell[data-workspace="home"] .bfgx-home-entry {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin-top: clamp(10px, 2vw, 30px);
}
.app-shell[data-workspace="home"] .bfgx-home-entry-eyebrow {
  color: #ffdb21;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
  margin: 0 0 12px;
}
.app-shell[data-workspace="home"] .bfgx-home-entry-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, .68fr) minmax(0, 1.3fr);
  gap: 12px;
}
.app-shell[data-workspace="home"] .bfgx-home-choice {
  font: inherit;
  color: #f4f5ff;
  border: 1px solid #224e68;
  border-radius: 14px;
  min-width: 0;
  min-height: 96px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  cursor: pointer;
  transition: border-color .17s ease, background .17s ease, transform .17s ease;
}
.app-shell[data-workspace="home"] .bfgx-home-choice:hover,
.app-shell[data-workspace="home"] .bfgx-home-choice:focus-visible {
  transform: translateY(-2px);
  border-color: #59bcd4;
}
.app-shell[data-workspace="home"] .bfgx-home-choice-guide {
  background: rgba(39, 19, 65, .42);
  border-color: #7340a3;
}
.app-shell[data-workspace="home"] .bfgx-home-choice-guide:hover,
.app-shell[data-workspace="home"] .bfgx-home-choice-guide:focus-visible {border-color:#b98ae7;background:rgba(52,29,85,.57)}
.app-shell[data-workspace="home"] .bfgx-home-choice-build {background:rgba(0,48,68,.34);border-color:#087d98}
.app-shell[data-workspace="home"] .bfgx-home-choice-build:hover,
.app-shell[data-workspace="home"] .bfgx-home-choice-build:focus-visible {border-color:#24dadd;background:rgba(0,61,79,.47)}
.app-shell[data-workspace="home"] .bfgx-home-choice-sample {
  background: rgba(23,54,82,.85);
  border-color: #3994bf;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
}
.app-shell[data-workspace="home"] .bfgx-home-choice-sample:hover,
.app-shell[data-workspace="home"] .bfgx-home-choice-sample:focus-visible {background:rgba(30,76,109,.9)}
.app-shell[data-workspace="home"] .bfgx-home-choice-copy {display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.app-shell[data-workspace="home"] .bfgx-home-choice strong {color:#f6f6fc;font-size:clamp(16px,1.65vw,23px);line-height:1.2;font-weight:750}
.app-shell[data-workspace="home"] .bfgx-home-choice small {color:#abbcd3;font-size:clamp(12px,.9vw,14px);line-height:1.45}
.app-shell[data-workspace="home"] .bfgx-home-choice-icon {font-size:32px;line-height:1;color:#bc8cec;flex:0 0 auto}
.app-shell[data-workspace="home"] .bfgx-home-choice-build .bfgx-home-choice-icon {color:#10d5d8}
.app-shell[data-workspace="home"] .bfgx-home-choice-arrow {font-size:26px;color:#d6e5f7;flex:0 0 auto}
.app-shell[data-workspace="home"] .bfgx-home-sample-play {color:#36dbe1;font-size:19px}
.app-shell[data-workspace="home"] .bfgx-home-choice-sample strong {font-size:clamp(13px,1.2vw,17px)}
.app-shell[data-workspace="home"] .bfgx-home-research-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.app-shell[data-workspace="home"] .bfgx-home-research-link {
  font:inherit; cursor:pointer; display:flex; flex-direction:column; gap:8px; text-align:left;
  min-height:98px; padding:17px 19px; border:1px solid #233c59;
  border-radius:13px; color:#eaf0ff; background:rgba(17,32,57,.74);
  transition:border-color .17s ease,background .17s ease;
}
.app-shell[data-workspace="home"] .bfgx-home-research-link:hover,
.app-shell[data-workspace="home"] .bfgx-home-research-link:focus-visible {background:rgba(25,44,75,.89);border-color:#42aac8}
.app-shell[data-workspace="home"] .bfgx-home-research-link strong {font-weight:750;font-size:clamp(14px,1.15vw,17px);line-height:1.25}
.app-shell[data-workspace="home"] .bfgx-home-research-link span {color:#abc3dd;font-size:clamp(12px,.92vw,14px);line-height:1.45}
/* Same visual weight as the existing site's buttons, without their surrounding boxes.
   Retain the original React handlers, focus visibility, icon colours and menus. */
.app-shell[data-workspace="home"] .topbar-actions .results-tool-button,
.app-shell[data-workspace="home"] .topbar-actions .account-menu-trigger,
.app-shell[data-workspace="home"] .topbar-actions .portfolio-file-menu-trigger {
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.app-shell[data-workspace="home"] .topbar-actions .results-tool-button:hover,
.app-shell[data-workspace="home"] .topbar-actions .account-menu-trigger:hover,
.app-shell[data-workspace="home"] .topbar-actions .portfolio-file-menu-trigger:hover {
  background:rgba(21,34,50,.45)!important;
}
.app-shell[data-workspace="home"] .topbar-actions button:focus-visible {outline:2px solid #6ad4ef;outline-offset:2px}
@media(max-width:1030px){
  .app-shell[data-workspace="home"] .bfgx-home-entry-actions {grid-template-columns:minmax(0,1fr) minmax(160px,.7fr) minmax(0,1fr)}
  .app-shell[data-workspace="home"] .bfgx-home-choice {padding:13px;gap:9px;min-height:88px}
  .app-shell[data-workspace="home"] .bfgx-home-choice-icon {font-size:25px}
  .app-shell[data-workspace="home"] .bfgx-home-research-link {padding:14px}
}
@media(max-width:720px){
  .app-shell[data-workspace="home"] .bfgx-home-entry {margin-top:6px}
  .app-shell[data-workspace="home"] .bfgx-home-entry-actions {grid-template-columns:1fr}
  .app-shell[data-workspace="home"] .bfgx-home-choice {min-height:75px;padding:14px 16px}
  .app-shell[data-workspace="home"] .bfgx-home-choice-sample {flex-direction:row;min-height:65px}
  .app-shell[data-workspace="home"] .bfgx-home-research-links {grid-template-columns:1fr}
  .app-shell[data-workspace="home"] .bfgx-home-research-link {min-height:0}
}
@media(prefers-reduced-motion:reduce){
  .app-shell[data-workspace="home"] .bfgx-home-choice,
  .app-shell[data-workspace="home"] .bfgx-home-research-link {transition:none}
}

/* Homepage explanatory section, immediately after the research cards. */
.app-shell[data-workspace="home"] .bfgx-home-power {
  margin-top: 18px;
  padding: 19px 0 6px;
  border-top: 1px solid rgba(116,145,185,.28);
  color: #f1f3fb;
}
.app-shell[data-workspace="home"] .bfgx-home-power h2 {
  margin: 0 0 9px;
  font-size: clamp(20px,1.6vw,27px);
  line-height: 1.25;
  font-weight: 750;
}
.app-shell[data-workspace="home"] .bfgx-home-power p {
  margin: 0;
  max-width: 1000px;
  color: #aebed8;
  font-size: clamp(13px,1vw,16px);
  line-height: 1.65;
}
.app-shell[data-workspace="home"] .portfolio-about-dock {
  margin-top: 22px;
  margin-bottom: 26px;
}
