/* Performance Management feedback resource pages
   (/performance-management/<slug>/). Loaded after site.css and security.css,
   which provide the page layout; this file only adds the few extras these
   long-form guides need. Uses the design tokens defined in site.css. */

.fb-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.fb-subhead {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
}

.fb-subhead:first-of-type {
  margin-top: 0.5rem;
}

.fb-text {
  color: var(--text-light);
  line-height: 1.8;
  max-width: 820px;
  margin: 1.5rem 0;
}

/* Small label above a topic card title: "Step 1", "Model A", "70%" */
.fb-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

/* Advantage / risk card accents */
.fb-topics-pro .sec-topic {
  border-top-color: var(--success);
}

.fb-topics-risk .sec-topic {
  border-top-color: var(--warning);
}

/* SBI example text inside the flow diagram */
.sec-flow > li > .fb-example {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #cbd5e1;
  font-style: italic;
  color: var(--text-dark);
}

/* Rating scale line above survey tables */
.fb-scale {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

.sec-section:not(.sec-alt) .fb-scale {
  background: var(--bg-light);
}

/* Download call-to-action */
.fb-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.5rem 0 1.5rem;
}

/* site.css .btn-primary is white for use on gradient heroes; on these
   light sections the button takes the brand gradient instead. */
.fb-download .btn-primary {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

.fb-download .btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.fb-download span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.sec-section .fb-download {
  margin-top: 2rem;
}

/* Give a figure breathing room when it follows a row of cards */
.sec-topics + .sec-illustration {
  margin-top: 2.5rem;
}

/* Wide data tables (survey worksheets): fit the 1100px column on desktop,
   scroll horizontally inside the card on smaller screens */
.sec-table.fb-table-wide {
  min-width: 1060px;
  font-size: 0.88rem;
}

.sec-table.fb-table-wide th,
.sec-table.fb-table-wide td {
  padding: 0.75rem 0.9rem;
}

.sec-table.fb-table-wide tbody th {
  white-space: nowrap;
}

.sec-table.fb-table-plain td:first-child {
  border-right: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .fb-subhead {
    font-size: 1.2rem;
  }

  .fb-download .btn-primary {
    width: 100%;
    text-align: center;
  }
}
