/* R1317: research-first layout, using the shared semantic token authority. */
.fe-research-nav {
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    margin:0 0 16px; padding:8px 0; border-bottom:1px solid var(--fe-line);
}
.fe-research-nav a {
    display:inline-flex; align-items:center; gap:8px; min-height:44px;
    padding:8px 12px; border:1px solid var(--fe-line); border-radius:var(--fe-radius-control);
    font:600 14px/1.4 var(--fe-font-ui); color:var(--fe-secondary); text-decoration:none;
}
.fe-research-nav a:hover, .fe-research-nav [aria-current="page"] {
    color:var(--fe-interaction); background:var(--fe-raised);
}
.fe-research-nav strong { font-variant-numeric:tabular-nums; }
.fe-research-help { border:1px solid var(--fe-line); border-radius:8px; margin:0 0 16px; }
.fe-research-help > summary {
    cursor:pointer; padding:12px 16px; min-height:44px;
    font:600 14px/1.5 var(--fe-font-ui); color:var(--fe-secondary);
}
.fe-research-help > summary span { color:var(--fe-muted); margin-left:8px; font-weight:400; }
.fe-research-help[open] > summary { border-bottom:1px solid var(--fe-line); }
.fe-research-help > :not(summary) { margin:16px; }
.fe-research-help > summary:focus-visible, .fe-research-nav a:focus-visible {
    outline:2px solid var(--fe-focus); outline-offset:2px;
}
.fe-research-caution {
    padding:12px 16px; border-left:3px solid var(--fe-pending);
    color:var(--fe-pending); background:var(--fe-sunken); font-size:14px; line-height:1.5;
}
.fe-market-section { scroll-margin-top:80px; }
body[data-fe-workflow-shell] .value-finder-page .vf-guide-kicker,
body[data-fe-workflow-shell] .value-finder-page .vf-context-row .chip { font-size:12px; opacity:1; }
body[data-fe-workflow-shell] .value-finder-page .vf-layout { grid-template-columns:minmax(0,1fr); }
body[data-fe-workflow-shell] .value-finder-page .vf-aside { position:static; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
body[data-fe-workflow-shell] .value-finder-page .vf-explainer { padding:12px 16px; }

/* Keep the evidence hierarchy visible without duplicating the same metrics. */
[data-fe-research-surface="public-scoreboard"] { display:grid; gap:16px; }
[data-fe-research-surface="public-scoreboard"] .fe-c-panel { margin:0; }
[data-fe-research-surface="public-scoreboard"] .proof-command-title {
    font-size:40px; font-weight:800; line-height:1.2; padding:0; border:0; background:none;
}
[data-fe-research-surface="public-scoreboard"] .proof-command-subtitle { margin:12px 0; max-width:62ch; }
[data-fe-research-surface="public-scoreboard"] .fe-c-panel__header { background:var(--fe-raised); padding:16px; }
[data-fe-research-surface="public-scoreboard"] .proof-two-grid { display:grid; gap:16px; }
[data-fe-research-surface="public-scoreboard"] .proof-bucket-grid { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
[data-fe-research-surface="public-scoreboard"] .fe-c-state-panel { min-height:0; padding:16px; justify-content:flex-start; text-align:left; }
[data-fe-research-surface="public-scoreboard"] .fe-proof-reliability { border-top:3px solid var(--fe-interaction); }
[data-fe-research-surface="public-scoreboard"] .fe-proof-market { border-top:3px solid var(--fe-pending); }
[data-fe-research-surface="public-scoreboard"] .fe-c-metric,
[data-fe-research-surface="public-scoreboard"] .fe-c-bucket { background:var(--fe-sunken); padding:16px; }
[data-fe-research-surface="public-scoreboard"] .fe-c-metric__value,
[data-fe-research-surface="public-scoreboard"] .fe-c-data-value { font-size:24px; font-variant-numeric:tabular-nums; }
[data-fe-delta="negative"] { color:var(--fe-negative); }
[data-fe-delta="positive"] { color:var(--fe-positive); }
[data-fe-research-surface="public-scoreboard"] .fe-c-receipt { background:var(--fe-sunken); border-left:3px solid var(--fe-control-line); }
[data-fe-research-surface="public-scoreboard"] .proof-recent-row:nth-child(even) { background:var(--fe-sunken); }
html[data-theme] body[data-fe-design-system] [data-fe-research-surface="public-scoreboard"] :is(.fe-c-panel__kicker,th,th .proof-metric-help) {
    font-size:12px !important; line-height:1.5;
}
html[data-theme] body[data-fe-design-system] [data-fe-research-surface="public-scoreboard"] .btn {
    min-height:44px !important;
}

/* Do not reserve an empty desktop rail at the expense of the research column. */
body[data-fe-workflow-shell] .fe-content-frame:has(.fe-dashboard-page) { max-width:1320px; width:100%; }
.fe-dashboard-page .dashboard-shell-wrap { grid-template-columns:minmax(0,1fr); }
.fe-dashboard-page .fe-ops-rail {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); position:static;
    max-height:none; overflow:visible; padding:0;
}
.fe-dashboard-page .dashboard-command-strip { gap:8px; }
.fe-dashboard-page .dashboard-command-tile { padding:12px; }
.fe-dashboard-page .dashboard-command-tile__detail { font-size:12px; }
.fe-dashboard-page .dashboard-personalize-bar { padding:12px; }
.fe-dashboard-page .dashboard-personalize-copy { font-size:12px; }
.fe-dashboard-page .dashboard-workflow-help { margin-top:16px; }
.fe-dashboard-page .dashboard-focus-strip { padding:0; }
body[data-fe-workflow-shell] .fe-search-example-row { margin-top:16px; }
body[data-fe-workflow-shell] .div-chip { min-height:44px; }

/* Keep each account destination reachable; customization is optional detail. */
body[data-fe-workflow-shell] .fe-profile-jumpnav {
    flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; padding:8px;
    max-width:100%; scroll-padding-inline:8px;
}
body[data-fe-workflow-shell] .fe-profile-jumpnav a { flex:0 0 auto; min-height:44px; display:inline-flex; align-items:center; font-size:12px; }
body[data-fe-workflow-shell] .fe-profile-identity-hero { padding:16px; }
body[data-fe-workflow-shell] .fe-profile-identity-hero h2 { font-size:28px; }
body[data-fe-workflow-shell] .fe-identity-editor { grid-template-columns:minmax(0,1fr); }
body[data-fe-workflow-shell] .fe-identity-editor-preview { display:flex; align-items:center; gap:12px; padding:12px; }
body[data-fe-workflow-shell] .fe-avatar-disclosure .fe-avatar-gallery { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
body[data-fe-workflow-shell] .fe-profile-layout { align-items:start; }
@media(max-width:1050px) {
    body[data-fe-workflow-shell] .value-finder-page .vf-layout { grid-template-columns:minmax(0,1fr); }
    body[data-fe-workflow-shell] .value-finder-page .vf-aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .fe-research-nav { gap:6px; }
    .fe-research-nav a { padding:8px; }
    .fe-dashboard-page .fe-ops-rail,
    body[data-fe-workflow-shell] .value-finder-page .vf-aside { grid-template-columns:minmax(0,1fr); }
    [data-fe-research-surface="public-scoreboard"] .proof-command-title { font-size:32px; }
    body[data-fe-workflow-shell] .fe-profile-jumpnav { position:static; }
}
