/* M302.1: the public site's bar (components/site_bar.html), written again from the branch m277.1 at 7671e9aa (design-main.css), which is not ported. design.css draws its frame (.top-bar, .top-bar__tools). The search field, the field and the buttons keep their own look: these rules only place them, through the classes the bar gives them (site-bar__part, site-bar__field, site-bar__go, site-bar__account, site-bar__icon). M302.7 (M302 draft, D18): the two fields' inputs, through the class site-bar__input, lose their own border and take the height of the frame's inside (42 px), so the frame and its one divider are the only lines; the focus ring is the frame's, the caret shows which part is typed in; the two icons are 16 px and each part's text starts 40 px from its left edge. */
.site-bar { gap: 12px; }
.site-bar__name, .site-bar__name:visited { margin-right: 12px; font-size: 20px; font-weight: 600; line-height: 24px; color: var(--c-text); text-decoration: none; }
.site-bar .site-bar__account { margin-left: 8px; white-space: nowrap; }
.site-bar__tabs { display: flex; align-self: stretch; gap: 24px; margin-right: 0; }
.site-bar__tabs a, .site-bar__tabs a:visited { display: inline-flex; align-items: center; padding-top: 3px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 400; line-height: 20px; color: #7b7169; text-decoration: none; white-space: nowrap; }
.site-bar__tabs a:hover { color: var(--c-text); border-bottom-color: var(--c-control-border); }
.site-bar__tabs a[aria-current="page"] { color: var(--c-text); font-weight: 500; border-bottom-color: var(--c-link); }
.site-bar__tabs a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.site-bar__search { position: relative; flex: 1 1 auto; display: flex; align-items: center; max-width: 560px; min-height: 44px; margin: 0 auto; padding: 0 6px; border: 1px solid var(--c-control-border); border-radius: 22px; background: var(--c-paper); }
.site-bar__search:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.site-bar__part { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: #6b625a; }
.site-bar__part + .site-bar__part { padding-left: 16px; border-left: 1px solid var(--c-surface); }
.site-bar__icon { flex: none; width: 16px; height: 16px; }
.site-bar__part input { flex: 1 1 auto; min-width: 0; width: 100%; margin: 0; }
.site-bar__part > .site-bar__field { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
.site-bar__search .site-bar__input { height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; font-size: 14px; line-height: 20px; }
.site-bar__search .search-field .site-bar__input { padding-left: 34px; }
.site-bar__search .site-bar__input::placeholder { color: var(--c-base-dark); opacity: 1; }
.site-bar__go { flex: none; margin: 0 0 0 8px; }
.site-bar__menu { position: absolute; top: calc(100% + 6px); left: 50%; right: 0; z-index: 3; padding: 6px 0; border: 1px solid var(--c-surface); border-radius: var(--s-border-radius-sm); background: var(--c-paper); box-shadow: 0 8px 24px color-mix(in srgb, var(--c-ink-band) 14%, transparent); }
.site-bar__option { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; line-height: 20px; color: var(--c-text); cursor: pointer; }
.site-bar__option small { display: block; font-size: 12px; line-height: 16px; color: #6b625a; }
.site-bar__option:hover, .site-bar__option--active { background: var(--c-surface); }
.site-bar__note { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 16px; color: #6b625a; }
@media (max-width: 760px) {
  .site-bar { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 0; }
  .site-bar__name { margin-right: auto; }
  .site-bar .top-bar__tools { margin-left: 0; }
  .site-bar__tabs { order: 3; flex: 1 0 100%; align-self: auto; margin: 8px 0 0; }
  .site-bar__tabs a, .site-bar__tabs a:visited { padding: 8px 0 5px; }
  .site-bar__search { order: 2; flex: 1 0 100%; max-width: none; margin: 8px 0 0; }
  .site-bar__menu { left: 0; }
}
