/* Styles for src/components/page-header.js and nothing else. A child window's title bar
   and tool strip. */

.page-header { margin: 0 0 var(--s-3); }

.page-header__titlebar {
  display: flex;
  align-items: center;
  height: 28px;
  padding-left: var(--s-2);
  background: var(--c-title-bar);
  border-bottom: 1px solid var(--c-etched);
  user-select: none;
}

.page-header__icon { width: 14px; height: 14px; margin-right: 6px; background: #1f3a5f; }
.page-header__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-header__controls { display: flex; height: 100%; }
.page-header__ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  font-size: 10px;
  color: var(--c-text);
  text-decoration: none;
}
.page-header__ctl:hover { background: #e5e5e5; color: var(--c-text); }
.page-header__ctl--close:hover { background: #e81123; color: #ffffff; }

.page-header__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 26px;
  padding: 1px var(--s-1);
  background: var(--c-control);
  border-bottom: 1px solid var(--c-etched);
}

.page-header__actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.page-header__actions .action-bar { padding: 0; }
.page-header__actions button { min-height: 22px; padding: 1px 8px; }

.page-header__help { min-height: 22px; padding: 1px 10px; }

.page-header__intro { margin: var(--s-2) var(--s-3) 0; color: var(--c-text); max-width: 90ch; }
