/* Custom headerbar layout tweaks adapted from Black Box.
   The widget itself has css name "headerbar", so libadwaita's built-in
   headerbar styling (windowcontrols, buttons, backdrop transitions) is
   in effect. The actual background/foreground colors are painted at
   runtime by StHeaderBar.set_theme_colors() via a per-window provider. */

.custom-headerbar windowhandle > box {
    padding-top: 0;
    padding-bottom: 0;
}

.custom-headerbar windowcontrols:not(.empty).start {
    margin-right: 6px;
}

.custom-headerbar windowcontrols:not(.empty).end {
    margin-left: 6px;
}

.transparent-window {
    background-color: transparent;
}

tabbar {
    margin-bottom: 100px;
}

/* Profile emoji icons */
.large-emoji {
    font-size: 24px;
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", emoji;
}

/* Ensure popover menu content doesn't get an internal scroller by allowing it to expand */
.st-no-scroll contents,
.st-no-scroll viewport {
    min-height: 0;
}
