/* FOF uses the same quiet surfaces and hierarchy as the research dashboards. */
.fof-surface {
  --fof-ink: #30443c;
  --fof-muted: #63766b;
  --fof-line: #dce5df;
  --fof-wash: #f0f4f1;
  --fof-accent: #446e5d;
  --fof-hero-bg: linear-gradient(112deg, #edf3ef, #fafbf8 66%, #f2f5f2);
  padding-top: 8px;
  gap: 20px;
  color: var(--fof-ink);
}
.fof-page-hero {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 14px 36px;
  padding: 28px 36px;
  border: 1px solid var(--fof-line);
  border-radius: 22px;
  background: var(--fof-hero-bg);
  color: var(--fof-ink);
}
.fof-page-hero .fof-account-title { min-width: 0; }
.fof-page-hero .fof-account-title .eyebrow { margin: 0 0 8px; color: var(--fof-accent); font-size: 11px; }
.fof-page-hero .fof-account-title h2 {
  margin: 0;
  color: var(--fof-ink);
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.fof-page-hero .fof-account-context { margin: 8px 0 0; color: var(--fof-muted); font-size: 12px; line-height: 1.5; }
.fof-surface .fof-section {
  border-color: rgba(55, 75, 65, .10);
  border-radius: 19px;
  background-color: var(--surface-strong);
  box-shadow: 0 4px 20px rgba(39, 55, 48, .028);
}
.fof-surface .section-heading h2,
.fof-surface .fof-section > .fof-toolbar h2 {
  color: var(--fof-ink);
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
@media (max-width: 1350px) { .fof-page-hero { padding: 26px 28px; column-gap: 20px; } }
/* Match the index header when its title and metrics stack. */
@media (max-width: 1000px) { .fof-page-hero { min-height: 300px; } }
@media (max-width: 650px) { .fof-page-hero { min-height: 286px; padding: 22px 18px; } }

.fof-filter-hero {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-content: stretch;
  column-gap: 24px;
  padding-block: 18px 16px;
}
.fof-hero-toolbar {
  --fof-filter-height: 38px;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--fof-line);
}
.fof-hero-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fof-hero-filter > span {
  flex: none;
  min-inline-size: 4em;
  color: var(--fof-muted);
  font-size: 12px;
  white-space: nowrap;
}
.fof-hero-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: var(--fof-filter-height);
  padding: 2px;
  border: 1px solid var(--fof-line);
  border-radius: 9px;
  background: var(--fof-wash);
}
.fof-hero-options > :is(label, button) {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--fof-muted);
  box-shadow: none;
  font: 550 12px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
}
.fof-hero-options > :is(label, button):hover { background: #fff9; color: var(--fof-ink); transform: none; }
.fof-hero-options > :is([aria-pressed="true"], :has(> input:checked)) {
  border-color: var(--fof-line);
  background: white;
  color: var(--fof-ink);
  box-shadow: 0 1px 3px #324b3d12;
}
.fof-hero-options > :is(:focus-visible, :has(> input:focus-visible)) { outline: 2px solid var(--fof-accent); outline-offset: 1px; }
.fof-hero-options small { opacity: .78; font-size: 10px; font-variant-numeric: tabular-nums; }
.fof-hero-toolbar > .fof-position-tools { grid-column: 2; justify-self: end; min-height: var(--fof-filter-height); }
