/*
 * Salus-aligned application presentation.
 * Loaded last so every workspace inherits the public Salus Solutions visual
 * language and an accessible on-screen typography floor. Feature-owned print
 * layouts remain unchanged.
 */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #222d35;
  --muted: #5f6f79;
  --line: #e4e7e9;
  --line-strong: #cbd2d7;
  --salus-blue: #3d7fa6;
  --salus-blue-strong: #174a73;
  --salus-blue-soft: #f2f7fa;
  --salus-orange: #df5526;
  --salus-orange-soft: #fff6f1;
  --accent: var(--salus-orange);
  --accent-strong: #b8431d;
  --accent-soft: var(--salus-orange-soft);
  --soft: #f7f8f8;
  --shadow: none;
  --readable-body: 16px;
  --readable-secondary: 14px;
  --readable-label: 13px;
}

html,
body {
  background: #ffffff;
}
body {
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--readable-body);
  line-height: 1.55;
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 286px minmax(0, 1fr);
  background: #fff;
}
.sidebar {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  box-shadow: none;
}
.brand {
  padding: 0 4px 28px;
}
.brand-logo {
  width: 168px;
  max-width: 72%;
}
.brand-product {
  color: var(--salus-blue);
  font-size: 18px;
  font-weight: 500;
}
.sidebar nav {
  padding-top: 24px;
  gap: 7px;
}
.nav-section-label {
  padding: 0 10px 9px;
  color: var(--salus-blue);
  font-size: var(--readable-label);
}
.nav-primary,
.nav-product-group {
  gap: 5px;
}
.sidebar button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-radius: 2px;
  padding: 11px 10px;
  color: var(--salus-orange);
  font-size: var(--readable-secondary);
  line-height: 1.4;
}
.sidebar button:hover {
  background: transparent;
  color: var(--accent-strong);
}
.sidebar button.active {
  background: transparent;
  color: var(--ink);
}
.sidebar button.active::before {
  top: 7px;
  bottom: 7px;
  width: 2px;
}
.nav-view-description,
.nav-product-description {
  margin-left: 10px;
  margin-right: 10px;
  color: var(--muted);
  font-size: var(--readable-label);
  line-height: 1.5;
}
.nav-product-title,
.brand strong {
  color: var(--salus-blue);
  font-size: var(--readable-secondary);
  font-weight: 600;
}
.brand span,
.sidebar-note,
.salcapa-version,
.nav-work-areas > summary small {
  color: var(--muted);
  font-size: var(--readable-label);
  line-height: 1.5;
}
.nav-work-areas {
  margin-top: 18px;
  padding-top: 16px;
}
.nav-work-areas > summary {
  border-radius: 2px;
  padding: 11px 10px;
  color: var(--salus-blue);
  font-size: var(--readable-secondary);
}
.nav-work-areas > summary:hover {
  background: transparent;
  color: var(--salus-orange);
}

.main {
  max-width: 1500px;
  padding: 0 64px 88px;
}
.topbar {
  position: relative;
  padding: 38px 0 26px;
  margin-bottom: 20px;
  border-bottom-color: var(--line);
  backdrop-filter: none;
}
.topbar h1 {
  color: var(--salus-blue-strong);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -.015em;
}
.topbar p,
.status-pill,
.guidance-trigger,
.guidance-breadcrumbs {
  font-size: var(--readable-secondary);
}
.topbar p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.55;
}
.status-pill,
.guidance-trigger {
  border-radius: 2px;
  padding: 9px 12px;
}

.card,
table,
.lifecycle-strip,
.guidance-panel,
.guidance-step-card,
.readiness-stage,
.workspace-handoff,
.mission-route,
.mission-structure-summary {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.card {
  padding: 28px;
}
.card h2,
.card h3,
.section-title h2,
.section-title h3,
.stage-heading h2,
.stage-heading h3,
.workspace-handoff h2 {
  color: var(--salus-blue-strong);
  font-weight: 400;
}
.section-title h2,
.section-title h3,
.stage-heading h2,
.stage-heading h3 {
  font-size: 27px;
  line-height: 1.25;
}
.card h3,
.workspace-handoff h2 {
  font-size: 22px;
  line-height: 1.3;
}
.cop-hero h2,
.mission-hero h2 {
  color: var(--salus-blue);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
}
.page-section {
  margin-top: 48px;
}
.section-title {
  margin: 38px 0 17px;
}
.grid {
  gap: 20px;
}
.stats {
  margin: 26px 0 24px;
}
.workspace-handoff {
  margin: 34px 0;
  padding: 28px 30px;
  background: #fff;
  border-left: 3px solid var(--salus-orange);
}

#content > p,
.card p,
.notice,
.message p,
.workspace-handoff p,
.mission-hero p,
.mission-route-heading p,
.mission-detail-grid p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1f2830;
}

