/* JobsHub SaaS surfaces. Presentation only: no data, route, or copy authority.
   Canvas #F8FAFC, cards #FFFFFF, line #E2E8F0, ink #0F1E36, muted #64748B / #475569.
   Royal #0D397D is for primary actions, key figures, and the active state.
   Gold #EAB957 is for badges. Navy fills stay on the desktop sidebar and welcome banners. */
:root{
 --jh-canvas:#F8FAFC;--jh-surface:#FFFFFF;--jh-line:#E2E8F0;--jh-ink:#0F1E36;--jh-muted:#64748B;--jh-subtle:#475569;
 --jh-royal:#0D397D;--jh-gold:#EAB957;--jh-shadow:0 4px 12px rgba(15,30,54,.04);--jh-radius:16px;
}
body[data-stitch],body[data-approved-member="true"],body[data-approved-admin="true"],body.jobshub-pilot{
 background:var(--jh-canvas)!important;color:var(--jh-ink)!important;color-scheme:light;
}
body[data-stitch=admin]{
 --sf-paper:#F8FAFC;--sf-ink:#0F1E36;--sf-line:#E2E8F0;--sf-muted:#64748B;
}
body[data-stitch] :is(
 .panel,.sf-card,.sf-panel,.sf-drawer,.sf-kpi,.sf-context-disclosure,.journey-more-content,#connected-panel,
 dialog,[role="dialog"],.premium-access-card,.premium-access-panel,.closure-opportunity,.sf-op-filter,
 .journey-record,.sf-mail-list,.sf-mail-detail,.sf-mail-record,.sf-stage-card,.ux-cv-controls,.ux-cv-paper,
 .ux-profile-story,.sf-tool-group,.sf-record-group,.sf-evidence-group,.jh-v0-dashboard,.closure-mail-row,
 .ops-bars,.ops-row,.ux-admin-metric-wrap,.ux-admin-priority,.ux-admin-decision,.ux-admin-access,
 .ux-admin-record,.ux-admin-security,.ux-admin-records,.scroll,table,.admin-task-shortcuts
){
 background:var(--jh-surface)!important;color:var(--jh-ink)!important;border:1px solid var(--jh-line)!important;
 border-radius:var(--jh-radius)!important;box-shadow:var(--jh-shadow)!important;
}
body[data-stitch] :is(h1,h2,h3,h4,legend){color:var(--jh-ink)}
body[data-stitch] :is(.muted,.subtle,small,footer,dt,.sf-panel-sub){color:var(--jh-muted)}
body[data-stitch] :is(.sf-kpi strong,.ux-admin-metric-wrap>strong,.metric){color:var(--jh-royal)!important}
body[data-stitch] :is(table,thead,tbody,tr,th,td){
 background:var(--jh-surface)!important;color:var(--jh-ink)!important;border-color:var(--jh-line)!important;
}
body[data-stitch] th{color:var(--jh-subtle)!important;font-weight:600}
body[data-stitch] :is(input,select,textarea){
 background:var(--jh-surface)!important;color:var(--jh-ink)!important;border:1px solid var(--jh-line)!important;
 border-radius:12px!important;min-height:2.75rem;height:auto;line-height:1.35;
}
body[data-stitch] :is(button,.btn,a.btn,[role="tab"],summary):not(.ux-icon-button){
 min-height:2.75rem;height:auto;line-height:1.35;white-space:normal;
}
body[data-stitch=candidate] :is(a.btn,button.btn):not(.secondary):not(.sf-mail-item):not(.journey-record):not(.uiz-app-record):not(.sf-list-item):not(.ux-icon-button){
 background:var(--jh-royal)!important;color:#fff!important;border-color:var(--jh-royal)!important;
}
body[data-stitch=admin] :is(button,a.btn):not(.secondary):not(.sf-nav *):not(.ux-admin-nav *){
 background:var(--jh-royal)!important;color:#fff!important;border-color:var(--jh-royal)!important;
}
body[data-stitch] :is(a.btn.secondary,button.secondary,button.btn.secondary){
 background:var(--jh-surface)!important;color:var(--jh-royal)!important;border:1px solid var(--jh-line)!important;
}
body[data-stitch] :is(button.sf-mail-item,button.journey-record,button.uiz-app-record,button.sf-list-item){
 background:var(--jh-surface)!important;color:var(--jh-ink)!important;border:1px solid var(--jh-line)!important;box-shadow:none!important;
}
body[data-stitch=admin] pre,body[data-stitch=admin] code{
 background:var(--jh-canvas)!important;color:var(--jh-ink)!important;border-color:var(--jh-line)!important;
}
body[data-stitch=admin] .ops-track{background:#E2E8F0!important;border-color:var(--jh-line)!important}
body[data-stitch=admin] .sf-nav :is(a,button,summary),
body[data-approved-admin="true"] .ux-admin-nav :is(a,button){
 background:transparent!important;color:#E2E8F0!important;border-color:transparent!important;box-shadow:none!important;
}
body[data-stitch] :is(.sf-pill.gold,.bg-gold,[data-tone="badge"]){
 background:var(--jh-gold)!important;color:var(--jh-ink)!important;border-color:var(--jh-gold)!important;
}
body[data-stitch] :is(.sf-assistant,.sf-premium-context-hero,.jh-simple-home,.journey-assistant){
 background:linear-gradient(135deg,#0F1E36,#0D397D)!important;color:#fff!important;border-color:transparent!important;
}
body[data-stitch] :is(.sf-assistant,.sf-premium-context-hero,.jh-simple-home,.journey-assistant) :is(h1,h2,h3,h4,p,small,span){color:#fff!important}
@media(min-width:901px){
 body[data-stitch] .sf-nav,body[data-approved-admin="true"] .ux-admin-nav,body[data-approved-member="true"] .jh-primary-nav{
  background:linear-gradient(165deg,#0F1E36 0%,#0D397D 100%)!important;color:#fff!important;
 }
 body[data-stitch] .sf-nav :is(a,button,summary)[aria-current="page"],
 body[data-approved-admin="true"] .ux-admin-nav :is(a,button)[aria-current="page"]{
  background:var(--jh-gold)!important;color:var(--jh-ink)!important;border-color:var(--jh-gold)!important;
 }
}
@media(max-width:900px){
 body[data-stitch] .sf-nav{
  background:var(--jh-surface)!important;color:var(--jh-muted)!important;
  border-top:1px solid var(--jh-line)!important;
  padding-bottom:max(8px,env(safe-area-inset-bottom));
 }
 body[data-stitch] .sf-nav :is(a,button,summary){
  background:transparent!important;color:var(--jh-muted)!important;min-height:2.75rem;
 }
 body[data-stitch] .sf-nav :is(a,button,summary)[aria-current="page"]{
  background:var(--jh-canvas)!important;color:var(--jh-royal)!important;
 }
 body[data-stitch] .sf-stage{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
 body[data-stitch] .sf-topbar{padding-top:max(10px,env(safe-area-inset-top))}
}
