/* ==========================================================================
   Brain & Breathing Science — Visual refresh (2026)
   Same layout, same palette, same typeface. Refines type rhythm, labels,
   depth and small details. Delete this file to return to the previous look.
   ========================================================================== */

::selection { background: rgba(248, 203, 48, .55); color: #292F36; }

/* --------------------------------------------------------------------------
   Type rhythm
   -------------------------------------------------------------------------- */
p { line-height: 1.62; }

h1, h2, h3,
.home_section_title_line h2,
.home_research_title h2,
.fifth_home_title h2 {
	letter-spacing: -0.012em;
	line-height: 1.18;
}
.top_home_banner h1,
.top_banner_default h1 {
	letter-spacing: -0.02em;
	line-height: 1.14;
	text-wrap: balance;
}
.second_home h3,
.third_home h3,
.home_blog_row h3,
.single_blog_con h3,
.single_blog_row h3,
.faculty_con h3 { text-wrap: balance; }

/* Hero eyebrow: "Welcome to…" becomes a small label with a yellow rule */
.top_home_banner h2 {
	font-size: 13px !important;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .16em;
	line-height: 1.5;
	margin-bottom: 18px !important;
	opacity: .92;
}
.top_home_banner h2::before {
	content: '';
	display: inline-block;
	width: 32px;
	height: 2px;
	margin-right: 14px;
	vertical-align: middle;
	background: #F8CB30;
	position: relative;
	top: -1px;
}

/* Dates read as quiet labels */
.home_blog_row span,
.single_blog_con span,
.single_blog_row span,
.second_post_section span {
	font-size: 11px !important;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: #6B7183;
}

/* Text links: real semibold, a touch more air, and an arrow that nudges */
.learn_more_third_home a,
.home_blog_link a,
.blog_link_home a,
.home_research_img div a,
.single_blog_con a,
.single_blog_row a,
.news_con a,
.single_publication_row a,
.back_to_blog a {
	font-weight: 600;
	letter-spacing: .04em;
}
.learn_more_third_home a,
.home_blog_link a,
.blog_link_home a,
.home_research_img div a,
.single_blog_con a,
.single_blog_row a,
.news_con a {
	display: inline-block;
	padding-right: 22px;
}
.learn_more_third_home a::before,
.home_blog_link a::before,
.blog_link_home a::before,
.home_research_img div a::before,
.single_blog_con a::before,
.single_blog_row a::before,
.news_con a::before {
	content: '';
	position: absolute;
	right: 0;
	top: calc(50% - 8px);
	width: 14px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 1l4 4-4 4M13 5H1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 1l4 4-4 4M13 5H1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.learn_more_third_home a:hover::before,
.home_blog_link a:hover::before,
.blog_link_home a:hover::before,
.home_research_img div a:hover::before,
.single_blog_con a:hover::before,
.single_blog_row a:hover::before,
.news_con a:hover::before { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header + menus
   -------------------------------------------------------------------------- */
body > header { border-bottom: 1px solid rgba(222, 224, 237, .75); }
.header_mid ul li a { letter-spacing: .01em; font-weight: 400; }

.sidebar_main {
	background-color: #2A3FB2;
	background-image: radial-gradient(120% 60% at 100% 0%, rgba(63, 81, 181, .9) 0%, rgba(42, 63, 178, 0) 60%);
}
.sidebar_main h3 {
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: .2em;
	opacity: .7;
}
.sidebar_main .sub-menu {
	border-left: 1px solid rgba(255, 255, 255, .18);
	margin-left: 2px;
}
.sidebar_main .sub-menu a { opacity: .82; }
.sidebar_main .sub-menu a:hover { opacity: 1; }

.top_banner_sub {
	border-bottom: 1px solid #DEE0ED;
}
.top_banner_sub ul li a {
	font-size: 15px;
	letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Banners: a soft blue veil for depth and legibility
   -------------------------------------------------------------------------- */
.bb-parallax::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(31, 46, 140, .55) 0%, rgba(42, 63, 178, .18) 55%, rgba(42, 63, 178, 0) 80%),
		linear-gradient(180deg, rgba(20, 28, 90, 0) 60%, rgba(20, 28, 90, .22) 100%);
}
.top_banner_default.bb-parallax::after {
	background: linear-gradient(180deg, rgba(20, 28, 90, .12) 0%, rgba(20, 28, 90, .38) 100%);
}
.top_home_banner h1,
.top_banner_default h1 { text-shadow: 0 2px 30px rgba(15, 22, 70, .25); }

.top_banner_default h1::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	margin: 18px auto 0;
	background: #F8CB30;
}

/* --------------------------------------------------------------------------
   Depth: quiet, brand-tinted shadows on the colour blocks and photos
   -------------------------------------------------------------------------- */
.second_home_img img { box-shadow: 0 30px 60px -30px rgba(23, 32, 99, .45); }
.home_research_img > div { box-shadow: 0 40px 80px -30px rgba(23, 32, 99, .55); }
.home_research_title { box-shadow: 0 24px 50px -28px rgba(120, 90, 0, .45); }
.second_research_row img,
.third_opioid-epidemic_content img,
.opioid-epidemic_top_panels img,
.third_section_post img { box-shadow: 0 24px 50px -32px rgba(23, 32, 99, .4); }

/* Research platform cards: a faint numeral sits behind each title */
.third_home .row { counter-reset: bb-card; }
.third_home .bb-card { counter-increment: bb-card; }
.third_home .bb-card h3 { position: relative; }
.third_home .bb-card h3::before {
	content: counter(bb-card, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	color: #3F51B5;
	opacity: .55;
	transition: opacity .4s ease;
}
.third_home .bb-card:hover h3::before { opacity: 1; }

/* Team photos + collaborator logos */
.faculty_panels .col-md-4 img { box-shadow: 0 20px 40px -26px rgba(23, 32, 99, .45); }
.faculty_con h4 {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 12px !important;
	color: #3F51B5;
	font-weight: 400;
}

/* Publications + funding: rows get room to breathe */
.single_publication_row,
.funding_row { border-top-color: rgba(42, 63, 178, .35) !important; }
.single_publication_row p strong { color: #2A3FB2; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.contact_con input:not(.wpcf7-submit),
.contact_con textarea,
.tml-login input#user_login,
.tml-login input#user_pass {
	transition: border-color .3s ease, box-shadow .3s ease;
}
.contact_con input:not(.wpcf7-submit):focus,
.contact_con textarea:focus,
.tml-login input#user_login:focus,
.tml-login input#user_pass:focus {
	box-shadow: 0 0 0 3px rgba(42, 63, 178, .12);
}
.contact_con ::placeholder { color: #9AA0B4; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer_btm { background: #F7F8FC; }
.footer_top_l a,
.footer_top_r p,
.footer_btm p { letter-spacing: .01em; }
.footer_top_r a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #DEE0ED;
	border-radius: 50%;
	transition: color .35s ease, border-color .35s ease, background-color .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.footer_top_r a:hover {
	background: #2A3FB2;
	border-color: #2A3FB2;
	color: #fff !important;
}

/* ==========================================================================
   2026–27 layer: modern details on the same layout
   ========================================================================== */

:root { color-scheme: light; }

/* Self-hosted variable font + metric-matched fallback (no layout jump) */
*:not(i) { font-family: 'Libre Franklin', 'Libre Franklin Fallback', Arial, sans-serif; }
code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
body { font-optical-sizing: auto; font-kerning: normal; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* Header: frosted glass once the page scrolls under it */
@media (min-width: 768px) {
	body > header.bb-header.is-scrolled {
		background: rgba(255, 255, 255, .78);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		border-bottom-color: rgba(222, 224, 237, .5);
	}
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	body > header.bb-header.is-scrolled { background: #fff !important; }
}

/* Fine film grain on the blue surfaces: depth without changing the colour */
.home_research_img > div,
.sidebar_main,
.top_banner_default.bb-parallax::after {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		var(--bb-layer, none);
}
.sidebar_main { --bb-layer: radial-gradient(120% 60% at 100% 0%, rgba(63, 81, 181, .9) 0%, rgba(42, 63, 178, 0) 60%); }
.top_banner_default.bb-parallax::after { --bb-layer: linear-gradient(180deg, rgba(20, 28, 90, .12) 0%, rgba(20, 28, 90, .38) 100%); }

/* Native responsive images that replaced timthumb */
.bb-media { display: block; width: 100%; height: auto; }
.bb-media--square { aspect-ratio: 1 / 1; object-fit: cover; }
.bb-media--panel { aspect-ratio: 812 / 518; object-fit: cover; }
.bb-media--contain { object-fit: contain; background: #fff; }
.collaborator_panels img.bb-logo {
	width: 45px;
	height: 45px;
	max-height: none;
	object-fit: contain;
	flex: 0 0 45px;
}

/* Editorial reading styles for page + post content */
.blog_post_content,
.default_content,
.top_research_content,
.top_opioid-epidemic_section,
.third_opioid-epidemic_content,
.fourth_opioid-epidemic_content,
.second_home .col-md-6:first-child { hanging-punctuation: first; }

.blog_post_content a:not([class]),
.default_content a:not([class]),
.top_research_content a:not([class]),
.top_opioid-epidemic_section a:not([class]),
.third_opioid-epidemic_content a:not([class]),
.fourth_opioid-epidemic_content a:not([class]),
.single_publication_row p a:not([class]) {
	color: #2A3FB2;
	text-decoration: underline;
	text-decoration-color: rgba(248, 203, 48, .9);
	text-decoration-thickness: 2px;
	text-underline-offset: .22em;
	transition: color .3s ease, text-decoration-color .3s ease, text-underline-offset .3s ease;
}
.blog_post_content a:not([class]):hover,
.default_content a:not([class]):hover,
.top_research_content a:not([class]):hover,
.top_opioid-epidemic_section a:not([class]):hover,
.third_opioid-epidemic_content a:not([class]):hover,
.fourth_opioid-epidemic_content a:not([class]):hover {
	color: #292F36;
	text-underline-offset: .3em;
}
.blog_post_content p,
.blog_post_content li { font-size: 18px; line-height: 1.72; }
.blog_post_content h2,
.blog_post_content h3,
.default_content h2,
.default_content h4 { margin-top: 1.6em; margin-bottom: .5em; font-weight: 300; }
.blog_post_content ul li::marker,
.default_content ul li::marker,
.blog_post_content ol li::marker,
.default_content ol li::marker { color: #2A3FB2; }
.blog_post_content blockquote,
.default_content blockquote {
	margin: 2em 0;
	padding: .2em 0 .2em 1.4em;
	border-left: 3px solid #F8CB30;
	font-size: 1.25em;
	line-height: 1.5;
}
.blog_post_content img,
.default_content img { max-width: 100%; height: auto; }
.blog_post_content figure figcaption,
.blog_post_content .wp-caption-text,
.default_content .wp-caption-text {
	margin-top: .6em;
	font-size: 13px;
	color: #6B7183;
	letter-spacing: .01em;
}
.blog_post_content iframe,
.default_content iframe { max-width: 100%; }
.blog_post_content iframe[src*="youtube"],
.blog_post_content iframe[src*="vimeo"],
.default_content iframe[src*="youtube"],
.default_content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.third_section_post h4 { font-size: 13px !important; letter-spacing: .02em; }

/* Big lists render lazily: off-screen rows skip layout/paint until needed */
.single_publication_con,
.single_review_con,
.functing_row_con,
.single_blog_row_con,
footer { content-visibility: auto; contain-intrinsic-size: auto 160px; }

/* Touch devices: no sticky hover states */
@media (hover: none) {
	.third_home .bb-card:hover h3,
	.third_home .bb-card:hover p,
	.home_blog_row:hover h3,
	.single_blog_row:hover h3,
	.sidebar_main li a[href]:hover { transform: none; }
	.home_blog_row:hover::before,
	.single_blog_row:hover::before { transform: scaleX(0); }
}

/* Phones: theme's own menu once the responsive-menu plugin is off */
@media (max-width: 767.98px) {
	.bb-own-mobile-menu > header.bb-header {
		position: sticky;
		top: 0;
		z-index: 900;
		padding: 10px 0;
		background: rgba(255, 255, 255, .86);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		transition: transform .55s cubic-bezier(.16, 1, .3, 1);
	}
	.bb-own-mobile-menu > header.bb-header.is-hidden { transform: translate3d(0, -100%, 0); }
	.bb-own-mobile-menu > header .row { flex-wrap: nowrap; }
	.bb-own-mobile-menu .header_logo {
		flex: 1 1 auto;
		max-width: none;
		text-align: left;
	}
	.bb-own-mobile-menu .header_logo img { max-width: 170px; }
	.bb-own-mobile-menu .header_nav {
		display: block;
		flex: 0 0 auto;
		max-width: none;
		width: auto;
	}
	.bb-own-mobile-menu .header_nav a {
		width: 52px;
		height: 52px;
		font-size: 24px;
	}
	.bb-own-mobile-menu .sidebar_main li a { font-size: 26px; }
}

/* Print: clean, ink-friendly pages */
@media print {
	.bb-progress, .header_nav, .sidebar_main, .bb-menu-backdrop, .top_banner_sub, footer .footer_top { display: none !important; }
	body > header { position: static !important; box-shadow: none !important; }
	.bb-parallax { background: none !important; }
	.bb-parallax__layer, .bb-parallax::after { display: none !important; }
	.top_home_banner h1, .top_home_banner h2, .top_banner_default h1 { color: #292F36 !important; text-shadow: none !important; }
	html.bb-js [data-bb-reveal] { opacity: 1 !important; transform: none !important; }
	.bb-wipe img { clip-path: none !important; }
}
