/*
Theme Name: Fullerton Fund 2026
Theme URI: https://chillybin.co
Version: 2.0.0
Description: Chillybin's starter child theme for the Beaver Builder Theme framework.
Author: Chillybin Web Design
Author URI: https://chillybin.co
Template: bb-theme
Text Domain: chillybin
*/

/* Base
---------------------------------------------------------------------------- */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-size-adjust: none;
}

@media (prefers-reduced-motion: no-preference) {
	html { interpolate-size: allow-keywords; }
}

* {
    outline: 0!important;
}

/* Typography
---------------------------------------------------------------------------- */

p {
	margin: 0 0 1.5em;
	text-wrap: pretty;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75em;
	/*text-wrap: balance;*/
	overflow-wrap: break-word;
}

a {
	color: var(--color-accent);
	text-decoration: underline;
	transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--color-primary);
	text-decoration: none;
}

b, strong { font-weight: 700; }

blockquote, cite, em, i { font-style: italic; }

blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--color-accent);
}

mark {
	background: var(--color-surface);
	color: var(--color-text);
}

hr {
	border: 0;
	border-bottom: 1px solid currentColor;
	color: #eee;
	margin: 2em auto;
}

/* Media
---------------------------------------------------------------------------- */

img, picture, video, canvas, svg { display: block; }
img, video { max-width: 100%; height: auto; }
figure { margin: 0; }

figcaption,
.wp-caption-text {
	font-size: 0.875em;
	font-weight: 600;
	margin-top: 0.5em;
	text-align: center;
}

/* Forms
---------------------------------------------------------------------------- */

input,
select,
textarea {
	background-color: var(--color-white, #fff);
	border: 1px solid #ddd;
	border-radius: var(--radius, 0px);
	color: var(--color-text);
	font-family: inherit;
	font-size: var(--text-body);
	padding: 0.75em 1em;
	width: 100%;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input:focus-visible,
textarea:focus-visible {
	border-color: var(--color-accent);
	outline: 2px solid var(--color-accent);
	outline-offset: -2px;
}

input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
	border-color: #999;
	outline: none;
}

::placeholder { color: #777; opacity: 1; }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button {
	display: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	background-color: var(--color-primary);
	border: 0;
	border-radius: var(--radius, 0px);
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.875em 2em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease;
	width: auto;
}

button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="reset"]:hover, input[type="reset"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
.button:hover, .button:focus {
	background-color: var(--color-primary-dark);
	color: #fff;
}

button:disabled,
input:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
	background-color: #eee;
	color: #777;
	cursor: not-allowed;
}

/* Tables
---------------------------------------------------------------------------- */

table {
	border-collapse: collapse;
	margin-bottom: 2em;
	width: 100%;
}

td, th {
	padding: 0.5em;
	text-align: left;
	vertical-align: top;
}

th { font-weight: 600; }
tr { border-top: 1px solid #eee; }
tbody { border-bottom: 1px solid #eee; }

/* BB Rich Text & Post Content
---------------------------------------------------------------------------- */

.fl-module-rich-text ul,
.fl-module-rich-text ol,
.fl-post-content ul,
.fl-post-content ol {
	margin-bottom: 1.5em;
	padding-left: 2em;
}

.fl-module-rich-text ul > li,
.fl-post-content ul > li { list-style-type: disc; }

.fl-module-rich-text ol > li,
.fl-post-content ol > li { list-style-type: decimal; }

.fl-module-rich-text ul ul > li,
.fl-post-content ul ul > li { list-style-type: circle; }

.fl-module-rich-text ul ul,
.fl-module-rich-text ol ol,
.fl-post-content ul ul,
.fl-post-content ol ol { margin-bottom: 0; }

.fl-post-content li + li { margin-top: 0.25em; }

.fl-post-content h2,
.fl-post-content h3,
.fl-post-content h4 { margin-top: 1.5em; }

.fl-post-content h2 + h3,
.fl-post-content h3 + h4 { margin-top: 0.75em; }

.fl-post-content > *:first-child { margin-top: 0; }

.fl-post-content blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--color-accent);
	font-style: italic;
}

.fl-post-content img { border-radius: var(--radius, 0px); }

.fl-module-rich-text code { background-color: #f5f5f5; padding: 0.1em 0.3em; }

/* BB Row Spacing — collapse padding between same-background adjacent rows
---------------------------------------------------------------------------- */

.fl-row:has(+ .fl-row) .fl-row-content-wrap {
	padding-bottom: var(--space-section, 96px);
}

.fl-row + .fl-row .fl-row-content-wrap {
	padding-top: var(--space-section, 96px);
}

.fl-row:has(+ .fl-row[style*="background-color"]) .fl-row-content-wrap[style*="background-color"] {
	padding-bottom: calc(var(--space-section, 96px) / 2);
}

/* Accessibility
---------------------------------------------------------------------------- */

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

:focus:not(:focus-visible) { outline: none; }

:target { scroll-margin-block: 5ex; }

.screen-reader-text,
.screen-reader-shortcut {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-shortcut:focus {
	background: #fff;
	clip: auto !important;
	color: #333;
	display: block;
	font-size: 1em;
	font-weight: 700;
	height: auto;
	padding: 0.75em 1.5em;
	text-decoration: none;
	width: auto;
	z-index: 100000;
	box-shadow: 0 0 0 3px var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Footer — Chillybin credit
---------------------------------------------------------------------------- */

.footer-right p { text-align: right; }

.footer-right a.chillybin {
	display: inline-block;
	width: 24px;
	height: 24px;
	border-bottom: 0;
	filter: grayscale(100%);
	background: url(images/cb.svg) center / 24px no-repeat;
	vertical-align: top;
}

.footer-right a.chillybin:hover { filter: grayscale(0); }