/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Reserve scrollbar space so the page doesn't shift when the menu
   locks scrolling (overflow: hidden) */
html {
	scrollbar-gutter: stable;
}

/* Cleaner text rendering on macOS/iOS - light text on the dark blue
   otherwise renders too heavy */
html,
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Canvas/gutter color: matches header + open menu so the reserved
   scrollbar strip never flashes white (body stays white) */
html {
	background-color: #233a4a;
}

/* Sticky footer: page always fills the viewport so the footer
   sits at the bottom even on short pages */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

#brx-content {
	flex: 1 0 auto;
}

#brx-footer {
	flex-shrink: 0;
}

/* Themed scrollbar: neutral semi-transparent thumb that works on both
   the dark heroes and white pages (Safari 18.2+, Chrome, Firefox) */
html {
	scrollbar-width: thin;
	scrollbar-color: rgba(125, 135, 145, 0.55) transparent;
}

/* Safari fallback: it ignores scrollbar-color on the overlay root
   scrollbar, but honors the webkit pseudo-elements */
::-webkit-scrollbar {
	width: 9px;
	height: 9px;
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: rgba(125, 135, 145, 0.55);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(125, 135, 145, 0.8);
}

::-webkit-scrollbar-track {
	background: transparent;
}

/* Tell Safari this is a light page so it uses the dark overlay
   scrollbar thumb (it classifies by html background otherwise) */
:root {
	color-scheme: light;
}

/* Mobile safety: long words in headings may wrap, and the page
   must never scroll sideways */
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
}

html, body {
	overflow-x: clip;
}