.btn,
.row-actions .btn {
  min-height: 42px;
  border-radius: 2px;
  padding: 10px 15px;
  font-size: var(--readable-secondary);
  font-weight: 500;
}
.btn.secondary {
  color: var(--salus-blue-strong);
  background: #fff;
}
.action-link {
  color: var(--salus-orange);
  font-size: var(--readable-body);
  font-weight: 500;
}
.action-link:hover {
  color: var(--accent-strong);
}

th,
td {
  padding: 15px 16px;
  font-size: var(--readable-secondary);
  line-height: 1.5;
}
th {
  color: #4b5e69;
  font-size: var(--readable-label);
  letter-spacing: .045em;
}
.badge,
.component,
.metric span,
.cop-hero span {
  font-size: var(--readable-label);
}
label,
.subtle,
.field-help,
.stage-heading p,
.readiness-stage p,
.message span,
.message em,
code {
  font-size: var(--readable-secondary);
  line-height: 1.5;
}
input,
select,
textarea {
  min-height: 44px;
  border-radius: 2px;
  font-size: var(--readable-body);
}
textarea {
  min-height: 108px;
}

.lifecycle-step {
  min-height: 70px;
  padding: 13px 14px;
}
.lifecycle-step strong {
  color: var(--salus-blue-strong);
  font-size: var(--readable-secondary);
}
.lifecycle-step span {
  color: var(--muted);
  font-size: var(--readable-label);
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.lifecycle-step[data-stage="see"] {
  background: var(--salcapa-stage-see-soft);
  box-shadow: inset 0 -3px 0 var(--salcapa-stage-see);
}
.lifecycle-step[data-stage="decide"] {
  background: var(--salcapa-stage-decide-soft);
  box-shadow: inset 0 -3px 0 var(--salcapa-stage-decide);
}
.lifecycle-step[data-stage="coordinate"] {
  background: var(--salcapa-stage-coordinate-soft);
  box-shadow: inset 0 -3px 0 var(--salcapa-stage-coordinate);
}
.lifecycle-step[data-stage="act"] {
  background: var(--salcapa-stage-act-soft);
  box-shadow: inset 0 -3px 0 var(--salcapa-stage-act);
}
.lifecycle-step[data-stage="prove"] {
  background: var(--salcapa-stage-prove-soft);
  box-shadow: inset 0 -3px 0 var(--salcapa-stage-prove);
}
.lifecycle-step:hover,
.lifecycle-step.active {
  filter: saturate(1.08);
}
.help-dot {
  width: 24px;
  height: 24px;
  font-size: var(--readable-label);
}
.guidance-drawer-header p,
.guidance-panel p,
.guidance-panel .guidance-kicker,
.guidance-brand-grid strong,
.guidance-brand-grid span,
.guidance-step-card strong,
.guidance-step-card p,
.guidance-step-card > span,
.guidance-nav-help {
  font-size: var(--readable-secondary);
  line-height: 1.55;
}

.mission-filter-grid label,
.mission-portfolio-grid span,
.mission-trace-summary-grid span,
.mission-objective-grid dt,
.mission-route-heading > span,
.mission-station > strong,
.mission-empty,
.mission-marker-label,
.mission-kicker,
.mission-neutral-state,
.mission-path,
.mission-prove-trace h4 {
  font-size: var(--readable-secondary);
  line-height: 1.5;
}
.mission-marker {
  min-height: 50px;
  border-radius: 2px;
}
.route-salcapa .mission-marker,
.route-mission-structure .mission-marker {
  background: #f5f8df;
  border-color: #72c99a;
}
.route-salintel .mission-marker {
  background: #fff1df;
  border-color: #e7ad32;
}
.route-salthira .mission-marker {
  background: #fff7d8;
  border-color: #e4ba32;
}
.route-salops .mission-marker {
  background: #fff0ef;
  border-color: #e66a62;
}
.route-prove .mission-marker {
  background: #f1f6f8;
  border-color: var(--salus-blue);
}
.mission-detail-grid small,
.mission-prove-trace li small {
  font-size: var(--readable-label);
  line-height: 1.5;
}
small {
  font-size: .875em;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 240px 1fr; }
  .main { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sidebar { padding: 22px 18px; }
  .main { padding: 0 18px 44px; }
  .topbar { padding-top: 26px; }
  .topbar h1 { font-size: 34px; }
  .nav-product-title,
  .nav-product-description { font-size: var(--readable-secondary); }
}
@media print {
  body { font-size: initial; line-height: initial; }
  #content > p,
  .card p,
  .notice,
  .message p,
  .workspace-handoff p,
  .mission-hero p,
  .mission-route-heading p,
  .mission-detail-grid p {
    font-family: Arial, sans-serif;
    font-size: inherit;
  }
}
